:root {
    --red-700: #b42318;
    --red-600: #d92d20;
    --red-50: #fef3f2;
    --navy-950: #101828;
    --navy-900: #17233a;
    --navy-800: #23324d;
    --blue-600: #2563eb;
    --blue-50: #eff6ff;
    --green-700: #288034;
    --green-50: #ecfdf3;
    --amber-700: #b54708;
    --amber-50: #fffaeb;
    --gray-950: #101828;
    --gray-700: #344054;
    --gray-600: #475467;
    --gray-500: #667085;
    --gray-400: #98a2b3;
    --gray-300: #d0d5dd;
    --gray-200: #eaecf0;
    --gray-100: #f2f4f7;
    --gray-50: #f8fafc;
    --white: #fff;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-md: 0 12px 30px rgba(16, 24, 40, .08);
    --radius: 12px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
    margin: 0;
    color: var(--gray-950);
    background: var(--gray-50);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: 2px;
}
.icon { flex: 0 0 auto; }

.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: 272px;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    color: #dbe4f0;
    background: white;
    border-right: 1px solid rgba(0,0,0,.09);
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 8px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand__logo {
    width: 42px;
    height: 47px;
    flex: 0 0 auto;
    object-fit: contain;
}
.brand strong { display: block; color: black; font-size: 1rem; letter-spacing: .02em; }
.brand span { display: block; color: #9cabc0; font-size: .78rem; margin-top: 2px; }
.nav-list { display: flex; flex: 1; flex-direction: column; gap: 4px; padding-top: 24px; }
.nav-label { padding: 0 12px 8px; color: #8090a8; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 9px 12px;
    color: #444f5c;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: .9rem;
    font-weight: 560;
    transition: color .16s, background .16s, transform .16s;
}
.nav-item:hover { color: var(--red-600); background: rgba(255,255,255,.07); transform: translateX(2px); }
.nav-item.is-active { color: var(--red-600); background: rgba(255,111,111,.1); border-color: rgba(255,255,255,.08); }
.nav-item.is-active::before { content: ""; width: 3px; height: 22px; margin-left: -13px; border-radius: 0 3px 3px 0; background: var(--red-600); }
.nav-item--button { width: 100%; background: none; text-align: left; }
.sidebar__footer { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.user-summary { display: flex; gap: 10px; align-items: center; padding: 8px; margin-bottom: 6px; }
.user-summary strong, .user-summary span { display: block; }
.user-summary strong { color: #000; font-size: .82rem; max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-summary span { color: #8fa0b6; font-size: .74rem; margin-top: 2px; }
.avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    color: #344054;
    background: #f2f4f7;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    font-weight: 750;
}
.avatar--small { width: 32px; height: 32px; font-size: .78rem; }
.main { min-height: 100vh; margin-left: 272px; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--gray-200);
    backdrop-filter: blur(8px);
}
.topbar__institution strong, .topbar__institution span { display: block; }
.topbar__institution strong { font-size: .88rem; }
.topbar__institution span { color: var(--gray-500); font-size: .75rem; }
.topbar__profile { display: flex; align-items: center; gap: 10px; color: var(--gray-600); font-size: .84rem; font-weight: 600; }
.topbar__menu { display: none !important; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--gray-700); background: white; border: 1px solid var(--gray-300); border-radius: 9px; }
.page { width: min(100%, 1480px); margin: 0 auto; padding: 30px 32px 56px; background-color: #fff; }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-header h1 { margin: 3px 0 4px; font-size: clamp(1.55rem, 2.5vw, 2rem); line-height: 1.2; letter-spacing: -.025em; }
.page-header p { max-width: 700px; margin: 0; color: var(--gray-500); font-size: .92rem; }
.eyebrow { color: var(--red-700); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 15px;
    color: var(--gray-700);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 9px;
    box-shadow: var(--shadow-sm);
    font-size: .88rem;
    font-weight: 680;
}
.button:hover { background: var(--gray-50); }
.button--primary { color: white; background: var(--red-600); border-color: var(--red-600); }
.button--primary:hover { background: var(--red-700); }
.button--secondary { color: var(--navy-900); background: #fff; }
.button--danger { color: var(--red-700); background: var(--red-50); border-color: #fecdca; }
.button--small { min-height: 34px; padding: 6px 10px; font-size: .8rem; }
.button--full { width: 100%; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.text-link { display: inline-flex; align-items: center; gap: 2px; color: var(--red-700); font-size: .82rem; font-weight: 700; }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 18px; border: 1px solid; border-radius: 10px; font-size: .86rem; }
.alert--success { color: #05603a; background: var(--green-50); border-color: #abefc6; }
.alert--danger { color: #912018; background: var(--red-50); border-color: #fecdca; }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { position: relative; display: flex; align-items: center; gap: 13px; min-height: 112px; padding: 18px; overflow: hidden; background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.stat-card__icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--gray-100); background: var(--gray-700); border-radius: 10px; }
.stat-card span, .stat-card strong { display: block; }
.stat-card span { color: var(--gray-500); font-size: .78rem; }
.stat-card strong { margin-top: 2px; font-size: 1.65rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-card--warning::after { background: #f79009; } .stat-card--warning .stat-card__icon { color: var(--gray-100); background: #f79009; }
.stat-card--info::after { background: var(--blue-600); } .stat-card--info .stat-card__icon { color: var(--gray-100); background: var(--blue-600); }
.stat-card--success::after { background: #12b76a; } .stat-card--success .stat-card__icon { color: var(--gray-100); background: var(--green-700); }
.stat-card--danger::after { background: var(--red-600); } .stat-card--danger .stat-card__icon { color: var(--gray-100); background: var(--red-600); }

.card { margin-bottom: 20px; background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 18px 20px; border-bottom: 1px solid var(--gray-200); }
.card__header h2 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.card__header p { margin: 3px 0 0; color: var(--gray-500); font-size: .78rem; }
.card__body { padding: 20px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 20px; }
.list-stack { padding: 4px 18px; }
.task-row { display: flex; align-items: center; gap: 13px; min-height: 72px; padding: 12px 4px; border-bottom: 1px solid var(--gray-100); }
.task-row:last-child { border-bottom: 0; }
.task-row:hover strong { color: var(--red-700); }
.priority-dot { width: 9px; height: 9px; flex: 0 0 auto; background: var(--gray-400); border-radius: 50%; }
.priority-dot--penting { background: #f79009; }
.priority-dot--mendesak { background: var(--red-600); box-shadow: 0 0 0 4px var(--red-50); }
.task-row__main { flex: 1; min-width: 0; }
.task-row__main strong, .task-row__main small, .task-row__number { display: block; }
.task-row__number { color: var(--red-700); font-size: .7rem; font-weight: 750; letter-spacing: .03em; }
.task-row__main strong { margin: 2px 0; overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.task-row__main small { overflow: hidden; color: var(--gray-500); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.progress-compact { width: 90px; text-align: right; }
.progress-compact span { color: var(--gray-600); font-size: .72rem; font-weight: 700; }
.progress-compact div, .progress-bar { height: 5px; margin-top: 5px; overflow: hidden; background: var(--gray-100); border-radius: 99px; }
.progress-compact i, .progress-bar i { display: block; height: 100%; background: var(--green-700); border-radius: inherit; }
.deadline-list { padding: 6px 18px; }
.deadline-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--gray-100); }
.deadline-list a:last-child { border: 0; }
.deadline-list strong, .deadline-list span { display: block; }
.deadline-list strong { display: -webkit-box; overflow: hidden; font-size: .82rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.deadline-list span { margin-top: 3px; color: var(--gray-500); font-size: .72rem; }
.deadline-date { flex: 0 0 auto; color: var(--gray-600); font-size: .72rem; font-weight: 700; }
.deadline-date.is-overdue, .text-danger { color: var(--red-700) !important; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .83rem; }
th { border-radius: 16px; padding: 11px 16px; color: var(--gray-500); background: #fcfcfd; border-bottom: 1px solid var(--gray-200); text-align: left; font-size: .72rem; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 16px; color: var(--gray-600); border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfd; }
td strong { color: var(--gray-950); }
.table-title { min-width: 230px; }
.table-title strong, .table-title span { display: block; }
.table-title span { margin-top: 3px; color: var(--gray-500); font-size: .75rem; }
.table-actions { display: flex; gap: 6px; white-space: nowrap; }
.badge { display: inline-flex; width: max-content; height: max-content; align-items: center; gap: 6px; min-height: 25px; padding: 3px 8px; border: 1px solid transparent; border-radius: 99px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.badge--belum_diproses { color: var(--gray-600); background: var(--gray-100); border-color: var(--gray-200); }
.badge--sedang_diproses { color: #175cd3; background: var(--blue-50); border-color: #b2ddff; }
.badge--selesai { color: var(--green-700); background: var(--green-50); border-color: #abefc6; }
.badge--terlambat { color: var(--red-700); background: var(--red-50); border-color: #fecdca; }
.priority { display: inline-flex; width: max-content; height: max-content; padding: 3px 8px; border-radius: 6px; font-size: .7rem; font-weight: 750; text-transform: capitalize; }
.priority--biasa { color: var(--gray-600); background: var(--gray-100); }
.priority--penting { color: var(--amber-700); background: var(--amber-50); }
.priority--mendesak { color: var(--red-700); background: var(--red-50); }

.filter-card { padding: 16px; margin-bottom: 18px; background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.filter-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) auto; gap: 12px; align-items: end; }
.filter-grid--report { grid-template-columns: repeat(5, 1fr) auto; }
.field { min-width: 0; }
.field label, .field-label { display: block; margin-bottom: 6px; color: var(--gray-700); font-size: .79rem; font-weight: 700; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--gray-950);
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(16,24,40,.025);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-400); }
.field small, .help-text { display: block; margin-top: 6px; color: var(--gray-500); font-size: .72rem; }
.field-error { margin-top: 5px; color: var(--red-700); font-size: .76rem; }
.form-card { max-width: 900px; }
.form-section { padding: 22px; border-bottom: 1px solid var(--gray-200); }
.form-section:last-child { border: 0; }
.form-section h2 { margin: 0 0 16px; font-size: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field--full { grid-column: 1 / -1; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-card { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--gray-200); border-radius: 9px; cursor: pointer; }
.check-card:hover { border-color: var(--gray-400); }
.check-card input { width: 18px; height: 18px; accent-color: var(--red-600); }
.check-card strong, .check-card span { display: block; }
.check-card strong { font-size: .82rem; }
.check-card span { color: var(--gray-500); font-size: .7rem; }
.switch-row { display: flex; align-items: center; gap: 9px; }
.switch-row input { width: 18px; height: 18px; accent-color: var(--red-600); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 18px 22px; background: #fcfcfd; border-top: 1px solid var(--gray-200); border-radius: 0 0 var(--radius) var(--radius); }
.file-input { padding: 7px !important; }
.file-input::file-selector-button { margin-right: 10px; padding: 6px 10px; color: var(--gray-700); background: var(--gray-100); border: 0; border-radius: 6px; font-weight: 650; }

.detail-hero { position: relative; overflow: hidden; padding: 24px; margin-bottom: 20px; color: white; background: linear-gradient(115deg, var(--navy-950), #263c5d); border-radius: var(--radius); }
.detail-hero::after { content: ""; position: absolute; top: -70px; right: -50px; width: 220px; height: 220px; border: 40px solid rgba(255,255,255,.035); border-radius: 50%; }
.detail-hero__top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; }
.detail-hero__number { color: #aebdd0; font-size: .75rem; font-weight: 700; letter-spacing: .05em; }
.detail-hero h1 { max-width: 850px; margin: 6px 0 12px; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.25; }
.detail-meta { position: relative; z-index: 1; display: flex; gap: 18px; flex-wrap: wrap; color: #c5cfdd; font-size: .78rem; }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 20px; }
.prose { color: var(--gray-700); white-space: pre-line; }
.target-list { display: grid; gap: 10px; padding: 18px; }
.target-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 9px; }
.target-card strong, .target-card small { display: block; }
.target-card strong { font-size: .82rem; }
.target-card small { margin-top: 3px; color: var(--gray-500); font-size: .72rem; }
.timeline { padding: 18px 22px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 8px; top: 16px; bottom: 0; width: 1px; background: var(--gray-200); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { position: relative; z-index: 1; width: 17px; height: 17px; margin-top: 2px; background: white; border: 5px solid var(--blue-600); border-radius: 50%; }
.timeline-content strong, .timeline-content span, .timeline-content small { display: block; }
.timeline-content strong { font-size: .82rem; }
.timeline-content span { margin-top: 4px; color: var(--gray-600); font-size: .8rem; }
.timeline-content small { margin-top: 3px; color: var(--gray-500); font-size: .7rem; }
.attachment-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 9px; }
.attachment-row strong, .attachment-row span { display: block; }
.attachment-row strong { overflow-wrap: anywhere; font-size: .8rem; }
.attachment-row span { color: var(--gray-500); font-size: .7rem; }
.empty-state { padding: 36px 22px; text-align: center; }
.empty-state__icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; color: var(--gray-500); background: var(--gray-100); border-radius: 12px; }
.empty-state h3 { margin: 0; font-size: .92rem; }
.empty-state p { max-width: 430px; margin: 5px auto 0; color: var(--gray-500); font-size: .78rem; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--gray-200); }
.pagination span { color: var(--gray-500); font-size: .76rem; }

.profile-grid { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(320px, 1.3fr); gap: 20px; max-width: 980px; }
.profile-identity { padding: 26px; text-align: center; }
.profile-avatar { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 14px; color: var(--red-700); background: var(--red-50); border-radius: 50%; font-size: 1.7rem; font-weight: 800; }
.profile-identity h2 { margin: 0; font-size: 1.1rem; }
.profile-identity p { margin: 4px 0 16px; color: var(--gray-500); font-size: .8rem; }
.data-list { margin: 0; padding: 0; text-align: left; }
.data-list div { padding: 10px 0; border-top: 1px solid var(--gray-100); }
.data-list dt { color: var(--gray-500); font-size: .7rem; }
.data-list dd { margin: 2px 0 0; font-size: .82rem; font-weight: 650; }

.auth-page { min-height: 100vh; background: white; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .95fr) minmax(480px, 1.05fr); }
.auth-brand { position: relative; display: grid; place-items: center; overflow: hidden; padding: 64px; color: white; background: linear-gradient(145deg, #111d31, #223b60 70%, #263f65); }
.auth-brand::before, .auth-brand::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.auth-brand::before { width: 540px; height: 540px; right: -250px; bottom: -260px; }
.auth-brand::after { width: 300px; height: 300px; right: -120px; bottom: -150px; border-width: 42px; }
.auth-brand__inner { position: relative; z-index: 1; max-width: 560px; }
.government-mark { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 64px; }
.government-mark__logo { width: 72px; height: 80px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.2)); }
.government-mark small { color: #a9b8ca; font-size: .72rem; }
.auth-brand__kicker { color: #c2ccda; font-size: .75rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.auth-brand h1 { max-width: 540px; margin: 12px 0 18px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.045em; }
.auth-brand > div > p { max-width: 490px; margin: 0; color: #bdc9d8; font-size: .95rem; line-height: 1.7; }
.auth-brand__signal { display: flex; align-items: center; gap: 12px; padding-top: 40px; margin-top: 42px; border-top: 1px solid rgba(255,255,255,.12); }
.auth-brand__signal > span { display: grid; place-items: center; width: 40px; height: 40px; color: #6ce9a6; background: rgba(18,183,106,.12); border-radius: 50%; }
.auth-brand__signal strong, .auth-brand__signal small { display: block; }
.auth-brand__signal strong { font-size: .84rem; }
.auth-brand__signal small { margin-top: 2px; color: #9dacbf; font-size: .73rem; }
.auth-form-panel { display: grid; place-items: center; padding: 44px; }
.login-card { width: min(100%, 430px); }
.login-card h2 { margin: 6px 0 10px; font-size: 1.9rem; letter-spacing: -.03em; }
.login-intro { margin: 0 0 26px; color: var(--gray-500); font-size: .88rem; line-height: 1.65; }
.form-stack { display: grid; gap: 17px; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-field button { position: absolute; top: 1px; right: 1px; width: 42px; height: 40px; color: var(--gray-500); background: transparent; border: 0; }
.login-help { margin: 22px 0 0; color: var(--gray-500); font-size: .74rem; text-align: center; }
.login-brand-mobile { display: none; align-items: center; gap: 11px; margin-bottom: 28px; }
.login-brand-mobile strong, .login-brand-mobile span { display: block; }
.login-brand-mobile span { color: var(--gray-500); font-size: .72rem; }

.dialog { width: min(92vw, 440px); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 24px 80px rgba(16,24,40,.24); }
.dialog::backdrop { background: rgba(16,24,40,.58); backdrop-filter: blur(2px); }
.dialog__header { padding: 20px; border-bottom: 1px solid var(--gray-200); }
.dialog__header h2 { margin: 0; font-size: 1rem; }
.dialog__body { display: grid; gap: 14px; padding: 20px; }
.dialog__actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.print-only { display: none; }

@media (max-width: 1180px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .filter-grid, .filter-grid--report { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 40; display: none; background: rgba(16,24,40,.55); }
    body.sidebar-open .sidebar-overlay { display: block; }
    .main { margin-left: 0; }
    .topbar__menu { display: inline-grid !important; }
    .topbar { padding: 0 20px; }
    .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .login-brand-mobile { display: flex; }
    .auth-form-panel { min-height: 100vh; padding: 32px 22px; }
}
@media (max-width: 680px) {
    .page { padding: 24px 16px 44px; }
    .topbar { height: 64px; padding: 0 16px; }
    .topbar__institution { display: none; }
    .topbar__profile > span { display: none; }
    .page-header { align-items: stretch; flex-direction: column; }
    .page-header .button { width: 100%; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card { min-height: 98px; padding: 14px; }
    .stat-card:last-child { grid-column: 1 / -1; }
    .stat-card strong { font-size: 1.4rem; }
    .filter-grid, .filter-grid--report, .form-grid, .checkbox-grid, .profile-grid { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .button { width: 100%; }
    .task-row { align-items: flex-start; }
    .progress-compact { display: none; }
    .detail-hero__top { flex-direction: column; }
    .card__header { align-items: flex-start; }
    .table-actions { flex-direction: column; }
}
@media print {
    body { background: white; color: black; font-size: 11pt; }
    .sidebar, .topbar, .page-header, .filter-card, .no-print, .alert { display: none !important; }
    .main { margin: 0; }
    .page { width: 100%; padding: 0; }
    .print-only { display: block; }
    .card { border: 0; box-shadow: none; }
    table { font-size: 9pt; }
    th, td { padding: 7px; border: 1px solid #ccc; }
}
