:root {
    --bg-primary: #07101d;
    --bg-secondary: #1e293b;
    --glass-bg: rgba(14, 27, 49, 0.78);
    --glass-border: rgba(148, 163, 184, 0.16);
    --text-primary: #f8fafc;
    --text-secondary: #d5deeb;
    --text-muted: #9aaac0;
    --accent: #d9a441;
    --accent-hover: #f3c969;
    --accent-soft: rgba(217, 164, 65, 0.14);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --purple: #a855f7;
    --orange: #f97316;
    --teal: #14b8a6;
}

* { box-sizing: border-box; }

body {
    font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    background:
        radial-gradient(circle at 80% 0%, rgba(31, 108, 122, 0.2), transparent 30rem),
        radial-gradient(circle at 10% 90%, rgba(217, 164, 65, 0.09), transparent 32rem),
        linear-gradient(145deg, #06101d 0%, #101d2f 52%, #07111f 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
}

.glass-panel {
    background: linear-gradient(145deg, rgba(18, 33, 54, 0.92), rgba(10, 22, 39, 0.86));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

h1, h2, h3, h4, h5, h6, .sidebar-brand, .stat-value {
    font-family: Manrope, 'DM Sans', sans-serif;
}
h4, h5, h6 { color: var(--text-primary); font-weight: 700; }
p, td, label, .form-label { color: var(--text-secondary); }
.text-muted { color: var(--text-muted) !important; }

.glass-input, .form-control, .form-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: 10px;
}

.glass-input:focus, .form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3) !important;
    border-color: var(--accent) !important;
}

.form-select option { background: #1e293b; color: #f1f5f9; }

/* Layout */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: 272px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    border-radius: 0;
    border-left: none;
    border-top: none;
    border-bottom: none;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.12rem;
    font-weight: 800;
    padding: 0.5rem 1rem 1.5rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.sidebar-brand i { font-size: 1.5rem; }
.sidebar-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, var(--logo-a), var(--logo-b));
    box-shadow: 0 8px 18px rgba(0,0,0,0.24);
}
.sidebar-logo i { font-size: 1.1rem; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.62rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
    font-size: 0.87rem;
    border: 1px solid transparent;
}
.nav-link i { width: 20px; flex: 0 0 20px; text-align: center; font-size: .98rem; }
.nav-link span { line-height: 1.2; }
.nav-group { display: grid; gap: .18rem; }
.nav-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .7rem;
    margin: .55rem 0 .15rem;
    padding: .52rem .78rem;
    color: #8ea0b8;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
}
.nav-section span { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.nav-section i:first-child { font-size: .88rem; letter-spacing: 0; }
.nav-section:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-section-caret { font-size: .76rem; transition: transform .18s ease; }
.nav-submenu { display: none; gap: .15rem; padding-left: .35rem; }
.nav-group.open .nav-submenu { display: grid; }
.nav-group.open .nav-section { color: #f3d58c; background: rgba(217,164,65,0.06); border-color: rgba(217,164,65,0.12); }
.nav-group.open .nav-section-caret { transform: rotate(180deg); }

.nav-link:hover { background: rgba(255,255,255,0.055); color: var(--text-primary); }
.nav-link.active {
    background: linear-gradient(90deg, rgba(217,164,65,0.2), rgba(217,164,65,0.035));
    color: #f5d88d;
    border-color: rgba(217,164,65,0.22);
}
.logout-link { margin-top: auto; color: var(--danger) !important; }

.main-content {
    margin-left: 272px;
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
    min-height: 100vh;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.05rem 1.4rem;
    margin-bottom: 1.5rem;
}

.page-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.035em; margin: 0; }

.stage-badge {
    background: rgba(99,102,241,0.3) !important;
    color: var(--accent-hover) !important;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
}

/* Stats */
.stat-card {
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
    overflow: hidden;
    position: relative;
}
.top-bar-title { display: flex; align-items: center; gap: .8rem; }
.mobile-nav-toggle { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text-primary); background: rgba(255,255,255,.04); }
.sidebar-overlay { display: none; }
.filter-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; margin-bottom: 1rem; padding: .85rem; border: 1px solid var(--glass-border); border-radius: 12px; background: rgba(255,255,255,.02); }
.filter-toolbar label { min-width: 190px; flex: 1; }
.filter-toolbar label > span { display: block; margin-bottom: .3rem; color: var(--text-muted); font-size: .7rem; }
.career-action { display: flex; gap: .45rem; min-width: 280px; }

.stat-card:hover { transform: translateY(-3px); border-color: rgba(217,164,65,0.35); background: rgba(20,34,60,0.92); }

.stat-icon { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
.stat-value { font-size: 1.65rem; font-weight: 780; line-height: 1.2; letter-spacing: -0.035em; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.stat-kicker { display: block; color: var(--accent-hover); text-transform: uppercase; letter-spacing: .13em; font-size: .62rem; font-weight: 800; margin-bottom: .45rem; }

.text-purple { color: var(--purple) !important; }
.text-orange { color: var(--orange) !important; }
.text-teal { color: var(--teal) !important; }

/* Charts */
.chart-card { padding: 1.25rem; }
.chart-card h5 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-muted); }
.native-chart { display: block; width: 100%; height: 250px; overflow: visible; }
.chart-grid { stroke: rgba(148,163,184,.13); stroke-width: 1; }
.chart-label { fill: #9aaac0; font: 11px 'DM Sans', sans-serif; }
.chart-empty { min-height: 220px; display: grid; place-items: center; color: var(--text-muted); }
.score-breakdown { display: grid; gap: 1rem; margin-top: 1.3rem; }
.score-row > div:first-child { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; color: var(--text-secondary); font-size: .82rem; }
.score-track { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(148,163,184,.12); }
.score-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--teal)); }

/* Tables */
.table-responsive {
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 13px;
    background: rgba(3, 10, 20, 0.22);
}
.table-glass {
    --bs-table-color: var(--text-secondary);
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(148,163,184,0.09);
    --bs-table-striped-bg: rgba(148,163,184,0.025);
    --bs-table-hover-bg: rgba(217,164,65,0.07);
    color: var(--text-primary);
    margin: 0;
    min-width: 680px;
}
.table-glass thead th {
    padding: 0.85rem 0.9rem;
    border: 0;
    border-bottom: 1px solid rgba(217, 164, 65, 0.25);
    background: rgba(217, 164, 65, 0.08);
    color: #f3d58c;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    white-space: nowrap;
}
.table-glass > tbody > tr > * { background-color: transparent !important; box-shadow: none !important; }
.table-glass td { padding: 0.88rem 0.9rem; border-color: rgba(148,163,184,0.09); vertical-align: middle; color: var(--text-secondary); font-size: 0.86rem; }
.table-glass tbody tr:nth-child(even) { background: rgba(148, 163, 184, 0.025); }
.table-glass tbody tr { transition: background 0.15s; }
.table-glass tbody tr:hover { background: rgba(217,164,65,0.07); }
.table-glass tbody tr:last-child td { border-bottom: 0; }
.table-empty { padding: 2rem !important; text-align: center; color: var(--text-muted) !important; }
.game-pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.pagination-summary { color: var(--text-muted); font-size: .76rem; }
.pagination-links { display: flex; flex-wrap: wrap; gap: .35rem; }
.page-button { min-width: 34px; padding: .42rem .65rem; border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text-secondary); text-align: center; text-decoration: none; font-size: .76rem; }
.page-button:hover, .page-button.active { color: #111827; border-color: var(--accent); background: var(--accent-hover); }
.page-button.disabled { opacity: .38; pointer-events: none; }
.year-badge { display: inline-flex; padding: .28rem .55rem; border-radius: 7px; color: #99f6e4; background: rgba(20,184,166,.13); font-weight: 800; white-space: nowrap; }
.research-item { padding: 1rem 0; border-bottom: 1px solid rgba(148,163,184,.1); }
.research-item:last-child { border-bottom: 0; }
.research-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; margin-top: .8rem; }
.research-metrics span { padding: .65rem; border-radius: 9px; background: rgba(255,255,255,.035); color: var(--text-muted); font-size: .7rem; }
.research-metrics b { display: block; margin-bottom: .15rem; color: var(--text-primary); font-size: .9rem; }
.department-assignment { min-width: 160px; }

/* Auth */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.setup-card { max-width: 560px; }

.auth-icon { font-size: 3rem; color: var(--accent); }

.version-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin: .25rem 0 .65rem;
    padding: .25rem .55rem;
    border: 1px solid rgba(226, 184, 75, .34);
    border-radius: 5px;
    color: #f2cf75;
    background: rgba(226, 184, 75, .08);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.difficulty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.difficulty-option input { display: none; }

.difficulty-card {
    display: block;
    padding: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.difficulty-option input:checked + .difficulty-card {
    border-color: var(--accent);
    background: rgba(99,102,241,0.15);
}

.difficulty-card strong { display: block; }
.difficulty-card small { color: var(--text-muted); }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #d9a441, #ad7720);
    color: #111827;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    box-shadow: 0 8px 22px rgba(173, 119, 32, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #efc76e, #c48b2d);
    color: #07101d;
    transform: translateY(-1px);
}

.advance-turn-btn {
    padding: 0.85rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

/* Progress bars */
.progress-bar-mini {
    width: 60px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.progress-bar-mini .fill { height: 100%; border-radius: 3px; }

/* Events */
.event-list { display: flex; flex-direction: column; gap: 1rem; }

.event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
}

.event-positive .event-icon { color: var(--success); }
.event-negative .event-icon { color: var(--danger); }

.competitor-item, .research-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Progression */
.progression-track { display: flex; flex-direction: column; gap: 1rem; }

.progression-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.progression-step.completed { color: var(--success); }
.progression-step.completed .step-dot { background: var(--success); }
.progression-step.next .step-dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

code { color: var(--accent-hover); background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; }

.alert-info { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.3); color: var(--text-primary); }

a { color: var(--accent-hover); }

.hero-panel {
    min-height: 150px;
    padding: 1.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(120deg, rgba(217,164,65,0.13), transparent 55%),
        var(--glass-bg);
}

.hero-panel::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    right: -80px;
    top: -120px;
    background: rgba(124,108,242,0.16);
    filter: blur(2px);
}

.hero-panel h2 { font-size: clamp(1.35rem, 2vw, 2rem); letter-spacing: -0.035em; margin: 0.25rem 0 0.55rem; max-width: 760px; }
.hero-panel p { color: var(--text-muted); max-width: 760px; margin: 0; }
.hero-icon { font-size: 4.2rem; color: rgba(243,201,105,0.42); z-index: 1; }
.eyebrow { color: var(--accent-hover); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.65rem; font-weight: 800; }
.text-accent { color: var(--accent-hover); }

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(148,163,184,0.12);
    color: #cbd5e1;
    white-space: nowrap;
}

.status-approved, .status-completed, .status-successful, .status-matured, .status-repaid {
    background: rgba(34,197,94,0.13);
    color: #86efac;
}
.status-active, .status-scheduled, .status-under_review, .status-under_construction {
    background: rgba(59,130,246,0.14);
    color: #93c5fd;
}
.status-warning, .status-paused, .status-pending {
    background: rgba(245,158,11,0.14);
    color: #fcd34d;
}
.status-failed, .status-rejected, .status-suspended, .status-cancelled, .status-defaulted {
    background: rgba(239,68,68,0.14);
    color: #fca5a5;
}

.staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.staff-card { display: flex; gap: 0.9rem; align-items: center; padding: 1rem; border: 1px solid var(--glass-border); border-radius: 14px; background: rgba(255,255,255,0.025); }
.staff-avatar { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; font-weight: 800; color: #d9d5ff; background: linear-gradient(145deg, #5143b8, #302768); }
.admin-hierarchy { display: grid; gap: 1.1rem; }
.admin-tier { display: grid; gap: .75rem; }
.admin-tier h6 {
    margin: 0;
    color: #f3d58c;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.admin-role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.admin-role-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}
.admin-role-card.filled { border-color: rgba(45,167,160,.28); background: linear-gradient(145deg, rgba(45,167,160,.08), rgba(255,255,255,.025)); }
.admin-role-card.vacant { border-style: dashed; }
.admin-role-top, .admin-person { display: flex; align-items: center; gap: .75rem; }
.admin-role-top small { display: block; color: var(--text-muted); font-size: .72rem; }
.admin-role-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 11px;
    color: #111827;
    background: linear-gradient(145deg, #f3c969, #b97c1f);
}
.admin-metrics { display: grid; grid-template-columns: 1fr; gap: .45rem; margin-top: auto; }
.admin-metrics span { padding: .55rem .65rem; border-radius: 9px; background: rgba(3,10,20,.24); color: var(--text-muted); font-size: .72rem; }
.admin-metrics b { color: var(--text-primary); }
.bank-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; }
.bank-product {
    display: grid;
    gap: .45rem;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
}
.bank-product .status-pill { justify-self: start; }
.bank-product p { min-height: 3.2em; margin: 0; color: var(--text-muted); font-size: .75rem; }
.bank-product div { color: var(--text-muted); font-size: .75rem; }
.bank-product b { color: #86efac; }

.grade-seal {
    width: 106px;
    height: 106px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    border: 6px double rgba(255,255,255,0.38);
    background: linear-gradient(145deg, #7868ed, #4338a5);
    box-shadow: 0 0 0 8px rgba(124,108,242,0.12), 0 18px 30px rgba(0,0,0,0.24);
    z-index: 1;
}

.decision-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.decision-card { padding: 1.5rem; border-color: rgba(245,158,11,0.28); background: linear-gradient(135deg, rgba(245,158,11,0.08), var(--glass-bg)); }
.decision-card h4 { margin: 0.3rem 0 0.6rem; }
.decision-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1rem 0; }
.modern-progress { height: 7px; min-width: 110px; background: rgba(255,255,255,0.08); }
.modern-progress .progress-bar { background: linear-gradient(90deg, #7c6cf2, #22c55e); border-radius: inherit; }
.modern-progress .progress-bar { background: linear-gradient(90deg, #d9a441, #2da7a0); }

.candidate-list, .project-picker {
    display: grid;
    gap: 0.55rem;
    max-height: 330px;
    overflow-y: auto;
    padding-right: 0.25rem;
}
.candidate-option, .project-option { cursor: pointer; }
.candidate-option input, .project-option input, .logo-option input { position: absolute; opacity: 0; pointer-events: none; }
.candidate-option span, .project-option span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.8rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255,255,255,0.025);
    transition: 0.18s ease;
}
.candidate-option small, .project-option small { color: var(--text-muted); }
.candidate-option input:checked + span, .project-option input:checked + span {
    border-color: rgba(217,164,65,0.7);
    background: rgba(217,164,65,0.12);
    box-shadow: inset 3px 0 #d9a441;
}

.logo-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
.logo-option { cursor: pointer; text-align: center; }
.logo-option small { display: block; color: var(--text-muted); font-size: 0.7rem; margin-top: 0.3rem; }
.logo-mark {
    width: 64px;
    height: 64px;
    margin: auto;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-size: 1.7rem;
    border: 2px solid transparent;
    background: linear-gradient(145deg, var(--logo-a), var(--logo-b));
    transition: 0.18s ease;
}
.logo-option input:checked + .logo-mark { border-color: #fff; transform: translateY(-3px); box-shadow: 0 10px 24px color-mix(in srgb, var(--logo-a) 45%, transparent); }

.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; }
.policy-card { padding: 1.4rem; }
.policy-card h4 { margin: 0.3rem 0 0.8rem; }

.campaign-grid { display: grid; gap: 0.8rem; }
.campaign-card { padding: 1rem; border: 1px solid var(--glass-border); border-radius: 14px; background: rgba(255,255,255,0.025); }
.campaign-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 0.9rem 0; }
.campaign-metrics span { padding: 0.55rem; border-radius: 9px; background: rgba(255,255,255,0.035); color: var(--text-muted); font-size: 0.72rem; }
.campaign-metrics b { display: block; color: var(--text-primary); font-size: 1rem; }

.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.75rem; }
.company-card { display: flex; gap: 0.75rem; align-items: center; padding: 0.85rem; border-radius: 12px; background: rgba(255,255,255,0.025); border: 1px solid var(--glass-border); }
.company-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: #b9b1ff; background: rgba(124,108,242,0.15); }

.campus-map {
    min-height: 620px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(90px, 1fr));
    grid-template-rows: repeat(5, 105px);
    gap: 1rem;
    position: relative;
    overflow: auto;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(34,197,94,0.06), transparent 55%),
        var(--glass-bg);
    background-size: 40px 40px, 40px 40px, auto, auto;
}
.map-building {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    background: linear-gradient(145deg, #334155, #172033);
    box-shadow: 0 14px 28px rgba(0,0,0,0.28);
    transition: transform 0.2s;
}
.map-building:hover { transform: translateY(-4px); }
.map-building i { font-size: 1.8rem; color: rgba(255,255,255,0.8); }
.map-building small { color: rgba(255,255,255,0.68); }
.map-classroom { background: linear-gradient(145deg, #4f46e5, #312e81); }
.map-library { background: linear-gradient(145deg, #0f766e, #134e4a); }
.map-hostel { background: linear-gradient(145deg, #b45309, #78350f); }
.map-sports_complex, .map-green { background: linear-gradient(145deg, #15803d, #14532d); }
.map-hospital_wing { background: linear-gradient(145deg, #dc2626, #7f1d1d); }
.map-laboratory, .map-digital_center { background: linear-gradient(145deg, #0369a1, #0c4a6e); }
.map-building.status-building { border-style: dashed; filter: saturate(0.65); animation: buildingPulse 2s infinite; }
@keyframes buildingPulse { 50% { opacity: 0.68; } }

.course-portfolio { display: grid; gap: .85rem; }
.course-control { padding: 1rem; border: 1px solid var(--glass-border); border-radius: 14px; background: rgba(255,255,255,.025); }
.course-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: .8rem; }
.course-fields { display: grid; grid-template-columns: 1.2fr 1.1fr auto auto; gap: .65rem; align-items: end; }
.course-fields label > span { display: block; color: var(--text-muted); font-size: .7rem; margin-bottom: .3rem; }
.course-toggle { display: flex; align-items: center; gap: .4rem; padding-bottom: .7rem; white-space: nowrap; }
.quality-line { display: grid; grid-template-columns: 115px 1fr; gap: .6rem; align-items: center; margin-top: .8rem; color: var(--text-muted); font-size: .75rem; }
.course-intake-control {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) 140px auto auto;
    gap: .7rem;
    align-items: end;
    margin-top: -.45rem;
    padding: .8rem 1rem 1rem;
    border: 1px solid var(--glass-border);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: rgba(217,164,65,.035);
}
.course-intake-control > div { display: grid; gap: .2rem; }
.course-intake-control label span { display: block; margin-bottom: .3rem; color: var(--text-muted); font-size: .7rem; }
.ranking-player-row { background: rgba(45,167,160,.11) !important; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 2.5rem; color: var(--accent); }

.demographic-list { display: grid; gap: 1.1rem; }
.demographic-row { display: grid; gap: .4rem; }
.demographic-male { background: #3182ce !important; }
.demographic-female { background: #d2679e !important; }
.demographic-non_binary { background: #d9a441 !important; }
.demographic-undisclosed { background: #64748b !important; }

.residence-grid, .collaboration-grid { display: grid; gap: 1rem; }
.residence-card, .collaboration-card { padding: 1.25rem; }
.residence-card h4, .collaboration-card h4 { margin: .25rem 0; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; margin: 1rem 0; }
.metric-row span { background: rgba(255,255,255,.035); border-radius: 10px; padding: .65rem; color: var(--text-muted); font-size: .7rem; }
.metric-row b { display: block; color: var(--text-primary); font-size: .95rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; }
.team-card { padding: 1.25rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.team-card > i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #111827; background: linear-gradient(145deg,#f3c969,#b97c1f); font-size: 1.3rem; }
.team-score { text-align: center; }
.team-score b { display: block; font-size: 1.4rem; }
.team-score small { color: var(--text-muted); }
.team-card .metric-row { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); margin: 0; }

.board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.board-member { display: flex; gap: .75rem; align-items: center; padding: .85rem; border: 1px solid var(--glass-border); border-radius: 12px; background: rgba(255,255,255,.025); }

.top-bar { border-bottom: 1px solid rgba(217,164,65,.12); }
.content-area { max-width: 1600px; margin: 0 auto; }

/* Responsive */
@media (max-width: 768px) {
    .app-wrapper { display: block; width: 100%; overflow-x: hidden; }
    .sidebar { width: min(84vw, 310px); max-width: 310px; position: fixed; height: 100vh; flex-direction: column; padding: 1rem; overflow-y: auto; overflow-x: hidden; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 22px 0 55px rgba(0,0,0,.45); }
    body.nav-open .sidebar { transform: translateX(0); }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(2,8,18,.7); backdrop-filter: blur(3px); }
    body.nav-open .sidebar-overlay { display: block; }
    .sidebar-brand { display: flex; width: 100%; }
    .main-content { width: 100%; margin-left: 0; padding: 0.85rem; overflow-x: hidden; }
    .content-area, .row, [class*="col-"] { min-width: 0; }
    .nav-link { padding: 0.65rem 0.8rem; font-size: 0.84rem; white-space: normal; }
    .nav-section { display: block; }
    .logout-link { margin-top: auto; }
    .mobile-nav-toggle { display: grid; }
    .hero-panel { padding: 1.35rem; min-height: auto; }
    .hero-icon { display: none; }
    .staff-grid { grid-template-columns: 1fr; }
    .top-bar { align-items: flex-start; gap: 0.75rem; }
    .campaign-metrics { grid-template-columns: repeat(2, 1fr); }
    .logo-picker { grid-template-columns: repeat(2, 1fr); }
    .campus-map { grid-template-columns: repeat(6, 110px); }
    .course-fields { grid-template-columns: 1fr 1fr; }
    .course-intake-control { grid-template-columns: 1fr; }
    .course-heading, .top-bar { flex-wrap: wrap; }
    .table-responsive { max-width: 100%; }
    .game-pagination { align-items: flex-start; flex-direction: column; }
    .research-metrics { grid-template-columns: 1fr; }
    .metric-row { grid-template-columns: repeat(2,1fr); }
    .board-grid { grid-template-columns: 1fr; }
    .filter-toolbar { align-items: stretch; flex-direction: column; }
    .filter-toolbar label, .filter-toolbar .btn { width: 100%; }
    .career-action { min-width: 230px; }
}

/* Operations console redesign */
:root {
    --bg-primary: #111411;
    --bg-secondary: #20251f;
    --glass-bg: #1b201b;
    --glass-border: rgba(221, 229, 215, 0.12);
    --text-primary: #f5f7f2;
    --text-secondary: #d7ddd2;
    --text-muted: #9ca798;
    --accent: #e2b84b;
    --accent-hover: #f1cc6b;
    --accent-soft: rgba(226, 184, 75, 0.12);
    --teal: #4bb8a3;
}

html { scrollbar-color: #566050 #151915; }

body {
    background: #111411;
    color: var(--text-primary);
    letter-spacing: 0;
}

body.nav-open { overflow: hidden; }

.glass-panel {
    background: #1b201b;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.sidebar {
    width: 252px;
    padding: 1rem .75rem;
    background: #151915;
    border-right: 1px solid rgba(226, 184, 75, 0.16);
}

.sidebar-brand {
    min-height: 64px;
    padding: .4rem .55rem 1rem;
    gap: .7rem;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #2e594f;
    box-shadow: none;
}

.sidebar-brand-copy {
    display: grid;
    min-width: 0;
    line-height: 1.2;
}

.sidebar-brand-copy strong {
    overflow: hidden;
    color: var(--text-primary);
    font-size: .9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-brand-copy small {
    margin-top: .2rem;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: .64rem;
    font-weight: 500;
}

.sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    margin-left: auto;
    place-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    background: transparent;
}

.nav-section {
    min-height: 40px;
    margin: .25rem 0 .1rem;
    padding: .5rem .65rem;
    border-radius: 6px;
    color: #929d8f;
}

.nav-group.open .nav-section {
    color: #f2cf75;
    background: rgba(226, 184, 75, 0.08);
    border-color: transparent;
}

.nav-submenu { padding-left: .2rem; }

.nav-link {
    min-height: 42px;
    padding: .58rem .75rem;
    border-radius: 6px;
}

.nav-link.active {
    color: #fff1c5;
    border-color: rgba(226, 184, 75, 0.2);
    background: rgba(226, 184, 75, 0.12);
    box-shadow: inset 3px 0 #e2b84b;
}

.sidebar-footer {
    display: grid;
    gap: .4rem;
    margin-top: auto;
    padding-top: .7rem;
    border-top: 1px solid var(--glass-border);
}

.sidebar-year {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .45rem .75rem;
    color: var(--text-muted);
    font-size: .7rem;
}

.sidebar-year strong { color: var(--text-primary); font-size: .9rem; }
.logout-link { margin-top: 0; }

.main-content {
    margin-left: 252px;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: #111411;
}

.top-bar {
    position: sticky;
    top: 1rem;
    z-index: 50;
    min-height: 64px;
    margin-bottom: 1.25rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(27, 32, 27, 0.96);
}

.page-title {
    font-size: 1.25rem;
    letter-spacing: 0;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.top-bar-year {
    color: var(--text-muted);
    font-size: .78rem;
    white-space: nowrap;
}

.top-bar-year strong { color: var(--text-primary); }

.notification-link {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    position: relative;
    border: 1px solid var(--glass-border);
    border-radius: 7px;
    color: var(--text-secondary);
    text-decoration: none;
    background: #20251f;
}

.notification-link span {
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    position: absolute;
    top: -6px;
    right: -6px;
    padding: 0 4px;
    border-radius: 9px;
    color: #fff;
    background: #dc3545;
    font-size: .6rem;
    font-weight: 800;
}

.stage-badge {
    padding: .35rem .65rem;
    border: 1px solid rgba(75, 184, 163, 0.24);
    border-radius: 6px;
    color: #a7eadb !important;
    background: rgba(75, 184, 163, 0.1) !important;
}

.content-area { width: 100%; max-width: 1480px; flex: 1; }

.site-footer {
    width: 100%;
    max-width: 1480px;
    margin: 1.5rem auto 0;
    padding: 1rem 0 .25rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: .72rem;
    text-align: center;
}

.site-footer a { color: #f2cf75; text-decoration: none; }
.public-footer { max-width: none; margin: 0; padding: 1rem; background: #111411; }

.public-shell {
    min-height: calc(100vh - 49px);
    display: flex;
    flex-direction: column;
    background: #111411;
}

.public-header {
    width: min(1180px, calc(100% - 2rem));
    min-height: 74px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin: 0 auto;
    border-bottom: 1px solid var(--glass-border);
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    justify-self: start;
    color: var(--text-primary);
    text-decoration: none;
}

.public-brand > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #13231f;
    background: var(--teal);
}

.public-brand div { display: grid; line-height: 1.2; }
.public-brand strong { font-family: Manrope, sans-serif; font-size: .9rem; }
.public-brand small { color: var(--text-muted); font-size: .62rem; }

.public-nav { display: flex; align-items: center; gap: .35rem; }
.public-nav a {
    padding: .55rem .75rem;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}
.public-nav a:hover,
.public-nav a.active { color: #f2cf75; background: rgba(226, 184, 75, .08); }
.public-login { justify-self: end; }

.game-start {
    width: min(1180px, calc(100% - 2rem));
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    margin: 0 auto;
    padding: 4rem 0;
}

.game-start-copy h1,
.public-content > h1 {
    max-width: 800px;
    margin: .25rem 0 1rem;
    font-size: clamp(2.3rem, 5vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.game-start-copy > p {
    max-width: 680px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.game-start-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.6rem;
}

.start-console {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    padding: .75rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: #171b17;
}

.start-console div {
    min-height: 150px;
    display: grid;
    align-content: space-between;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-top: 2px solid var(--teal);
    border-radius: 7px;
    background: #20251f;
}

.start-console i { color: var(--accent); font-size: 1.35rem; }
.start-console span { align-self: end; color: var(--text-muted); font-size: .75rem; }
.start-console strong { font-size: 1.15rem; }

.public-content {
    width: min(1080px, calc(100% - 2rem));
    flex: 1;
    margin: 0 auto;
    padding: 4rem 0;
}

.public-content > h1 { max-width: 900px; font-size: clamp(2rem, 4vw, 3.7rem); }

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr);
    gap: 2rem;
    margin: 2rem 0;
}

.about-layout article { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; }
.about-layout article h3 { margin-bottom: 1rem; }
.about-layout aside { align-self: start; padding: 1.4rem; border-top: 2px solid var(--teal); }
.about-layout aside span { display: block; color: var(--text-muted); font-size: .7rem; }
.about-layout aside strong { display: block; margin: .5rem 0; font-size: 1.2rem; }

.public-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin: 2rem 0;
}

.public-feature-grid article {
    min-height: 210px;
    padding: 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 7px;
    background: #1b201b;
}

.public-feature-grid i { color: var(--accent); font-size: 1.35rem; }
.public-feature-grid h3 { margin: 1.2rem 0 .55rem; font-size: 1rem; }
.public-feature-grid p { margin: 0; color: var(--text-muted); font-size: .82rem; line-height: 1.6; }

.hero-panel {
    min-height: 132px;
    padding: 1.5rem;
    border-left: 3px solid var(--accent);
    background: #1b201b;
}

.hero-panel::after { display: none; }
.hero-panel h2 { letter-spacing: 0; }
.hero-icon { color: rgba(226, 184, 75, 0.5); }

.stat-card {
    min-height: 126px;
    display: grid;
    align-content: center;
    padding: 1rem;
    text-align: left;
    border-top: 2px solid rgba(75, 184, 163, 0.38);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 184, 75, 0.52);
    background: #20261f;
}

.stat-icon {
    margin-bottom: .55rem;
    font-size: 1.2rem;
}

.stat-value {
    max-width: 100%;
    color: #fff;
    font-size: 1.45rem;
    letter-spacing: 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.stat-label { line-height: 1.35; }

.chart-card { min-height: 330px; }
.chart-card h5 { color: var(--text-secondary); }

.table-responsive {
    border-radius: 7px;
    background: #171b17;
    scrollbar-color: #5c6657 #171b17;
}

.table-glass thead th {
    padding: .75rem .8rem;
    color: #f0d387;
    letter-spacing: 0;
    background: #22271f;
}

.table-glass td { padding: .8rem; }
.table-glass tbody tr:hover { background: rgba(75, 184, 163, 0.06); }

.form-control,
.form-select,
.glass-input {
    min-height: 44px;
    border-radius: 7px;
    background: #242a23 !important;
}

.form-control:focus,
.form-select:focus,
.glass-input:focus {
    box-shadow: 0 0 0 3px rgba(226, 184, 75, 0.16) !important;
}

.form-select option { background: #242a23; }

.btn {
    min-height: 42px;
    border-radius: 7px;
}

.btn-primary {
    color: #171a15;
    background: #e2b84b;
    box-shadow: none;
}

.btn-primary:hover {
    color: #111411;
    background: #f1cc6b;
    transform: none;
}

.candidate-option span,
.project-option span,
.campaign-card,
.course-control,
.staff-card,
.admin-role-card,
.company-card,
.board-member {
    border-radius: 7px;
    background: #20251f;
}

.status-pill,
.badge,
.year-badge { border-radius: 5px; }

.filter-toolbar {
    border-radius: 7px;
    background: #171b17;
}

.page-button { min-height: 38px; border-radius: 6px; }

.save-slot-grid,
.notification-list,
.advisor-grid { display: grid; gap: .75rem; }

.save-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 7px;
    background: #20251f;
}

.save-slot h5 { margin: .55rem 0 .2rem; }
.save-slot p { margin: 0; color: var(--text-muted); font-size: .78rem; }

.notification-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 7px;
    background: #1b201b;
}

.notification-item.unread {
    border-left: 3px solid var(--accent);
    background: #20251f;
}

.notification-item > i { color: var(--accent); font-size: 1.2rem; }
.notification-item p { margin: .25rem 0; }
.notification-item small { color: var(--text-muted); }

.maintenance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: .8rem;
}

.maintenance-card { padding: 1rem; }
.maintenance-card h5 { margin: .25rem 0 0; }
.condition-score { display: flex; align-items: baseline; gap: .4rem; margin: 1rem 0 .5rem; }
.condition-score strong { font-size: 1.7rem; }
.condition-score span { color: var(--text-muted); font-size: .75rem; }
.maintenance-card .modern-progress { margin-bottom: .8rem; }
.maintenance-action { display: grid; grid-template-columns: 1fr auto; gap: .55rem; }

.advisor-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem;
    border-left: 3px solid var(--teal);
}

.advisor-card > i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #111411;
    background: var(--teal);
    font-size: 1.2rem;
}

.advisor-card h4 { margin: .2rem 0 .35rem; font-size: 1.05rem; }
.advisor-card p { margin: 0; color: var(--text-muted); }
.advisor-card.priority-warning { border-left-color: var(--warning); }
.advisor-card.priority-warning > i { background: var(--warning); }
.advisor-card.priority-danger { border-left-color: var(--danger); }
.advisor-card.priority-danger > i { color: #fff; background: var(--danger); }

@media (max-width: 991.98px) {
    .main-content { margin-left: 0; }
    .sidebar {
        width: min(88vw, 320px);
        max-width: 320px;
        transform: translateX(-105%);
        transition: transform .2s ease;
        box-shadow: 18px 0 40px rgba(0, 0, 0, .42);
    }
    body.nav-open .sidebar { transform: translateX(0); }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 90;
        background: rgba(5, 7, 5, .72);
    }
    body.nav-open .sidebar-overlay { display: block; }
    .mobile-nav-toggle,
    .sidebar-close { display: grid; }
    .game-start { grid-template-columns: 1fr; padding: 3rem 0; }
    .start-console { width: min(100%, 620px); }
    .public-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .main-content { padding: .65rem; }
    .top-bar {
        top: .65rem;
        min-height: 58px;
        margin-bottom: .85rem;
        padding: .65rem .75rem;
    }
    .top-bar-title { gap: .6rem; min-width: 0; }
    .page-title {
        max-width: 46vw;
        overflow: hidden;
        font-size: 1.05rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .mobile-nav-toggle {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border-radius: 7px;
    }
    .top-bar-actions { gap: .4rem; margin-left: auto; }
    .stage-badge {
        max-width: 105px;
        overflow: hidden;
        font-size: .62rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .top-bar-year { font-size: .68rem; }
    .hero-panel {
        padding: 1.1rem;
        border-left-width: 2px;
    }
    .hero-panel h2 { font-size: 1.25rem; line-height: 1.28; }
    .hero-panel p { font-size: .88rem; line-height: 1.55; }
    .row { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
    .glass-panel.p-4,
    .chart-card,
    .policy-card,
    .decision-card,
    .residence-card,
    .collaboration-card,
    .team-card { padding: 1rem !important; }
    .stat-card {
        min-height: 118px;
        padding: .85rem;
    }
    .stat-value { font-size: 1.22rem; }
    .stat-label { font-size: .72rem; }
    .chart-card { min-height: 285px; }
    .native-chart { height: 220px; }
    .table-responsive {
        margin-inline: -.15rem;
        border-radius: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .table-glass { min-width: 620px; }
    .table-glass th,
    .table-glass td { padding: .7rem !important; }
    .course-fields,
    .course-intake-control,
    .metric-row,
    .campaign-metrics,
    .research-metrics {
        grid-template-columns: 1fr;
    }
    .course-toggle { padding: .2rem 0; }
    .career-action {
        width: 100%;
        min-width: 0;
        flex-wrap: wrap;
    }
    .career-action .form-select { flex: 1 1 180px; }
    .career-action .btn { flex: 1 1 auto; }
    .decision-grid,
    .policy-grid,
    .team-grid,
    .admin-role-grid,
    .company-grid,
    .bank-product-grid {
        grid-template-columns: 1fr;
    }
    .candidate-list,
    .project-picker { max-height: 270px; }
    .game-pagination { gap: .65rem; }
    .pagination-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
    }
    .page-button {
        display: grid;
        place-items: center;
        padding: .45rem;
    }
    .advance-turn-btn { width: 100%; }
    .auth-container { padding: .75rem; }
    .auth-card { padding: 1.25rem; }
    .notification-link { width: 36px; height: 36px; }
    .save-slot { align-items: stretch; flex-direction: column; }
    .save-slot .btn { width: 100%; }
    .maintenance-grid { grid-template-columns: 1fr; }
    .maintenance-action { grid-template-columns: 1fr; }
    .advisor-card { grid-template-columns: 42px 1fr; }
    .advisor-card .btn { grid-column: 1 / -1; width: 100%; }
    .site-footer { margin-top: 1rem; padding-inline: .5rem; }
    .public-header {
        width: calc(100% - 1.25rem);
        grid-template-columns: 1fr auto;
        min-height: 66px;
    }
    .public-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        padding-bottom: .65rem;
        overflow-x: auto;
    }
    .public-login { grid-column: 2; grid-row: 1; min-height: 38px; padding: .45rem .7rem; }
    .public-brand small { display: none; }
    .game-start,
    .public-content { width: calc(100% - 1.25rem); padding: 2rem 0; }
    .game-start-copy h1 { font-size: 2.45rem; }
    .game-start-actions { display: grid; grid-template-columns: 1fr; }
    .game-start-actions .btn { width: 100%; }
    .start-console div { min-height: 125px; }
    .about-layout,
    .public-feature-grid { grid-template-columns: 1fr; }
    .public-feature-grid article { min-height: 0; }
}

@media (max-width: 374px) {
    .stage-badge { display: none; }
    .page-title { max-width: 52vw; }
    .difficulty-grid,
    .logo-picker { grid-template-columns: 1fr; }
}
