/* PAN-JALU — tata letak: sidebar biru tua + kanvas kerja berkartu; aksen biru logo, jingga & hijau dari tanda centang logo. */
:root {
  --bg: #eef1fb; --surface: #ffffff; --surface-2: #f5f7fe; --ink: #2b3058; --muted: #7a809e; --line: #e4e8f5;
  --accent: #2f55d4; --accent-ink: #ffffff; --accent-soft: #e8edff; --warm: #f2994a; --warm-soft: #fff1e4;
  --cyan: #1ec8f0; --cyan-2: #2ea7f2; --cyan-soft: #e3f8fe;
  --ok: #22b07d; --ok-soft: #e2f7ee; --info: #2ea7f2; --info-soft: #e5f4fe; --warn: #e2932a; --warn-soft: #fff3e0; --crit: #ef5a6f; --crit-soft: #fde8eb;
  --side: #2f55d4; --side-ink: #ffffff; --side-muted: #c9d5ff;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 18px; --r-sm: 12px; --shadow: 0 10px 30px rgba(47, 85, 212, .07), 0 1px 2px rgba(43, 48, 88, .04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1229; --surface: #141c3a; --surface-2: #1a2346; --ink: #e5eaf9; --muted: #9aa5c8; --line: #283462;
    --accent: #7d9bf5; --accent-ink: #0b1230; --accent-soft: #1d2a5a; --warm: #f5a05b; --warm-soft: #3b2a18;
    --ok: #63c27a; --ok-soft: #16301f; --info: #74a9ef; --info-soft: #172a45; --warn: #e6b35a; --warn-soft: #382c14; --crit: #ef7e6c; --crit-soft: #3d1d18;
    --side: #080d22; --side-ink: #d9e1fa; --side-muted: #8592bd; --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1229; --surface: #141c3a; --surface-2: #1a2346; --ink: #e5eaf9; --muted: #9aa5c8; --line: #283462;
  --accent: #7d9bf5; --accent-ink: #0b1230; --accent-soft: #1d2a5a; --warm: #f5a05b; --warm-soft: #3b2a18;
  --ok: #63c27a; --ok-soft: #16301f; --info: #74a9ef; --info-soft: #172a45; --warn: #e6b35a; --warn-soft: #382c14; --crit: #ef7e6c; --crit-soft: #3d1d18;
  --side: #080d22; --side-ink: #d9e1fa; --side-muted: #8592bd; --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
h4 { font-size: .92rem; font-weight: 700; margin-top: 1em; }
p { margin: 0 0 .7em; }
a { color: var(--accent); text-underline-offset: 2px; }
.muted { color: var(--muted); } .small { font-size: .84rem; } .mono { font-family: var(--mono); font-size: .92em; }
.center { text-align: center; } .num { font-variant-numeric: tabular-nums; text-align: right; } .ok-text { color: var(--ok); }
.pre { white-space: pre-wrap; font-family: inherit; margin: .4em 0; }
.eyebrow { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin-bottom: .35em; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
.spacer { flex: 1; }

/* ---------- tombol & form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9rem var(--font); padding: .58em 1.05em; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.crit { background: var(--crit); color: #fff; border-color: var(--crit); }
.btn.ghost { background: transparent; }
.btn.sm { padding: .38em .8em; font-size: .82rem; }
.btn.block { width: 100%; }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
label { display: grid; gap: .3em; font-size: .86rem; font-weight: 600; color: var(--ink); }
input, select, textarea { font: 400 .95rem var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .6em .75em; width: 100%; min-width: 0; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
label.check { display: flex; gap: .55em; align-items: flex-start; font-weight: 500; }
label.check input { margin-top: .25em; flex: none; }
label.inline { display: flex; align-items: center; gap: .5em; } label.inline select { width: auto; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .8em 1em; margin: 0; display: grid; gap: .5em; }
legend { font-weight: 700; font-size: .86rem; padding: 0 .3em; }
.stack { display: grid; gap: .9rem; }
.row { display: flex; gap: .6rem; align-items: center; }
.row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: .7rem; align-items: center; color: inherit; text-decoration: none; padding: 4px 8px 18px; }
.brand b { display: block; font-size: 1.1rem; letter-spacing: -.01em; } .brand small { display: block; font-size: .74rem; color: var(--side-muted); }
.brand-logo { background: #fff; border-radius: 12px; padding: 4px 6px; display: grid; place-items: center; flex: none; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.brand-logo img { width: 66px; height: auto; display: block; }
.side-link { color: var(--side-muted); font-size: .8rem; text-decoration: none; } .side-link:hover { color: #fff; }
.brand.big { color: var(--ink); padding: 0 0 1.5rem; } .brand.big small { color: var(--muted); }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; gap: .7rem; align-items: center; padding: .62rem .75rem; border-radius: 10px; color: var(--side-ink); text-decoration: none; font-weight: 500; font-size: .92rem; }
.nav a:hover { background: rgba(255, 255, 255, .06); }
.nav a.active { background: rgba(125, 155, 245, .22); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 #f08a24; }
.nav-ico { display: inline-flex; opacity: .9; }
.side-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: .6rem; }
.side-foot .btn { color: var(--side-ink); border-color: rgba(255, 255, 255, .18); }
.me { display: flex; gap: .6rem; align-items: center; color: inherit; text-decoration: none; min-width: 0; }
.me b { display: block; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .me small { color: var(--side-muted); font-size: .74rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: var(--accent-soft); color: var(--accent); flex: none; }
.side .avatar { background: rgba(125, 155, 245, .25); color: #fff; }
.content { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 12px max(24px, env(safe-area-inset-right, 0px)) 12px max(24px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.crumb { font-weight: 700; color: var(--muted); font-size: .9rem; }
.icon-btn { position: relative; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.badge { position: absolute; top: -4px; right: -4px; background: var(--crit); color: #fff; font-size: .68rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 4px; }
#main { padding: 26px max(24px, env(safe-area-inset-right, 0px)) 90px max(24px, env(safe-area-inset-left, 0px)); max-width: 1180px; width: 100%; display: grid; gap: 1.1rem; align-content: start; outline: none; }

/* ---------- kartu & grid ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.grid-2.wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.section-h { margin: .6rem 0 -.2rem; }
.notice { border-radius: var(--r-sm); padding: .8rem 1rem; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); font-size: .9rem; }
.notice.info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.notice.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.notice.crit { background: var(--crit-soft); border-color: color-mix(in srgb, var(--crit) 35%, transparent); }
.chip { display: inline-flex; align-items: center; gap: .3em; font-size: .74rem; font-weight: 700; padding: .2em .65em; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .chip.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; } .chip.crit { background: var(--crit-soft); color: var(--crit); border-color: transparent; }
.chip.accent { background: var(--warm-soft); color: var(--warm); border-color: transparent; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .84rem var(--font); padding: .4em .9em; border-radius: 999px; cursor: pointer; }
.chip-btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filters { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between; }
.filters select, .filters input { width: auto; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: .5rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table select { width: auto; padding: .3em .5em; font-size: .84rem; }
tr.inactive td { opacity: .55; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .45rem 1rem; margin: 0 0 1rem; font-size: .9rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .9rem; }
.mini-row { display: flex; gap: .7rem; align-items: center; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; font-size: .88rem; }
.mini-row:last-child { border-bottom: 0; } .mini-row span { min-width: 0; } .mini-row select { width: auto; }
a.mini-row:hover b { color: var(--accent); }
.empty { text-align: center; padding: 1.6rem 1rem; color: var(--muted); } .empty h4 { color: var(--ink); margin-top: 0; }
.loading { display: flex; gap: 6px; justify-content: center; padding: 3rem; }
.loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite ease-in-out; }
.loading span:nth-child(2) { animation-delay: .15s; } .loading span:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
details > summary { cursor: pointer; list-style-position: outside; }
.entry { border-bottom: 1px solid var(--line); padding: .6rem 0; } .entry:last-child { border-bottom: 0; }
.entry summary { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: .6rem .95rem; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.seg-tabs { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg-tabs button { border: 0; background: none; font: 600 .8rem var(--font); color: var(--muted); padding: .35em .85em; border-radius: 999px; cursor: pointer; }
.seg-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- grafik & meter ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; } .chart .axis { fill: var(--muted); font: 500 11px var(--font); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: .1; } .chart .dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; } .chart .dot.end { fill: var(--accent); }
.bars { display: grid; gap: .55rem; margin: .4rem 0 .8rem; }
.bar-row { display: grid; grid-template-columns: minmax(0, 9rem) minmax(70px, 1fr) 3.6rem; gap: .7rem; align-items: center; font-size: .84rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 9px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 9px; background: var(--accent); }
.bar-fill.ok { background: var(--ok); } .bar-fill.info { background: var(--info); } .bar-fill.warn { background: var(--warn); } .bar-fill.crit { background: var(--crit); }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.meter { position: relative; width: 132px; height: 132px; flex: none; }
.meter svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.meter .m-bg { fill: none; stroke: var(--surface-2); stroke-width: 11; }
.meter .m-fg { fill: none; stroke: var(--accent); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.meter.ok .m-fg { stroke: var(--ok); } .meter.info .m-fg { stroke: var(--info); } .meter.warn .m-fg { stroke: var(--warn); } .meter.crit .m-fg { stroke: var(--crit); }
.m-val { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; }
.m-val b { font-size: 2.1rem; font-weight: 800; font-variant-numeric: tabular-nums; } .m-val span { color: var(--muted); font-weight: 700; }
.index-body { display: flex; gap: 1.3rem; align-items: center; flex-wrap: wrap; } .index-body > div { flex: 1; min-width: 200px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .95rem 1.1rem; display: grid; gap: .15rem; text-decoration: none; color: inherit; box-shadow: var(--shadow); border-top: 3px solid var(--line); }
.kpi span { font-size: .8rem; color: var(--muted); font-weight: 600; } .kpi b { font-size: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums; } .kpi small { color: var(--muted); font-size: .76rem; }
.kpi.crit { border-top-color: var(--crit); } .kpi.crit b { color: var(--crit); } .kpi.warn { border-top-color: var(--warn); } .kpi.ok { border-top-color: var(--ok); }

/* ---------- beranda mahasiswa ---------- */
.hello { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.4rem; align-items: end; padding: .4rem 0 .4rem; }
.quote { margin: 0; padding: .9rem 1.1rem; border-left: 3px solid var(--warm); background: var(--warm-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .95rem; font-style: italic; }
.quote cite { display: block; font-style: normal; font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.cta-card { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); }
.appt { display: grid; gap: .25rem; margin-bottom: .6rem; } .appt span { font-size: .88rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; }
.tile { display: grid; gap: .5rem; padding: 1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .45rem; }
.checklist li { display: flex; gap: .6rem; align-items: center; font-size: .92rem; }
.checklist li label { font-weight: 500; flex: 1; font-size: .92rem; display: block; }
.checklist li.done label, .checklist li.done > span:last-child { text-decoration: line-through; color: var(--muted); }
.checklist .x { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }

/* ---------- asesmen ---------- */
.prose-card { max-width: 760px; } .prose-card p { max-width: 65ch; }
.scale-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .86rem; margin: .6rem 0 1rem; } .scale-legend b { font-family: var(--mono); color: var(--accent); }
.assess { max-width: 860px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; margin-bottom: 1rem; }
.progress div { height: 100%; background: var(--accent); transition: width .35s ease; }
.items { list-style: none; padding: 0; margin: .4rem 0 1.2rem; display: grid; gap: 1rem; }
.item { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .9rem 1rem; background: var(--surface-2); }
.item p { font-weight: 600; margin-bottom: .7rem; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.seg label { display: grid; justify-items: center; gap: .1rem; padding: .55rem .3rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; text-align: center; font-weight: 500; transition: border-color .12s, background .12s; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label b { font-family: var(--mono); font-size: .9rem; } .seg label span { font-size: .72rem; color: var(--muted); line-height: 1.25; }
.seg label:hover { border-color: var(--accent); }
.seg label.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .seg label.on span { color: var(--accent-ink); opacity: .85; }
.seg label:focus-within { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.result-hero { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; } .result-hero > div { flex: 1; min-width: 240px; }
.topics { margin: .3rem 0; padding-left: 1.3rem; display: grid; gap: .35rem; font-size: .92rem; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; }
.rec { display: grid; gap: .35rem; text-decoration: none; color: var(--ink); align-content: start; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.rec:hover { border-color: var(--accent); transform: translateY(-2px); } .rec span:last-child { font-size: .86rem; color: var(--muted); }
.rec.crit { border-color: color-mix(in srgb, var(--crit) 45%, var(--line)); background: var(--crit-soft); } .rec.crit .eyebrow { color: var(--crit); }

/* ---------- workbook ---------- */
.insight { display: grid; gap: .3rem; background: var(--warm-soft); border-color: transparent; } .insight ul { margin: .2rem 0 0; padding-left: 1.2rem; font-size: .9rem; font-style: italic; }
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.step { display: flex; gap: .55rem; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: .6rem .8rem; font: 600 .9rem var(--font); color: var(--muted); cursor: pointer; }
.step span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; color: var(--ink); flex: none; }
.step.done span { background: var(--ok-soft); color: var(--ok); }
.step.on { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); } .step.on span { background: var(--accent); color: var(--accent-ink); }

/* ---------- jurnal & relaksasi ---------- */
.moods { display: flex; gap: .5rem; flex-wrap: wrap; border: 0; padding: 0; }
.moods legend { margin-bottom: .4rem; padding: 0; }
.mood { display: flex; flex-direction: row; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; cursor: pointer; font-weight: 600; }
.mood input { position: absolute; opacity: 0; pointer-events: none; }
.mood:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.mood:focus-within { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.mood-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.senang .mood-dot, .mood-dot.senang, .m5 .mood-dot { background: var(--ok); } .m4 .mood-dot { background: #6aa77f; }
.biasa .mood-dot, .mood-dot.biasa, .m3 .mood-dot { background: var(--warm); } .m2 .mood-dot { background: var(--warn); }
.sedih .mood-dot, .mood-dot.sedih, .m1 .mood-dot { background: var(--info); }
.prompt { background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--r-sm); padding: .7rem .9rem; }
.prompt small { color: var(--muted); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; } .prompt p { margin: .2rem 0 0; font-weight: 600; }
.breathe-card .mono { color: var(--accent) !important; font-weight: 600; }
.breath { text-align: center; }
.breath-stage { position: relative; height: 260px; display: grid; place-items: center; margin: .6rem 0; }
.breath-circle { width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft) 0 40%, color-mix(in srgb, var(--accent) 35%, transparent) 75%, transparent 76%); border: 2px solid var(--accent); transform: scale(.55); transition-property: transform; transition-timing-function: ease-in-out; }
.breath-text { position: absolute; display: grid; gap: .1rem; } .breath-text b { font-size: 1.2rem; } .breath-text span { font-size: 1.6rem; color: var(--accent); }
.sounds { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; }
.sound { display: flex; gap: .6rem; align-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9rem var(--font); padding: .8rem 1rem; border-radius: var(--r); cursor: pointer; }
.sound .wave { width: 22px; height: 16px; flex: none; background: linear-gradient(var(--muted), var(--muted)) 0 50%/3px 40% no-repeat, linear-gradient(var(--muted), var(--muted)) 6px 50%/3px 80% no-repeat, linear-gradient(var(--muted), var(--muted)) 12px 50%/3px 55% no-repeat, linear-gradient(var(--muted), var(--muted)) 18px 50%/3px 30% no-repeat; }
.sound.on { border-color: var(--accent); background: var(--accent-soft); }
.sound.on .wave { animation: wave 1.1s infinite ease-in-out; background: linear-gradient(var(--accent), var(--accent)) 0 50%/3px 40% no-repeat, linear-gradient(var(--accent), var(--accent)) 6px 50%/3px 80% no-repeat, linear-gradient(var(--accent), var(--accent)) 12px 50%/3px 55% no-repeat, linear-gradient(var(--accent), var(--accent)) 18px 50%/3px 30% no-repeat; }
@keyframes wave { 50% { transform: scaleY(.6); } }

/* ---------- konten & komunitas ---------- */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.content-card { display: grid; gap: .45rem; text-align: left; font: inherit; color: var(--ink); cursor: pointer; align-content: start; border-top: 3px solid var(--line); }
.content-card.artikel { border-top-color: var(--accent); } .content-card.video { border-top-color: var(--warm); } .content-card.podcast { border-top-color: var(--info); } .content-card.bibliokonseling { border-top-color: var(--ok); }
.content-card:hover { border-color: var(--accent); }
.meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.group { display: grid; gap: .4rem; align-content: start; } .group .btn { justify-self: start; margin-top: .3rem; }
.peer-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
.peer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .4rem .8rem; align-items: center; }
.peer > div:nth-child(2) { display: grid; min-width: 0; } .peer .row { grid-column: 1 / -1; }
.status { font-size: .74rem; font-weight: 700; display: inline-flex; align-items: center; gap: .35em; color: var(--muted); white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.online { color: var(--ok); } .status.online::before { background: var(--ok); } .status.sibuk { color: var(--warn); } .status.sibuk::before { background: var(--warn); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; } .status-dot.online { background: var(--ok); }

/* ---------- konseling ---------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; counter-reset: f; }
.flow li { display: flex; gap: .55rem; align-items: center; font-weight: 600; font-size: .88rem; color: var(--muted); padding: .55rem .7rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.flow li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; flex: none; color: var(--ink); }
.flow li.on { color: var(--ink); border-color: var(--accent); } .flow li.on span { background: var(--accent); color: var(--accent-ink); }
.flow li.done span { background: var(--ok-soft); color: var(--ok); }
.counselor { display: grid; gap: .55rem; align-content: start; } .counselor .row > div { display: grid; min-width: 0; } .counselor .btn { justify-self: start; }
.counselor.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hours { display: grid; grid-template-columns: max-content 1fr; gap: .1rem .8rem; margin: 0; font-size: .8rem; } .hours dt { color: var(--muted); } .hours dd { margin: 0; }
.hours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.appt-card { display: grid; gap: .3rem; }
.appt-row { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.appt-row:last-child { border-bottom: 0; } .appt-row > div:first-child { min-width: 0; flex: 1 1 280px; } .appt-row p { margin: .15rem 0 0; }
.stars { color: var(--warm); letter-spacing: .1em; }
.rating { display: flex; gap: .3rem; }
.rating label { display: grid; justify-items: center; cursor: pointer; font-weight: 500; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating span { font-size: 1.6rem; color: var(--line); line-height: 1; } .rating small { font-size: .7rem; color: var(--muted); }
.rating label:has(input:checked) span, .rating:has(label:hover) label:hover span { color: var(--warm); }
.rating label:focus-within span { outline: 2px solid var(--accent); border-radius: 4px; }
.fb-form { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .4rem; }
.msg-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1rem; min-height: 460px; }
.thread-list { display: grid; gap: .3rem; align-content: start; padding: .8rem; }
.thread { display: flex; gap: .6rem; align-items: center; text-align: left; border: 0; background: none; padding: .6rem; border-radius: var(--r-sm); cursor: pointer; font: inherit; color: var(--ink); }
.thread span:nth-child(2) { display: grid; min-width: 0; flex: 1; } .thread small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread.on, .thread:hover { background: var(--accent-soft); } .thread .badge { position: static; }
.conv { display: grid; grid-template-rows: 1fr auto; gap: .8rem; }
.bubbles { display: grid; gap: .6rem; align-content: start; overflow-y: auto; max-height: 520px; padding-right: .3rem; }
.bubble { max-width: 75%; background: var(--surface-2); border: 1px solid var(--line); padding: .55rem .8rem; border-radius: 14px 14px 14px 4px; justify-self: start; }
.bubble.me { justify-self: end; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); border-radius: 14px 14px 4px 14px; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; } .bubble small { font-size: .7rem; opacity: .7; }

/* ---------- konselor ---------- */
.alert-panel { border-color: color-mix(in srgb, var(--crit) 50%, var(--line)); background: linear-gradient(var(--crit-soft), var(--surface) 60%); }
.alert-panel h3 { color: var(--crit); }
.alert-row { display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: .7rem .9rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--warn); margin-top: .5rem; }
.alert-row.over { border-left-color: var(--crit); } .alert-row > div { display: grid; min-width: 0; }
.switch { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 42px; height: 24px; border-radius: 24px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--ok); } .switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.ai-draft { border: 1.5px dashed var(--warn); background: var(--warn-soft); border-radius: var(--r-sm); padding: .8rem; display: grid; gap: .6rem; margin-bottom: .8rem; }
.worst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.worst { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1.1rem; display: grid; gap: .15rem; border-left: 4px solid var(--warn); }
.worst small { color: var(--muted); font-weight: 600; font-size: .78rem; } .worst span { font-size: .84rem; color: var(--muted); }

/* ---------- modal, toast, SOS ---------- */
#modal { position: fixed; inset: 0; z-index: 50; background: rgba(10, 22, 26, .5); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.modal-card { position: relative; background: var(--surface); border-radius: 18px; padding: 1.5rem; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); animation: rise .2s ease; }
.modal-card.wide { width: min(760px, 100%); }
.modal-card video, .modal-card audio { width: 100%; margin-top: .6rem; }
.modal-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; width: 36px; height: 36px; border-radius: 50%; }
.modal-x:hover { background: var(--surface-2); }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.notif-list { display: grid; gap: .4rem; max-height: 60vh; overflow-y: auto; margin-top: .6rem; }
.notif { display: grid; gap: .1rem; padding: .7rem .8rem; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .88rem; }
.notif span { color: var(--muted); } .notif small { color: var(--muted); font-size: .74rem; }
.notif.unread { background: var(--accent-soft); border-color: transparent; } .notif.krisis { border-left: 4px solid var(--crit); } .notif.tinggi { border-left: 4px solid var(--warn); }
#toasts { position: fixed; z-index: 60; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: grid; gap: .5rem; width: min(440px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: .75rem 1rem; border-radius: 12px; font-size: .9rem; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: rise .2s ease; border-left: 4px solid var(--ok); }
.toast.crit { border-left-color: var(--crit); } .toast.warn { border-left-color: var(--warn); } .toast.info { border-left-color: var(--info); }
.sos { position: fixed; z-index: 40; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--crit); color: #fff; font: 800 1rem var(--font); letter-spacing: .05em; cursor: pointer; box-shadow: 0 8px 24px color-mix(in srgb, var(--crit) 45%, transparent), 0 0 0 6px color-mix(in srgb, var(--crit) 18%, transparent); }
.sos:hover { transform: scale(1.05); }
.sos-head p { color: var(--muted); }
.sos-line { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: .55rem; flex-wrap: wrap; }
.sos-line > div:first-child { display: grid; min-width: 0; } .sos-line small { color: var(--muted); font-weight: 600; } .sos-line b { font-size: 1.05rem; overflow-wrap: anywhere; }
.crisis h3 { color: var(--crit); }

/* ---------- halaman publik (Home, masuk, daftar) ---------- */
body.public { background: var(--bg); }
.btn.lg { padding: .78em 1.4em; font-size: 1rem; }
.btn.light { background: #fff; color: #10204f; border-color: #fff; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.pnav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.pnav-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 1.2rem; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.pbrand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-width: 0; }
.pbrand img { height: 44px; width: auto; } .pbrand b { display: block; font-size: 1.05rem; letter-spacing: .02em; } .pbrand small { display: block; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plinks { display: flex; gap: .2rem; margin-left: auto; } .plinks a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; padding: .45rem .7rem; border-radius: 8px; } .plinks a:hover { color: var(--accent); background: var(--accent-soft); }
.pnav-cta { display: flex; gap: .5rem; margin-left: auto; } .plinks + .pnav-cta { margin-left: .4rem; }
.pmain { display: block; }
.sec-in { max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.sec-in.two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.sec-in.narrow { max-width: 820px; }
.hero { background: radial-gradient(1100px 500px at 85% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg)); }
.hero-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: center; padding: 56px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin-bottom: .5em; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; margin-bottom: 1.4rem; }
.hero-copy .row { margin-bottom: .6rem; }
.hero-art { position: relative; display: grid; justify-items: center; gap: .8rem; }
.hero-art img { position: relative; width: min(440px, 100%); height: auto; filter: drop-shadow(0 18px 30px rgba(16, 32, 79, .22)); }
.halo { position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--warm) 22%, transparent), transparent 65%); }
.acronym { position: relative; font-weight: 700; color: var(--accent); text-align: center; font-size: .95rem; letter-spacing: .01em; max-width: 26rem; }
.pillars { padding: 0 0 8px; }
.pillars .sec-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; display: grid; gap: .3rem; box-shadow: var(--shadow); }
.pl-letter { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: .02em; }
.pillar.p0 .pl-letter { color: #e8731a; } .pillar.p1 .pl-letter { color: var(--ok); } .pillar.p2 .pl-letter { color: var(--info); }
.pillar p { color: var(--muted); font-size: .9rem; margin: 0; }
.stats { padding: 28px 0; } .stats .sec-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat { text-align: center; padding: 1rem; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); }
.stat b { display: block; font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; } .stat span { font-size: .85rem; opacity: .9; }
.psec { padding: 64px 0; } .psec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.psec h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -.015em; margin-bottom: .8rem; }
.prose-p { font-size: 1.02rem; max-width: 62ch; }
.vm { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem; } .vm ol { padding-left: 1.2rem; margin: 0; display: grid; gap: .4rem; }
.psec.alt .vm { background: var(--bg); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.feat { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; background: var(--bg); display: grid; gap: .3rem; align-content: start; }
.feat-num { color: var(--warm); font-weight: 600; font-size: .85rem; } .feat p { color: var(--muted); margin: 0; font-size: .92rem; }
.steps { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 3.2rem 1.2rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(st); position: absolute; top: 1rem; left: 1.2rem; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.steps p { color: var(--muted); margin: .2rem 0 0; font-size: .92rem; }
.psec.band { background: linear-gradient(120deg, #10204f, #2344b0); color: #fff; border: 0; }
.psec.band .eyebrow { color: #ffb36b; } .psec.band p { color: #d6def8; }
.band-cta { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; justify-content: center; height: 100%; }
.faq { border-bottom: 1px solid var(--line); padding: .9rem 0; } .faq summary { font-weight: 700; cursor: pointer; } .faq p { color: var(--muted); margin: .5rem 0 0; }
.sos-box { border-radius: var(--r); padding: 1.3rem 1.4rem; background: var(--crit-soft); border: 1px solid color-mix(in srgb, var(--crit) 30%, transparent); }
.sos-box .big { font-size: 1.5rem; font-weight: 700; color: var(--crit); margin: .3rem 0; }
.pfoot { background: var(--side); color: var(--side-ink); padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.pfoot-in { max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.pfoot-logo { height: 54px; background: #fff; border-radius: 10px; padding: 4px 8px; margin-bottom: .5rem; } .pfoot p { margin: 0; color: var(--side-muted); }
.auth { min-height: calc(100vh - 70px); display: grid; place-items: start center; padding: 40px max(16px, env(safe-area-inset-right, 0px)) 60px max(16px, env(safe-area-inset-left, 0px)); background: radial-gradient(900px 400px at 50% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.auth-card { width: min(620px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.auth-card h1 { margin: 0; text-align: center; } .auth-card > .muted { text-align: center; margin: -.4rem 0 0; }
.auth-logo { width: 150px; height: auto; justify-self: center; }
.code-input { font: 600 1.6rem var(--mono); letter-spacing: .5em; text-align: center; }
.role-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.role-card { display: grid; gap: .3rem; border: 1.5px solid var(--line); border-radius: var(--r); padding: 1.1rem; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.role-card:hover { border-color: var(--accent); transform: translateY(-2px); } .role-card b { font-size: 1.05rem; color: var(--accent); } .role-card span { color: var(--muted); font-size: .88rem; }
.seg-tabs.wide { display: flex; } .seg-tabs.wide a { flex: 1; text-align: center; padding: .45em; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .88rem; }
.seg-tabs.wide a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .4rem; }
.demo { border-top: 1px solid var(--line); padding-top: .8rem; } .demo summary { cursor: pointer; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin-top: .6rem; }
.demo-acc { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: .55rem .7rem; cursor: pointer; font: inherit; color: var(--ink); display: grid; }
.demo-acc:hover { border-color: var(--accent); } .demo-acc b { font-size: .86rem; } .demo-acc small { color: var(--muted); font-size: .74rem; }
.reg-card { display: grid; gap: .4rem; } .reg-card .kv { margin: .3rem 0; }
.logo-edit { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; } .logo-edit img { width: 180px; height: auto; background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--r-sm); padding: .5rem; }
@media (max-width: 900px) { .plinks { display: none; } .hero-in, .sec-in.two { grid-template-columns: minmax(0, 1fr); } .hero-art { order: -1; } .hero-art img { width: min(300px, 80%); } .stats .sec-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pbrand small { display: none; } .pbrand img { height: 36px; } .pnav-cta .btn { padding: .45em .8em; font-size: .82rem; } .role-pick { grid-template-columns: minmax(0, 1fr); } .auth-card { padding: 1.2rem; } .psec { padding: 44px 0; } }

/* ---------- responsif ---------- */
@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; padding: 8px max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px)); padding-top: calc(8px + env(safe-area-inset-top, 0px)); gap: .5rem; overflow: visible; }
  .brand { padding: 0; } .brand-text { display: none; } .brand-logo img { width: 52px; } .side-link { display: none; }
  .nav { display: flex; overflow-x: auto; gap: 2px; flex: 1; scrollbar-width: none; } .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: .5rem .65rem; white-space: nowrap; font-size: .82rem; }
  .side-foot { margin: 0; padding: 0; border: 0; display: flex; } .side-foot .me span:last-child { display: none; } .side-foot .btn { display: none; }
  .topbar { top: 0; position: relative; }
  .grid-2, .grid-2.wide-left, .hello { grid-template-columns: minmax(0, 1fr); }
  .msg-layout { grid-template-columns: minmax(0, 1fr); } .thread-list { max-height: 220px; overflow-y: auto; }
}
@media (max-width: 560px) {
  #main { padding: 18px max(16px, env(safe-area-inset-right, 0px)) 100px max(16px, env(safe-area-inset-left, 0px)); }
  .topbar { padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-row { grid-template-columns: minmax(0, 6.5rem) minmax(50px, 1fr) 3.2rem; }
  .card { padding: 1rem; } .meter { width: 112px; height: 112px; } .m-val b { font-size: 1.7rem; }
  .filters, .filters form { width: 100%; } .filters select, .filters input { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ================= Revisi IKDKM: komponen baru ================= */
.warn-text { color: var(--warn); font-weight: 600; } .faded { opacity: .6; }
.badge-peer { display: inline-flex; align-items: center; gap: .3em; font-size: .7rem; font-weight: 800; letter-spacing: .02em; padding: .18em .6em; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--ok), var(--info)); white-space: nowrap; vertical-align: middle; }
.badge-peer::before { content: '★'; font-size: .85em; }
.badge-peer.sm { font-size: .62rem; margin-top: .15rem; width: fit-content; }
/* skor K / D */
.kd-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.kd { border-radius: var(--r); padding: .9rem 1rem; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: .1rem; border-left: 4px solid var(--line); }
.kd small { color: var(--muted); font-weight: 700; font-size: .78rem; } .kd b { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; } .kd span { font-size: .82rem; }
.kd.ok { border-left-color: var(--ok); } .kd.info { border-left-color: var(--info); } .kd.warn { border-left-color: var(--warn); } .kd.crit { border-left-color: var(--crit); }
.pairbars { display: grid; gap: .55rem; }
.pb-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-size: .78rem; color: var(--muted); }
.pb-legend .lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: -.5rem; }
.lg.k, .pb-fill.k { background: var(--accent); } .lg.d, .pb-fill.d { background: var(--warm); }
.pb-row { display: grid; grid-template-columns: minmax(110px, 30%) minmax(0, 1fr) auto; gap: .6rem; align-items: center; }
.pb-label { font-size: .85rem; font-weight: 600; } .pb-bars { display: grid; gap: 3px; }
.pb-track { height: 9px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.pb-fill { height: 100%; border-radius: 999px; transition: width .4s; }
.pb-vals { display: grid; font-size: .74rem; line-height: 1.15; text-align: right; } .pb-vals span:first-child { color: var(--accent); } .pb-vals span:last-child { color: var(--warm); }
.chart .line.k { stroke: var(--accent); } .chart .line.d { stroke: var(--warm); stroke-dasharray: 6 4; }
.chart .dot.k { stroke: var(--accent); } .chart .dot.d { stroke: var(--warm); } .chart .dot.k.end { fill: var(--accent); } .chart .dot.d.end { fill: var(--warm); }
.quadmap { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: .4rem; }
.qaxis-y { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .74rem; color: var(--muted); font-weight: 700; text-align: center; }
.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.qaxis-x { grid-column: 2; display: flex; justify-content: space-around; font-size: .74rem; color: var(--muted); font-weight: 700; }
.quad { border-radius: var(--r-sm); padding: .75rem .85rem; border: 1px solid var(--line); background: var(--surface-2); min-height: 110px; }
.quad b { display: block; font-size: .88rem; } .quad small { color: var(--muted); font-size: .76rem; }
.quad ul { margin: .45rem 0 0; padding-left: 1.05rem; font-size: .82rem; } .quad li .mono { color: var(--muted); font-size: .72rem; }
.quad.andalan { background: var(--ok-soft); border-color: transparent; } .quad.diasah { background: var(--info-soft); border-color: transparent; }
.quad.prioritas { background: var(--warm-soft); border-color: transparent; } .quad.prioritas b { color: var(--warm); }
/* pengisian asesmen */
.two-scales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: .8rem 0; }
.two-scales > div { background: var(--surface-2); border-radius: var(--r-sm); padding: .7rem .85rem; border: 1px solid var(--line); }
.item-big { font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 700; line-height: 1.4; margin: .6rem 0 1rem; text-wrap: pretty; }
.kd-slider { border: 1px solid var(--line); border-radius: var(--r); padding: .8rem .95rem; margin-bottom: .8rem; background: var(--surface-2); }
.kd-slider.k { border-left: 4px solid var(--accent); } .kd-slider.d { border-left: 4px solid var(--warm); }
.kd-slider input[type=range] { width: 100%; margin: .6rem 0 .3rem; accent-color: var(--accent); opacity: .45; } .kd-slider.d input[type=range] { accent-color: var(--warm); }
.kd-slider.set input[type=range] { opacity: 1; }
.kd-val { font-size: .82rem; font-weight: 700; color: var(--muted); } .kd-slider.set .kd-val { color: var(--ink); }
.ticks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; }
.ticks button { display: grid; gap: .1rem; justify-items: center; padding: .35rem .2rem; font: inherit; font-size: .7rem; line-height: 1.2; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; text-align: center; min-height: 44px; }
.ticks button b { font-size: .95rem; color: var(--ink); }
.kd-slider.k .ticks button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.kd-slider.d .ticks button.on { border-color: var(--warm); background: var(--warm-soft); color: var(--warm); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .35rem .9rem; }
.btab th { text-align: center; font-size: .78rem; } .btab th small { display: block; font-weight: 500; color: var(--muted); font-size: .68rem; }
.btab td { text-align: center; } .btab td:first-child, .btab th:first-child { text-align: left; min-width: 200px; } .btab input { width: 18px; height: 18px; }
.yn { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; margin: .45rem 0; } .yn span { flex: 1 1 260px; }
.b7 { border: 1.5px solid color-mix(in srgb, var(--crit) 40%, transparent); background: var(--crit-soft); border-radius: var(--r-sm); padding: .7rem .9rem; }
/* rekomendasi */
.rec-list, .rec-admin { display: grid; gap: .5rem; }
.rec-item { display: grid; gap: .2rem; padding: .7rem .85rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; color: inherit; justify-items: start; }
a.rec-item:hover { border-color: var(--accent); } .rec-item.konselor { border-left: 3px solid var(--warm); }
.rec-item small { color: var(--muted); } .rec-admin .rec-item > .row { width: 100%; justify-content: space-between; }
.rec-form { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
/* workbook: konten yang dipelajari */
.learn-box { display: grid; gap: .55rem; padding: .85rem; border-radius: var(--r-sm); background: var(--accent-soft); }
.learn-list { display: grid; gap: .4rem; }
.learn-item { display: flex; gap: .65rem; align-items: center; padding: .45rem .6rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.learn-item.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.learn-item img { width: 54px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; }
.learn-item span { display: grid; } .learn-item small { color: var(--muted); font-size: .76rem; }
/* soundscape & musik */
.sounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.sound { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: .55rem; display: grid; gap: .4rem; }
.sound.on { border-color: var(--ok); background: var(--ok-soft); }
.sound-btn { display: flex; align-items: center; gap: .5rem; font: inherit; font-weight: 700; font-size: .88rem; background: none; border: 0; color: var(--ink); cursor: pointer; text-align: left; padding: .3rem; min-height: 40px; }
.sound-btn .wave { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.sound.on .wave { border-color: var(--ok); background: radial-gradient(circle, var(--ok) 35%, transparent 40%); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.18); } }
.sound input[type=range] { width: 100%; accent-color: var(--ok); }
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.track { display: grid; gap: .5rem; align-content: start; } .track-title { font-weight: 600; margin: 0; overflow-wrap: anywhere; } .track audio { width: 100%; }
/* konten psikoedukasi */
.content-card { padding: 0; overflow: hidden; gap: 0; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .chip { position: absolute; left: .55rem; top: .55rem; background: var(--surface); } .thumb .sug { left: auto; right: .55rem; background: var(--warm); color: #fff; }
.cc-body { display: grid; gap: .4rem; padding: .8rem .95rem 1rem; }
.cc-body .meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .76rem; color: var(--muted); flex-wrap: wrap; }
.kw { display: flex; flex-wrap: wrap; gap: .3rem; } .kw span { font-size: .72rem; padding: .12em .55em; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.content-page { max-width: 820px; } .hero-thumb { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--r-sm); margin-bottom: .9rem; }
.content-page .lead { font-size: 1.05rem; color: var(--muted); } .prose { line-height: 1.75; margin: 1rem 0; }
.media-img { max-width: 100%; border-radius: var(--r-sm); } .content-page video, .content-page audio { width: 100%; margin: .6rem 0; }
.thumb-sm { width: 64px; height: 40px; object-fit: cover; border-radius: 6px; display: block; }
.thumb-edit { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; } .thumb-edit img { width: 180px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.kw-field { display: grid; gap: .5rem; } .kw-opts { display: flex; flex-wrap: wrap; gap: .35rem; max-height: 170px; overflow: auto; padding: .2rem; }
.kw-opt { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; padding: .25em .7em; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; background: var(--surface); }
.kw-opt input { width: 14px; height: 14px; margin: 0; } .kw-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
select.st-published { border-color: var(--ok); } select.st-nonaktif { border-color: var(--warn); }
/* komunitas */
.peer-me { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; background: var(--ok-soft); border-color: transparent; }
.peer-me p { margin: .4rem 0 0; }
.thread { display: grid; gap: .6rem; }
.post { display: grid; gap: .3rem; } .post.reply { margin-left: 1.4rem; padding-left: .9rem; border-left: 2px solid var(--line); }
.post.hidden-post { opacity: .75; } .post .pre.faded { text-decoration: line-through; }
.reply-form { display: flex; gap: .5rem; } .reply-form input { flex: 1; min-width: 0; }
.group-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem; }
.group-admin .card { display: grid; gap: .45rem; align-content: start; }
.peer-admin { border-top: 1px solid var(--line); padding: .8rem 0; display: grid; gap: .4rem; } .peer-admin:first-of-type { border-top: 0; }
/* konseling */
.stepno { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .85rem; margin-right: .45rem; }
.slot-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin: .6rem 0; }
.slot-day { display: grid; gap: .35rem; align-content: start; padding: .6rem; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.slot-day.off { opacity: .55; } .slot-day > b { font-size: .85rem; }
.slot { font: inherit; font-size: .84rem; text-align: left; padding: .45rem .6rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); display: grid; min-height: 44px; }
.slot small { color: var(--muted); font-size: .72rem; } .slot.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
.slot:disabled { opacity: .45; cursor: not-allowed; }
.slot-pill { display: grid; font-size: .82rem; font-weight: 700; font-family: var(--mono); padding: .35rem .5rem; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.slot-pill small { font-family: var(--font); font-weight: 500; color: var(--muted); font-size: .7rem; }
.consent-box { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); padding: .9rem 1rem; background: var(--surface-2); font-size: .9rem; }
.consent-box h4 { margin-top: .6em; } .consent-box h4:first-child { margin-top: 0; }
.link-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.sched { align-items: flex-start; } .hist-card { display: grid; gap: .5rem; }
tr.on td { background: var(--accent-soft); }
.flow li > button.link { display: inline-flex; align-items: center; gap: .4rem; color: inherit; font: inherit; }
@media (max-width: 560px) {
  .kd-pair, .two-scales { grid-template-columns: minmax(0, 1fr); }
  .kd b { font-size: 1.6rem; }
  .pb-row { grid-template-columns: minmax(0, 1fr) auto; } .pb-label { grid-column: 1 / -1; }
  .qgrid { grid-template-columns: minmax(0, 1fr); } .qaxis-y, .qaxis-x { display: none; } .quadmap { grid-template-columns: minmax(0, 1fr); }
  .quad::after { display: block; font-size: .7rem; color: var(--muted); margin-top: .3rem; }
  .ticks span { display: none; } .ticks button { min-height: 40px; }
  .post.reply { margin-left: .5rem; }
  .group-admin { grid-template-columns: minmax(0, 1fr); }
  .thumb-edit img { width: 100%; }
}
.kv.stacked { grid-template-columns: minmax(0, 1fr); gap: .15rem; } .kv.stacked dt { font-weight: 600; margin-top: .55rem; } .kv.stacked dt:first-child { margin-top: 0; }
.kv dt { max-width: 22ch; } .kv.stacked dt { max-width: none; }
td.mono { white-space: nowrap; } .rec-item { min-width: 0; } .rec-item small { overflow-wrap: anywhere; }

/* ================= Revisi IKDKM-M ================= */
.kd-pair.three { grid-template-columns: 1.3fr 1fr 1fr; }
.kd b i { font-style: normal; font-size: .9rem; color: var(--muted); font-weight: 600; margin-left: .1rem; }
.scale-legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .7rem 0; font-size: .88rem; }
.scale-legend b { display: inline-grid; place-items: center; min-width: 2.4rem; padding: .1rem .4rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent); margin-right: .25rem; }
.likert { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin: .4rem 0 1.1rem; }
.lk { display: grid; gap: .2rem; justify-items: center; padding: .85rem .4rem; min-height: 76px; font: inherit; color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.lk b { font-size: 1.15rem; } .lk span { font-size: .78rem; color: var(--muted); line-height: 1.2; }
.lk:hover { border-color: var(--accent); } .lk.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); } .lk.on span { color: var(--accent); }
.dimbars { display: grid; gap: .7rem; }
.db-row { display: grid; grid-template-columns: minmax(130px, 34%) minmax(0, 1fr) auto; gap: .7rem; align-items: center; }
.db-label { font-size: .86rem; font-weight: 600; display: grid; } .db-label small { color: var(--muted); font-weight: 500; font-size: .72rem; }
.db-track { position: relative; height: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.db-fill { height: 100%; border-radius: 999px; background: var(--info); transition: width .4s; }
.db-fill.ok { background: var(--ok); } .db-fill.warn { background: var(--warn); } .db-fill.crit { background: var(--crit); }
.db-amb { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); opacity: .35; border-radius: 2px; }
.db-val { display: flex; align-items: center; gap: .3rem; white-space: nowrap; } .db-val small { color: var(--muted); }
.quad.ok { background: var(--ok-soft); border-color: transparent; } .quad.info { background: var(--info-soft); border-color: transparent; }
.quad.warn { background: var(--warm-soft); border-color: transparent; } .quad.muted { background: var(--surface-2); }
.quad.on { outline: 3px solid var(--accent); outline-offset: -3px; }
.quad .q-here, .quad .q-n { display: inline-block; margin-top: .45rem; font-size: .74rem; font-weight: 800; padding: .15em .6em; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.quad .q-n { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.guru-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: .8rem 0; }
.guru-steps > div { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.guru-steps > div > b { display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.guru-steps span { display: grid; font-size: .84rem; } .guru-steps small { color: var(--muted); }
.guru-form { display: grid; gap: .8rem; margin-top: 1rem; border-top: 4px solid var(--accent); }
.guru-q { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .6rem; align-items: start; }
.guru-q > span:nth-child(2) { display: grid; font-size: .92rem; } .guru-q small { color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.guru-q textarea { grid-column: 1 / -1; }
.entry summary { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.claim { padding: .55rem .75rem; border-left: 3px solid var(--warm); background: var(--warm-soft); border-radius: 6px; margin-bottom: .5rem; } .claim p { margin: .2rem 0 0; }
tr.trig td { background: var(--warn-soft); } tr.group-row td { background: var(--surface-2); }
.rec-item.urgent { border-left: 3px solid var(--crit); background: var(--crit-soft); }
@media (max-width: 860px) { .guru-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .kd-pair.three { grid-template-columns: minmax(0, 1fr); }
  .likert { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-row { grid-template-columns: minmax(0, 1fr) auto; } .db-label { grid-column: 1 / -1; }
  .guru-steps { grid-template-columns: minmax(0, 1fr); }
}


/* ================= Tema cerah (gaya dashboard biru–cyan) ================= */
body:not(.public) { background: linear-gradient(135deg, #dbe9fb 0%, #e9ecfb 45%, #e7e3fb 100%) fixed; }
.layout { gap: 0; padding: 16px 0 16px 16px; }
.side { background: var(--side); border-radius: 26px; height: calc(100vh - 32px); top: 16px; padding: 22px 14px; box-shadow: 0 14px 34px rgba(47, 85, 212, .28); }
.brand-logo { border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.brand small { color: var(--side-muted); }
.nav { gap: 6px; margin-top: .6rem; }
.nav a { color: #e8eeff; font-weight: 500; padding: .72rem .9rem; border-radius: 14px; position: relative; }
.nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav a.active { background: #fff; color: var(--accent); font-weight: 700; box-shadow: 0 8px 18px rgba(16, 32, 120, .22); }
.nav a.active::after { content: ''; position: absolute; right: -14px; top: 18%; bottom: 18%; width: 5px; border-radius: 4px 0 0 4px; background: #8fdcff; }
.nav a.active .nav-ico { opacity: 1; }
.side-foot { border-top: 0; background: rgba(255, 255, 255, .12); border-radius: 18px; padding: 14px; gap: .7rem; }
.side-foot .side-link { color: #e8eeff; text-align: center; }
.side-foot .btn { background: var(--cyan); border-color: var(--cyan); color: #fff; font-weight: 700; border-radius: 12px; }
.side-foot .btn:hover { background: #12b6dd; }
.side .avatar { background: rgba(255, 255, 255, .22); color: #fff; }
.topbar { background: transparent; backdrop-filter: none; border-bottom: 0; padding-top: 18px; }
.crumb { color: var(--muted); font-weight: 600; }
.icon-btn { background: #fff; border: 0; box-shadow: var(--shadow); width: 44px; height: 44px; border-radius: 50%; }
.icon-btn .badge { background: var(--accent); }
#main { gap: 1.25rem; }
h1 { color: var(--ink); }
.card { border: 0; box-shadow: var(--shadow); border-radius: var(--r); padding: 1.3rem 1.4rem; }
.card h3 { display: flex; align-items: center; gap: .6rem; }
.card h3::before { content: ''; width: 16px; height: 16px; flex: none; border-radius: 4px; background: var(--accent); }
.card.cta-card { background: linear-gradient(120deg, var(--cyan) 0%, var(--cyan-2) 100%); color: #fff; }
.card.cta-card h3::before { background: #fff; } .card.cta-card .eyebrow { color: #eafaff; } .card.cta-card .btn.primary { background: #fff; color: var(--accent); border-color: #fff; }
.btn { border-radius: 12px; border-color: var(--line); }
.btn.primary { background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 18px rgba(47, 85, 212, .28); }
.btn.primary:hover { background: #2648bd; }
.btn.ghost { background: #fff; }
input, select, textarea { border-radius: 12px; border-color: var(--line); background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.chip { border-radius: 8px; }
.kpi { border: 0; border-top: 0; border-radius: var(--r); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.kpi.ok::before { background: var(--ok); } .kpi.warn::before { background: var(--warn); } .kpi.crit::before { background: var(--crit); }
.kpi b { color: var(--ink); } .kpi.ok b { color: var(--ok); } .kpi.warn b { color: var(--warn); }
/* Banner sapaan beranda: gradasi cyan seperti kartu promosi */
.hello { background: linear-gradient(120deg, var(--cyan) 0%, var(--cyan-2) 100%); color: #fff; border-radius: 22px; padding: 1.6rem 1.8rem; box-shadow: 0 14px 30px rgba(30, 200, 240, .3); position: relative; overflow: hidden; }
.hello::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12); pointer-events: none; }
.hello h1 { color: #fff; } .hello .eyebrow { color: #e3f9ff; }
.hello .quote { background: rgba(255, 255, 255, .18); border-left-color: #fff; color: #fff; border-radius: 14px; position: relative; z-index: 1; }
.hello .quote cite { color: #e8faff; }
.result-hero { background: linear-gradient(120deg, #ffffff 0%, #f1f5ff 100%); }
.tile { border: 0; box-shadow: var(--shadow); }
.tile-ico { background: var(--accent-soft); color: var(--accent); border-radius: 12px; }
.tabs { border-bottom-color: var(--line); }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.chip-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.notice { border-radius: 14px; }
.table th { color: var(--muted); }
.chart .line { stroke: var(--accent); stroke-width: 3; } .chart .area { fill: var(--cyan); opacity: .12; } .chart .dot { stroke: var(--accent); } .chart .dot.end { fill: var(--cyan); stroke: #fff; stroke-width: 3; }
.kd { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 16px rgba(47, 85, 212, .06); }
.db-fill { background: var(--accent); }
.lk { background: #fff; } .lk.on { background: var(--accent); border-color: var(--accent); color: #fff; } .lk.on span { color: #e8eeff; }
.progress { background: var(--accent-soft); } .progress div { background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.modal-card { border-radius: 22px; }
.sos { box-shadow: 0 10px 26px rgba(239, 90, 111, .45), 0 0 0 6px rgba(239, 90, 111, .16); }
@media (max-width: 860px) {
  .layout { padding: 0; }
  .side { border-radius: 0 0 22px 22px; height: auto; top: 0; padding: 8px 12px; box-shadow: 0 8px 22px rgba(47, 85, 212, .25); }
  .nav { margin-top: 0; gap: 4px; } .nav a { border-radius: 12px; } .nav a.active::after { display: none; }
  .side-foot { background: none; padding: 0; }
  .hello { padding: 1.2rem; }
}
.side-foot .btn.ghost { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.side-foot .btn.ghost:hover { background: #12b6dd; }
.side-foot .me > span:last-child { min-width: 0; } .side-foot .me small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--side-muted); }
html { background: #e9ecfb; } body:not(.public) { min-height: 100vh; }
.parts-list { margin: .2rem 0 .9rem; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .92rem; }
details.explain { margin-top: .6rem; } details.explain summary { cursor: pointer; font-weight: 700; color: var(--accent); font-size: .9rem; }

/* ================= Interpretasi visual (kartu berwarna) ================= */
.iv { display: grid; gap: 1rem; }
.c-amber { --c: #f59e0b; --c-soft: #fff4dc; } .c-pink { --c: #ec4899; --c-soft: #fde7f3; } .c-violet { --c: #8b5cf6; --c-soft: #efe9ff; }
.c-teal { --c: #14b8a6; --c-soft: #dcf7f3; } .c-green { --c: #22c55e; --c-soft: #e2f8ea; } .c-blue { --c: #3b82f6; --c-soft: #e3eeff; }
.iv-hero { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.3rem 1.4rem; border-radius: 20px; background: linear-gradient(120deg, #e8fbff, #eef2ff); }
.iv-hero.ok { background: linear-gradient(120deg, #e3f9ee, #e8fbff); } .iv-hero.warn { background: linear-gradient(120deg, #fff4dc, #eef2ff); } .iv-hero.crit { background: linear-gradient(120deg, #fde8eb, #fff4dc); }
.iv-hero h2 { margin: .1rem 0 .3rem; font-size: 1.35rem; } .iv-hero p { margin: 0 0 .6rem; }
.iv-emoji { font-size: 3rem; line-height: 1; flex: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12)); }
.iv-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.iv-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; background: #fff; font-size: .82rem; font-weight: 600; box-shadow: 0 2px 6px rgba(47, 85, 212, .08); }
.iv-tag.good { color: #138a5e; } .iv-tag.need { color: #b4650b; }
.iv-h { display: flex; align-items: center; gap: .5rem; margin: .4rem 0 0; font-size: 1.05rem; }
.iv-h::before { display: none; }
.iv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .85rem; }
.iv-card { background: #fff; border-radius: 18px; padding: 1rem 1.05rem; border: 1px solid var(--line); border-top: 5px solid var(--c); display: grid; gap: .55rem; align-content: start; box-shadow: 0 6px 16px rgba(47, 85, 212, .05); }
.iv-card header { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.iv-card header b { flex: 1; min-width: 8rem; font-size: .98rem; }
.iv-ico { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; flex: none; border-radius: 12px; font-size: 1.25rem; background: var(--c-soft, var(--accent-soft)); }
.iv-status { font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.iv-status.ok { background: var(--ok-soft); color: #138a5e; } .iv-status.warn { background: var(--warn-soft); color: #a8600a; } .iv-status.crit { background: var(--crit-soft); color: #c23a50; }
.iv-meter { height: 8px; border-radius: 999px; background: var(--c-soft); overflow: hidden; } .iv-meter span { display: block; height: 100%; border-radius: 999px; background: var(--c); }
.iv-card p { margin: 0; font-size: .9rem; }
.iv-tip { display: flex; gap: .45rem; padding: .55rem .7rem; border-radius: 12px; background: var(--c-soft); font-size: .86rem !important; }
.iv-life { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .85rem; }
.iv-area { border-radius: 18px; padding: .95rem 1rem; background: var(--a-soft); border: 1px solid transparent; }
.iv-area header { display: flex; align-items: center; gap: .55rem; margin-bottom: .45rem; } .iv-area header b { font-size: .98rem; }
.iv-area .iv-ico { background: #fff; }
.iv-area ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.iv-area li { display: flex; gap: .45rem; font-size: .86rem; line-height: 1.45; background: rgba(255, 255, 255, .75); padding: .45rem .55rem; border-radius: 10px; }
.iv-area li span { flex: none; }
.a-sosial { --a-soft: #fde7f3; } .a-akademik { --a-soft: #e3eeff; } .a-karier { --a-soft: #fff4dc; } .a-teknologi { --a-soft: #e2f6fd; } .a-pribadi { --a-soft: #e2f8ea; }
.iv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; }
.iv-step { display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; box-shadow: 0 4px 12px rgba(47, 85, 212, .05); }
.iv-step:hover { border-color: var(--accent); }
.iv-n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; flex: none; }
.iv-step .iv-ico { width: 2rem; height: 2rem; font-size: 1.05rem; }
.iv-want { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .9rem; }
.iv-note { margin: 0; font-size: .82rem; color: var(--muted); background: var(--surface-2); padding: .65rem .8rem; border-radius: 12px; }
@media (max-width: 560px) { .iv-hero { flex-direction: column; gap: .6rem; padding: 1.1rem; } .iv-emoji { font-size: 2.4rem; } }
.iv-life { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
/* Refleksi kinerja konselor: bintang & raport */
.stars-pick { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.stars-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-pick label { font-size: 2rem; line-height: 1; color: #d6dbea; cursor: pointer; transition: color .1s, transform .1s; }
.stars-pick label:hover, .stars-pick label:hover ~ label, .stars-pick input:checked ~ label { color: #f5b301; }
.stars-pick input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.star-input { display: grid; gap: .25rem; }
.stars-view { color: #d6dbea; letter-spacing: .05em; white-space: nowrap; } .stars-view .on { color: #f5b301; }
.raport-grid { display: grid; gap: .5rem; }
.raport-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .55rem .75rem; border-radius: 12px; background: var(--surface-2); }
.ground-auto { grid-column: 1 / -1; display: flex; gap: .6rem; padding: .7rem .85rem; border-radius: 14px; background: var(--cyan-soft); border: 1px solid #bde9f7; }
.ground-auto > span { font-size: 1.4rem; } .ground-auto p { margin: .2rem 0 .45rem; }
