:root {
  --teal-900: #0B3B34;
  --teal-800: #0D4F45;
  --teal-700: #0F766E;
  --teal-600: #12968A;
  --teal-500: #14B8A6;
  --emerald: #10B981;
  --mint-50: #F1FAF6;
  --mint-100: #E4F6EE;
  --mint-200: #CDEFE2;
  --amber-100: #FEF3C7;
  --amber-600: #B45309;
  --rose-100: #FFE4E6;
  --rose-600: #BE123C;
  --ink: #12312B;
  --muted: #567A72;
  --line: rgba(15, 118, 110, .14);
  --card: #ffffff;
  --shadow: 0 12px 34px rgba(11, 59, 52, .10);
  --shadow-sm: 0 4px 14px rgba(11, 59, 52, .07);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  color: var(--ink);
  background: var(--mint-50);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(20, 184, 166, .18), transparent 42%),
    radial-gradient(circle at 92% 0%, rgba(16, 185, 129, .16), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(250, 204, 21, .10), transparent 45%);
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

img { max-width: 100%; }

a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; color: var(--teal-900); letter-spacing: -.01em; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
small { color: var(--muted); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px 96px;
}

.container-narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px) saturate(160%);
  background: rgba(241, 250, 246, .86);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 10px 18px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--teal-900); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--teal-600), var(--emerald));
  display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(16, 185, 129, .32);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav-main { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-link {
  padding: 9px 13px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--teal-800);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { background: rgba(20, 184, 166, .12); text-decoration: none; }
.nav-link.is-active { background: var(--teal-700); color: #fff; }
.nav-user { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-user .nama { font-size: .85rem; line-height: 1.2; }
.nav-user .nama small { display: block; }

.mobile-nav { display: none; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  min-height: 46px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--teal-700), var(--emerald)); color: #fff; box-shadow: 0 10px 22px rgba(16, 185, 129, .28); }
.btn-primary:hover { box-shadow: 0 14px 28px rgba(16, 185, 129, .34); }
.btn-secondary { background: #fff; color: var(--teal-800); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost { background: rgba(20, 184, 166, .10); color: var(--teal-800); }
.btn-danger { background: #fff; color: var(--rose-600); border-color: rgba(190, 18, 60, .28); }
.btn-sm { padding: 7px 13px; min-height: 36px; font-size: .82rem; border-radius: 10px; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; min-height: 56px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------------------------------------------------------------- Cards */
.card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card + .card { margin-top: 20px; }
.card-flat { box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-sub { color: var(--muted); font-size: .9rem; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1 1 auto; }

.section { margin-top: 36px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------------------------------------------------------------- Hero */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center;
  padding: 40px 0 8px;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 14px; }
.hero p.lead { font-size: 1.1rem; color: #2c4f47; max-width: 46ch; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, .14);
  color: var(--teal-800); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .82rem; margin-bottom: 18px;
}
.hero-visual {
  background: linear-gradient(160deg, #0F766E, #10B981);
  border-radius: 28px; padding: 24px; color: #fff; box-shadow: 0 24px 50px rgba(11, 59, 52, .22);
  position: relative; overflow: hidden;
}
.hero-visual::after {
  content: ''; position: absolute; inset: auto -30px -60px auto; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.hero-visual h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.spine-label {
  background: #fff; color: var(--teal-900); border-radius: 14px; padding: 18px 12px; text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16); width: 140px; margin: 0 auto;
  border-left: 6px solid var(--emerald);
}
.spine-label .sl-nomor { font-size: 1.4rem; font-weight: 800; letter-spacing: .02em; }
.spine-label .sl-kode { font-size: 1.05rem; font-weight: 700; color: var(--teal-700); }
.spine-label .sl-judul { font-size: .95rem; font-weight: 600; }

.feature-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(20, 184, 166, .18), rgba(16, 185, 129, .22));
  color: var(--teal-700); margin-bottom: 12px;
}
.feature-icon svg { width: 24px; height: 24px; }

.steps-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 18px; }
.steps-flow > div { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: .86rem; }
.steps-flow strong { display: block; color: var(--teal-700); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------------------------------------------------------------- Stats */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat .angka { font-size: 2rem; font-weight: 800; color: var(--teal-700); line-height: 1.1; }
.stat .label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stat .ket { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.progress { height: 10px; background: var(--mint-200); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-600), var(--emerald)); }

/* ---------------------------------------------------------------- Forms */
.field { margin-bottom: 16px; }
.label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--teal-900); }
.label .opt { font-weight: 500; color: var(--muted); font-size: .8rem; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(15, 118, 110, .22);
  background: #fff; font: inherit; color: var(--ink); min-height: 48px;
  transition: border .12s ease, box-shadow .12s ease;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(20, 184, 166, .16); }
.help { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal-600); }
.check strong { display: block; font-size: .95rem; }
.check small { display: block; font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin: 0 0 18px; }
legend { font-weight: 800; padding: 0 8px; color: var(--teal-800); }
.tooltip-term { border-bottom: 1px dotted var(--teal-600); cursor: help; position: relative; font-weight: 600; }
.tooltip-term:hover::after,
.tooltip-term.is-tip::after {
  content: attr(data-tip); position: absolute; left: 0; top: 130%; z-index: 20;
  background: var(--teal-900); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: .78rem;
  font-weight: 400; width: 260px; line-height: 1.4; box-shadow: 0 10px 24px rgba(0,0,0,.2);
}

/* ---------------------------------------------------------------- Alerts */
.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; border: 1px solid transparent; font-size: .92rem; }
.alert-ok { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.alert-err { background: #FFF1F2; border-color: #FECDD3; color: #9F1239; }
.alert-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E3A8A; }
.alert-warn { background: var(--amber-100); border-color: #FDE68A; color: var(--amber-600); }
.alert strong { display: block; margin-bottom: 2px; }

.note {
  background: rgba(254, 243, 199, .6); border-left: 4px solid #F59E0B; padding: 12px 16px;
  border-radius: 0 12px 12px 0; font-size: .9rem; margin: 16px 0;
}

/* ---------------------------------------------------------------- Steps */
.stepbar { display: flex; gap: 6px; margin: 8px 0 24px; overflow-x: auto; padding-bottom: 4px; }
.stepbar .step {
  flex: 1 0 auto; min-width: 118px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; font-size: .78rem; color: var(--muted); display: flex; gap: 8px; align-items: center;
}
.stepbar .step b {
  width: 22px; height: 22px; border-radius: 50%; background: var(--mint-200); color: var(--teal-800);
  display: grid; place-items: center; font-size: .75rem; flex: 0 0 auto;
}
.stepbar .step.is-active { border-color: var(--teal-500); background: #fff; color: var(--teal-900); box-shadow: 0 6px 16px rgba(20,184,166,.16); }
.stepbar .step.is-active b { background: var(--teal-700); color: #fff; }
.stepbar .step.is-done b { background: var(--emerald); color: #fff; }

/* ---------------------------------------------------------------- Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #F6FCF9; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 800; }
tr:last-child td { border-bottom: none; }
td .sub { display: block; font-size: .78rem; color: var(--muted); }

/* ---------------------------------------------------------------- Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .01em; }
.badge-tinggi { background: #D1FAE5; color: #065F46; }
.badge-sedang { background: #FEF3C7; color: #92400E; }
.badge-rendah { background: #FFE4E6; color: #9F1239; }
.badge-draft { background: #E5E7EB; color: #374151; }
.badge-dianalisis { background: #DBEAFE; color: #1D4ED8; }
.badge-dikonfirmasi { background: #D1FAE5; color: #065F46; }
.badge-perlu { background: #FEF3C7; color: #92400E; }
.badge-netral { background: var(--mint-100); color: var(--teal-800); }

/* ---------------------------------------------------------------- Usulan */
.usulan-list { display: flex; flex-direction: column; gap: 16px; }
.usulan {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff;
  transition: border .12s ease, box-shadow .12s ease;
}
.usulan:hover { border-color: rgba(20, 184, 166, .5); }
.usulan.is-pilih { border-color: var(--teal-600); box-shadow: 0 10px 26px rgba(20, 184, 166, .18); background: #FCFFFE; }
.usulan-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.usulan-nomor {
  font-size: 1.7rem; font-weight: 800; color: var(--teal-700); min-width: 86px;
  font-variant-numeric: tabular-nums;
}
.usulan-ket { font-weight: 700; }
.usulan-alasan { font-size: .9rem; color: #2f534b; margin-top: 10px; }
.usulan-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.usulan-pilih { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.usulan-pilih input[type=radio] { width: 20px; height: 20px; accent-color: var(--teal-600); }
details.belajar { margin-top: 12px; background: #F7FCFA; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
details.belajar summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--teal-800); }
details.belajar ol { margin: 10px 0 4px; font-size: .88rem; color: #2f534b; }
details.belajar li { margin-bottom: 6px; }

/* ---------------------------------------------------------------- Kopi kolom */
.copy-row { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.copy-row + .copy-row { margin-top: 12px; }
.copy-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.copy-label { font-weight: 800; }
.copy-label .kolom { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-left: 6px; }
.copy-value {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; background: #F8FCFA; border: 1px dashed rgba(15,118,110,.3);
  border-radius: 10px; padding: 10px 12px; font-size: .95rem; word-break: break-word;
}
.copy-value .isi { flex: 1; font-weight: 600; color: var(--teal-900); }
.copy-value .kosong { color: var(--muted); font-weight: 500; font-style: italic; }
.bantuan { font-size: .84rem; color: #31574f; margin-top: 10px; }
.bantuan b { color: var(--teal-800); }
.kesalahan { font-size: .82rem; color: var(--rose-600); margin-top: 6px; }

/* ---------------------------------------------------------------- Foto */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.photo-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.photo-item img { width: 100%; height: 130px; object-fit: cover; display: block; background: var(--mint-100); }
.photo-item .photo-meta { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.photo-item .photo-meta small { font-size: .74rem; }
.photo-item .select { min-height: 34px; padding: 5px 8px; font-size: .78rem; border-radius: 8px; }

/* ---------------------------------------------------------------- Label */
.label-preview {
  width: 180px; border: 2px dashed rgba(15, 118, 110, .4); border-radius: 12px; padding: 18px 10px;
  text-align: center; background: #fff;
}
.label-preview .lp-1 { font-size: 1.5rem; font-weight: 800; color: var(--teal-900); }
.label-preview .lp-2, .label-preview .lp-3 { font-size: 1.15rem; font-weight: 700; color: var(--teal-700); }
.label-preview .lp-judul { font-size: .68rem; color: var(--muted); margin-top: 8px; }

.print-sheet { display: grid; gap: 4mm; margin-top: 20px; }
.print-sheet .label-cell { border: 1px dashed #9AB8B0; border-radius: 4px; padding: 3mm; text-align: center; min-height: 26mm; display: flex; flex-direction: column; justify-content: center; }
.print-sheet .lc-1 { font-size: 1.15rem; font-weight: 800; }
.print-sheet .lc-2, .print-sheet .lc-3 { font-size: .95rem; font-weight: 700; color: #0F766E; }
.print-sheet .lc-judul { font-size: .55rem; color: #467; margin-top: 2mm; }

/* ---------------------------------------------------------------- Misc */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .88rem; color: var(--teal-800); }
.tab.is-active { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.tab:hover { text-decoration: none; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big { font-size: 2.4rem; margin-bottom: 8px; }

.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-clean li:last-child { border-bottom: none; }

.kartu-koleksi { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.kartu-koleksi:hover { text-decoration: none; border-color: var(--teal-500); }
.kartu-koleksi .nomor { font-weight: 800; color: var(--teal-700); font-size: 1.05rem; min-width: 66px; }
.kartu-koleksi .judul { font-weight: 700; color: var(--teal-900); }
.kartu-koleksi .meta { font-size: .8rem; color: var(--muted); }

.sekolah-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--mint-100); color: var(--teal-800); padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }

.footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 24px 0 40px; }

.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--mint-100); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: .85em; }

/* ------------------------------------------------ Mode salin–tempel Gemini */
.gemini-panel {
  border: 1.5px solid rgba(20, 184, 166, .35);
  background: linear-gradient(180deg, rgba(240, 253, 250, .92), rgba(255, 255, 255, .96));
}
.gemini-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
}
.gemini-step:first-of-type { border-top: none; }
.gemini-step-no {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--teal-700), var(--emerald));
  color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: 0 6px 14px rgba(16, 185, 129, .28);
}
.gemini-step-body { flex: 1; min-width: 0; }
.gemini-step-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.gemini-step-body .btn-row { margin-top: 4px; }

.inline-details summary {
  cursor: pointer; font-weight: 700; font-size: .86rem; color: var(--teal-800);
  padding: 11px 16px; border-radius: 999px; background: rgba(20,184,166,.10);
  list-style: none; display: inline-block;
}
.inline-details summary::-webkit-details-marker { display: none; }
.inline-details[open] summary { background: rgba(20,184,166,.2); }
/* saat dibuka, pratinjau memakai lebar penuh (bukan selebar tombol) */
.inline-details[open] { flex: 1 1 100%; display: block; width: 100%; }

.prompt-preview {
  margin-top: 12px;
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  line-height: 1.55;
  background: #F7FCFA;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: #23443d;
  width: 100%;
}
.prompt-fallback {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .76rem;
  line-height: 1.5;
  background: #fff;
  min-height: 92px;
}
.prompt-fallback.is-sorot { box-shadow: 0 0 0 4px rgba(20,184,166,.28); border-color: var(--teal-500); }
.photo-unduh {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(20, 184, 166, .08);
  border: 1px solid var(--line);
}
.panel-mode {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: var(--mint-100); border-radius: 12px; padding: 10px 14px; font-size: .86rem;
  margin-bottom: 16px;
}
.panel-mode strong { color: var(--teal-800); }

/* ------------------------------------------------- Panduan impor SLiMS */
.langkah-impor { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 10px; }
.langkah-impor li { padding-left: 4px; line-height: 1.6; }
.langkah-impor li::marker { font-weight: 800; color: var(--teal-700); }
.kode-eksemplar-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.kode-eksemplar-list .kbd { font-size: .85rem; }
#panduan-impor.is-sorot { box-shadow: 0 0 0 4px rgba(20, 184, 166, .35); transition: box-shadow .25s ease; }


.modal { position: fixed; inset: 0; background: rgba(6, 40, 34, .55); display: none; place-items: center; z-index: 80; padding: 18px; }
.modal.is-open { display: grid; }
.modal-box { background: #fff; border-radius: 20px; padding: 20px; max-width: 460px; width: 100%; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.modal-box video { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 4/3; object-fit: cover; }

.auth-wrap { max-width: 480px; margin: 32px auto; }
.auth-hero { text-align: center; margin-bottom: 22px; }
.dua-kolom { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; }

/* ---------------------------------------------------------------- Responsif */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-visual { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dua-kolom { grid-template-columns: 1fr; }
  .steps-flow { grid-template-columns: repeat(2, 1fr); }
  .nav-main .nav-link { display: none; }
  .nav-main .nav-link.nav-cta { display: inline-flex; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 14px 108px; }
  h1 { font-size: 1.6rem; }
  .card { padding: 18px; border-radius: 16px; }
  .grid-2, .grid-3, .grid-4, .field-row, .field-row-3 { grid-template-columns: 1fr; }
  /* grid dengan kolom yang ditulis inline (mis. 1.2fr .8fr) tetap satu kolom di HP */
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .btn-row .btn { flex: 1 1 auto; }
  .btn-lg { width: 100%; }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(11, 59, 52, .08);
  }
  .mobile-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: .66rem; font-weight: 700; color: var(--muted); padding: 6px 2px; border-radius: 10px; text-align: center;
  }
  .mobile-nav a svg { width: 21px; height: 21px; }
  .mobile-nav a.is-active { color: var(--teal-700); background: rgba(20, 184, 166, .1); }
  .mobile-nav a:hover { text-decoration: none; }
  .header-inner { padding: 8px 14px; }
  .nav-user .nama { display: none; }
  .stepbar .step { min-width: 92px; font-size: .7rem; }
  .stepbar .step span.txt { display: none; }
  .stepbar .step.is-active span.txt { display: inline; }
  .usulan-top { gap: 8px; }
  .usulan-nomor { font-size: 1.4rem; min-width: 66px; }
  .label-preview { width: 100%; }
  .stat .angka { font-size: 1.6rem; }
}

@media print {
  .site-header, .mobile-nav, .no-print, .footer, .stepbar { display: none !important; }
  body { background: #fff !important; }
  .container { padding: 0 !important; max-width: none; }
  .card { box-shadow: none; border: none; padding: 0; background: #fff; }
  @page { size: A4; margin: 8mm; }
  .print-sheet { gap: 2mm; }
  .print-sheet .label-cell { break-inside: avoid; border: 1px dashed #bbb; }
}
