:root {
    --navy: #0c3f86;
    --navy-deep: #082a5c;
    --blue: #1a6fe0;
    --blue-bright: #3c8cf2;
    --sky: #e8f2ff;
    --sky-2: #f4f8fd;
    --ink: #172033;
    --muted: #5d6d84;
    --line: #d5e3f5;
    --paper: #f5f7fb;
    --white: #ffffff;
    --ok: #0f7a45;
    --ok-bg: #e8f8ef;
    --danger: #b42318;
    --danger-bg: #fdecec;
    --warn: #9a6700;
    --warn-bg: #fff6df;
    --shadow: 0 16px 40px rgba(16, 55, 112, 0.1);
    --radius: 24px;
    --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: #f4f7fb;
    min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.wrap-wide { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0 12px;
    background: #f4f7fb;
    backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: white;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(12, 63, 134, 0.15);
}
.brand strong { display: block; font-size: 1.15rem; letter-spacing: -0.03em; color: var(--navy); }
.brand small { color: var(--muted); font-size: 0.78rem; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav form { margin: 0; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.dash-actions form { margin: 0; }
.nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 999px;
}
.nav a.active, .nav a:hover { background: rgba(255,255,255,0.75); }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    padding: 12px 22px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid {
    background: linear-gradient(180deg, #2d82ee, #145ec4);
    color: white;
    box-shadow: 0 10px 22px rgba(20, 94, 196, 0.28);
}
.btn-line {
    background: white;
    color: var(--ink);
    border: 1px solid #e4ebf5;
    box-shadow: 0 8px 20px rgba(20, 50, 90, 0.06);
}
.btn-block { width: 100%; border-radius: 16px; min-height: 56px; font-size: 1.02rem; }
.btn-sm { padding: 7px 14px; font-size: 0.86rem; margin-top: 8px; }
.btn-ghost { background: transparent; color: var(--navy); }

.hero { text-align: center; padding: 28px 0 10px; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #b4532a;
    box-shadow: 0 8px 20px rgba(20, 50, 90, 0.05);
}
.pill i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e07a45;
    display: inline-block;
}
.hero h1 {
    margin: 18px 0 0;
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}
.underline {
    position: relative;
    display: inline-block;
}
.underline::after {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: 0.08em;
    height: 8px;
    border-bottom: 5px solid #1a6fe0;
    border-radius: 50%;
    opacity: 0.9;
}
.cta-stack { display: grid; gap: 12px; max-width: 760px; margin: 22px auto 0; }
.hero-home {
    text-align: left;
    margin-top: 8px;
    padding: 36px 36px 72px;
    border-radius: 32px;
    color: white;
    background:
        radial-gradient(700px 280px at 100% 0%, rgba(255,255,255,.22), transparent 60%),
        linear-gradient(145deg, #072553 0%, #0c3f86 48%, #1a6fe0 100%);
    box-shadow: 0 24px 48px rgba(12, 63, 134, 0.24);
}
.hero-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; }
.hero-home h1 { color: white; font-size: clamp(2.15rem, 4vw, 3.5rem); max-width: 12ch; margin-top: 0; }
.hero-home .underline::after { border-bottom-color: #f2c14e; }
.hero-home .pill { background: rgba(255,255,255,.14); color: #ffe7c2; box-shadow: none; }
.hero-home .pill i { background: #f2c14e; }
.hero-note { margin: 14px 0 0; max-width: 46ch; color: rgba(255,255,255,.88); font-size: 1.05rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-home .btn-solid { background: white; color: #0c3f86; box-shadow: none; }
.hero-home .btn-line { background: transparent; color: white; border-color: rgba(255,255,255,.45); box-shadow: none; }
.hero-home .frame { margin: 0; max-width: none; border: 0; box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.hero-home .frame img { height: auto; aspect-ratio: 16 / 9; object-position: center; }
.topic-band { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: -46px 8px 26px; position: relative; z-index: 2; }
.topic-band article { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 16px; box-shadow: 0 14px 30px rgba(16, 55, 112, 0.1); }
.topic-band b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; margin-bottom: 10px; background: #e8f2ff; color: #0c3f86; font-size: 0.82rem; }
.topic-band article:nth-child(2) b { background: #e7f8f2; color: #0b8f73; }
.topic-band article:nth-child(3) b { background: #fff4df; color: #b45309; }
.topic-band article:nth-child(4) b { background: #eef0ff; color: #3b4cca; }
.topic-band article:nth-child(5) b { background: #fdecec; color: #b42318; }
.topic-band strong { display: block; color: var(--navy); margin-bottom: 4px; }
.topic-band span { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
#isi-data { padding: 4px 0 12px; }
.home-entry { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 16px; align-items: stretch; }
.home-entry .signin { max-width: none; margin: 0; height: 100%; }
#isi-data .signin-head { padding: 22px 24px 16px; }
#isi-data .signin-body { padding: 18px 24px 20px; }
#isi-data .signin-fields .field { margin-bottom: 12px; }
.home-aside { display: flex; height: 100%; }
.home-aside h2 { font-size: 1.35rem; margin: 0; }
.prep-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: prep; }
.prep-list li { display: grid; gap: 2px; padding-left: 42px; position: relative; counter-increment: prep; }
.prep-list li::before {
    content: counter(prep);
    position: absolute; left: 0; top: 0;
    width: 30px; height: 30px; border-radius: 10px;
    display: grid; place-items: center;
    background: #e8f2ff; color: #0c3f86; font-weight: 800; font-size: 0.82rem;
}
.prep-list strong { color: var(--navy); }
.card.home-help {
    background: linear-gradient(160deg, #0c3f86, #1a6fe0);
    color: white;
    border: 0;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.card.home-help h3 { color: white; margin-top: 0; }
.card.home-help p { color: rgba(255,255,255,.88); }
.card.home-help .btn-solid { background: white; color: #0c3f86; box-shadow: none; }
.prep-list span, .home-help p { margin: 0; }
.home-help .btn { margin-top: 12px; }
.faq-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 16px; align-items: start; }
.step-list { margin: 8px 0 16px; padding-left: 18px; display: grid; gap: 8px; color: var(--ink); font-weight: 650; }
.frame {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 8px solid white;
    margin: 22px auto 36px;
    max-width: 980px;
}
.frame img { width: 100%; height: min(460px, 52vw); object-fit: cover; }

.section { padding: 18px 0 36px; }
.section h1, .section h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.04em; margin: 0 0 12px; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: start; }
.grid-3, .grid-4 { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: #ffffff;
    border: 1px solid rgba(213, 227, 245, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}
.card h3 { margin: 8px 0; letter-spacing: -0.03em; }
.muted { color: var(--muted); }
.quote {
    background: white;
    border-left: 4px solid var(--blue);
    border-radius: 16px;
    padding: 16px 18px;
    color: #31445f;
    font-weight: 600;
}
.icon-bubble {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--sky);
    color: var(--navy);
    font-weight: 800;
}

details.faq {
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
}
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

.guide { list-style: none; margin: 0; padding: 0; counter-reset: langkah; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.guide li { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 16px; }
.guide li::before { counter-increment: langkah; content: counter(langkah, decimal-leading-zero); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; margin-bottom: 10px; background: #e8f2ff; color: #0c3f86; font-weight: 800; font-size: 0.82rem; }
.guide li strong { display: block; color: var(--navy); margin-bottom: 4px; }
.guide li span { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.guide-in { grid-template-columns: 1fr 1fr; }
.guide-in li { background: #f7faff; }

.site-footer {
    margin-top: 20px;
    background: white;
    border-top: 1px solid var(--line);
    padding: 28px 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.site-footer h4 { margin: 0 0 8px; }
.site-footer a { color: var(--navy); }

.panel { max-width: 860px; margin: 10px auto 40px; }
.signin { max-width: 760px; margin: 0 auto 28px; background: white; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.signin-head { background: linear-gradient(135deg, #123f86, #1a6fe0); color: white; padding: 26px 28px 22px; }
.signin-head h2 { margin: 12px 0 6px; color: white; letter-spacing: -0.04em; }
.signin-head p { margin: 0; color: rgba(255,255,255,.86); }
.signin-body { padding: 22px 28px 24px; }
.signin-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.signin-fields .field { margin-bottom: 16px; }
.signin-input {
    display: block;
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    font-size: 1.05rem;
    background: #f7faff;
    border: 1.5px solid #b7cbe4;
    border-radius: 14px;
    padding: 13px 14px;
    color: var(--ink);
}
.signin-foot { margin: 16px 0 0; color: var(--muted); font-size: 0.9rem; }
.signin-foot a { color: var(--navy); font-weight: 700; }
.panel h1, .panel h2 { letter-spacing: -0.04em; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input:not([type]), input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="url"], input[type="file"], input[type="search"], select {
    width: 100%;
    border: 1.5px solid #d7e3f3;
    background: #fbfdff;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 1rem;
    color: var(--ink);
}
input:focus, select:focus { outline: 3px solid rgba(26, 111, 224, 0.18); border-color: var(--blue); }
.help { color: var(--muted); font-size: 0.86rem; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 650;
    background: white;
    border: 1.5px solid #d5e3f5;
    border-radius: 999px;
    padding: 8px 14px;
    margin: 0;
    cursor: pointer;
}
.checks label:has(input:checked) { background: #e7f0ff; border-color: #1a6fe0; color: #0c3f86; }
.checks input { accent-color: #0c3f86; width: 16px; height: 16px; }
.form-block input:not([type="checkbox"]):not([type="radio"]),
.form-block select { padding: 10px 12px; border-radius: 12px; }
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.segment label {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 52px;
    margin: 0;
    border: 1.5px solid #d5e3f5;
    border-radius: 14px;
    background: white;
    cursor: pointer;
    color: var(--navy);
}
.segment input { position: absolute; opacity: 0; }
.segment label:has(input:checked) { background: #0c3f86; color: white; border-color: #0c3f86; }
.step-caption { margin: 0 0 8px; color: var(--muted); font-weight: 700; font-size: 0.88rem; }
.school-banner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: linear-gradient(135deg, #123f86, #1a6fe0);
    color: white;
    border-radius: 20px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.school-banner p { margin: 4px 0; }
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    background: var(--sky);
    color: var(--navy);
}
.badge.light { background: rgba(255,255,255,0.18); color: white; }
.alert { border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-weight: 600; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-warning { background: var(--warn-bg); color: var(--warn); }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; }
.hidden { display: none; }

.filters { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) auto; gap: 10px; align-items: end; }
.filters.sandi-filters { grid-template-columns: 1.6fr 0.8fr 1.3fr auto; }
.stat { text-align: left; }
.stat b { display: block; font-size: 1.7rem; letter-spacing: -0.04em; color: var(--navy); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e7eef7; vertical-align: top; font-size: 0.94rem; }
th { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.th-filter { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; color: inherit; text-decoration: none; font-weight: 800; }
.th-filter small { text-transform: none; letter-spacing: 0; color: #0c3f86; background: #e8f1ff; border-radius: 999px; padding: 2px 7px; font-size: 0.68rem; }
.th-filter:hover { color: var(--blue); }
.th-filter.is-on { color: var(--navy); }
tr:hover td { background: #f8fbff; }
.pager { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 14px; }
.tag-ok { color: var(--ok); font-weight: 800; }
.tag-no { color: var(--danger); font-weight: 800; }
.detail { background: #f7faff; border-radius: 12px; padding: 10px 12px; margin-top: 6px; }
.pid-thumb { display: block; width: 92px; height: 68px; object-fit: cover; border-radius: 10px; margin-top: 8px; }
.pid-photo { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; object-position: center; border-radius: 18px; background: #e7eef8; }
.detail-pop { width: min(860px, calc(100vw - 32px)); max-height: min(860px, calc(100vh - 40px)); border: 0; border-radius: 28px; padding: 0; overflow: auto; background: #f4f7fb; box-shadow: 0 30px 80px rgba(8, 24, 48, 0.35); }
.detail-pop::backdrop { background: rgba(8, 24, 48, 0.55); }
.pop-hero { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 22px 22px 18px; background: linear-gradient(135deg, #082a5c 0%, #1a6fe0 100%); color: white; }
.pop-hero h2 { margin: 8px 0 4px; letter-spacing: -0.04em; font-size: 1.45rem; color: white; }
.pop-hero p { margin: 0; color: rgba(255,255,255,.82); }
.pop-close { border: 0; border-radius: 999px; background: white; color: var(--navy); font-weight: 800; padding: 8px 14px; cursor: pointer; }
.pop-gallery { display: grid; gap: 12px; padding: 16px 16px 0; }
.pop-gallery.is-pair { grid-template-columns: 1fr 1fr; }
.pop-gallery figure { position: relative; margin: 0; }
.pop-gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: white; color: var(--navy); border-radius: 999px; padding: 5px 10px; font-size: 0.78rem; font-weight: 800; }
.pop-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 16px 0; }
.pop-stats article { background: white; border-radius: 16px; padding: 12px 14px; }
.pop-stats span, .pop-card h3 { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.pop-stats b { display: block; margin-top: 4px; font-size: 1.25rem; letter-spacing: -0.03em; }
.pop-stats small, .pop-card p { color: var(--ink); }
.pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 18px; }
.pop-card { background: white; border-radius: 16px; padding: 14px 16px; }
.pop-card h3 { margin: 0 0 8px; }
.pop-card p { margin: 0 0 6px; }
.pop-card ul { margin: 0; padding-left: 18px; }
.pop-card li + li { margin-top: 4px; }
.pop-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pop-pills span { background: var(--sky); color: var(--navy); border-radius: 999px; padding: 4px 10px; font-size: 0.82rem; font-weight: 700; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(460px, 100%); }
.auth-card .brand { margin-bottom: 18px; }
.auth-card h1 { letter-spacing: -0.04em; margin: 0 0 6px; font-size: 1.45rem; }
.gate input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.gate-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #eef3fa; border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.gate-switch label { margin: 0; text-align: center; border-radius: 11px; padding: 10px 8px; cursor: pointer; color: var(--muted); }
.gate-admin { display: none; }
#gate-sekolah:checked ~ .gate-switch label[for="gate-sekolah"],
#gate-admin:checked ~ .gate-switch label[for="gate-admin"] { background: white; color: var(--navy); box-shadow: 0 1px 3px rgba(16, 55, 112, 0.08); }
#gate-admin:checked ~ .gate-sekolah { display: none; }
#gate-admin:checked ~ .gate-admin { display: block; }

.admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; background: #f3f6fb; }
.sidebar {
    background: linear-gradient(180deg, #0c3f86, #0a2f66);
    color: white;
    padding: 22px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.sidebar a { color: white; text-decoration: none; }
.side-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
.side-brand img { width: 44px; height: 44px; border-radius: 50%; background: white; }
.side-nav { display: grid; gap: 6px; }
.side-nav form { margin: 0; }
.side-nav a, .side-nav button {
    text-align: left;
    background: transparent;
    color: white;
    border: 0;
    border-radius: 12px;
    padding: 12px 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
}
.side-nav a.active, .side-nav a:hover, .side-nav button:hover { background: rgba(255,255,255,0.12); }
.admin-main { padding: 22px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.advice-list { display: grid; gap: 12px; }
.advice { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; }
.advice h3 { margin-top: 0; }
.advice p { margin: 0 0 6px; }
.advice-tag { display: inline-grid; place-items: center; height: 32px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; }
.advice-tag.tinggi { background: #fdecec; color: #b42318; }
.advice-tag.sedang { background: #fff4df; color: #9a6700; }
.kept-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.advice-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.advice-samples h3 { margin-top: 0; }
.admin-top h1 { margin: 0; letter-spacing: -0.04em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; max-width: 100%; }

.nav-toggle { display: none; }
.burger { display: none; }

.form-block { margin-bottom: 16px; }
.form-block h2, .inset h3, .year-card h3 { margin: 0 0 6px; letter-spacing: -0.03em; }
.block-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.block-head span {
    width: 36px; height: 36px; border-radius: 12px; flex: none;
    display: grid; place-items: center; background: var(--navy); color: white; font-weight: 800;
}
.block-head p { margin: 2px 0 0; color: var(--muted); }
.inset { background: #f5f9ff; border: 1px solid #e1ebf8; border-radius: 18px; padding: 16px; margin-top: 14px; }
.steps {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
    margin: 0 0 16px; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 6px;
}
.steps button {
    font: inherit; cursor: pointer; color: var(--muted); background: transparent; border: 0;
    border-radius: 14px; padding: 8px 4px; font-weight: 700; font-size: 0.78rem;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.steps button b {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: #e7eef8; color: var(--navy); font-size: 0.82rem;
}
.steps button.active { background: #e8f1ff; color: var(--navy); }
.steps button.active b { background: var(--navy); color: white; }
.step-actions {
    position: sticky; bottom: 0; z-index: 4;
    display: flex; justify-content: space-between; gap: 12px;
    margin: 8px 0 0; padding: 12px 0 4px;
    background: linear-gradient(180deg, rgba(243,246,251,0), #f3f6fb 28%);
    pointer-events: none;
}
.step-actions .btn { pointer-events: auto; }
.step-actions .btn-solid { margin-left: auto; }
.admin-main .panel { max-width: 1120px; }
.year-grid, .device-grid, .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.year-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.unit-list { display: grid; gap: 10px; margin: 10px 0 14px; }
.unit-card {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center;
    background: #f7faff; border: 1px solid #e1ebf8; border-radius: 16px; padding: 12px;
}
.unit-card .field { margin: 0; }
.unit-no {
    width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
    background: #0c3f86; color: white; font-weight: 800;
}
.year-card.y2026 .unit-no { background: #0b8f73; }
.unit-empty { margin: 0; color: var(--muted); background: #f7faff; border-radius: 14px; padding: 12px 14px; }
.year-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 16px; border-top: 5px solid #1a6fe0; }
.year-card.y2026 { border-top-color: #0b8f73; }
.group-label { margin: 12px 0 6px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
[data-kegiatan-add] { position: relative; z-index: 5; margin: 0 0 12px; }
.data-sections { display: grid; gap: 14px; }
.data-section h3 { margin: 0 0 4px; }
.data-section-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.data-section-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.data-section-actions form { margin: 0; }
.data-list { display: grid; gap: 8px; }
.data-row {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    background: #f7faff; border: 1px solid #d5e2f2; border-radius: 14px; padding: 12px 14px;
}
.data-row > div { display: grid; gap: 2px; min-width: 0; }
.data-row strong { color: #0c3f86; }
.data-row form { margin: 0; flex: none; }
.foto-box { margin-top: 8px; }
.foto-list { display: grid; gap: 10px; margin: 0 0 12px; }
.foto-item {
    display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center;
    background: #f7faff; border: 1px solid #d5e2f2; border-radius: 16px; padding: 10px;
}
.foto-item-preview { min-height: 68px; }
.foto-item-meta { display: grid; gap: 2px; }
.foto-item-meta strong { color: #0c3f86; }
.foto-item-meta span { color: var(--muted); font-size: 0.86rem; }
.foto-item-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.kegiatan-card { background: #f7faff; border: 1px solid #d5e2f2; border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.kegiatan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.kegiatan-head strong { color: #0c3f86; }
.device-row { display: grid; grid-template-columns: 1.4fr .6fr .7fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 10px; }
.device-row .field { margin: 0; }
.info-grid { margin: 8px 0 14px; }
.info-kicker { margin: 16px 0 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.year-board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 6px; }
.year-board-card { border-top: 5px solid #1a6fe0; }
.year-board-card.y2026 { border-top-color: #0b8f73; }
.year-board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.year-board-head p { margin: 0; color: var(--muted); font-size: 0.86rem; text-align: right; }
.year-badge { display: inline-grid; place-items: center; min-width: 72px; height: 34px; padding: 0 12px; border-radius: 999px; background: #e8f1ff; color: #0c3f86; font-weight: 800; }
.year-board-card.y2026 .year-badge { background: #e7f8f2; color: #0b8f73; }
.year-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.year-figures div { background: #f7faff; border-radius: 14px; padding: 10px 12px; }
.year-figures b { display: block; font-size: 1.45rem; letter-spacing: -0.03em; color: var(--navy); line-height: 1.1; }
.year-figures span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.78rem; line-height: 1.3; }
.year-board h3 { margin: 0 0 8px; font-size: 1rem; }
.year-board .bar-row span { line-height: 1.25; }
.year-cell { display: grid; gap: 6px; min-width: 120px; }
.year-cell strong { color: var(--navy); }
.info-story .gauge-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-story .gauge { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.info-story .gauge h3 { margin: 0; }
.info-story .ring { width: 108px; height: 108px; }
.info-story .ring b { width: 82px; height: 82px; font-size: 1.05rem; }
.info-story .ring.amber { --tone: #d4891a; }
.gauge-lead { margin: 4px 0 12px; color: var(--muted); }
.gauge-lead b { color: var(--navy); font-size: 1.35rem; letter-spacing: -0.03em; }
.split-meter { height: 16px; border-radius: 99px; background: #e7eef8; overflow: hidden; }
.split-meter i { display: block; height: 100%; width: var(--p); border-radius: 99px; background: linear-gradient(90deg, #7eb6ff, #0c3f86); }
.split-meter.green i { background: linear-gradient(90deg, #7ddec0, #0b8f73); }
.split-meter.amber i { background: linear-gradient(90deg, #f6d27a, #d4891a); }
.split-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.info-story .year-board-card { border-top: 0; background: linear-gradient(180deg, #eaf3ff 0%, #ffffff 148px); }
.info-story .year-board-card.y2026 { border-top: 0; background: linear-gradient(180deg, #e7f8f2 0%, #ffffff 148px); }
.year-hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; margin: 2px 0 12px; }
.year-hero b { font-size: clamp(2.4rem, 4vw, 3.2rem); letter-spacing: -0.05em; line-height: 0.95; color: var(--navy); }
.year-hero span { color: var(--muted); font-weight: 650; }
.info-story .year-figures div { background: white; box-shadow: 0 8px 18px rgba(16, 55, 112, 0.06); }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rank-top { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.rank-top b { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #e8f1ff; color: #0c3f86; font-size: 0.78rem; }
.y2026 .rank-top b { background: #e7f8f2; color: #0b8f73; }
.rank-top span { font-weight: 700; }
.rank-top strong { color: var(--navy); }
.rank-track { height: 10px; border-radius: 99px; background: #e7eef8; overflow: hidden; }
.rank-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7eb6ff, #0c3f86); }
.rank-track.green i { background: linear-gradient(90deg, #7ddec0, #0b8f73); }
.rank-track.teal i { background: linear-gradient(90deg, #7ee0d4, #0e8f9a); }
.rank-empty { color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.metric { background: white; border: 1px solid rgba(213, 227, 245, 0.9); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 16px 14px; display: grid; align-content: start; gap: 2px; min-height: 148px; }
.metric span { color: var(--muted); font-weight: 800; font-size: 0.82rem; }
.metric b { font-size: 1.85rem; letter-spacing: -0.045em; line-height: 1.1; color: var(--navy); }
.metric small { color: var(--muted); font-size: 0.8rem; }
.metric-meter { height: 8px; margin-top: 12px; border-radius: 99px; background: #e7eef8; overflow: hidden; align-self: end; }
.metric-meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7eb6ff, #0c3f86); }
.tone-green .metric-meter i { background: linear-gradient(90deg, #7ddec0, #0b8f73); }
.tone-teal .metric-meter i { background: linear-gradient(90deg, #7ee0d4, #0e8f9a); }
.tone-amber .metric-meter i { background: linear-gradient(90deg, #f6d27a, #d4891a); }
.tone-green b { color: #0b6b56; }
.tone-teal b { color: #0e6f78; }
.tone-amber b { color: #9a6700; }
.mapel-card, .wilayah-card { margin-bottom: 14px; }
.wilayah-list { display: grid; gap: 14px; margin-top: 12px; }
.wilayah-row { display: grid; grid-template-columns: minmax(180px, 0.7fr) 1.3fr; gap: 16px; align-items: center; padding-top: 12px; border-top: 1px solid #e7eef8; }
.wilayah-row:first-child { border-top: 0; padding-top: 0; }
.wilayah-name strong { display: block; color: var(--navy); }
.wilayah-name span { color: var(--muted); font-size: 0.82rem; }
.wilayah-bars { display: grid; gap: 8px; }
.wilayah-bars > div { display: grid; grid-template-columns: 42px minmax(0, 1fr) 48px; gap: 8px; align-items: center; }
.info-story .year-board-card .split-legend { margin-bottom: 18px; }
.wilayah-bars em { font-style: normal; font-weight: 800; font-size: 0.78rem; color: var(--muted); }
.wilayah-bars b { text-align: right; color: var(--navy); }
.ring-card { display: flex; gap: 14px; align-items: center; }
.ring {
    width: 86px; height: 86px; border-radius: 50%; flex: none;
    background: conic-gradient(var(--tone, #1a6fe0) calc(var(--p) * 1%), #e6eef8 0);
    display: grid; place-items: center;
}
.ring b {
    width: 64px; height: 64px; border-radius: 50%; background: white;
    display: grid; place-items: center; color: var(--navy); font-size: 0.95rem;
}
.bar-list { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 150px) 1fr auto; gap: 8px; align-items: center; font-size: 0.92rem; }
.bar-track { height: 12px; background: #e7eef8; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #69a8f8, #0c3f86); }
.bar-fill.green { background: linear-gradient(90deg, #5dcaa0, #0b8f73); }
.bar-fill.amber { background: linear-gradient(90deg, #f2c14e, #d4891a); }
.bar-fill.teal { background: linear-gradient(90deg, #63d2c5, #0e8f9a); }
.mini-table td, .mini-table th { font-size: 0.88rem; }
.stack-cell strong { display: block; }
.pill-soft { display: inline-block; margin: 2px 4px 0 0; background: var(--sky); color: var(--navy); border-radius: 999px; padding: 2px 8px; font-size: 0.75rem; font-weight: 700; }

@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4, .footer-grid, .filters, .filters.sandi-filters, .stats, .year-grid, .year-stack, .year-board, .device-grid, .info-grid, .gauge-row, .split, .signin-fields, .hero-split, .home-entry, .faq-grid, .guide, .guide-in { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .wilayah-row, .info-story .gauge { grid-template-columns: 1fr; }
    .advice, .advice-samples { grid-template-columns: 1fr; }
    .year-board-head { align-items: flex-start; flex-direction: column; }
    .year-board-head p { text-align: left; }
    .topic-band { grid-template-columns: 1fr 1fr; margin: 16px 0 22px; }
    .hero-home { text-align: center; padding: 24px 18px 22px; }
    .hero-home h1, .hero-note { max-width: none; }
    .hero-actions { justify-content: center; }
    .hero-home .frame img { height: auto; }
    .steps button span { font-size: 0.68rem; }
    .signin-head, .signin-body { padding-left: 18px; padding-right: 18px; }
    .device-row { grid-template-columns: 1fr 1fr; }
    .foto-item { grid-template-columns: 92px minmax(0, 1fr); }
    .foto-item-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .data-section-head, .data-row { flex-direction: column; align-items: stretch; }
    .data-section-actions { justify-content: flex-start; }
    .admin-shell { grid-template-columns: minmax(0, 1fr); }
    .sidebar, .side-nav { max-width: 100%; }
    .sidebar { position: sticky; top: 0; height: auto; z-index: 20; padding: 12px; }
    .side-brand { margin-bottom: 10px; }
    .side-nav { display: flex; gap: 6px; overflow-x: auto; }
    .side-nav a, .side-nav button, .side-nav form { width: auto; flex: none; }
    .burger { display: inline-flex; }
    .nav { display: none; }
    .nav-toggle:checked ~ .nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        right: 16px;
        top: 74px;
        background: white;
        padding: 10px;
        border-radius: 16px;
        box-shadow: var(--shadow);
    }
    .topbar { position: sticky; }
    .bar-row { grid-template-columns: 1fr auto; }
    .pop-stats, .pop-grid, .pop-gallery.is-pair { grid-template-columns: 1fr; }
    .pid-photo { max-height: 320px; }
    .bar-row .bar-track { grid-column: 1 / -1; order: 3; }
}
