:root {
    color-scheme: light;
    --red-950: #3e1010;
    --red-900: #541515;
    --red-800: #721f1f;
    --red-700: #8e2929;
    --red-100: #f7e9e9;
    --ink: #17212b;
    --muted: #6b7785;
    --border: #e4e8ec;
    --surface: #fff;
    --canvas: #f4f6f8;
    --green: #147047;
    --shadow: 0 12px 30px rgb(22 34 47 / 5%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(ellipse at 12% 0, rgb(255 255 255 / 90%), transparent 34rem), var(--canvas); font-size: 15px; line-height: 1.5; }
a { color: var(--red-800); text-decoration: none; }
a:hover { color: var(--red-950); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #d5a4a4; outline-offset: 2px; }

.topbar { position: sticky; top: 0; z-index: 5; color: #fff; background: var(--red-950); box-shadow: 0 4px 18px rgb(62 16 16 / 14%); }
.topbar-inner { display: flex; align-items: center; gap: 30px; width: min(1200px, calc(100% - 40px)); min-height: 72px; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand:hover { color: #fff; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; background: #fff; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .03em; }
.brand small { margin-top: 2px; color: #e9caca; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.nav-links { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.nav-links a { padding: 9px 12px; border-radius: 9px; color: #f3dddd; font-size: 13px; font-weight: 650; }
.nav-links a:hover { color: #fff; background: rgb(255 255 255 / 10%); }
.nav-links a.is-active { color: #fff; background: rgb(255 255 255 / 14%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%); }
.mobile-nav { display: none; }
.user-area { display: flex; align-items: center; gap: 14px; }
.user-name { max-width: 190px; overflow: hidden; color: #f5eaea; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-area form { margin: 0; }
.page-shell { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 60px; }
.auth-shell { display: grid; min-height: calc(100vh - 55px); place-items: center; padding: 32px 18px; }
.footer { padding: 18px; color: #8b96a2; font-size: 11px; text-align: center; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.heading-copy { min-width: 0; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.page-heading h1 { margin: 4px 0 5px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.04em; }
.eyebrow { margin: 0; color: var(--red-800); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.muted { color: var(--muted); }
.page-heading .muted, .panel-heading .muted { margin: 0; font-size: 13px; }
.data-freshness { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; color: #63717d; font-size: 11px; font-weight: 650; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #21946a; box-shadow: 0 0 0 3px rgb(33 148 106 / 12%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.stats-grid-warga { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card { position: relative; min-height: 150px; padding: 20px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.stat-card p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.stat-card strong { display: block; margin: 7px 0 10px; font-size: 34px; letter-spacing: -.04em; }
.stat-card a, .stat-caption { font-size: 12px; font-weight: 750; }
.stat-icon { position: absolute; top: 17px; right: 18px; display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgb(255 255 255 / 75%); border-radius: 12px; color: #657280; background: rgb(255 255 255 / 68%); font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.stat-card-red { background: linear-gradient(145deg, #fff, #fff8f8); }
.stat-card-green { background: linear-gradient(145deg, #fff, #f3fbf7); }
.stat-card-green strong, .stat-card-green a { color: var(--green); }
.stat-card-gold { background: linear-gradient(145deg, #fff, #fffaf0); }
.stat-card-gold strong { color: #94620e; }
.stat-card-people { background: linear-gradient(140deg, #fff 20%, #edf3fa); }
.stat-card-students { background: linear-gradient(140deg, #fff 20%, #fbefed); }
.stat-card-reviewed { background: linear-gradient(140deg, #fff 20%, #eaf6ef); }
.stat-card-reviewed strong { color: #16764d; }
.stat-card-places { background: linear-gradient(140deg, #fff 20%, #f5f0e5); }
.stat-card-places strong { color: #84611d; }
.stat-card-people a, .stat-card-students a { display: inline-flex; align-items: center; gap: 5px; }
.warga-stat { min-height: 130px; }
.warga-stat-reviewed { background: linear-gradient(140deg, #fff 15%, #eaf6ef); }
.warga-stat-reviewed strong { color: #16764d; }
.panel { margin-bottom: 20px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-heading h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.02em; }
.text-link { font-size: 13px; font-weight: 750; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px 13px; color: #687482; background: #f7f8f9; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.table-sort-link { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
.table-sort-link:hover, th[aria-sort="ascending"] .table-sort-link, th[aria-sort="descending"] .table-sort-link { color: var(--red-800); }
.table-sort-link span { color: #9aa4ae; font-size: 12px; }
th:first-child { border-radius: 8px 0 0 8px; }
th:last-child { border-radius: 0 8px 8px 0; }
td { padding: 14px 13px; border-bottom: 1px solid #edf0f2; color: #53606d; font-size: 13px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.strong { color: var(--ink); font-weight: 750; }
.table-sub { display: block; margin-top: 3px; color: #8b96a2; font-size: 11px; }
.grade { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 26px; padding: 3px 9px; border-radius: 20px; background: #f0f2f4; color: #66717d; font-size: 11px; font-weight: 800; white-space: nowrap; }
.grade-a, .grade-b { color: #0e7044; background: #e4f5ec; }
.grade-c { color: #94620e; background: #fff3d4; }
.grade-d { color: #a93636; background: #fce9e9; }
.row-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.row-actions form { margin: 0; }
.text-danger { padding: 0; border: 0; background: none; color: #b63232; font-weight: 700; cursor: pointer; }
.bulk-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 15px 0; padding: 12px; border: 1px solid #f0dada; border-radius: 12px; background: #fffafa; }
.bulk-actions form { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0; }
.bulk-actions .muted { font-size: 11px; }
.bulk-check { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; }
.bulk-check input, td input[data-bulk-item] { width: 16px; min-height: 16px; margin: 0; accent-color: var(--red-800); }
.empty-state { padding: 28px 14px; color: var(--muted); text-align: center; }
.empty-state a { font-weight: 750; }
.panel-toolbar { display: flex; justify-content: flex-end; margin: 14px 0; }
.format-links { display: flex; flex-wrap: wrap; gap: 8px; }
.export-builder { display: grid; gap: 14px; margin: 16px 0 22px; padding: 18px; border: 1px solid #e8ebee; border-radius: 14px; background: #fafbfc; }
.export-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.export-toolbar h2 { margin: 3px 0; font-size: 16px; }
.export-toolbar .muted, .export-submit .muted { margin: 0; font-size: 11px; }
.export-format { min-width: 205px; }
.export-format select { min-height: 38px; }
.check-all { display: inline-flex; width: fit-content; grid-template-columns: auto 1fr; align-items: center; gap: 8px; font-size: 11px; }
.check-all input, .export-options input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--red-800); }
.export-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.export-group { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.export-group legend { padding: 0 5px; color: #53606d; font-size: 10px; font-weight: 800; }
.export-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
.export-options label { display: flex; min-width: 0; align-items: center; gap: 7px; color: #45515d; font-size: 11px; font-weight: 600; cursor: pointer; }
.export-options label span { min-width: 0; overflow-wrap: anywhere; }
.export-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tutorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.tutorial-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.tutorial-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #1b2025; }
.tutorial-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tutorial-card-body { display: grid; gap: 8px; padding: 16px; }
.tutorial-audience { color: var(--red-800); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.tutorial-card h2, .tutorial-card h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.tutorial-watch { width: fit-content; font-size: 11px; font-weight: 750; }
.tutorial-actions { display: flex; gap: 8px; padding-top: 7px; border-top: 1px solid #edf0f2; }
.tutorial-actions form { margin: 0; }
.tutorial-form { max-width: 820px; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 750; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.button-primary { color: #fff; background: var(--red-800); }
.button-primary:hover { color: #fff; background: var(--red-950); }
.button-secondary { border-color: var(--border); color: #45515d; background: #fff; }
.button-secondary:hover, .button-outline:hover { background: #f3f5f6; }
.button-outline { border-color: rgb(255 255 255 / 34%); color: #fff; background: transparent; }
.button-small { min-height: 34px; padding: 6px 11px; font-size: 11px; }
.button-wide { width: 100%; }
.inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.inline-form input[type="file"] { flex: 1; min-width: 220px; }

.filter-grid { display: grid; grid-template-columns: minmax(200px, 2fr) minmax(140px, 1fr) minmax(180px, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 18px; }
.sort-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: -4px 0 18px; padding: 12px; border: 1px solid #e8ebee; border-radius: 12px; background: #fafbfc; }
.sort-form label { min-width: 190px; flex: 1; }
.sort-form select { min-height: 38px; }
.sort-form .button { min-height: 38px; }
label { display: grid; gap: 6px; color: #3f4b57; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #dce1e6; border-radius: 9px; color: var(--ink); background: #fff; font-size: 13px; }
.password-field { position: relative; display: block; width: 100%; }
.password-field input { padding-right: 86px; }
.password-toggle { position: absolute; top: 50%; right: 7px; min-height: 30px; padding: 4px 7px; transform: translateY(-50%); border: 0; border-radius: 7px; color: var(--red-800); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.password-toggle:hover { background: var(--red-100); }
.password-toggle:focus-visible { outline: 2px solid #d5a4a4; outline-offset: 1px; }
textarea { min-height: 90px; resize: vertical; }
input::placeholder { color: #a5aeb7; }
input:disabled { color: #83909c; background: #f4f6f7; }
label small { color: #83909c; font-size: 10px; font-weight: 500; }
.filter-actions { display: flex; gap: 8px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; color: var(--muted); font-size: 12px; }
.pagination div { display: flex; gap: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; gap: 9px; padding-top: 3px; }
.form-divider { padding-top: 18px; border-top: 1px solid var(--border); }
.form-divider h2 { margin: 0; font-size: 16px; }
.form-divider small { color: var(--muted); font-size: 11px; font-weight: 500; }
.notice { margin: 0 0 18px; padding: 13px 15px; border: 1px solid; border-radius: 11px; font-size: 13px; font-weight: 650; }
.notice-success { border-color: #b9e4ce; color: #155e3c; background: #effaf4; }
.notice-error { border-color: #f0c4c4; color: #8e2929; background: #fff4f4; }

.auth-card { width: min(440px, 100%); padding: 30px; border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: 0 20px 55px rgb(30 39 48 / 9%); }
.auth-card-wide { width: min(760px, 100%); }
.auth-brand { display: grid; width: 83px; height: 83px; place-items: center; margin: 0 auto 15px; padding: 8px; border: 1px solid var(--border); border-radius: 20px; }
.auth-brand img { width: 100%; height: 100%; object-fit: contain; }
.centered { text-align: center; }
.auth-title { margin: 2px 0 6px; color: var(--red-950); font-size: 31px; font-weight: 900; letter-spacing: -.05em; text-align: center; text-transform: uppercase; }
.auth-card > .muted { margin: 0 0 23px; font-size: 13px; }
.form-stack { display: grid; gap: 14px; }
.remember-option { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; color: #53606d; font-size: 12px; }
.remember-option input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--red-800); }
.auth-foot { margin: 22px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-foot a { font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.back-link { display: inline-block; margin-bottom: 22px; font-size: 12px; font-weight: 700; }
.section-title { margin: 6px 0; font-size: 26px; letter-spacing: -.04em; }

.student-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.student-card { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgb(22 34 47 / 3%); transition: transform .18s ease, box-shadow .18s ease; }
.student-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgb(22 34 47 / 8%); }
.student-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.student-final-grade { display: grid; justify-items: end; gap: 4px; }
.student-final-grade > span { color: #84909b; font-size: 9px; font-weight: 750; text-align: right; }
.student-final-grade .grade { min-width: 40px; }
.student-card h3 { margin: 0; font-size: 15px; }
.student-card p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.student-card-kicker { display: block; margin-bottom: 5px; color: #87929d; font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.student-meta { display: flex; gap: 7px; margin: 12px 0; }
.student-meta span { padding: 4px 8px; border-radius: 99px; color: #53606d; background: #f0f2f4; font-size: 10px; font-weight: 700; }
.score-guide { margin-bottom: 14px; padding: 21px; border-radius: 16px; color: #fff; background: linear-gradient(130deg, var(--red-950), var(--red-800)); }
.score-guide .eyebrow { color: #e9caca; }
.score-guide h2 { margin: 5px 0; font-size: 20px; }
.score-guide p:not(.eyebrow) { max-width: 700px; margin: 0; color: #f2dddd; font-size: 12px; }
.grade-key { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.grade-key span { padding: 6px 9px; border-radius: 7px; color: #fff; background: rgb(255 255 255 / 13%); font-size: 10px; font-weight: 700; }
.score-list { display: grid; gap: 11px; }
.score-item { min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.score-item-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.score-item legend { color: var(--ink); font-size: 13px; font-weight: 800; }
.score-item-heading .muted { font-size: 10px; }
.grade-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grade-options label { cursor: pointer; }
.grade-options input { position: absolute; opacity: 0; pointer-events: none; }
.grade-options span { display: grid; min-height: 45px; place-items: center; border: 2px solid var(--border); border-radius: 10px; color: #5f6c78; background: #fafbfc; font-size: 18px; font-weight: 850; }
.grade-options input:checked + span { border-color: var(--red-800); color: #fff; background: var(--red-800); }
.grade-options input:focus-visible + span { outline: 3px solid #d5a4a4; outline-offset: 2px; }
.clear-grade { display: inline-flex; align-items: center; margin-top: 10px; color: #a93636; font-size: 10px; }
.clear-grade input { width: 15px; min-height: 15px; margin: 0 6px 0 0; }
.password-reset summary { color: var(--red-800); font-size: 11px; font-weight: 750; cursor: pointer; }
.mini-form { display: grid; min-width: 190px; gap: 7px; margin-top: 9px; padding: 11px; border: 1px solid var(--border); border-radius: 10px; background: #fafbfc; }
.mini-form input { min-height: 35px; font-size: 11px; }
.warga-hero { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 220px; margin-bottom: 20px; padding: 28px 34px; overflow: hidden; border: 1px solid rgb(255 255 255 / 8%); border-radius: 24px; color: #fff; background: radial-gradient(circle at 82% 35%, rgb(255 255 255 / 13%), transparent 13rem), linear-gradient(115deg, #381011, #752121 60%, #8d3430); box-shadow: 0 18px 42px rgb(77 20 20 / 16%); }
.warga-hero::after { position: absolute; right: -85px; bottom: -180px; width: 380px; height: 380px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; content: ""; }
.warga-hero-content { position: relative; z-index: 1; max-width: 630px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; color: #f3d9d7; font-size: 10px; font-weight: 850; letter-spacing: .17em; }
.hero-kicker .live-dot { background: #6cdb9e; box-shadow: 0 0 0 4px rgb(108 219 158 / 13%); }
.warga-hero h1 { margin: 13px 0 8px; font-size: clamp(29px, 4vw, 43px); line-height: 1.1; letter-spacing: -.05em; }
.warga-hero-content > p { max-width: 490px; margin: 0; color: #f1dada; font-size: 14px; }
.hero-meta { display: flex; align-items: center; gap: 10px; margin-top: 19px; color: #edcccc; font-size: 10px; font-weight: 650; }
.hero-meta-divider { width: 3px; height: 3px; border-radius: 50%; background: #f0c6c6; }
.hero-mark { position: absolute; top: 50%; right: 12%; display: grid; width: 140px; height: 140px; place-items: center; transform: translateY(-50%); border: 1px solid rgb(255 255 255 / 27%); border-radius: 50%; background: rgb(255 255 255 / 95%); box-shadow: 0 15px 38px rgb(0 0 0 / 18%); }
.hero-mark img { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; }
.hero-profile { position: absolute; top: 18px; right: 19px; z-index: 2; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgb(255 255 255 / 27%); border-radius: 11px; color: #fff; background: rgb(255 255 255 / 10%); font-size: 19px; }
.hero-profile:hover { color: #fff; background: rgb(255 255 255 / 20%); }

@media (max-width: 850px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-search { grid-column: span 2; }
    .filter-actions { grid-column: span 2; }
    .topbar-inner { gap: 12px; }
    .nav-links { gap: 0; }
    .nav-links a { padding: 8px; font-size: 11px; }
    .user-name { display: none; }
    .topbar-inner { width: calc(100% - 28px); }
    .warga-hero { min-height: 205px; }
    .hero-mark { right: 9%; width: 118px; height: 118px; }
    .hero-mark img { width: 91px; height: 91px; }
}
@media (max-width: 700px) and (min-width: 601px) {
    .topbar-inner { gap: 8px; }
    .brand { gap: 7px; }
    .brand strong { font-size: 12px; }
    .brand small { font-size: 8px; }
    .nav-links a { padding-inline: 5px; font-size: 10px; }
    .user-area { gap: 8px; }
}
@media (max-width: 600px) {
    body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .topbar { position: relative; }
    .topbar-inner { width: calc(100% - 28px); min-height: 60px; flex-wrap: nowrap; justify-content: space-between; padding: 8px 0; }
    .brand-logo { width: 35px; height: 35px; }
    .nav-links { display: none; }
    .user-area { margin-left: auto; }
    .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; min-height: calc(64px + env(safe-area-inset-bottom)); padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #e8ebee; background: rgb(255 255 255 / 97%); box-shadow: 0 -8px 26px rgb(24 37 49 / 8%); backdrop-filter: blur(14px); }
    .mobile-nav a { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; color: #7d8995; font-size: 9px; font-weight: 750; }
    .mobile-nav a.is-active { color: var(--red-800); background: #fbf0ef; }
    .mobile-nav-icon { font-size: 17px; line-height: 1.2; }
    .page-shell { width: calc(100% - 24px); padding: 23px 0 45px; }
    .page-heading { align-items: start; flex-direction: column; gap: 13px; margin-bottom: 18px; }
    .page-heading .button { width: 100%; }
    .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; width: auto; }
    .panel { padding: 16px; border-radius: 15px; }
    .stats-grid { gap: 9px; }
    .stat-card { min-height: 130px; padding: 14px; border-radius: 14px; }
    .stat-card strong { font-size: 29px; }
    .stat-card p { max-width: calc(100% - 33px); font-size: 11px; }
    .stat-card a, .stat-caption { font-size: 10px; }
    .stat-icon { top: 11px; right: 11px; width: 27px; height: 27px; border-radius: 9px; font-size: 9px; }
    .form-grid, .student-cards { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .filter-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .filter-search, .filter-actions { grid-column: span 2; }
    .filter-actions .button { flex: 1; }
    .sort-form { align-items: stretch; flex-direction: column; }
    .sort-form label { min-width: 0; width: 100%; }
    .sort-form .button { width: 100%; }
    .panel-heading { align-items: start; flex-direction: column; }
    .panel-heading .button { width: 100%; }
    .panel-heading .text-link { align-self: flex-start; }
    .panel-toolbar { align-items: stretch; flex-direction: column; }
    .panel-toolbar .button { width: 100%; }
    .bulk-actions, .bulk-actions form { align-items: stretch; flex-direction: column; }
    .bulk-actions .button { width: 100%; }
    .panel-toolbar .format-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .export-builder { padding: 13px; }
    .export-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
    .export-format { min-width: 0; }
    .export-groups { grid-template-columns: 1fr; }
    .export-submit { align-items: stretch; flex-direction: column; }
    .export-submit .button { width: 100%; }
    .tutorial-grid { grid-template-columns: 1fr; gap: 12px; }
    .inline-form { align-items: stretch; flex-direction: column; }
    .inline-form .button { width: 100%; }
    .pagination { align-items: start; flex-direction: column; }
    .pagination div { width: 100%; }
    .pagination div .button { flex: 1; }
    .warga-hero { min-height: 196px; margin-bottom: 13px; padding: 22px 18px; border-radius: 20px; }
    .warga-hero-content { max-width: 100%; padding-right: 35px; }
    .warga-hero h1 { margin-top: 11px; font-size: 28px; }
    .warga-hero-content > p { max-width: 320px; font-size: 12px; }
    .hero-meta { align-items: flex-start; flex-direction: column; gap: 4px; margin-top: 13px; font-size: 9px; }
    .hero-meta-divider { display: none; }
    .hero-mark { top: auto; right: -31px; bottom: -32px; width: 97px; height: 97px; transform: none; opacity: .2; }
    .hero-mark img { width: 75px; height: 75px; }
    .hero-profile { top: 12px; right: 12px; }
    .student-cards { gap: 10px; }
    .student-card { padding: 14px; border-radius: 15px; }
    .mobile-card-table { overflow: visible; }
    .mobile-card-table table, .mobile-card-table tbody { display: block; width: 100%; }
    .mobile-card-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
    .mobile-card-table tbody { display: grid; gap: 10px; }
    .mobile-card-table tr { display: grid; gap: 0; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
    .mobile-card-table td { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr); gap: 10px; padding: 7px 0; border: 0; font-size: 11px; overflow-wrap: anywhere; }
    .mobile-card-table td::before { color: #84909b; content: attr(data-label); font-size: 9px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
    .mobile-card-table td.strong { display: grid; }
    .mobile-card-table .table-sub { margin-top: 2px; }
    .mobile-card-table .row-actions { flex-wrap: wrap; white-space: normal; }
    .mobile-card-table .password-reset { min-width: 0; }
    .mobile-card-table .mini-form { min-width: 0; width: min(220px, 100%); }
    .mobile-card-table .mini-form input { min-width: 0; }
    .score-item-heading { align-items: flex-start; }
    .auth-card { padding: 23px 18px; border-radius: 18px; }
    .auth-shell { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (max-width: 360px) {
    .page-shell { width: calc(100% - 18px); }
    .filter-grid { grid-template-columns: 1fr; }
    .filter-search, .filter-actions { grid-column: span 1; }
    .stats-grid { gap: 7px; }
    .stat-card { padding: 11px; }
    .stat-card strong { font-size: 25px; }
    .warga-hero h1 { font-size: 25px; }
}
