/* Demo paket Aplikasi Web & Sistem (R28): dasbor "CISA Kursus". Desain aplikasi sendiri (ungu indigo + abu hangat), terpisah dari
   token CISA (docs/07 butir 28). Grafik mengikuti pedoman: satu seri + sorotan, meter, bilah tersegmen, warna status + ikon + label. */
:root {
  --ink: #1b1930; --ink-2: #4a4766; --muted: #77748f; --bg: #f5f4fa; --card: #fff; --line: #e6e4f0; --line-2: #efeef6;
  --brand: #6250d6; --brand-d: #4b3bb5; --brand-soft: #ebe8fb; --brand-ink: #3a2d99;
  --good: #0ca30c; --warn: #fab219; --crit: #d03b3b; --good-soft: #e3f4e3; --warn-soft: #fdf1d4; --crit-soft: #fbe6e6;
  --bar-muted: #cdcade; --side: #1b1930; --side-2: #c7c4dc;
  --head: "Lexend", system-ui, sans-serif; --sans: "Figtree", system-ui, sans-serif; --bar-h: 0px; --r: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15.5px/1.55 var(--sans); }
body.lock { overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Tombol */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 10px; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease; white-space: nowrap; }
.b .ic { width: 18px; height: 18px; }
.b--pri { background: var(--brand); color: #fff; } .b--pri:hover { background: var(--brand-d); }
.b--ghost { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); } .b--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.b--danger { background: var(--card); color: #a42b2b; box-shadow: inset 0 0 0 1.5px #efc5c5; } .b--danger:hover { background: var(--crit-soft); }
.b--sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.b--lg { min-height: 50px; }
.ib { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.ib:hover { background: var(--bg); }
.lnk { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font-weight: 600; text-align: left; cursor: pointer; text-decoration: none; }
.lnk:hover { color: var(--brand-d); }
.lnk--arrow { color: var(--brand-d); gap: 6px; } .lnk--arrow .ic { width: 16px; height: 16px; }
.av { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font: 600 12.5px/1 var(--head); }
.av--lg { width: 48px; height: 48px; font-size: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px/1.1 var(--head); }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; }
.brand small { display: block; margin-top: 3px; font: 400 12px var(--sans); color: var(--side-2); }

/* Masuk */
.login { display: grid; place-items: center; min-height: calc(100vh - var(--bar-h)); padding: 32px 18px; background: linear-gradient(160deg, #1b1930, #4b3bb5); }
.login__card { width: min(100%, 420px); display: grid; gap: 16px; padding: 34px; border-radius: 20px; background: var(--card); box-shadow: 0 40px 60px -30px rgba(0,0,0,.5); }
.login__card h1 { font: 700 25px/1.2 var(--head); }
.login__note { padding: 12px 14px; border-radius: 10px; background: var(--brand-soft); font-size: 14.5px; }
.fl { display: grid; gap: 6px; } .fl > span { font-weight: 600; font-size: 14.5px; }
.fl input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfbfe; }

/* Kerangka */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - var(--bar-h)); }
.side { position: sticky; top: var(--bar-h); align-self: start; display: flex; flex-direction: column; gap: 6px; height: calc(100vh - var(--bar-h)); padding: 22px 14px; background: var(--side); color: var(--side-2); }
.brand--side { padding: 0 8px 18px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; }
.side__nav { display: grid; gap: 4px; }
.side__nav a, .side__out { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: inherit; font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; text-align: left; width: 100%; }
.side__nav a:hover, .side__out:hover { background: rgba(255,255,255,.08); color: #fff; }
.side__nav a[aria-current="page"] { background: var(--brand); color: #fff; font-weight: 700; }
.side__alt { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.1); border-radius: 0 !important; padding-top: 6px; }
.badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--warn); color: #1b1930; font: 700 12.5px/1.6 var(--sans); text-align: center; }
.side__out { margin-top: auto; }
.main { min-width: 0; padding: 22px clamp(16px, 3vw, 36px) 48px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.top h1 { font: 700 clamp(22px, 2.6vw, 28px)/1.15 var(--head); letter-spacing: -.02em; }
.top p { color: var(--muted); font-size: 14.5px; }
.user { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
#view { outline: none; display: grid; gap: 18px; align-content: start; }
.credit { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* Kartu, bagian */
.card { padding: clamp(16px, 2vw, 22px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.card__head h2 { font: 600 17px/1.3 var(--head); letter-spacing: -.01em; }
.card__head p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.card__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; }
.grid-top { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 18px; }
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.grid2--pay { grid-template-columns: 1.3fr 1fr; align-items: stretch; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1180px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid3 > :first-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .grid-top, .grid2, .grid2--pay, .grid3 { grid-template-columns: 1fr; } }
.empty { display: grid; justify-items: start; gap: 10px; padding: 18px; color: var(--ink-2); }
.card--flush .empty { padding: 28px 20px; }
.note { display: flex; gap: 10px; align-items: start; padding: 12px 14px; margin-bottom: 14px; border-radius: 10px; background: var(--warn-soft); font-size: 14.5px; }
.note .ic { width: 18px; height: 18px; margin-top: 2px; color: #8a5a00; }
.hint { font-size: 14px; color: var(--muted); }

/* Angka utama + kartu angka */
.hero { display: grid; align-content: center; gap: 4px; background: linear-gradient(150deg, #5340c4, #7d6cf0); color: #fff; border: 0; }
.hero__lbl { font-size: 14.5px; color: #e0dcff; }
.hero__fig { font: 700 64px/1 var(--head); letter-spacing: -.03em; }
.hero__sub { font-size: 14.5px; color: #e0dcff; }
.hero__bar { height: 8px; margin-top: 12px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero__bar i { display: block; height: 100%; border-radius: 99px; background: #fff; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tiles--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 1280px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { padding: 16px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.tile__lbl { font-size: 14px; color: var(--muted); }
.tile__val { margin-top: 4px; font: 600 24px/1.2 var(--head); letter-spacing: -.02em; }
.tile__note { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.tile__note a { color: var(--brand-d); font-weight: 600; }

/* Grafik kolom: batang tipis (maks 24px), ujung atas membulat 4px, garis dasar tipis, satu label nilai */
.chart { display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-template-rows: 270px auto; column-gap: 8px; }
.chart__y { position: relative; }
.chart__y span { position: absolute; right: 0; transform: translateY(50%); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart__plot { position: relative; border-bottom: 1px solid var(--line); }
.gl { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-2); }
.cols { position: absolute; inset: 0; display: flex; }
.colw { position: relative; flex: 1; padding: 0; border: 0; background: transparent; cursor: pointer; }
.colw .bar { position: absolute; left: 50%; bottom: 0; width: min(24px, 60%); height: var(--h); transform: translateX(-50%); border-radius: 4px 4px 0 0; background: var(--bar-muted); transition: filter .15s ease; }
.colw--now .bar { background: var(--brand); }
.colw:hover .bar, .colw:focus-visible .bar { filter: brightness(.88); }
.colw:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; border-radius: 6px; }
.colw .val { position: absolute; left: 50%; bottom: calc(var(--h) + 5px); transform: translateX(-50%); font: 600 14px/1 var(--head); }
.chart__x { grid-column: 2; display: flex; padding-top: 8px; }
.chart__x span { flex: 1; text-align: center; font-size: 13px; color: var(--muted); }
.tip { position: fixed; z-index: 1100; display: grid; gap: 1px; padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; box-shadow: 0 12px 24px -10px rgba(0,0,0,.5); pointer-events: none; }
.tip strong { font: 600 14px/1.3 var(--head); } .tip span { color: #cfcce6; }

/* Meter keterisian */
.meters { display: grid; gap: 16px; }
.meter__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.meter__name { font-weight: 600; } .meter__fig { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.meter { height: 8px; margin-top: 6px; border-radius: 99px; background: var(--brand-soft); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.meter--warn { background: var(--warn-soft); } .meter--warn i { background: var(--warn); }
.meter--full { background: var(--crit-soft); } .meter--full i { background: var(--crit); }
.meter__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; font-size: 13.5px; color: var(--muted); }
.mtag { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink); }
.mtag .ic { width: 14px; height: 14px; }
.mtag--warn .ic { color: #b97d00; } .mtag--full .ic { color: var(--crit); }

/* Bilah tersegmen status pembayaran: 28px, celah 2px, angka di dalam hanya bila muat, legenda hanya nama */
.segbar { display: flex; gap: 2px; height: 28px; }
.seg { position: relative; min-width: 0; padding: 0; border: 0; border-radius: 4px; cursor: pointer; font: 700 13px/1 var(--head); color: #1b1930; }
.seg--lunas { background: var(--good); } .seg--belum-bayar { background: var(--warn); } .seg--terlambat { background: var(--crit); color: #fff; }
.seg:hover, .seg:focus-visible { filter: brightness(.9); }
.seg--nolbl .seg__lbl { visibility: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.lg { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; }
.lg .ic { width: 13px; height: 13px; }
.lg--lunas { background: var(--good); color: #1b1930; } .lg--belum-bayar { background: var(--warn); color: #1b1930; } .lg--terlambat { background: var(--crit); color: #fff; }

.amounts { display: grid; margin-top: 16px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.amounts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.amounts li:last-child { border-bottom: 0; }
.amounts span { color: var(--ink-2); } .amounts b { font-variant-numeric: tabular-nums; }

/* Daftar sederhana, status */
.plain { display: grid; }
.plain li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.plain li:first-child { padding-top: 0; } .plain li:last-child { border-bottom: 0; padding-bottom: 0; }
.plain div { display: grid; min-width: 0; } .plain b { font-weight: 600; } .plain span { font-size: 13.5px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.pill .ic { width: 14px; height: 14px; }
.pill--aktif, .pill--lunas { background: var(--good-soft); color: #14591a; } .pill--aktif .ic, .pill--lunas .ic { color: var(--good); }
.pill--menunggu, .pill--belum-bayar { background: var(--warn-soft); color: #6b4700; } .pill--menunggu .ic, .pill--belum-bayar .ic { color: #b97d00; }
.pill--terlambat { background: var(--crit-soft); color: #8a2020; } .pill--terlambat .ic { color: var(--crit); }
.pill--nonaktif { background: var(--line-2); color: var(--ink-2); } .pill--nonaktif .ic { color: var(--muted); }

/* Toolbar, filter */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.search, .sel { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 10px; background: var(--card); border: 1.5px solid var(--line); }
.search { flex: 1 1 220px; max-width: 340px; } .search .ic { color: var(--muted); width: 18px; height: 18px; }
.search input, .sel select, .sel input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; min-height: 38px; }
.search:focus-within, .sel:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.sel--wide { flex: 1 1 260px; max-width: 420px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-right: auto; }
.chip { min-height: 38px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 99px; background: var(--card); font-weight: 600; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Tabel (jadi kartu di layar sempit) */
.dt { width: 100%; border-collapse: collapse; font-size: 15px; }
.dt th { padding: 12px 16px; text-align: left; font: 600 12.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #faf9fd; border-bottom: 1px solid var(--line); }
.dt td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.dt tr:last-child td { border-bottom: 0; }
.dt__act { text-align: right; white-space: nowrap; }
.dt--sm { max-width: 360px; }
.more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .dt thead { display: none; }
  .dt, .dt tbody, .dt tr, .dt td { display: block; width: 100%; }
  .dt tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  .dt td { padding: 0; border: 0; }
  .dt td[data-l]:not([data-l="Nama"]):not([data-l="Siswa"]):not([data-l="Bulan"])::before { content: attr(data-l) ": "; color: var(--muted); font-size: 13.5px; }
  .dt td:first-child { grid-column: 1 / -1; font-size: 16px; }
  .dt__act { grid-column: 1 / -1; text-align: left; margin-top: 6px; }
  .dt--sm tr { grid-template-columns: 1fr 1fr; }
}

/* Pendaftaran, kelas */
.intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.intro h2 { font: 600 18px/1.3 var(--head); } .intro p { margin-top: 4px; color: var(--ink-2); max-width: 62ch; }
.intro--col { display: grid; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.stages li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); }
.stages span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .stages { grid-template-columns: 1fr; } }
.reg { display: grid; gap: 12px; }
.reg li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; }
.reg__who { display: flex; align-items: center; gap: 14px; min-width: 0; } .reg__who div { display: grid; min-width: 0; } .reg__who span { font-size: 14px; color: var(--muted); }
.reg__act { display: flex; gap: 8px; }
@media (max-width: 900px) { .reg li { grid-template-columns: 1fr; } .sel--wide { max-width: none; } }
.classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cls { display: grid; gap: 16px; align-content: start; }
.cls h2 { font: 600 18px/1.3 var(--head); } .cls__when { margin-top: 4px; font-weight: 600; color: var(--brand-d); } .cls__who { color: var(--muted); font-size: 14px; }
.cls__fee b { font: 600 20px/1 var(--head); } .cls__fee span { color: var(--muted); font-size: 14px; }
.cls__act { display: flex; flex-wrap: wrap; gap: 8px; }

/* Absensi */
.ab { display: grid; }
.ab li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.ab__name { flex: 1; min-width: 0; font-weight: 600; }
.seg3 { display: inline-flex; gap: 0; margin: 0; padding: 3px; border: 0; border-radius: 10px; background: var(--line-2); }
.seg3 label { position: relative; }
.seg3 input { position: absolute; opacity: 0; }
.seg3 span { display: block; min-width: 62px; padding: 8px 10px; border-radius: 8px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg3 input:checked + .o-H { background: var(--good); color: #1b1930; } .seg3 input:checked + .o-I { background: var(--warn); color: #1b1930; } .seg3 input:checked + .o-A { background: var(--crit); color: #fff; }
.seg3 input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 1px; }
@media (max-width: 520px) { .ab li { flex-wrap: wrap; } .seg3 { width: 100%; } .seg3 label { flex: 1; } .seg3 span { min-width: 0; } }

/* Alur & uji */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: f; }
.flow li { position: relative; display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #fcfcfe; }
.flow__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font: 600 13px/1 var(--head); }
.flow__who { font: 600 12.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.flow p { color: var(--ink-2); }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
.tests__sum { margin-bottom: 12px; font: 600 17px/1.3 var(--head); } .tests__sum.is-ok { color: #14591a; } .tests__sum.is-bad { color: #8a2020; }
.tests { display: grid; gap: 6px; }
.tests li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #fbfbfe; border: 1px solid var(--line-2); font-size: 14.5px; opacity: 0; animation: in .35s ease forwards; }
.tests .ic { width: 18px; height: 18px; margin-top: 2px; }
.tests .ok .ic { color: var(--good); } .tests .bad .ic { color: var(--crit); }
@keyframes in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tests li { animation: none; opacity: 1; } }

/* Laci & modal */
.drawer, .modal { position: fixed; inset: 0; z-index: 1050; }
.drawer__bg, .modal__bg { position: absolute; inset: 0; background: rgba(27,25,48,.5); }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; gap: 18px; padding: 22px; overflow-y: auto; background: var(--card); box-shadow: -20px 0 40px -20px rgba(0,0,0,.4); }
.drawer__head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.drawer__who { display: flex; align-items: center; gap: 14px; } .drawer__who h2 { font: 600 20px/1.2 var(--head); margin-bottom: 6px; }
.kv { display: grid; gap: 14px; } .kv div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.kv dt { font-size: 13px; color: var(--muted); } .kv dd small { display: block; color: var(--muted); font-size: 14px; }
.kv a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-d); font-weight: 600; text-decoration: none; } .kv a .ic { width: 16px; height: 16px; }
.box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg); }
.box__lbl { font-size: 13.5px; color: var(--muted); } .box__val { margin: 2px 0 6px; font: 600 20px/1 var(--head); }
.drawer__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.modal { display: grid; place-items: center; padding: 16px; }
.modal__box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: 0 40px 60px -24px rgba(0,0,0,.5); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; } .modal__head h2 { font: 600 20px/1.3 var(--head); }
.modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
form .fld { display: grid; gap: 6px; margin-bottom: 14px; }
.fld label { font-weight: 600; font-size: 14.5px; } .fld label small { font-weight: 400; color: var(--muted); }
.fi { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfbfe; }
.fi:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: #fff; }
.fld .msg { display: none; color: #b42318; font-size: 13.5px; } .fld.err .fi { border-color: #b42318; } .fld.err .msg { display: block; }
.pub__tag { margin: -8px -8px 14px; padding: 7px 12px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; font-weight: 600; }
.pub__done { display: grid; gap: 10px; justify-items: start; }
.pub__done > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--good-soft); color: var(--good); }
.pub__done h3 { font: 600 20px/1.3 var(--head); }
.toast { position: fixed; z-index: 1102; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 14px 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 20px 40px -14px rgba(0,0,0,.5); font-size: 14.5px; }
.toast a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; }

/* Layar sempit: menu samping menjadi baris geser di atas */
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: var(--bar-h); z-index: 40; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 6px; }
  .brand--side { width: 100%; padding: 0 4px 8px; margin: 0; border: 0; }
  .brand--side small { display: none; }
  .side__nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
  .side__nav a { width: auto; flex: none; min-height: 40px; padding: 0 12px; font-size: 14.5px; }
  .side__alt { margin: 0; border: 0; padding-top: 0; border-radius: 10px !important; }
  .side__out { width: auto; margin: 0; min-height: 40px; }
  .side__out { font-size: 0; gap: 0; } .side__out .ic { width: 20px; height: 20px; }
  .hero__fig { font-size: 52px; }
  .user span:last-child { display: none; } .user { padding: 5px; }
}
