/* ─────────────────────────────────────────────
   Survei Rapor Pendidikan — sistem visual
   Palet: kertas gading, biru tinta sekolah, emas tua.
   ───────────────────────────────────────────── */

:root {
  --ivory: #F6F2E8;
  --paper: #FFFDF8;
  --ink: #14202B;
  --muted: #4E5A65;
  --faint: #5C6874;
  --navy: #0E2C4A;
  --navy-deep: #082036;
  --navy-soft: #1B4468;
  --gold: #B58A2E;
  --gold-ink: #7A5916;
  --gold-light: #E6CF9C;
  --line: #DED6C6;
  --line-soft: #ECE6D9;
  --danger: #A33B2B;
  --ok: #2F6B4F;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(10, 28, 46, .05), 0 8px 24px -18px rgba(10, 28, 46, .35);
  --shadow-md: 0 2px 4px rgba(10, 28, 46, .04), 0 24px 48px -32px rgba(10, 28, 46, .45);
  --ease: cubic-bezier(.22, .68, .26, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold-light); color: var(--navy-deep); }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.018em; }
p { margin: 0; }
button { font: inherit; color: inherit; }

/* Tekstur kertas halus */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ── Kop resmi sekolah ── */
.letterhead {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 34px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.school { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.crest { width: 48px; height: 48px; flex: none; }
.school-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.school-text strong { font-size: 13.5px; font-weight: 700; letter-spacing: .01em; color: var(--navy); }
.school-text span { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.letterhead-right { display: flex; align-items: center; gap: 22px; flex: none; }
.host { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.host svg { width: 13px; height: 13px; color: var(--gold-ink); }
.head-link {
  font-size: 11.5px; color: var(--muted); text-decoration: none;
  padding-bottom: 1px; border-bottom: 1px solid transparent;
}
.head-link:hover { color: var(--navy); border-color: var(--navy); }
.head-link.is-active { color: var(--navy); border-color: var(--gold); }
.privacy-link {
  font-size: 11.5px; color: var(--muted); text-decoration: none;
  padding-bottom: 1px; border-bottom: 1px solid rgba(14, 44, 74, .22);
}
.privacy-link:hover { color: var(--navy); border-color: var(--navy); }
.mobile-progress { display: none; }

/* ── Kerangka ── */
.shell {
  display: grid;
  grid-template-columns: 392px minmax(0, 1fr);
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
}

/* ── Panel kiri ── */
.rail {
  position: relative;
  overflow-y: auto;
  background: var(--navy);
  color: #EDE9DE;
  isolation: isolate;
}
.rail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(181, 138, 46, .16), transparent 58%),
    radial-gradient(90% 70% at -20% 110%, rgba(27, 68, 104, .9), transparent 60%);
}
.rail::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(228, 205, 155, .28) 22%, rgba(228, 205, 155, .12) 80%, transparent);
}

.rail-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: 100%;
  padding: 32px 34px 26px;
}

.rail-eyebrow {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: .85;
  margin-bottom: 14px;
}
.rail h1 {
  font-size: 40px;
  line-height: 1.03;
  color: #FBF7EC;
  margin-bottom: 16px;
}
.rail h1 em { font-style: italic; color: var(--gold-light); }
.rail-lead {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(239, 233, 217, .62);
  max-width: 26ch;
}

/* Navigasi tahap */
.steps { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.step-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 8px 10px 8px 0;
  border: 0;
  background: none;
  text-align: left;
  color: rgba(239, 233, 217, .58);
  cursor: default;
  border-radius: 8px;
  transition: color .25s var(--ease);
}
.step-item .num {
  font-size: 10.5px;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  color: rgba(239, 233, 217, .46);
  transition: color .25s var(--ease);
}
.step-item .lbl { font-size: 13px; letter-spacing: .01em; }
.step-item.is-done { color: rgba(239, 233, 217, .78); cursor: pointer; }
.step-item.is-done .num { color: rgba(228, 205, 155, .8); }
.step-item.is-done:hover { color: #FBF7EC; }
.step-item.is-current { color: #FBF7EC; }
.step-item.is-current .num { color: var(--gold-light); }
.step-item.is-current .lbl { font-weight: 600; }
.step-item.is-current::after {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  margin-top: 7px;
  background: linear-gradient(to right, var(--gold), rgba(185, 144, 47, .1));
  transform-origin: left;
  animation: rule .5s var(--ease) both;
}
@keyframes rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.rail-quote {
  margin: auto 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(230, 207, 156, .18);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(237, 233, 222, .78);
  max-width: 26ch;
  text-wrap: balance;
}
.rail-foot { margin-top: 24px; padding-top: 0; border-top: 0; }
.draft-state {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: rgba(239, 233, 217, .62);
  min-height: 18px;
}
.draft-state .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-light); opacity: .7;
  transition: opacity .3s var(--ease);
}
.draft-state.is-saving .dot { opacity: .25; }
.rail-meta { margin-top: 8px; font-size: 10.5px; letter-spacing: .06em; color: rgba(239, 233, 217, .46); }

/* ── Panggung kanan ── */
.stage {
  position: relative;
  overflow-y: auto;
  background:
    radial-gradient(100% 60% at 50% -10%, #FBF8F0 0%, rgba(251, 248, 240, 0) 60%),
    var(--ivory);
  scroll-behavior: smooth;
}
.stage-progress {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 2px;
  background: rgba(223, 215, 198, .5);
}
.stage-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--gold), #D8B968);
  transition: width .6s var(--ease);
}
.stage-scroll { outline: none; }

.stage-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 56px 34px;
  min-height: calc(100dvh - 74px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stage-inner.is-form { justify-content: flex-start; }

/* ── Layar pembuka ── */
.welcome { display: flex; flex-direction: column; max-width: 660px; }
.eyebrow {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 600;
}
.welcome .eyebrow { margin-bottom: 18px; }
.display {
  text-wrap: balance;
  font-size: clamp(2.2rem, 4vw, 3.15rem);
  line-height: 1.03;
  letter-spacing: -.028em;
  margin-bottom: 20px;
}
.display em { font-style: italic; color: var(--navy-soft); }
.welcome-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
}
.welcome-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.welcome-meta div {
  padding: 13px 18px 13px 0;
  border-right: 1px solid var(--line-soft);
}
.welcome-meta div:last-child { border-right: 0; padding-right: 0; }
.welcome-meta span { display: block; font-family: var(--serif); font-size: 17.5px; line-height: 1.3; color: var(--navy); }
.welcome-meta small { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.welcome-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.welcome-fine { font-size: 12px; color: var(--faint); margin-top: 16px; max-width: 46ch; line-height: 1.6; }
#count-line { display: block; margin-top: 4px; color: var(--gold-ink); font-weight: 500; }

/* Agenda */
.agenda { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.agenda-label {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; margin-bottom: 14px;
}
.agenda-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px;
}
.agenda-list li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.45; color: #34413A; }
.agenda-list b { font-weight: 400; font-size: 12px; color: var(--gold); line-height: 1.4; }

.resume-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 22px;
  background: #FBF5E6;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #6B5320;
}
.resume-bar.show { display: flex; animation: rise .4s var(--ease) both; }
.resume-bar button {
  border: 0; background: none; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--navy);
  text-decoration: underline; text-underline-offset: 3px;
  padding: 4px;
  flex: none;
}

/* ── Formulir ── */
.step-head { margin-bottom: 34px; }
.step-head .eyebrow { margin-bottom: 14px; }
.step-head h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.1; margin-bottom: 14px; }
.step-head .lead { font-size: 14.5px; line-height: 1.7; color: var(--muted); max-width: 58ch; }

.fields { display: flex; flex-direction: column; gap: 34px; }

.field { animation: rise .45s var(--ease) both; }
.field:nth-child(2) { animation-delay: .04s; }
.field:nth-child(3) { animation-delay: .08s; }
.field:nth-child(4) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.field-label {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ink);
  margin-bottom: 5px;
}
.field-label .req { color: var(--gold); font-size: 15px; line-height: 1; }
.field-hint { font-size: 12.5px; color: var(--faint); line-height: 1.55; margin-bottom: 12px; }
.field-body { position: relative; }

/* Teks */
.input, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.input::placeholder, .textarea::placeholder { color: #A9AFA7; }
.input:hover, .textarea:hover { border-color: #CEC4AE; }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px rgba(27, 68, 104, .1);
}
.textarea { line-height: 1.65; resize: vertical; min-height: 96px; }
.input { height: 50px; }
.counter {
  position: absolute; right: 4px; bottom: -20px;
  font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums;
}
.field-foot { min-height: 20px; padding-top: 6px; }
.error-msg {
  display: none;
  align-items: center; gap: 6px;
  font-size: 12px; color: var(--danger); line-height: 1.4;
}
.field.has-error .error-msg { display: flex; }
.field.has-error .input,
.field.has-error .textarea { border-color: rgba(163, 59, 43, .55); }
.field.has-error .chips-wrap,
.field.has-error .choice-grid,
.field.has-error .scale,
.field.has-error .slider-box { outline: 1px solid rgba(163, 59, 43, .28); outline-offset: 4px; border-radius: var(--radius-sm); }

/* Pilihan kartu */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 10px; }
.choice {
  position: relative;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.choice:hover { border-color: #C9BE9F; transform: translateY(-1px); }
.choice .mark {
  width: 18px; height: 18px; flex: none; margin-top: 2px;
  border: 1.5px solid #C6BDA9; border-radius: 50%;
  display: grid; place-items: center;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.choice .mark::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-light); transform: scale(0);
  transition: transform .18s var(--ease);
}
.choice .txt { display: flex; flex-direction: column; gap: 2px; }
.choice .txt strong { font-size: 13.8px; font-weight: 600; line-height: 1.4; }
.choice .txt span { font-size: 11.8px; color: var(--faint); line-height: 1.45; }
.choice[aria-checked="true"] {
  border-color: var(--navy);
  background: #F3F7F3;
  box-shadow: 0 0 0 1px var(--navy), var(--shadow-sm);
}
.choice[aria-checked="true"] .mark { border-color: var(--navy); background: var(--navy); }
.choice[aria-checked="true"] .mark::after { transform: scale(1); }
.choice:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Chip */
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  color: #3B463F;
  cursor: pointer;
  transition: all .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.chip .tick { width: 0; opacity: 0; margin-left: -2px; transition: all .18s var(--ease); font-size: 11px; }
.chip:hover { border-color: #C9BE9F; }
.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #FBF7EC;
  box-shadow: 0 6px 18px -10px rgba(14, 44, 74, .7);
}
.chip[aria-pressed="true"] .tick { width: 12px; opacity: 1; margin-left: 0; }
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip-count { font-size: 11px; color: var(--faint); margin-top: 8px; text-align: right; font-variant-numeric: tabular-nums; }
.chip-count.is-max { color: var(--gold-ink); font-weight: 600; }
.field.has-error .chip-count { color: var(--danger); }

/* Skala Likert */
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale-btn {
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 15px;
  font-weight: 500;
  color: #4A544C;
  cursor: pointer;
  transition: all .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.scale-btn:hover { border-color: #C9BE9F; transform: translateY(-1px); }
.scale-btn[aria-checked="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #FBF7EC;
  box-shadow: 0 8px 20px -12px rgba(14, 44, 74, .8);
}
.scale-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.scale-ends {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 8px; font-size: 11.5px; color: #4A5A66;
}
.scale-ends span:last-child { text-align: right; }

/* Grid pernyataan */
.grid-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line-soft); }
.grid-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 22px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.grid-row .stmt { font-size: 13.2px; line-height: 1.5; color: #34413A; }
.grid-row .likert { gap: 5px; }
.grid-row .scale-btn { height: 40px; font-size: 13px; border-radius: 9px; }
.grid-row.has-error .likert { outline: 1px solid rgba(163, 59, 43, .3); outline-offset: 3px; border-radius: 10px; }

/* Slider */
.slider-box { padding: 4px 1px 2px; }
.slider-value {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--navy);
  margin-bottom: 14px;
}
.slider-value small { font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--navy) 0%, var(--navy) var(--pct, 60%), #E4DCCB var(--pct, 60%), #E4DCCB 100%);
  outline: none; margin: 10px 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--navy);
  box-shadow: 0 4px 14px -4px rgba(16, 56, 43, .5);
  cursor: grab;
  transition: transform .15s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.08); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--navy); cursor: grab;
}
input[type="range"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.slider-box .scale-ends { margin-top: 10px; }

/* Konsen */
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.consent:hover { border-color: #C9BE9F; }
.consent[aria-checked="true"] { border-color: var(--navy); background: #F3F7F3; }
.consent .box {
  width: 18px; height: 18px; flex: none; margin-top: 1px;
  border: 1.5px solid #C6BDA9; border-radius: 5px;
  display: grid; place-items: center;
  font-size: 11px; color: transparent;
  transition: all .18s var(--ease);
}
.consent[aria-checked="true"] .box { background: var(--navy); border-color: var(--navy); color: #FBF7EC; }
.consent .txt { font-size: 13px; line-height: 1.55; color: #3B463F; }
.consent:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Navigasi bawah */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: sticky; bottom: 0; z-index: 6;
  margin-top: 38px; padding: 16px 0 12px;
  border-top: 1px solid var(--line);
  background: var(--ivory);
}
.nav::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -26px; height: 26px;
  background: linear-gradient(to bottom, rgba(245, 241, 231, 0), var(--ivory));
  pointer-events: none;
}
.nav .nav-hint { font-size: 11.5px; color: var(--faint); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary {
  background: var(--navy);
  color: #FBF7EC;
  box-shadow: 0 8px 22px -18px rgba(14, 44, 74, .7);
}
.btn-primary:hover { background: var(--navy-soft); transform: translateY(-1px); }
.btn-primary:hover svg { transform: translateX(2px); }
.btn-primary:disabled { opacity: .55; cursor: default; transform: none; }
.btn-ghost {
  background: transparent; color: var(--muted); border-color: transparent;
  padding: 0 14px;
}
.btn-ghost:hover { color: var(--navy); background: rgba(14, 44, 74, .05); }
.btn-outline { background: var(--paper); border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 14px; }

/* Tinjau */
.review { display: flex; flex-direction: column; gap: 14px; }
.review-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .75);
  overflow: hidden;
}
.review-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(245, 241, 231, .5);
}
.review-head h3 { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.review-head button {
  border: 0; background: none; cursor: pointer;
  font-size: 11.5px; font-weight: 600; color: var(--gold);
  padding: 2px 4px;
}
.review-head button:hover { text-decoration: underline; text-underline-offset: 3px; }
.review-body { padding: 8px 20px 14px; }
.review-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
}
.review-row:last-child { border-bottom: 0; }
.review-row dt { font-size: 12px; color: var(--faint); line-height: 1.5; }
.review-row dd { margin: 0; font-size: 13.2px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.review-row dd.muted { color: var(--faint); font-style: italic; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 26px;
  transform: translate(-50%, 14px);
  z-index: 80;
  background: var(--navy-deep);
  color: #FBF7EC;
  font-size: 12.5px;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Terima kasih */
.thanks { text-align: center; max-width: 520px; margin: 0 auto; padding: 20px 0; animation: rise .6s var(--ease) both; }
.thanks .check {
  width: 64px; height: 64px; margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--navy);
  display: grid; place-items: center;
  box-shadow: 0 16px 36px -18px rgba(14, 44, 74, .9);
}
.thanks .check svg { width: 28px; height: 28px; }
.thanks .check path {
  stroke: var(--gold-light); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 36; stroke-dashoffset: 36;
  animation: draw .6s var(--ease) .25s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 14px; }
.thanks p { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.thanks .ticket {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 26px 0 8px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); font-size: 12px; color: var(--muted);
}
.thanks .ticket b { font-family: var(--serif); font-size: 17px; color: var(--navy); font-weight: 500; }
.thanks .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.thanks .fine { font-size: 11.5px; color: var(--faint); margin-top: 24px; }



/* ── Konteks Rapor 2025 di langkah 02 ── */
.rapor-context {
  margin: 0 0 30px;
  padding: 18px 20px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.rc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
}
.rc-kicker {
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); font-weight: 600;
}
.rc-head a {
  font-size: 11px; color: var(--gold-ink); text-decoration: none;
  border-bottom: 1px solid rgba(122, 89, 22, .3);
}
.rc-head a:hover { border-color: var(--gold-ink); }
.rc-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-top: 14px;
}
.rc-grid div { display: flex; flex-direction: column; gap: 2px; }
.rc-grid span { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.rc-grid b {
  font-family: var(--serif); font-weight: 400; font-size: 24px;
  line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums;
}
.rc-grid b small { font-size: 12px; color: var(--muted); margin-left: 1px; }
.rc-grid em {
  font-style: normal; font-size: 9.5px; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 600;
}
.rc-grid em.is-sedang { color: var(--gold-ink); }
.rc-grid em.is-baik { color: var(--ok); }
.rc-note {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 11px; line-height: 1.55; color: var(--faint);
}
.rc-note strong { color: var(--muted); font-weight: 600; }

@media (max-width: 640px) {
  .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .rapor-context { padding: 16px; margin-bottom: 26px; }
}

/* ── Lapisan resmi & kepercayaan ── */
.official {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.official .seal {
  width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold-light);
  font-size: 9px; line-height: 1;
}
.trust {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 14px; max-width: 54ch;
  font-size: 11.5px; line-height: 1.55; color: var(--faint);
}
.trust svg { width: 13px; height: 13px; flex: none; margin-top: 3px; color: var(--gold-ink); }
.trust a { color: var(--gold-ink); text-decoration: none; border-bottom: 1px solid rgba(131, 96, 26, .35); }
.trust a:hover { border-color: var(--gold-ink); }
.site-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px;
  margin-top: 32px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted);
}
.site-foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid rgba(14, 44, 74, .18); }
.site-foot a:hover { color: var(--navy); }
.site-foot .sep { opacity: .45; }

/* ── Halaman kebijakan privasi ── */
.privacy-shell { max-width: 720px; margin: 0 auto; padding: 54px 28px 80px; }
.privacy-shell h1 { font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.1; margin: 12px 0 16px; text-wrap: balance; }
.privacy-shell .lead { font-size: 15px; line-height: 1.75; color: var(--muted); }
.privacy-body { margin-top: 12px; }
.privacy-body h2 { font-size: 19px; margin: 30px 0 8px; color: var(--navy); }
.privacy-body p, .privacy-body li { font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.privacy-body p + p { margin-top: 10px; }
.privacy-body ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.privacy-body strong { color: var(--ink); font-weight: 600; }
.privacy-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }

/* Bar seluler */
.noscript { padding: 40px; text-align: center; font-family: var(--sans); }

/* ── Responsif ── */
@media (max-width: 1080px) {
  .shell { display: block; height: auto; }
  .rail { display: none; }
  .grain { display: none; }
  .letterhead {
    position: sticky; top: 0; z-index: 40;
    height: 62px; padding: 0 18px;
  }
  .crest { width: 32px; height: 32px; }
  .school { gap: 9px; }
  .school-text strong { font-size: 12px; }
  .school-text span { font-size: 8.5px; letter-spacing: .1em; }
  .host { display: none; }
  .privacy-link { font-size: 11px; }
  .letterhead-right { gap: 14px; }
  .mobile-progress {
    display: block; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; background: var(--line-soft);
  }
  .mobile-progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .5s var(--ease); }
  .stage { overflow: visible; background: var(--ivory); }
  .stage-progress { display: none; }
  .stage-inner { padding: 30px 22px 30px; min-height: calc(100dvh - 64px); justify-content: flex-start; }
  .crest { width: 34px; height: 34px; }
  .welcome-meta { grid-template-columns: repeat(3, 1fr); }
  .welcome-meta div { padding-right: 12px; }
  .welcome-meta span { font-size: 15.5px; }
  .welcome-meta small { font-size: 9.5px; letter-spacing: .08em; }
  .agenda-list { grid-template-columns: 1fr; gap: 9px; }
  .welcome-actions .btn-primary { width: 100%; justify-content: center; }
  .site-foot { margin-top: 26px; }
  .display { font-size: clamp(2rem, 7.4vw, 2.8rem); }
  .welcome-meta div { padding-right: 18px; margin-right: 18px; }
  .welcome-meta span { font-size: 15.5px; }
  .nav { padding: 16px 0 max(10px, env(safe-area-inset-bottom)); margin-top: 32px; }
  .nav .nav-hint { display: none; }
  .nav-right { width: 100%; justify-content: space-between; }
  .nav-right .btn-primary { flex: 1; }
  .btn { height: 50px; }
  .grid-row { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
  .grid-row .scale-btn { height: 44px; }
  .review-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 520px) {
  .choice-grid { grid-template-columns: 1fr; }
  .welcome-meta { grid-template-columns: 1fr 1fr; }
  .welcome-meta div { padding: 10px 12px 10px 0; }
  .welcome-meta div:nth-child(2) { border-right: 0; padding-right: 0; }
  .welcome-meta div:nth-child(3) { grid-column: 1 / -1; border-right: 0; padding-right: 0; border-top: 1px solid var(--line-soft); }
  .agenda-list { grid-template-columns: 1fr; }
  .stage-inner { padding: 28px 18px 26px; }
  .chip { font-size: 12.5px; padding: 7px 13px; }
  .review-body { padding: 6px 16px 12px; }
  .review-head { padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Pilihan pegawai */
.select {
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235A6660' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.picked {
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}
.picked b { color: var(--ink); font-weight: 600; }
.picked.is-ok { color: var(--ok); }
