/* =============================================================
   Youthpreneur Tapin — tampilan aplikasi
   Palet: sungai Tapin (teal tua) + kuning sasirangan
   ============================================================= */
:root {
  --ink: #0E3B43;
  --ink-2: #155560;
  --paper: #F3F5F2;
  --surface: #FFFFFF;
  --teal: #0F7B6C;
  --teal-soft: #E3F1EE;
  --saffron: #E8A33D;
  --saffron-soft: #FCF1DE;
  --clay: #C4483E;
  --clay-soft: #F9E6E3;
  --text: #1C2B2E;
  --muted: #5E6E70;
  --line: #DCE3DF;
  --line-2: #EBEFEC;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 6px;
  --shadow: 0 1px 2px rgba(14, 59, 67, .06), 0 6px 20px -12px rgba(14, 59, 67, .25);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --zigzag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 10 L6 2 L12 10 L18 2 L24 10' fill='none' stroke='%23E8A33D' stroke-width='2'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 15px; line-height: 1.55;
  color: var(--text); background: var(--paper);
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.2; margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-family: var(--f-display); font-variant-numeric: tabular-nums; }
.ic { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- Kerangka ---------------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  background: var(--ink); color: #CFE0DE; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow-y: auto;
}
.brand { padding: 22px 20px 18px; position: relative; display: flex; gap: 12px; align-items: center; }
.brand img { flex: none; width: 38px; height: auto; }
.brand::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 8px; background: var(--zigzag) repeat-x; background-size: 16px 8px; opacity: .9; }
.brand b { display: block; font-family: var(--f-display); font-size: 1.3rem; color: #fff; letter-spacing: -.02em; font-weight: 700; }
.brand span { font-size: .78rem; color: #9DBDBA; }
.nav { padding: 14px 10px; flex: 1; }
.nav-group { font-size: .74rem; color: #7FA19E; padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-sm);
  color: #CFE0DE; font-weight: 500; text-decoration: none; position: relative;
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: var(--ink-2); color: #fff; }
.nav a.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--saffron); }
.nav .count { margin-left: auto; background: var(--saffron); color: var(--ink); font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 1px 8px; }
.side-foot { padding: 14px 20px 20px; font-size: .78rem; color: #7FA19E; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot .side-logo { display: block; width: 150px; height: auto; margin-bottom: 10px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: rgba(243,245,242,.9);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line-2);
}
.top .menu-btn { display: none; }
.search { flex: 1; max-width: 460px; position: relative; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding: 9px 12px 9px 38px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font: inherit; }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 .7rem var(--f-body); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; background: var(--paper); }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--f-display); }
.who .meta { line-height: 1.2; }
.who .meta b { display: block; font-size: .9rem; }
.who .meta span { font-size: .78rem; color: var(--muted); }

.page { padding: 26px 28px 48px; max-width: 1360px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .lead { color: var(--muted); margin: 4px 0 0; max-width: 70ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.crumb a { color: var(--muted); }

/* ---------------- Komponen ---------------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.panel-head { display: flex; align-items: baseline; gap: 4px 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { flex: none; }
.panel-head .sub { color: var(--muted); font-size: .85rem; }
.panel-head .more { margin-left: auto; font-size: .85rem; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.stack > * + * { margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9rem var(--f-body);
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; border-color: #B9C6C1; background: #FAFBFA; }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover { background: #0C6A5D; border-color: #0C6A5D; }
.btn-accent { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.btn-accent:hover { background: #DD962C; border-color: #DD962C; }
.btn-danger { color: var(--clay); }
.btn-danger:hover { background: var(--clay-soft); border-color: #E7B7B1; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 6px 11px; font-size: .82rem; }
.btn-icon { padding: 7px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.pill { display: inline-block; font-size: .76rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.pill-good { background: var(--teal-soft); color: #0B5F53; }
.pill-mid { background: var(--saffron-soft); color: #8A5A10; }
.pill-low { background: #EEF1EF; color: #4F5E60; }
.pill-bad { background: var(--clay-soft); color: #9A332B; }
.chip { display: inline-block; font-size: .75rem; padding: 1px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); margin: 0 4px 4px 0; background: var(--surface); }

/* cincin skor */
.ring { --v: 0; --c: var(--teal); display: inline-grid; place-items: center; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--line-2) 0); position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 4px; background: var(--surface); border-radius: 50%; }
.ring b { position: relative; font-family: var(--f-display); font-weight: 700; color: var(--ink); }
.ring-sm { width: 38px; height: 38px; } .ring-sm b { font-size: .82rem; }
.ring-lg { width: 112px; height: 112px; } .ring-lg::before { inset: 10px; } .ring-lg b { font-size: 2.1rem; }
.ring-good { --c: var(--teal); } .ring-mid { --c: var(--saffron); } .ring-bad { --c: var(--clay); }

/* bar sederhana */
.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.bar.mid > i { background: var(--saffron); } .bar.bad > i { background: var(--clay); }

/* ---------------- Tabel ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.t th { text-align: left; font-weight: 600; font-size: .8rem; color: var(--muted); padding: 11px 14px; background: #F8FAF8; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t th a { color: inherit; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: #FAFCFB; }
.t .r { text-align: right; } .t .c { text-align: center; }
.t .name b { display: block; color: var(--ink); }
.t .name span { font-size: .8rem; color: var(--muted); }
.panel .t th { background: transparent; padding-left: 0; }
.panel .t td { padding-left: 0; }

/* ---------------- Form ---------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 5px; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field .err { font-size: .8rem; color: var(--clay); margin-top: 4px; font-weight: 500; }
.req::after { content: " *"; color: var(--clay); }
.input, select.input, textarea.input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; background: var(--surface); color: var(--text);
}
.input:focus { border-color: var(--teal); outline: 3px solid rgba(15,123,108,.15); outline-offset: 0; }
.input.has-err { border-color: var(--clay); }
.input-group { display: flex; }
.input-group .addon { padding: 9px 11px; border: 1px solid var(--line); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: #F6F8F6; color: var(--muted); font-weight: 600; }
.input-group .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.f-row { display: grid; gap: 0 16px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.f-row-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

/* segmented choice: pilihan cepat untuk kuesioner */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; font-weight: 500; font-size: .86rem; padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; background: var(--surface); color: var(--text); }
.seg label:hover { border-color: #B9C6C1; }
.seg input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* ---------------- Alert ---------------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 18px; font-size: .92rem; border: 1px solid; }
.alert-ok { background: var(--teal-soft); border-color: #BFDCD6; color: #0B4F46; }
.alert-err { background: var(--clay-soft); border-color: #EFC3BE; color: #8B2D26; }
.alert-warn { background: var(--saffron-soft); border-color: #F1D6A8; color: #75490A; }
.alert .x { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }

.empty { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 4px; }

/* ---------------- Dashboard ---------------- */
.kpi-band { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 18px; }
.kpi { padding: 18px 20px; position: relative; }
.kpi + .kpi { border-left: 1px solid var(--line-2); }
.kpi .lbl { font-size: .84rem; color: var(--muted); font-weight: 500; }
.kpi .val { font-family: var(--f-display); font-size: 2.15rem; font-weight: 700; color: var(--ink); line-height: 1.1; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.kpi .foot { font-size: .8rem; color: var(--muted); }
.kpi .bar { margin-top: 8px; }

/* peta tile kecamatan — elemen utama dashboard */
.tilemap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile {
  --h: 0; border-radius: var(--r-md); padding: 10px 12px; min-height: 86px; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--teal) calc(var(--h) * 85%), #EEF3F1);
  color: var(--ink); text-decoration: none; position: relative; border: 1px solid rgba(14,59,67,.06);
  transition: transform .15s;
}
.tile:hover { text-decoration: none; transform: translateY(-2px); }
.tile.dark { color: #fff; }
.tile .tn { font-size: .8rem; font-weight: 600; line-height: 1.25; }
.tile .tv { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; margin-top: auto; line-height: 1; }
.tile .tt { font-size: .72rem; opacity: .8; }
.tile .tp { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; background: rgba(255,255,255,.35); border-radius: 3px; }
.tile .tp i { display: block; height: 100%; background: var(--saffron); border-radius: inherit; }
.tile.void { background: transparent; border: 1px dashed var(--line); min-height: 0; }
.legend { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); margin-top: 12px; }
.legend .scale { width: 120px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #EEF3F1, var(--teal)); }

.dist-row { display: grid; grid-template-columns: 108px 1fr 64px; gap: 10px; align-items: center; padding: 6px 0; font-size: .9rem; }
.dist-row .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.dist-row .n b { color: var(--ink); }

.need { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.need:last-child { border-bottom: 0; }
.need .w { font-weight: 600; }
.need .w span { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }

.metric-pair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-pair div { padding: 12px; background: var(--paper); border-radius: var(--r-md); }
.metric-pair b { display: block; font-family: var(--f-display); font-size: 1.25rem; color: var(--ink); }
.metric-pair span { font-size: .78rem; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; padding: 8px 0; align-items: center; font-size: .9rem; }
.timeline .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--line-2); color: var(--muted); }
.timeline .done .dot { background: var(--teal); color: #fff; }
.timeline .run .dot { background: var(--saffron); color: var(--ink); }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: .87rem; }
.feed li:last-child { border-bottom: 0; }
.feed span { color: var(--muted); font-size: .78rem; display: block; }

.hero-pic { background: var(--ink); color: #DDEBE9; border-radius: var(--r-lg); padding: 26px 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; position: relative; overflow: hidden; margin-bottom: 18px; }
.hero-pic::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--zigzag) repeat-x; background-size: 20px 10px; opacity: .8; }
.hero-pic h1 { color: #fff; font-size: 1.6rem; }
.hero-pic p { margin: 6px 0 0; max-width: 56ch; }
.hero-pic .target { text-align: right; }
.hero-pic .target b { font-family: var(--f-display); font-size: 2.6rem; color: #fff; line-height: 1; }

/* insight */
.insight { list-style: none; margin: 0; padding: 0; }
.insight li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.insight li:last-child { border-bottom: 0; }
.insight .ib { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.insight .good .ib { background: var(--teal-soft); color: var(--teal); }
.insight .mid .ib { background: var(--saffron-soft); color: #A86A12; }
.insight .bad .ib { background: var(--clay-soft); color: var(--clay); }

.heat td.h { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------------- Form survei ---------------- */
.survey { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 22px; align-items: start; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 16px; }
.step-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.step-no { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; flex: none; }
.step-head p { margin: 0; color: var(--muted); font-size: .85rem; }
.aside-sticky { position: sticky; top: 80px; }
.live { background: var(--ink); color: #DDEBE9; border-radius: var(--r-lg); padding: 20px; }
.live h3 { color: #fff; }
.live .ring::before { background: var(--ink); }
.live .ring b { color: #fff; }
.live .ring { --c: var(--saffron); background: conic-gradient(var(--c) calc(var(--v) * 1%), rgba(255,255,255,.12) 0); }
.live .kat { font-family: var(--f-display); font-size: 1.1rem; color: #fff; }
.live ul { list-style: none; padding: 0; margin: 10px 0 0; font-size: .82rem; }
.live li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.live .rek .chip { background: transparent; color: #F5D9A8; border-color: rgba(232,163,61,.5); }
.sticky-actions { position: sticky; bottom: 0; background: rgba(243,245,242,.95); backdrop-filter: blur(6px); padding: 14px 0; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line); z-index: 5; }

/* ---------------- Detail ---------------- */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: .9rem; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }
.score-break { list-style: none; padding: 0; margin: 0; }
.score-break li { display: grid; grid-template-columns: 1fr 64px; gap: 4px 10px; padding: 7px 0; font-size: .86rem; }
.score-break .bar { grid-column: 1 / -1; height: 6px; }

/* ---------------- Filter bar ---------------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters .input { width: auto; min-width: 150px; padding: 7px 10px; font-size: .88rem; }
.filters .grow { flex: 1; min-width: 220px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-color: var(--saffron); }
.tabs .n { font-size: .75rem; background: var(--line-2); padding: 0 7px; border-radius: 99px; margin-left: 4px; }

.pager { display: flex; gap: 4px; align-items: center; justify-content: space-between; margin-top: 14px; font-size: .86rem; color: var(--muted); flex-wrap: wrap; }
.pager .pg { display: flex; gap: 4px; }
.pager a, .pager span.cur { padding: 5px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.pager span.cur { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------- Modal ---------------- */
dialog.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(14,59,67,.45); }
dialog.modal::backdrop { background: rgba(14,59,67,.45); }
.modal-head { padding: 18px 22px 0; display: flex; align-items: center; }
.modal-head button { margin-left: auto; }
.modal-body { padding: 16px 22px; }
.modal-foot { padding: 14px 22px; background: #F8FAF8; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--line-2); }

/* ---------------- Login ---------------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--ink); color: #CFE0DE; padding: 48px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-art .stripes { position: absolute; left: 0; right: 0; bottom: 64px; height: 120px; background:
  var(--zigzag) 0 0 / 28px 14px repeat-x,
  var(--zigzag) 14px 34px / 28px 14px repeat-x,
  var(--zigzag) 0 68px / 28px 14px repeat-x; opacity: .55; }
.login-art .logos { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.login-art .logos img { height: 64px; width: auto; }
.login-art .brandline { font-family: var(--f-display); color: #fff; font-weight: 700; font-size: 1.15rem; }
.login-art h1 { color: #fff; font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 700; letter-spacing: -.03em; margin-top: auto; max-width: 15ch; }
.login-art p { max-width: 44ch; margin-top: 16px; color: #A9C6C3; }
.login-art .flow { display: flex; gap: 10px; margin: 26px 0 150px; flex-wrap: wrap; }
.login-art .flow span { font-size: .82rem; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; padding: 5px 12px; color: #DDEBE9; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-form form { width: 100%; max-width: 360px; }
.login-form h2 { font-size: 1.6rem; margin-bottom: 4px; }
.login-form .demo { margin-top: 26px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.login-form .demo code { background: var(--line-2); padding: 1px 6px; border-radius: 4px; color: var(--ink); }

/* ---------------- Responsif ---------------- */
@media (max-width: 1180px) {
  .kpi-band { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .kpi:nth-child(4) { border-left: 0; }
  .kpi:nth-child(n+4) { border-top: 1px solid var(--line-2); }
  .g-main { grid-template-columns: 1fr; }
  .survey { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(14,59,67,.4); }
  .top { padding: 10px 16px; }
  .top .menu-btn { display: inline-flex; }
  .who .meta { display: none; }
  .page { padding: 20px 16px 40px; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 32px 28px; min-height: 280px; }
  .login-art .flow { margin-bottom: 40px; }
  .login-art .stripes { bottom: 8px; height: 40px; }
  .login-art .logos img { height: 48px; }
  .search kbd { display: none; }
}
@media (max-width: 640px) {
  .kpi-band { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kpi:nth-child(n) { border-left: 0; border-top: 1px solid var(--line-2); }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .kpi:nth-child(even) { border-left: 1px solid var(--line-2); }
  .kpi .val { font-size: 1.7rem; }
  .f-row, .f-row-3 { grid-template-columns: 1fr; }
  .tilemap { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tile.void { display: none; }
  .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; }
  .hero-pic { grid-template-columns: 1fr; } .hero-pic .target { text-align: left; }
  .page-head .actions { margin-left: 0; }
  .metric-pair { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------------- Cetak ---------------- */
@media print {
  .side, .top, .no-print, .sticky-actions { display: none !important; }
  .shell { display: block; } body { background: #fff; } .panel, .table-wrap { border-color: #ccc; break-inside: avoid; }
}

/* penempatan tile mengikuti posisi geografis (skematik) */
.tilemap .tile { grid-column: var(--c, auto); grid-row: var(--r, auto); }
@media (max-width: 640px) { .tilemap .tile { grid-column: auto; grid-row: auto; } }
