:root {
    --primary: #0f766e;
    --primary-dark: #0b5d57;
    --primary-soft: #dff5f1;
    --navy: #10233f;
    --navy-soft: #e9eef5;
    --ink: #172033;
    --muted: #667085;
    --line: #e4e8ee;
    --surface: #ffffff;
    --background: #f5f7fa;
    --sand: #f7f2e8;
    --success: #16794f;
    --warning: #a16207;
    --danger: #b42318;
    --info: #175cd3;
    --shadow-sm: 0 1px 2px rgba(16, 35, 63, .06), 0 1px 3px rgba(16, 35, 63, .08);
    --shadow: 0 14px 36px rgba(16, 35, 63, .10);
    --radius-sm: 9px;
    --radius: 16px;
    --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--background);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--muted); }
.text-small { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: .92rem;
    transition: .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 14px rgba(15,118,110,.18); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { color: #fff; background: #0a1930; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: #f9fafb; color: var(--ink); border-color: #cfd5de; }
.btn-danger { background: #fff0ee; color: var(--danger); border-color: #ffd1cc; }
.btn-danger:hover { background: #fee4e2; color: var(--danger); }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-sm { min-height: 34px; padding: 6px 11px; font-size: .82rem; border-radius: 8px; }
.btn-lg { min-height: 50px; padding-inline: 22px; }
.btn-block { width: 100%; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(228,232,238,.9);
}
.site-nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--navy); color: #fff; font-weight: 900;
    position: relative; overflow: hidden;
}
.brand-mark::after { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); right: -11px; bottom: -11px; }
.brand-copy small { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.site-links { display: flex; align-items: center; gap: 22px; }
.site-links > a:not(.btn) { color: #465064; font-weight: 650; font-size: .92rem; }

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 20%, rgba(15,118,110,.20), transparent 28%),
        radial-gradient(circle at 8% 90%, rgba(247,242,232,.96), transparent 33%),
        linear-gradient(135deg, #ffffff 0%, #f4f8f7 55%, #edf4f3 100%);
    border-bottom: 1px solid var(--line);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(16,35,63,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(16,35,63,.035) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
}
.hero-grid { position: relative; min-height: 640px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; padding: 74px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-dark); background: var(--primary-soft); border: 1px solid #bde8e1; padding: 7px 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 4px rgba(15,118,110,.12); }
.hero h1 { font-size: clamp(2.7rem, 5vw, 5.2rem); line-height: .98; letter-spacing: -.055em; max-width: 820px; margin: 24px 0; color: var(--navy); }
.hero h1 span { color: var(--primary); }
.hero-lead { font-size: 1.15rem; max-width: 660px; color: #536176; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 22px; color: #536176; font-size: .88rem; font-weight: 650; }
.hero-trust span::before { content: "✓"; color: var(--success); margin-right: 7px; font-weight: 900; }
.hero-panel { background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.9); border-radius: 26px; box-shadow: var(--shadow); padding: 26px; backdrop-filter: blur(10px); }
.hero-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.hero-panel-head h3 { margin: 0; font-size: 1.12rem; }
.hero-panel-head p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; }
.pulse { display: inline-flex; align-items: center; gap: 6px; background: #ecfdf3; color: var(--success); padding: 6px 9px; border-radius: 99px; font-size: .72rem; font-weight: 800; }
.pulse::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(22,121,79,.12); }
.workflow { display: grid; gap: 11px; }
.workflow-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.workflow-number { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); font-weight: 850; }
.workflow-item.done .workflow-number { background: var(--primary-soft); color: var(--primary-dark); }
.workflow-item strong { display: block; font-size: .9rem; }
.workflow-item small { display: block; color: var(--muted); font-size: .76rem; }
.workflow-status { color: var(--success); font-size: .75rem; font-weight: 800; }

.section { padding: 88px 0; }
.section-alt { background: #fff; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { margin: 12px 0 10px; font-size: clamp(2rem, 3.3vw, 3.2rem); line-height: 1.1; letter-spacing: -.035em; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font-weight: 900; font-size: 1.1rem; margin-bottom: 18px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.04rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .91rem; }
.stat-strip { margin-top: -36px; position: relative; z-index: 3; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.stat-item { padding: 26px; color: #fff; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: 0; }
.stat-item strong { display: block; font-size: 1.8rem; letter-spacing: -.03em; }
.stat-item span { color: rgba(255,255,255,.68); font-size: .82rem; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.timeline-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.timeline-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); color: var(--primary); font-weight: 900; font-size: 1.3rem; }
.timeline-step h3 { margin: 20px 0 7px; }
.timeline-step p { color: var(--muted); margin: 0; font-size: .9rem; }
.cta-box { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 50px; display: flex; justify-content: space-between; align-items: center; gap: 32px; overflow: hidden; position: relative; }
.cta-box::after { content: ""; width: 280px; height: 280px; background: var(--primary); border-radius: 50%; position: absolute; right: -130px; top: -150px; opacity: .45; }
.cta-box h2 { margin: 0 0 10px; font-size: 2rem; position: relative; z-index: 1; }
.cta-box p { margin: 0; color: rgba(255,255,255,.68); position: relative; z-index: 1; }
.cta-box .btn { position: relative; z-index: 1; }
.site-footer { background: #0a182b; color: rgba(255,255,255,.68); padding: 42px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-grid strong { color: #fff; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth-aside { background: var(--navy); color: #fff; padding: 58px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::before, .auth-aside::after { content: ""; position: absolute; border-radius: 50%; background: var(--primary); opacity: .28; }
.auth-aside::before { width: 420px; height: 420px; right: -220px; top: -180px; }
.auth-aside::after { width: 260px; height: 260px; left: -140px; bottom: -130px; }
.auth-aside .brand { color: #fff; position: relative; z-index: 1; }
.auth-copy { max-width: 520px; position: relative; z-index: 1; }
.auth-copy h1 { font-size: clamp(2.4rem, 4.4vw, 4.8rem); line-height: 1; letter-spacing: -.05em; margin: 0 0 20px; }
.auth-copy p { color: rgba(255,255,255,.68); font-size: 1.05rem; }
.auth-proof { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; position: relative; z-index: 1; }
.auth-proof div { padding: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.05); }
.auth-proof strong { display: block; }
.auth-proof span { color: rgba(255,255,255,.62); font-size: .76rem; }
.auth-main { display: grid; place-items: center; padding: 42px; }
.auth-card { width: min(480px, 100%); }
.auth-card h2 { font-size: 2rem; margin: 0 0 6px; letter-spacing: -.035em; }
.auth-card > p { color: var(--muted); margin: 0 0 26px; }
.auth-foot { text-align: center; margin-top: 20px; color: var(--muted); font-size: .9rem; }
.demo-box { background: var(--sand); border: 1px solid #eadfc7; border-radius: 12px; padding: 14px; margin-top: 18px; font-size: .82rem; }
.demo-box strong { display: block; margin-bottom: 4px; }

.form-group { margin-bottom: 17px; }
.form-label { display: block; font-weight: 750; font-size: .86rem; margin-bottom: 7px; color: #344054; }
.form-label .required { color: var(--danger); }
.form-control, .form-select, .form-textarea {
    width: 100%;
    border: 1px solid #d4d9e1;
    background: #fff;
    color: var(--ink);
    border-radius: 10px;
    min-height: 44px;
    padding: 10px 12px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-control:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,118,110,.11); }
.form-control[disabled], .form-select[disabled] { background: #f2f4f7; color: #8b93a2; }
.form-hint { color: var(--muted); font-size: .78rem; margin-top: 5px; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.input-group { display: flex; }
.input-group .form-control { border-radius: 10px 0 0 10px; }
.input-group .btn { border-radius: 0 10px 10px 0; }
.checkbox-line { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; color: #475467; }
.checkbox-line input { margin-top: 4px; }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border-radius: 11px; margin-bottom: 18px; border: 1px solid; font-size: .9rem; }
.alert-success { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.alert-danger { background: #fef3f2; border-color: #fecdca; color: #912018; }
.alert-warning { background: #fffaeb; border-color: #fedf89; color: #854a0e; }
.alert-info { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }
.alert-close { margin-left: auto; border: 0; background: transparent; color: currentColor; opacity: .65; padding: 0; font-size: 1.15rem; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 264px 1fr; }
.sidebar { background: var(--navy); color: #fff; height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; z-index: 80; }
.sidebar-head { height: 78px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-head .brand { color: #fff; }
.sidebar-head .brand-copy small { color: rgba(255,255,255,.48); }
.sidebar-body { flex: 1; overflow-y: auto; padding: 18px 13px; }
.nav-section { color: rgba(255,255,255,.38); text-transform: uppercase; font-size: .65rem; letter-spacing: .12em; font-weight: 850; padding: 13px 10px 7px; }
.nav-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.70); padding: 10px 11px; border-radius: 10px; margin-bottom: 3px; font-size: .88rem; font-weight: 650; transition: .15s ease; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; box-shadow: 0 7px 16px rgba(0,0,0,.12); }
.nav-icon { width: 22px; text-align: center; font-weight: 900; font-size: .9rem; }
.sidebar-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 9px; border-radius: 10px; background: rgba(255,255,255,.06); }
.avatar { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font-weight: 900; text-transform: uppercase; }
.sidebar-user strong { font-size: .8rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 125px; }
.sidebar-user small { color: rgba(255,255,255,.46); font-size: .69rem; }
.sidebar-user a { color: rgba(255,255,255,.7); font-size: 1rem; }
.app-main { min-width: 0; }
.topbar { height: 78px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 50; }
.topbar-title small { display: block; color: var(--muted); font-size: .72rem; }
.topbar-title strong { display: block; font-size: 1rem; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; }
.content { padding: 30px; max-width: 1600px; margin-inline: auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head h1 { margin: 0 0 5px; font-size: 1.75rem; letter-spacing: -.035em; color: var(--navy); }
.page-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.metric-card::after { content: ""; width: 76px; height: 76px; border-radius: 50%; background: var(--primary-soft); position: absolute; right: -28px; top: -29px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.metric-label { color: var(--muted); font-size: .78rem; font-weight: 720; }
.metric-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); font-size: .82rem; font-weight: 900; position: relative; z-index: 1; }
.metric-value { font-size: 1.8rem; font-weight: 850; letter-spacing: -.04em; color: var(--navy); }
.metric-note { color: var(--muted); font-size: .73rem; margin-top: 4px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.card-header h2, .card-header h3 { margin: 0; font-size: 1rem; }
.card-header p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--line); background: #fafbfc; border-radius: 0 0 var(--radius) var(--radius); }
.card-accent { border-top: 4px solid var(--primary); }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th { text-align: left; color: #667085; font-size: .72rem; text-transform: uppercase; letter-spacing: .045em; font-weight: 800; background: #fafbfc; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid #edf0f3; vertical-align: top; }
tbody tr:hover { background: #fbfcfd; }
tbody tr:last-child td { border-bottom: 0; }
.table-title { font-weight: 750; color: var(--ink); }
.table-subtitle { color: var(--muted); font-size: .76rem; margin-top: 2px; }
.table-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: .69rem; font-weight: 800; white-space: nowrap; }
.badge-success { background: #ecfdf3; color: #067647; }
.badge-warning { background: #fffaeb; color: #b54708; }
.badge-danger { background: #fef3f2; color: #b42318; }
.badge-info { background: #eff8ff; color: #175cd3; }
.badge-muted { background: #f2f4f7; color: #667085; }

.filter-bar { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; padding: 15px; background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 17px; }
.filter-bar .form-group { margin: 0; min-width: 170px; }
.search-box { min-width: 240px; flex: 1; }
.detail-list { display: grid; gap: 0; }
.detail-row { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { color: var(--muted); font-size: .82rem; }
.detail-row dd { margin: 0; font-weight: 650; font-size: .88rem; }
.progress { height: 9px; background: #edf0f3; border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: inherit; }
.progress-label { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-bottom: 6px; }

.empty-state { text-align: center; padding: 46px 24px; color: var(--muted); }
.empty-icon { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); font-weight: 900; margin: 0 auto 14px; }
.empty-state h3 { color: var(--ink); margin: 0 0 6px; }
.empty-state p { max-width: 480px; margin: 0 auto 16px; }

.status-panel { padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), #183b64); color: #fff; position: relative; overflow: hidden; }
.status-panel::after { content: ""; width: 180px; height: 180px; border-radius: 50%; background: var(--primary); position: absolute; right: -80px; top: -90px; opacity: .55; }
.status-panel > * { position: relative; z-index: 1; }
.status-panel small { color: rgba(255,255,255,.62); }
.status-panel h2 { margin: 7px 0 5px; }
.status-panel p { margin: 0; color: rgba(255,255,255,.70); }
.quick-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; }
.quick-link { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 11px; color: var(--ink); background: #fff; transition: .15s ease; }
.quick-link:hover { border-color: #b8dcd7; box-shadow: var(--shadow-sm); color: var(--ink); transform: translateY(-1px); }
.quick-link-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font-weight: 900; }
.quick-link strong { font-size: .84rem; display: block; }
.quick-link small { color: var(--muted); font-size: .72rem; }

.schedule-list, .announcement-list, .activity-list { display: grid; gap: 0; }
.schedule-item, .announcement-item, .activity-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.schedule-item:last-child, .announcement-item:last-child, .activity-item:last-child { border-bottom: 0; }
.date-box { width: 48px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); text-align: center; }
.date-box strong { display: block; background: var(--navy); color: #fff; font-size: 1rem; padding: 5px 0; }
.date-box span { display: block; font-size: .64rem; color: var(--muted); padding: 3px 0; text-transform: uppercase; }
.schedule-item h4, .announcement-item h4, .activity-item h4 { margin: 0 0 4px; font-size: .88rem; }
.schedule-item p, .announcement-item p, .activity-item p { margin: 0; color: var(--muted); font-size: .76rem; }

.document-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.document-card { border: 1px solid var(--line); border-radius: 13px; padding: 16px; background: #fff; }
.document-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.document-head h3 { margin: 0; font-size: .9rem; }
.document-head p { margin: 3px 0 0; color: var(--muted); font-size: .72rem; }
.file-line { display: flex; align-items: center; gap: 9px; padding: 9px; background: #f7f9fb; border-radius: 9px; margin-bottom: 10px; font-size: .78rem; min-width: 0; }
.file-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.profile-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px; background: var(--navy); color: #fff; border-radius: var(--radius); margin-bottom: 18px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 900; background: var(--primary); }
.profile-banner h2 { margin: 0 0 3px; }
.profile-banner p { margin: 0; color: rgba(255,255,255,.65); }

.member-list { display: grid; gap: 10px; }
.member-card { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 11px; padding: 11px; }
.member-card strong { display: block; font-size: .84rem; }
.member-card small { color: var(--muted); font-size: .73rem; }
.score-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.score-box { background: #f8fafb; border: 1px solid var(--line); border-radius: 11px; padding: 12px; }
.score-box label { display: block; color: var(--muted); font-size: .73rem; margin-bottom: 5px; }
.score-box strong { font-size: 1.15rem; }
.grade-display { text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px; }
.grade-display strong { font-size: 3.8rem; line-height: 1; display: block; }
.grade-display span { color: rgba(255,255,255,.62); }

.install-page { min-height: 100vh; padding: 48px 0; background: radial-gradient(circle at top right, rgba(15,118,110,.18), transparent 28%), var(--background); }
.install-card { width: min(850px, calc(100% - 32px)); margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.install-head { padding: 28px; background: var(--navy); color: #fff; }
.install-head h1 { margin: 12px 0 5px; }
.install-head p { margin: 0; color: rgba(255,255,255,.65); }
.install-body { padding: 28px; }
.install-note { background: var(--sand); border: 1px solid #e7dac1; border-radius: 12px; padding: 14px; margin-bottom: 22px; font-size: .86rem; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #f2f4f7; padding: 2px 6px; border-radius: 5px; font-size: .86em; }

.sidebar-overlay { display: none; }

@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 40px; }
    .hero-panel { max-width: 680px; }
    .feature-grid { grid-template-columns: repeat(2,1fr); }
    .timeline { grid-template-columns: repeat(2,1fr); }
    .metric-grid, .grid-4 { grid-template-columns: repeat(2,1fr); }
    .grid-3 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
    .site-links > a:not(.btn) { display: none; }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .stat-item:nth-child(2) { border-right: 0; }
    .stat-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
    .auth-page { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: -280px; top: 0; width: 264px; transition: left .2s ease; }
    .sidebar.open { left: 0; }
    .sidebar-overlay { display: block; position: fixed; inset: 0; background: rgba(10,24,43,.48); z-index: 70; opacity: 0; pointer-events: none; transition: .2s ease; }
    .sidebar-overlay.open { opacity: 1; pointer-events: auto; }
    .mobile-toggle { display: inline-grid; place-items: center; }
    .topbar { padding: 0 18px; }
    .content { padding: 22px 18px; }
    .form-row-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
    .container { width: min(100% - 28px, 1180px); }
    .site-nav { min-height: 66px; }
    .brand-copy small { display: none; }
    .hero-grid { padding: 54px 0 74px; }
    .hero h1 { font-size: 2.65rem; }
    .hero-actions .btn { width: 100%; }
    .hero-panel { padding: 17px; border-radius: 18px; }
    .workflow-item { grid-template-columns: 38px 1fr; }
    .workflow-status { display: none; }
    .section { padding: 64px 0; }
    .feature-grid, .timeline, .grid-2, .grid-3, .grid-4, .metric-grid, .document-grid, .form-row, .form-row-3, .score-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-item { padding: 20px; }
    .cta-box { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
    .footer-grid { align-items: flex-start; flex-direction: column; }
    .auth-main { padding: 28px 20px; align-items: start; }
    .page-head { flex-direction: column; }
    .page-actions, .page-actions .btn { width: 100%; }
    .profile-banner { grid-template-columns: auto 1fr; }
    .profile-banner .btn { grid-column: 1 / -1; }
    .detail-row { grid-template-columns: 1fr; gap: 3px; }
    .quick-links { grid-template-columns: 1fr; }
    .schedule-item, .announcement-item, .activity-item { grid-template-columns: 48px 1fr; }
    .schedule-item > :last-child, .announcement-item > :last-child, .activity-item > :last-child { grid-column: 2; }
    .card-header { align-items: flex-start; flex-direction: column; }
    .filter-bar > * { width: 100%; min-width: 0 !important; }
}

@media print {
    .sidebar, .topbar, .page-actions, .filter-bar, .btn, .sidebar-overlay { display: none !important; }
    .app-shell { display: block; }
    .content { padding: 0; max-width: none; }
    body { background: #fff; }
    .card, .metric-card { box-shadow: none; break-inside: avoid; }
}
