body {
    min-height: 100vh;
}

.auth-loading-screen,
.login-screen {
    align-items: center;
    background: #eef2f7;
    display: flex;
    min-height: 100vh;
    padding: 24px;
}

.auth-loading-box {
    align-items: center;
    color: #334155;
    display: grid;
    gap: 14px;
    justify-items: center;
    margin: 0 auto;
}

.login-box {
    margin: 0 auto;
    max-width: 420px;
    width: 100%;
}

.brand-panel {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.brand-badge {
    align-items: center;
    background: #0d6efd;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.brand-panel h1 {
    font-size: 1.5rem;
    margin: 0;
}

.brand-panel p {
    color: #5c6674;
    margin: 0;
}

.summary-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.summary-item,
.stat-tile {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

.summary-item span,
.stat-tile span {
    color: #64748b;
    display: block;
    font-size: 0.8rem;
}

.summary-item strong,
.stat-tile strong {
    color: #111827;
    display: block;
    font-size: 1.4rem;
    line-height: 1.2;
}

.select-inline {
    max-width: 360px;
}

.app-toast {
    background: #111827;
    border-radius: 8px;
    bottom: 18px;
    color: #fff;
    left: 50%;
    max-width: min(520px, calc(100vw - 32px));
    padding: 12px 16px;
    position: fixed;
    transform: translateX(-50%);
    z-index: 2000;
}

.table td,
.table th {
    vertical-align: middle;
}

.format-fields {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.format-field-head,
.format-field-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(120px, 1fr) 110px 110px;
    padding: 10px 12px;
}

.format-field-head {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
}

.format-field-row {
    align-items: center;
    border-top: 1px solid #e5e7eb;
}

.result-panel {
    display: grid;
    gap: 14px;
}

.result-block {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.result-block-header {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
}

.result-block-header h4 {
    font-size: 0.95rem;
    margin: 0;
}

.result-block-body {
    padding: 0;
}

.result-empty {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    display: flex;
    min-height: 140px;
    padding: 18px;
}

.result-list {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 360px;
    overflow: auto;
}

#analysisPage .card-body {
    position: relative;
}

.pdf-loading-overlay {
    align-items: center;
    background: rgba(248, 250, 252, 0.78);
    border-radius: 0 0 8px 8px;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: absolute;
    z-index: 20;
}

.pdf-loading-box {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    display: grid;
    gap: 10px;
    justify-items: center;
    max-width: 360px;
    padding: 20px;
    text-align: center;
    width: min(100%, 360px);
}

.pdf-loading-box strong {
    color: #111827;
}

.pdf-loading-box span {
    color: #64748b;
    font-size: 0.9rem;
}

.pdf-loading-progress {
    height: 8px;
    width: 100%;
}

.pdf-loading-progress .progress-bar {
    width: 100%;
}

.corporate-preview {
    border: 1px solid #d7dde6;
    border-radius: 8px;
    padding: 16px;
}

.corporate-preview-header {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.corporate-preview-logo {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #334155;
    display: inline-flex;
    font-weight: 700;
    height: 52px;
    justify-content: center;
    overflow: hidden;
    width: 88px;
}

.corporate-preview-logo img {
    display: block;
    max-height: 44px;
    max-width: 80px;
}

.corporate-preview-header strong,
.corporate-preview-header span {
    display: block;
}

.corporate-preview-header strong {
    color: #111827;
    font-size: 1.2rem;
}

.corporate-preview-header span {
    color: #64748b;
}

.corporate-preview-strip {
    background: #0d6efd;
    border-radius: 4px;
    height: 8px;
    margin-bottom: 14px;
}

.school-search { max-width: 320px; }
