:root {
    --bg: #eef3f9;
    --bg-2: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #152033;
    --muted: #6d7a90;
    --border: #d8e2ef;
    --primary: #1949d8;
    --primary-2: #5c7cff;
    --accent: #0f766e;
    --danger: #cf3f4d;
    --warning: #c98613;
    --success: #1f9d63;
    --shadow: 0 18px 45px rgba(26, 43, 77, 0.08);
    --sidebar: linear-gradient(180deg, #13223f 0%, #0e1930 100%);
    --sidebar-text: #ecf2ff;
    --sidebar-muted: #9fb0d3;
    --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(92, 124, 255, 0.14), transparent 32%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.10), transparent 28%),
        var(--bg);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1160px, 92%); margin: 0 auto; }

/* Auth pages */
.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}
.auth-shell {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--surface);
    border: 1px solid rgba(216, 226, 239, 0.9);
}
.auth-visual {
    background:
        linear-gradient(160deg, rgba(10, 25, 60, 0.82), rgba(25, 73, 216, 0.72)),
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 24%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.14), transparent 22%);
    color: #fff;
    padding: 40px;
    position: relative;
    min-height: 720px;
}
.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 35%, rgba(255,255,255,0.02));
    pointer-events: none;
}
.auth-copy { position: relative; z-index: 1; }
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: .2px;
}
.brand-mark .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8ab4ff;
    box-shadow: 0 0 0 6px rgba(138,180,255,.18);
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
    margin: 0 0 14px;
}
.hero-copy {
    font-size: 1rem;
    color: rgba(255,255,255,.88);
    max-width: 560px;
}
.feature-list { display: grid; gap: 14px; margin: 34px 0; }
.feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    backdrop-filter: blur(4px);
}
.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.12);
    font-weight: 700;
}
.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}
.mini-stat {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    padding: 16px;
    border-radius: 18px;
}
.mini-stat strong { font-size: 1.35rem; display: block; }
.auth-card {
    padding: 34px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.top-links {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.top-links a {
    padding: 10px 14px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
}
.brand { margin-bottom: 24px; }
.brand h1 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 2.8rem); }
.brand p { margin: 0; color: var(--muted); max-width: 580px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
}
label { display: block; font-size: .92rem; font-weight: 700; margin-bottom: 8px; }
.input-hint { display: block; color: var(--muted); font-size: .79rem; margin-top: 6px; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
    transition: .2s ease;
    color: var(--text);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(25, 73, 216, 0.55);
    box-shadow: 0 0 0 4px rgba(25, 73, 216, 0.08);
}
textarea { min-height: 110px; resize: vertical; }
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 10px 20px rgba(25, 73, 216, 0.18);
}
button:hover, .btn:hover { transform: translateY(-1px); }
.btn-secondary { background: linear-gradient(135deg, #5f6f89, #44546d); }
.btn-danger { background: linear-gradient(135deg, #e14c57, #bf3240); }
.btn-success { background: linear-gradient(135deg, #22a96f, #138b58); }
.btn-light {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}
.auth-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.help-text, .subtle, .empty { color: var(--muted); }
.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}
.alert.success { background: #eaf9f2; color: #136640; border-color: #cfeedd; }
.alert.error { background: #fff0f1; color: #8f1f2b; border-color: #f3c9cf; }
.alert.info { background: #eef4ff; color: #2446a8; border-color: #d6e2ff; }

/* App shell */
.app-shell {
    display: grid;
    grid-template-columns: 310px 1fr;
    min-height: 100vh;
}
.sidebar {
    background: var(--sidebar);
    color: var(--sidebar-text);
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    border-right: 1px solid rgba(255,255,255,.06);
}
.logo-box {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}
.logo-box h2 { margin: 0 0 6px; font-size: 1.5rem; }
.logo-box p { margin: 0; color: var(--sidebar-muted); font-size: .92rem; }
.profile-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    padding: 28px; /* increased */
    border-radius: 24px;
    text-align: center;
    margin-bottom: 18px;
}

.profile-card .avatar {
    width: 120px !important;
    height: 120px !important;
    max-width: none !important;
    max-height: none !important;

    display: block;          /* 🔥 makes it centerable */
    margin: 0 auto 16px;     /* 🔥 centers horizontally */
    object-fit: cover;
    border-radius: 20px;     /* optional: softer look */
}
.profile-card h3 {
    margin: 0 0 8px;
    font-size: 1.4rem; /* bigger name */
    font-weight: 600;
}

.profile-card p {
    margin: 4px 0;
    color: var(--sidebar-muted);
    font-size: 1rem; /* slightly bigger */
}

.profile-chip {
    display: inline-flex;
    padding: 8px 18px; /* bigger badge */
    border-radius: 999px;
    background: rgba(92, 124, 255, 0.18);
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.side-nav {
    display: grid;
    gap: 8px;
}
.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--sidebar-text);
    font-weight: 600;
}
.side-nav a span {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.07);
    font-size: .84rem;
}
.side-nav a:hover,
.side-nav a.active {
    background: rgba(255,255,255,.12);
}
.main-content { padding: 28px; }
.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}
.topbar-title h1 { margin: 0; font-size: 2rem; }
.topbar-title p { margin: 6px 0 0; color: var(--muted); }
.topbar-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 600;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.page-header h1 { margin: 0; font-size: 1.85rem; }
.page-header p { margin: 6px 0 0; }
.card-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.card,
.table-wrap,
.data-panel {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(216, 226, 239, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card { padding: 22px; }
.card h3, .card h2 { margin-top: 0; }
.card.span-3 { grid-column: span 3; }
.card.span-4 { grid-column: span 4; }
.card.span-5 { grid-column: span 5; }
.card.span-6 { grid-column: span 6; }
.card.span-7 { grid-column: span 7; }
.card.span-8 { grid-column: span 8; }
.card.span-12 { grid-column: 1 / -1; }
.hero-panel {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: stretch;
}
.hero-band {
    padding: 28px;
    border-radius: 26px;
    background: linear-gradient(140deg, #173680, #3a62f2 70%, #6990ff);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-band::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}
.hero-band h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 10px; }
.hero-band p { color: rgba(255,255,255,.88); max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-actions .btn-light { color: #173680; }
.info-stack { display: grid; gap: 16px; }
.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 145px;
}
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(92,124,255,.10), transparent 50%);
    pointer-events: none;
}
.stat-label { color: var(--muted); font-weight: 700; font-size: .92rem; }
.stat { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; margin: 12px 0 8px; }
.stat-trend { font-size: .88rem; color: var(--muted); }
.section-title { margin: 0 0 12px; font-size: 1.15rem; }
.kv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}
.kv div {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
}
.notice-list,
.list-stack { display: grid; gap: 12px; }
.notice-item,
.list-item {
    padding: 16px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}
.notice-item p,
.list-item p { margin-bottom: 0; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.badge.success { background: #e8f8ef; color: #167046; }
.badge.warning { background: #fff3de; color: #9b650e; }
.badge.info { background: #edf3ff; color: #2d4fb1; }
.badge.danger { background: #fff0f1; color: #9b2130; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
th {
    background: #f6f9fe;
    color: #32455f;
    font-size: .88rem;
    font-weight: 800;
    position: sticky;
    top: 0;
}
tr:hover td { background: rgba(92,124,255,.03); }
.search-bar, .toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    align-items: center;
}
.search-bar input, .toolbar input, .toolbar select { flex: 1; min-width: 180px; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 18px;
}
.profile-preview {
    text-align: center;
    padding: 24px;
}
.profile-preview .avatar { width: 140px; height: 140px; }
.quick-links { display: grid; gap: 12px; }
.quick-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    font-weight: 700;
}
.small { font-size: .84rem; }
.grid-note {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f5f8ff;
    border: 1px dashed #bbcaf5;
    color: #3351a7;
}
.calendar-card {
    display: grid;
    gap: 12px;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.calendar-grid div {
    padding: 14px 10px;
    border-radius: 14px;
    text-align: center;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}
.calendar-grid div strong { display: block; }
.section-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.section-chip {
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 700;
}
.footer-note { color: var(--muted); font-size: .88rem; margin-top: 18px; }

@media (max-width: 1100px) {
    .auth-shell,
    .hero-panel,
    .profile-layout { grid-template-columns: 1fr; }
    .mini-stats { grid-template-columns: 1fr; }
    .card.span-3, .card.span-4, .card.span-5, .card.span-6, .card.span-7, .card.span-8 { grid-column: span 12; }
}
@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; }
}
@media (max-width: 700px) {
    .auth-card, .auth-visual { padding: 22px; }
    .form-grid { grid-template-columns: 1fr; }
    .main-content { padding: 18px; }
    .topbar { flex-direction: column; align-items: flex-start; }
    .topbar-meta { justify-content: flex-start; }
    .calendar-grid { grid-template-columns: repeat(2, 1fr); }
}


.page-intro{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px;flex-wrap:wrap}.page-intro h2,.page-intro h3{margin:0 0 6px}.page-intro p{margin:0;color:var(--muted)}
.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:18px}.metric-card{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--border);border-radius:22px;padding:18px;box-shadow:var(--shadow)}.metric-card span{display:block;color:var(--muted);font-size:.86rem}.metric-card strong{display:block;font-size:1.6rem;margin-top:6px}
.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px;padding:16px;background:rgba(255,255,255,.76);border:1px solid var(--border);border-radius:20px;backdrop-filter:blur(8px)}.toolbar>*{flex:1 1 180px}.toolbar .btn{flex:0 0 auto}
.folder-grid{display:grid;gap:18px}.folder-card,.card{background:linear-gradient(180deg,#fff,#fbfdff);border:1px solid var(--border);border-radius:24px;padding:18px;box-shadow:var(--shadow)}
.folder-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:14px;flex-wrap:wrap}.folder-title{display:flex;gap:12px;align-items:center}.folder-icon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(25,73,216,.12),rgba(92,124,255,.24));font-size:1.4rem}.folder-title h3{margin:0;font-size:1.08rem}.folder-title p{margin:4px 0 0;color:var(--muted)}
.folder-chip,.badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:999px;font-size:.82rem;font-weight:700;border:1px solid var(--border);background:#fff}.badge.success{background:#eaf9f2;color:#136640;border-color:#cfeedd}.badge.warning{background:#fff4df;color:#8c6012;border-color:#f0deae}.badge.danger{background:#fff0f1;color:#8f1f2b;border-color:#f3c9cf}.badge.info,.folder-chip{background:#eef4ff;color:#2446a8;border-color:#d6e2ff}
.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:20px;background:#fff}.table-wrap table{width:100%;border-collapse:collapse;min-width:880px}.table-wrap th,.table-wrap td{padding:14px 16px;border-bottom:1px solid #edf2f8;text-align:left;vertical-align:top}.table-wrap th{font-size:.82rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);background:#f8fbff}.table-wrap tr:hover td{background:#fbfdff}
.person-cell{display:flex;align-items:center;gap:12px;min-width:220px}.person-cell .avatar,.user-mini .avatar,.announcement-meta .avatar{width:46px;height:46px;border-radius:16px;object-fit:cover;border:1px solid var(--border);background:#fff}.person-copy strong{display:block}.person-copy span{display:block;color:var(--muted);font-size:.84rem;margin-top:4px}
.user-mini{display:flex;align-items:center;gap:10px}.user-mini .avatar{width:40px;height:40px;border-radius:14px}
.stats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin-bottom:18px}.glass-panel{background:rgba(255,255,255,.82);border:1px solid var(--border);border-radius:24px;padding:18px;box-shadow:var(--shadow);backdrop-filter:blur(8px)}
.inline-form{display:flex;gap:10px;flex-wrap:wrap}.split{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.section-note{padding:14px 16px;background:#f8fbff;border:1px solid var(--border);border-radius:18px;color:var(--muted)}
.announcement-list{display:grid;gap:16px}.announcement-card{padding:18px;border:1px solid var(--border);border-radius:20px;background:#fff}.announcement-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:10px}.announcement-meta .user-mini strong{font-size:.96rem}.announcement-body{color:#334155;line-height:1.6}.folder-empty{padding:24px;text-align:center;color:var(--muted);border:1px dashed var(--border);border-radius:18px;background:#fbfdff}
.search-summary{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px;color:var(--muted)}
@media (max-width: 980px){.split{grid-template-columns:1fr}.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto}}


/* V4 utilities */
.split-2 { display:grid; grid-template-columns: minmax(320px, 420px) 1fr; gap:18px; align-items:start; }
.sticky-card { position: sticky; top: 24px; }
.table-actions { display:flex; flex-wrap:wrap; gap:8px; }
.table-actions .btn, .table-actions button { padding: 9px 12px; border-radius: 12px; box-shadow:none; }
.badge.danger { background:#fff0f1; color:#8f1f2b; border:1px solid #f3c9cf; }
.badge.success { background:#eaf9f2; color:#136640; border:1px solid #cfeedd; }
.badge.warning { background:#fff8e8; color:#9a6208; border:1px solid #f2dfb0; }
.badge.info { background:#eef4ff; color:#2446a8; border:1px solid #d6e2ff; }
.badge { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; font-size:.84rem; font-weight:700; }
.person-cell { display:flex; align-items:center; gap:12px; min-width:220px; }
.person-cell .avatar, .user-mini .avatar { width:44px; height:44px; margin:0; border-width:2px; }
.person-copy { display:grid; gap:2px; }
.user-mini { display:flex; align-items:center; gap:10px; }
.folder-grid, .announcement-list { display:grid; gap:18px; }
.folder-card, .announcement-card, .card, .glass-panel { background:var(--surface); border:1px solid var(--border); border-radius:24px; padding:18px; box-shadow:var(--shadow); }
.folder-head, .page-intro, .metric-grid, .toolbar { display:flex; gap:12px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.folder-title { display:flex; align-items:center; gap:12px; }
.folder-icon { width:50px; height:50px; border-radius:16px; display:grid; place-items:center; background:var(--surface-soft); font-size:1.35rem; }
.folder-chip, .profile-chip, .pill { padding:8px 12px; border-radius:999px; background:var(--surface-soft); border:1px solid var(--border); color:var(--muted); font-weight:700; }
.metric-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; }
.metric-card { background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:16px; box-shadow:var(--shadow); }
.metric-card span { display:block; color:var(--muted); margin-bottom:8px; }
.metric-card strong { font-size:1.5rem; }
.toolbar { margin: 16px 0; }
.toolbar input, .toolbar select { min-width:150px; flex:1; }
.inline-form { display:flex; flex-wrap:wrap; gap:12px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse: collapse; min-width:760px; }
th, td { padding:12px 10px; border-bottom:1px solid var(--border); vertical-align:top; }
th { text-align:left; font-size:.92rem; color:var(--muted); }
.folder-empty, .section-note { color:var(--muted); padding:16px; background:var(--surface-soft); border:1px dashed var(--border); border-radius:18px; }
.page-intro h2, .folder-head h3 { margin:0; }
.page-intro p, .folder-head p { margin:4px 0 0; color:var(--muted); }
.topbar, .hero-panel, .card-grid { margin-bottom:18px; }
.hero-panel, .card-grid, .split { display:grid; gap:18px; }
.card-grid { grid-template-columns:repeat(12,1fr); }
.span-4 { grid-column:span 4; }
.span-6 { grid-column:span 6; }
.hero-panel { grid-template-columns:1.3fr .7fr; }
.info-stack { display:grid; gap:18px; }
.hero-band { background:linear-gradient(135deg,#13223f,#1949d8); color:#fff; border-radius:28px; padding:28px; box-shadow:var(--shadow); }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }
.quick-links { display:grid; gap:10px; }
.quick-link { display:flex; justify-content:space-between; padding:14px 16px; background:var(--surface-soft); border-radius:16px; border:1px solid var(--border); }
.stat-card .stat { font-size:2rem; font-weight:800; }
.stat-label, .stat-trend, .grid-note { color:var(--muted); }
.notice-list { display:grid; gap:12px; }
.notice-item { border:1px solid var(--border); border-radius:18px; padding:14px; background:var(--surface-soft); }
.calendar-grid, .kv { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.section-title { margin-top:0; }
.glass-panel { background:linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,249,252,0.92)); }
.footer-note { color: var(--muted); padding: 18px 4px 28px; }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position:relative; height:auto; }
  .split-2, .hero-panel { grid-template-columns:1fr; }
}
@media (max-width: 860px) {
  .auth-shell, .split { grid-template-columns:1fr !important; }
  .span-4, .span-6 { grid-column: span 12; }
}


.report-actions,.toolbar-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.report-card{background:#fff;border:1px solid #e7eaf2;border-radius:20px;padding:20px;box-shadow:0 14px 35px rgba(24,39,75,.06)}
.report-card h3{margin:0 0 8px}
.report-card p{margin:0 0 14px;color:#6b7280}
.report-links{display:flex;gap:10px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:none;border-radius:12px;padding:10px 14px;font-weight:600;cursor:pointer}
.btn-light{background:#f5f7fb;color:#24314f}
.btn-danger{background:#ffe4e6;color:#b42318}
.btn-success{background:#e9f9ef;color:#157347}
.btn-warning{background:#fff3cd;color:#8a6d3b}
.mini-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:14px 0 20px}
.stat-tile{background:#fff;border:1px solid #e7eaf2;border-radius:18px;padding:16px}
.stat-tile h4{margin:0;font-size:12px;text-transform:uppercase;color:#8b93a7;letter-spacing:.08em}
.stat-tile strong{display:block;font-size:28px;margin-top:8px}
.request-list{display:grid;gap:16px}
.request-card{background:#fff;border:1px solid #e7eaf2;border-radius:18px;padding:18px}
.request-meta{display:flex;gap:12px;flex-wrap:wrap;color:#6b7280;font-size:14px;margin:10px 0}
.assignment-preview{background:#f7f9fd;border:1px dashed #c7d1e6;border-radius:16px;padding:14px;margin-top:10px;color:#42526e}
.print-shell{max-width:980px;margin:0 auto;padding:24px;background:#fff}
.print-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;border-bottom:2px solid #dfe5f2;padding-bottom:16px;margin-bottom:20px}
.print-meta{font-size:14px;color:#5e6a82}
.print-title{margin:0 0 6px}
.grade-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:16px 0 20px}
.grade-box{border:1px solid #e4e8f1;border-radius:14px;padding:14px;background:#fbfcff}
@media print{
  .no-print{display:none !important}
  body{background:#fff}
  .print-shell{padding:0;max-width:none}
  table{page-break-inside:auto}
  tr{page-break-inside:avoid;page-break-after:auto}
}

.mini-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:18px}
.attendance-punch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.schedule-punch-card{background:#fff;border:1px solid var(--border);border-radius:22px;padding:18px;box-shadow:var(--shadow)}
.schedule-punch-card h3{margin:0 0 6px}
.schedule-punch-card p{margin:0 0 8px;color:var(--muted)}
.grade-scale-hint{padding:12px 14px;background:#f8fbff;border:1px solid var(--border);border-radius:16px;color:var(--muted);margin-bottom:14px}
.grade-select-grid{display:grid;grid-template-columns:repeat(6,minmax(100px,1fr));gap:10px;align-items:center}
.grade-row-form{width:100%}
.grade-result{padding:10px 12px;background:#f8fbff;border:1px solid var(--border);border-radius:12px;font-weight:700;text-align:center}
.subtle{color:var(--muted);font-size:.85rem}
.school-letterhead{display:grid;grid-template-columns:28mm 1fr;column-gap:8mm;align-items:center;margin-bottom:18px}
.school-letterhead-logo{display:flex;align-items:center;justify-content:center;height:auto;min-height:28mm;overflow:visible}
.school-letterhead-logo img{width:24mm;max-width:24mm;height:auto;max-height:none;object-fit:contain;transform:none}
.school-letterhead-main{text-align:center}
.school-name{font-size:20px;font-weight:800;line-height:1.15;color:#0f2244}
.school-address{font-size:12px;line-height:1.45}
.program-head{margin-top:6px;font-size:14px;line-height:1.45;color:#0f2244}
.print-sog{position:relative;z-index:0;padding:0;background:#fff;color:#111;font-family:"Times New Roman",serif}
.sog-student-block{display:grid;grid-template-columns:1.4fr 1fr;gap:8mm;margin:5mm 0 3.5mm;font-size:3.8mm;line-height:1.45}
.sog-title-wrap{text-align:center;margin:4.5mm 0 4mm}.sog-title-wrap h2{margin:0;font-size:6mm;letter-spacing:.03em}
.sog-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:0;font-size:3.1mm;background:#fff}
.sog-table th,.sog-table td{border:.32mm solid #222;padding:2.1mm 1.8mm;text-align:center;vertical-align:middle;word-break:break-word}
.sog-table th{background:#fff;font-size:3mm;color:#111;text-transform:none;letter-spacing:0;line-height:1.2}
.sog-table td{line-height:1.2}
.sog-table td.left{text-align:left;padding-left:2.4mm}
.readmission-note{text-align:center;margin-top:2.5mm;font-size:3.4mm;font-weight:700}
.auto-note{text-align:center;margin-top:10mm;font-size:3mm;font-style:italic}
.single-auth .auth-card{width:100%}
@media (max-width:900px){.grade-select-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}.school-letterhead{grid-template-columns:1fr}.school-letterhead-logo{justify-content:center;margin-bottom:8px}.school-letterhead-logo img{transform:none}}
@media print{.school-letterhead-logo img{transform:none} .print-head{border-bottom:none;margin-bottom:8px;padding-bottom:0} .folder-card{box-shadow:none;border:none;padding:0} body{background:#fff} @page{size:A4; margin:10mm}}


.auth-visual-school { background-blend-mode: overlay, normal, screen, screen; }
.folder-nav-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.folder-link-card{display:block;background:var(--surface);border:1px solid var(--border);border-radius:22px;padding:18px;box-shadow:var(--shadow);transition:.2s ease}
.folder-link-card:hover{transform:translateY(-2px);border-color:rgba(25,73,216,.24)}
.folder-link-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.folder-link-meta{color:var(--muted);font-size:.9rem;margin-top:6px}
.back-link-row{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.readonly-note{padding:14px 16px;background:#f8fbff;border:1px solid var(--border);border-radius:18px;color:var(--muted)}


/* Print layout refresh */
.print-body{background:#eef3f9}
.print-toolbar{max-width:210mm;margin:14px auto 10px;display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.print-page{width:210mm;min-height:297mm;margin:0 auto 20px;background:#fff;box-shadow:0 10px 28px rgba(21,32,51,.08);padding:9mm 9mm 10mm;color:#111;overflow:hidden;box-sizing:border-box}
.print-page-a4{page-break-after:auto}
.print-letterhead{display:grid;grid-template-columns:26mm 1fr;column-gap:6mm;align-items:center;margin-bottom:5mm}
.print-letterhead-logo{height:auto;min-height:24mm;overflow:visible;padding-top:0}
.print-logo{display:block;width:22mm;max-width:22mm;height:auto;max-height:none;object-fit:contain;object-position:center;transform:none !important}
.print-letterhead-main{text-align:center}
.print-divider{border-top:.28mm solid #9ca3af;margin:2.2mm 0 2.6mm;width:100%}
.school-name{font-size:6.4mm;font-weight:800;line-height:1.15;margin-bottom:1mm;color:#0f2244}
.school-address{font-size:3.5mm;line-height:1.4;color:#1f2c44}
.program-head{margin-top:0;font-size:4.3mm;line-height:1.45;color:#0f2244}
.report-head-print{margin:6mm 0 5mm}
.print-title{margin:0 0 2mm;font-size:8mm;line-height:1.15;color:#0f2244}
.print-meta{font-size:3.6mm;color:#5e6a82}
.print-table-wrap{width:100%;overflow:visible !important}
.print-table-report,.print-table-sog{width:100%;border-collapse:collapse;table-layout:fixed;background:#fff}
.print-table-report th,.print-table-report td{border:.3mm solid #d7deea;padding:3.6mm 3.2mm;text-align:left;vertical-align:top;font-size:3.5mm;word-break:break-word}
.print-table-report th{background:#f8fbff;color:#152033;font-size:3.3mm;text-transform:uppercase;letter-spacing:.04em;font-weight:800}
.print-table-report td{color:#18243b}
.print-table-report th:nth-child(1),.print-table-report td:nth-child(1){width:26%}
.print-table-report th:nth-child(2),.print-table-report td:nth-child(2){width:18%}
.print-table-report th:nth-child(3),.print-table-report td:nth-child(3){width:28%}
.print-table-report th:nth-child(4),.print-table-report td:nth-child(4){width:18%}
.sog-student-block {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 8mm;
    margin: 4mm 0 3mm;
    font-size: 3.7mm;
    line-height: 1.45;
}

.sog-title-wrap {
    text-align: center;
    margin: 4mm 0 3.5mm;
}

.sog-title-wrap h2 {
    margin: 0;
    font-size: 5.8mm;
    letter-spacing: .02em;
    color: #111;
}

.sog-table {
    font-size: 3.05mm;
    border-collapse: collapse !important;
    table-layout: fixed;
    width: 100%;
    background: #fff;
}

.sog-table th,
.sog-table td {
    border: .32mm solid #222;
    padding: 2mm 1.7mm;
    text-align: center;
    vertical-align: middle;
    word-break: break-word;
    background: #fff;
}

.sog-table thead th {
    background: #fff;
    color: #111;
    text-transform: none;
    letter-spacing: 0;
    font-size: 2.95mm;
    font-weight: 700;
}

.sog-table thead tr:first-child th {
    padding-top: 2.4mm;
    padding-bottom: 2.4mm;
}

.sog-table td.left {
    text-align: left;
    padding-left: 2.4mm;
}
.print-sog{position:relative;z-index:0}
.official-copy-watermark::before{content:'OFFICIAL COPY';position:absolute;inset:48% 0 auto 0;transform:translateY(-50%) rotate(-28deg);text-align:center;font-size:20mm;font-weight:800;letter-spacing:1mm;color:rgba(15,34,68,.05);z-index:-1;pointer-events:none;white-space:nowrap}
.readmission-note{text-align:center;margin-top:2.5mm;font-size:3.4mm;font-weight:700}
.auto-note{text-align:center;margin-top:10mm;font-size:3mm;font-style:italic}


@media print{
  @page{size:A4 portrait;margin:10mm}
  html,body{width:210mm;height:auto;background:#fff !important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.print-body{margin:0;padding:0}
  .no-print{display:none !important}
  .print-page{width:auto;min-height:auto;margin:0;padding:0;box-shadow:none;border:none;overflow:visible}
  .print-toolbar{display:none !important}
  .print-table-wrap,.table-wrap{overflow:visible !important}
  .folder-card{box-shadow:none !important;border:none !important;padding:0 !important;background:#fff !important}
  table{page-break-inside:auto;min-width:0 !important}
  tr{page-break-inside:avoid;page-break-after:auto}
  .print-letterhead{grid-template-columns:24mm 1fr;column-gap:5.5mm}
  .print-logo{width:20mm;max-width:20mm}
}


/* V7 additions */
.readonly-note{color:var(--muted); line-height:1.6;}
.grade-row-form .grade-select-grid button,
.table-actions button{min-height:40px;}
.form-grid textarea{min-height:90px;}


.compact-history-list .notice-item{padding:14px 16px}
.nested-folder-card{background:#fbfdff}
.print-table-sog thead th{font-weight:700}
.print-table-sog th,.print-table-sog td{line-height:1.2}
.print-table-sog td{font-size:3mm}
.print-table-sog td.left{padding-left:2.6mm}
.print-table-sog .sog-total-row td{font-weight:700}
@media print{
  .official-copy-watermark::before{font-size:21mm;color:rgba(15,34,68,.045)}
  .print-table-sog{table-layout:fixed;width:100%;border-collapse:separate !important;border-spacing:0;border-top:.35mm solid #222;border-left:.35mm solid #222}
  .print-table-sog col:nth-child(1){width:12%}
  .print-table-sog col:nth-child(2){width:27%}
  .print-table-sog col:nth-child(3), .print-table-sog col:nth-child(4){width:7%}
  .print-table-sog col:nth-child(5){width:8%}
  .print-table-sog col:nth-child(6){width:11%}
  .print-table-sog col:nth-child(7){width:9%}
  .print-table-sog col:nth-child(8){width:19%}
}


/* V7.4 final visual polish */
:root {
    --shadow-soft: 0 10px 30px rgba(26, 43, 77, 0.06);
    --shadow-card: 0 16px 40px rgba(26, 43, 77, 0.08);
}
body {
    background:
        radial-gradient(circle at top left, rgba(92, 124, 255, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.08), transparent 24%),
        linear-gradient(180deg, #f3f7fc 0%, #edf3fa 100%);
}
.card, .folder-card, .metric-card, .form-card, .table-wrap, .announcement-card, .schedule-card, .quiz-card {
    box-shadow: var(--shadow-soft);
}
.metric-card {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.metric-card span {
    font-size: .86rem;
    letter-spacing: .01em;
}
.metric-card strong {
    font-size: 2rem;
    margin-top: 8px;
}
.card, .folder-card {
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(216, 226, 239, 0.92);
}
.folder-card {
    padding: 14px;
}
.folder-head {
    align-items: center;
    margin-bottom: 12px;
}
.folder-title h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.folder-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff4d9, #ffe8a6);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(201,134,19,.12);
}
.folder-chip, .role-chip, .status-badge {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .01em;
}
.status-badge {
    padding: 6px 12px;
    font-size: .8rem;
    text-transform: uppercase;
}
.status-badge.active { background: #e8f8ef; color: #15724b; }
.status-badge.dropped, .status-badge.removed { background: #fff0f1; color: #a52c39; }
.status-badge.modular-request, .status-badge.resigned { background: #fff7e8; color: #9c6a06; }
.table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(216, 226, 239, 0.85);
    background: #fff;
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
th {
    background: #f6f9fe;
    color: #607291;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 16px 14px;
    position: sticky;
    top: 0;
}
td {
    padding: 15px 14px;
    border-top: 1px solid #ebf0f7;
    vertical-align: middle;
}
tr:hover td {
    background: #fbfdff;
}
.person-cell {
    gap: 12px;
}
.avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(92,124,255,.18);
}
.person-copy strong {
    font-size: .96rem;
}
.person-copy span {
    color: var(--muted);
    font-size: .8rem;
}
.toolbar {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 22px;
    border: 1px solid rgba(216, 226, 239, 0.92);
    padding: 10px;
    gap: 10px;
    box-shadow: var(--shadow-soft);
}
.toolbar input, .toolbar select {
    min-height: 46px;
    border-radius: 14px;
}
button, .btn {
    min-height: 46px;
    border-radius: 16px;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
button:hover, .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(25, 73, 216, 0.18);
}
.btn-light:hover {
    box-shadow: var(--shadow-soft);
}
.page-intro h2 {
    font-size: 2rem;
    margin-bottom: 6px;
}
.page-intro p {
    max-width: 780px;
}
.split-2 {
    align-items: start;
}
.quiz-card, .announcement-card, .schedule-card {
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(216,226,239,.92);
}
.print-page, .print-sog {
    background: #fff;
}
@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; }
    .metric-card strong { font-size: 1.7rem; }
    th, td { padding: 12px 10px; }
}


/* V7.6.2 print polish */
.admin-inline-grid{grid-template-columns:1fr 1fr 1.15fr auto !important;align-items:center}.admin-inline-grid .folder-chip{justify-self:start}.print-page-landscape{width:297mm;min-height:210mm;padding:10mm 12mm}.report-landscape-table{table-layout:auto !important}.report-landscape-table th,.report-landscape-table td{font-size:3.3mm;padding:3.2mm 2.8mm;word-break:normal;white-space:normal}.report-landscape-table th{font-size:3.1mm}.print-landscape .print-toolbar{max-width:297mm}.calendar-shell .folder-chip{display:inline-flex}@media print{body.print-landscape{width:297mm}body.print-portrait{width:210mm}.print-page-landscape{width:auto;min-height:auto;padding:0}.report-landscape-table{table-layout:auto !important}.report-landscape-table th,.report-landscape-table td{font-size:3mm;padding:2.8mm 2.4mm;writing-mode:horizontal-tb !important;transform:none !important}.report-landscape-table th:nth-child(n),.report-landscape-table td:nth-child(n){width:auto !important}}

.nested-nav-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));margin-top:16px}.nested-folder-link .folder-link-head img.avatar{width:42px;height:42px}.folder-link-card .avatar{flex:0 0 42px}.report-students-table th:nth-child(1),.report-students-table td:nth-child(1){width:22%}.report-students-table th:nth-child(2),.report-students-table td:nth-child(2){width:15%}.report-students-table th:nth-child(3),.report-students-table td:nth-child(3){width:24%}.report-students-table th:nth-child(4),.report-students-table td:nth-child(4){width:16%}.report-students-table th:nth-child(5),.report-students-table td:nth-child(5){width:8%}.report-students-table th:nth-child(6),.report-students-table td:nth-child(6){width:15%}.report-instructors-table th:nth-child(1),.report-instructors-table td:nth-child(1){width:28%}.report-instructors-table th:nth-child(2),.report-instructors-table td:nth-child(2){width:15%}.report-instructors-table th:nth-child(3),.report-instructors-table td:nth-child(3){width:32%}.report-instructors-table th:nth-child(4),.report-instructors-table td:nth-child(4){width:15%}.report-instructors-table th:nth-child(5),.report-instructors-table td:nth-child(5){width:10%}.report-grades-table th:nth-child(1),.report-grades-table td:nth-child(1){width:16%}.report-grades-table th:nth-child(2),.report-grades-table td:nth-child(2){width:10%}.report-grades-table th:nth-child(3),.report-grades-table td:nth-child(3){width:11%}.report-grades-table th:nth-child(4),.report-grades-table td:nth-child(4){width:10%}.report-grades-table th:nth-child(5),.report-grades-table td:nth-child(5){width:20%}.report-grades-table th:nth-child(6),.report-grades-table td:nth-child(6){width:8%}.report-grades-table th:nth-child(7),.report-grades-table td:nth-child(7){width:11%}.report-grades-table th:nth-child(8),.report-grades-table td:nth-child(8){width:6%}.report-grades-table th:nth-child(9),.report-grades-table td:nth-child(9){width:6%}.report-grades-table th:nth-child(10),.report-grades-table td:nth-child(10){width:6%}.report-grades-table th:nth-child(11),.report-grades-table td:nth-child(11){width:8%}.report-grades-table th:nth-child(12),.report-grades-table td:nth-child(12){width:8%}.report-attendance-table th:nth-child(1),.report-attendance-table td:nth-child(1){width:18%}.report-attendance-table th:nth-child(2),.report-attendance-table td:nth-child(2){width:8%}.report-attendance-table th:nth-child(3),.report-attendance-table td:nth-child(3){width:11%}.report-attendance-table th:nth-child(4),.report-attendance-table td:nth-child(4){width:12%}.report-attendance-table th:nth-child(5),.report-attendance-table td:nth-child(5){width:10%}.report-attendance-table th:nth-child(6),.report-attendance-table td:nth-child(6){width:10%}.report-attendance-table th:nth-child(7),.report-attendance-table td:nth-child(7){width:8%}.report-attendance-table th:nth-child(8),.report-attendance-table td:nth-child(8){width:8%}.report-attendance-table th:nth-child(9),.report-attendance-table td:nth-child(9){width:8%}.report-attendance-table th:nth-child(10),.report-attendance-table td:nth-child(10){width:7%}.report-schedules-table th:nth-child(1),.report-schedules-table td:nth-child(1){width:7%}.report-schedules-table th:nth-child(2),.report-schedules-table td:nth-child(2){width:10%}.report-schedules-table th:nth-child(3),.report-schedules-table td:nth-child(3){width:9%}.report-schedules-table th:nth-child(4),.report-schedules-table td:nth-child(4){width:18%}.report-schedules-table th:nth-child(5),.report-schedules-table td:nth-child(5){width:18%}.report-schedules-table th:nth-child(6),.report-schedules-table td:nth-child(6){width:12%}.report-schedules-table th:nth-child(7),.report-schedules-table td:nth-child(7){width:10%}.report-schedules-table th:nth-child(8),.report-schedules-table td:nth-child(8){width:8%}.report-schedules-table th:nth-child(9),.report-schedules-table td:nth-child(9){width:8%}.report-schedules-table th:nth-child(10),.report-schedules-table td:nth-child(10){width:8%}.report-announcements-table th:nth-child(1),.report-announcements-table td:nth-child(1){width:38%}.report-announcements-table th:nth-child(2),.report-announcements-table td:nth-child(2){width:16%}.report-announcements-table th:nth-child(3),.report-announcements-table td:nth-child(3){width:22%}.report-announcements-table th:nth-child(4),.report-announcements-table td:nth-child(4){width:24%}.report-subjects-table th:nth-child(1),.report-subjects-table td:nth-child(1){width:12%}.report-subjects-table th:nth-child(2),.report-subjects-table td:nth-child(2){width:26%}.report-subjects-table th:nth-child(3),.report-subjects-table td:nth-child(3){width:8%}.report-subjects-table th:nth-child(4),.report-subjects-table td:nth-child(4){width:14%}.report-subjects-table th:nth-child(5),.report-subjects-table td:nth-child(5){width:8%}.report-subjects-table th:nth-child(6),.report-subjects-table td:nth-child(6){width:8%}.report-subjects-table th:nth-child(7),.report-subjects-table td:nth-child(7){width:8%}.report-subjects-table th:nth-child(8),.report-subjects-table td:nth-child(8){width:16%}.report-landscape-table td,.report-landscape-table th{writing-mode:horizontal-tb !important;transform:none !important}.report-landscape-table th{white-space:normal !important;line-height:1.25}.report-landscape-table td{white-space:normal !important;line-height:1.35}.print-page-landscape .print-letterhead{grid-template-columns:24mm 1fr;column-gap:7mm}.print-page-landscape .print-logo{width:20mm;max-width:20mm}.js-save-state{display:none !important}


/* Unified dashboard and sidebar polish */
.side-nav a span {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    font-size: 1rem;
    flex-shrink: 0;
}
.side-nav a.active span,
.side-nav a:hover span {
    background: rgba(255,255,255,.16);
}
.dashboard-page { display: grid; gap: 20px; }
.hero-panel.compact-dashboard { grid-template-columns: 1.2fr .8fr; }
.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.stat-copy { display: grid; gap: 4px; }
.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(25,73,216,.12), rgba(232,196,144,.30));
    border: 1px solid rgba(25,73,216,.10);
    box-shadow: 0 10px 24px rgba(21, 32, 51, 0.08);
}
.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.card-head p {
    margin: 4px 0 0;
    color: var(--muted);
}
.mini-link-list {
    display: grid;
    gap: 10px;
}
.mini-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    font-weight: 700;
}
.mini-link small {
    display: block;
    color: var(--muted);
    font-weight: 600;
    margin-top: 4px;
}
.muted-line { color: var(--muted); }
.icon-arrow { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 1100px) {
    .hero-panel.compact-dashboard { grid-template-columns: 1fr; }
}
