/* POSYANDU UNGGUL — application styles (no build step required). */
:root {
  --green-900: #14532D; --green-800: #166534; --green-700: #15803D; --green-600: #16A34A; --green-500: #22C55E;
  --green-100: #DCFCE7; --green-50: #F0FDF4;
  --gray-900: #111827; --gray-700: #374151; --gray-600: #4B5563; --gray-500: #6B7280; --gray-400: #9CA3AF;
  --gray-300: #D1D5DB; --gray-200: #E5E7EB; --gray-100: #F3F4F6; --gray-50: #F9FAFB; --bg: #F8FAFB;
  --red: #DC2626; --red-bg: #FEE2E2; --orange: #EA580C; --orange-bg: #FFEDD5; --amber: #D97706; --amber-bg: #FEF3C7;
  --blue: #2563EB; --blue-bg: #DBEAFE; --purple: #7C3AED;
  --radius: 16px; --shadow: 0 1px 4px rgba(0,0,0,.06);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--gray-900); font-size: 14px; line-height: 1.5; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
textarea { resize: vertical; }
[x-cloak] { display: none !important; }
::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-thumb { background: #BBF7D0; border-radius: 99px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Layout ─────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 248px; background: linear-gradient(180deg, var(--green-900), var(--green-800)); color: #fff; display: flex; flex-direction: column; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 50; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 14px; color: #fff; }
.sidebar .brand:hover { text-decoration: none; }
.brand-logo { width: 38px; height: 38px; background: rgba(255,255,255,.18); border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 12px; letter-spacing: .3px; }
.brand-sub { font-size: 10px; color: rgba(255,255,255,.5); }
.nav { padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255,255,255,.1); }
.nav-section { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: 1px; padding: 12px 10px 4px; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: rgba(255,255,255,.72); font-size: 13px; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav a.active { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; }
.nav svg { flex-shrink: 0; }
.nav .count { margin-left: auto; background: var(--amber); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 800; padding: 1px 7px; }
.userbox { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.12); display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; background: linear-gradient(135deg, var(--green-500), var(--green-600)); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; font-size: 14px; color: #fff; }
.userbox .who { flex: 1; min-width: 0; }
.userbox .who a { color: #fff; font-weight: 600; font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userbox .who span { font-size: 10px; color: rgba(255,255,255,.55); }
.userbox button { background: rgba(255,255,255,.1); border: none; border-radius: 7px; padding: 5px 9px; cursor: pointer; color: rgba(255,255,255,.75); font-size: 11px; }
.userbox button:hover { background: rgba(255,255,255,.2); color: #fff; }
.main { flex: 1; min-width: 0; }
.topbar { display: none; }
.page { padding: 32px; max-width: 1280px; }
.page-narrow { max-width: 720px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.page-header h1 { font-size: 24px; font-weight: 800; line-height: 1.25; }
.page-header p { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.crumbs { font-size: 12px; color: var(--gray-400); margin-bottom: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--gray-400); }
.backlink { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-500); font-weight: 600; margin-bottom: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── Grid & cards ───────────────────────────────────── */
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: 280px minmax(0, 1fr); }
.mb { margin-bottom: 20px; }
.mt { margin-top: 20px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-100); padding: 22px; min-width: 0; }
.card-flush { padding: 0; overflow: hidden; }
.card h3, .card-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.card .sub { font-size: 12px; color: var(--gray-400); margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.stat { background: #fff; border-radius: 14px; padding: 18px; border: 1px solid var(--gray-100); box-shadow: var(--shadow); border-top: 3px solid var(--accent, var(--green-700)); min-width: 0; }
.stat-label { font-size: 12px; color: var(--gray-500); margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-value { font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--value, var(--gray-900)); }
.stat-hint { font-size: 11px; color: var(--gray-400); margin-top: 4px; }
.empty { text-align: center; color: var(--gray-400); padding: 28px 12px; font-size: 13px; }
.muted { color: var(--gray-500); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Buttons ────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border-radius: 11px; font-weight: 600; font-size: 13px; cursor: pointer; border: 2px solid transparent; line-height: 1.2; text-decoration: none !important; white-space: nowrap; transition: background .15s, opacity .15s; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-gradient { background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: #fff; box-shadow: 0 4px 16px rgba(21,128,61,.3); border: none; }
.btn-soft { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.btn-soft:hover { background: var(--green-100); }
.btn-outline { background: #fff; color: var(--gray-700); border-color: var(--gray-200); }
.btn-outline:hover { background: var(--gray-50); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger-soft { background: #FEF2F2; color: var(--red); border-color: #FECACA; }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 9px; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: none; color: var(--green-700); font-weight: 600; cursor: pointer; padding: 0; font-size: 12px; }
.linkbtn:hover { text-decoration: underline; }

/* ── Badges & levels ────────────────────────────────── */
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; background: var(--gray-100); color: var(--gray-500); }
.badge-lg { font-size: 15px; padding: 8px 22px; font-weight: 800; }
.cat-unggul, .lv-4 { background: var(--green-100); color: var(--green-600); }
.cat-baik, .lv-3 { background: var(--blue-bg); color: var(--blue); }
.cat-cukup, .lv-2 { background: var(--amber-bg); color: var(--amber); }
.cat-minimum, .lv-1 { background: var(--orange-bg); color: var(--orange); }
.cat-risiko, .lv-0 { background: var(--red-bg); color: var(--red); }
.badge-draft { background: var(--amber-bg); color: var(--amber); }
.badge-final { background: var(--green-100); color: var(--green-600); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.trend-up { color: var(--green-600); } .trend-down { color: var(--red); } .trend-flat { color: var(--gray-400); }

.bar { height: 7px; background: var(--gray-100); border-radius: 99px; overflow: hidden; flex: 1; min-width: 40px; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--green-700); transition: width .4s ease; }
.bar-lg { height: 16px; }

/* ── Forms ──────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field + .field { margin-top: 18px; }
.label { font-size: 13px; font-weight: 700; color: var(--gray-700); }
.label .req { color: var(--red); }
.label .opt { font-size: 12px; color: var(--gray-400); font-weight: 400; }
.input, .select, .textarea { width: 100%; padding: 11px 14px; border: 2px solid var(--gray-200); border-radius: 11px; color: var(--gray-900); background: #fff; outline: none; transition: border-color .15s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green-500); }
.input-sm, .select-sm { padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.help { font-size: 12px; color: var(--gray-400); }
.error-text { font-size: 12px; color: var(--red); font-weight: 600; }
.is-invalid { border-color: #FCA5A5 !important; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-700); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--green-700); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field + .field { margin-top: 0; }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search .input { padding-left: 34px; }

/* ── Alerts & toast ─────────────────────────────────── */
.alert { border-radius: 12px; padding: 12px 15px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid; }
.alert + .alert { margin-top: 8px; }
.alert-success { background: var(--green-50); border-color: #BBF7D0; color: var(--green-800); }
.alert-warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.alert-error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.alert strong { display: block; }
.alert ul { margin-left: 18px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 2000; background: var(--gray-900); color: #fff; border-radius: 13px; padding: 14px 18px; display: flex; align-items: center; gap: 11px; box-shadow: 0 8px 30px rgba(0,0,0,.3); font-weight: 600; font-size: 13px; max-width: calc(100vw - 32px); }
.toast .ic { width: 26px; height: 26px; background: var(--green-600); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast.err .ic { background: var(--red); }

/* ── Tables ─────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 10px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; padding: 11px 16px; background: var(--gray-50); border-bottom: 1px solid var(--gray-100); white-space: nowrap; }
.table th a { color: var(--gray-400); display: inline-flex; gap: 4px; align-items: center; }
.table th a.sorted { color: var(--green-700); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-50); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #FCFDFC; }
.table .num { text-align: right; }
.table .center { text-align: center; }
.score-cell { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.score-cell strong { min-width: 34px; font-size: 14px; }

/* ── Lists ──────────────────────────────────────────── */
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--gray-50); }
.list-row:last-child { border-bottom: none; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-size: 13px; font-weight: 600; color: var(--gray-900); }
.list-row .meta { font-size: 11px; color: var(--gray-400); margin-top: 1px; }
.rank { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; background: var(--green-50); color: var(--green-700); }
.rank.red { background: #FEF2F2; color: var(--red); }
.dist-row { display: flex; align-items: center; gap: 12px; }
.dist-row + .dist-row { margin-top: 12px; }
.dist-row .name { width: 110px; font-size: 13px; font-weight: 600; color: var(--gray-700); flex-shrink: 0; }
.dist-row .val { width: 64px; text-align: right; font-size: 12px; color: var(--gray-400); flex-shrink: 0; }
.dist-row .val b { color: var(--gray-700); font-size: 13px; }

/* ── Audit form ─────────────────────────────────────── */
.audit-bar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--gray-200); padding: 12px 26px; display: flex; align-items: center; gap: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); flex-wrap: wrap; }
.audit-bar .who { flex: 1; min-width: 160px; }
.audit-bar .progress { display: flex; align-items: center; gap: 10px; }
.audit-bar .progress .bar { width: 110px; flex: none; }
.dim-card { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.05); border: 1.5px solid var(--gray-100); display: flex; gap: 14px; scroll-margin-top: 90px; }
.dim-card.scored { border-color: #BBF7D0; }
.dim-card + .dim-card { margin-top: 10px; }
.dim-code { width: 40px; height: 40px; background: var(--green-50); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; font-weight: 800; color: var(--green-700); }
.dim-body { flex: 1; min-width: 0; }
.dim-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dim-title h4 { font-size: 14px; font-weight: 700; }
.dim-desc { font-size: 12px; color: var(--gray-400); margin: 2px 0 12px; }
.score-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.score-option { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 11px; cursor: pointer; border: 1.5px solid var(--gray-200); background: #fff; transition: background .12s, border-color .12s; }
.score-option:hover { border-color: var(--gray-300); background: #FCFCFD; }
.score-option:has(input:focus-visible) { outline: 2px solid var(--green-500); outline-offset: 1px; }
.score-num { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.score-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.score-text .lbl { font-size: 12px; font-weight: 700; color: var(--gray-900); }
.score-text .txt { font-size: 13px; color: var(--gray-700); line-height: 1.5; }
.lv-opt-0 .score-num { background: var(--red-bg); color: var(--red); }
.lv-opt-1 .score-num { background: var(--orange-bg); color: var(--orange); }
.lv-opt-2 .score-num { background: var(--amber-bg); color: var(--amber); }
.lv-opt-3 .score-num { background: var(--blue-bg); color: var(--blue); }
.lv-opt-4 .score-num { background: var(--green-100); color: var(--green-600); }
.score-option.on { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.lv-opt-0.on { border-color: var(--red); background: #FEF2F2; } .lv-opt-0.on .score-num { background: var(--red); color: #fff; }
.lv-opt-1.on { border-color: var(--orange); background: #FFF7ED; } .lv-opt-1.on .score-num { background: var(--orange); color: #fff; }
.lv-opt-2.on { border-color: var(--amber); background: #FFFBEB; } .lv-opt-2.on .score-num { background: var(--amber); color: #fff; }
.lv-opt-3.on { border-color: var(--blue); background: #EFF6FF; } .lv-opt-3.on .score-num { background: var(--blue); color: #fff; }
.lv-opt-4.on { border-color: var(--green-600); background: var(--green-50); } .lv-opt-4.on .score-num { background: var(--green-600); color: #fff; }
.score-option.on .lbl { color: var(--gray-900); }
.dim-note { font-size: 13px; background: #fff; border: 1.5px solid var(--gray-200); padding: 9px 11px; border-radius: 9px; }
.upload-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1.5px dashed var(--green-500); border-radius: 9px; background: var(--green-50); cursor: pointer; font-size: 12px; color: var(--green-700); font-weight: 600; margin-top: 8px; }
.upload-btn.busy { opacity: .6; pointer-events: none; }
.files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 8px; font-size: 12px; color: var(--green-700); max-width: 260px; }
.file-chip a { color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.file-chip button { background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: 14px; padding: 0 4px; line-height: 1; }
.file-chip button:hover { color: var(--red); }

/* ── Results ────────────────────────────────────────── */
.result-hero { background: linear-gradient(135deg, var(--green-700), var(--green-600)); border-radius: 20px; padding: 24px; color: #fff; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.result-hero h2 { font-size: 19px; font-weight: 800; }
.result-hero p { font-size: 13px; opacity: .85; margin-top: 3px; }
.result-hero .btn { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.4); }
.big-score { font-size: 64px; font-weight: 800; line-height: 1; }
.chart-box { position: relative; width: 100%; }
.chart-box.h-260 { height: 260px; } .chart-box.h-300 { height: 300px; } .chart-box.h-340 { height: 340px; }
.gap-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto 70px; gap: 12px; align-items: center; padding: 10px 12px; background: var(--gray-50); border-radius: 11px; }
.gap-row + .gap-row { margin-top: 7px; }
.gap-row .code { font-size: 11px; font-weight: 800; color: var(--gray-400); }
.reco { border-left: 3px solid var(--red); background: #FEF2F2; border-radius: 10px; padding: 12px 14px; }
.reco + .reco { margin-top: 8px; }
.reco .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; }
.reco p { font-size: 12px; color: var(--gray-600); margin-top: 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery a { display: block; border: 1px solid var(--gray-100); border-radius: 10px; overflow: hidden; background: var(--gray-50); color: var(--gray-700); text-decoration: none; }
.gallery img { width: 100%; height: 110px; object-fit: cover; display: block; }
.gallery .pdf { height: 110px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--red); font-size: 18px; }
.gallery .cap { font-size: 11px; padding: 6px 8px; }
.timeline-item { border: 1px solid var(--gray-100); border-radius: 12px; }
.timeline-item + .timeline-item { margin-top: 10px; }
.timeline-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
.timeline-item summary::-webkit-details-marker { display: none; }
.timeline-item[open] summary { border-bottom: 1px solid var(--gray-100); }
.timeline-item .chev { transition: transform .2s; color: var(--gray-400); }
.timeline-item[open] .chev { transform: rotate(180deg); }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; padding: 14px 16px; }
.mini-grid div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 6px 8px; background: var(--gray-50); border-radius: 8px; }

/* ── Insights ───────────────────────────────────────── */
.insight { display: flex; gap: 10px; padding: 12px 14px; border-radius: 11px; border: 1px solid; font-size: 13px; }
.insight + .insight { margin-top: 8px; }
.insight.success { background: var(--green-50); border-color: #BBF7D0; color: var(--green-800); }
.insight.warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.insight.error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.insight strong { display: block; margin-bottom: 1px; }

/* ── Guide pages ────────────────────────────────────── */
.tips-head { padding: 18px 22px; display: flex; align-items: center; gap: 14px; color: #fff; }
.tips-head .ic { width: 42px; height: 42px; background: rgba(255,255,255,.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.tip { display: flex; gap: 11px; padding: 12px; background: var(--gray-50); border-radius: 10px; font-size: 13px; color: var(--gray-700); }
.tip + .tip { margin-top: 8px; }
.tip .n { width: 26px; height: 26px; border-radius: 7px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.faq { background: #fff; border-radius: 14px; border: 1.5px solid var(--gray-100); }
.faq + .faq { margin-top: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; gap: 12px; align-items: center; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq .n { width: 26px; height: 26px; border-radius: 7px; background: var(--green-700); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.faq .a { padding: 0 20px 18px 58px; font-size: 13px; color: var(--gray-700); line-height: 1.65; }

/* ── Auth & landing ─────────────────────────────────── */
.auth { min-height: 100vh; background: linear-gradient(145deg, var(--green-900), var(--green-700) 55%, var(--green-800)); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { background: #fff; border-radius: 24px; padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 32px 80px rgba(0,0,0,.3); }
.auth-logo { width: 72px; height: 72px; background: linear-gradient(135deg, var(--green-700), var(--green-500)); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 8px 24px rgba(21,128,61,.4); }
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; background: #fff; border-bottom: 1px solid var(--gray-100); position: sticky; top: 0; z-index: 20; gap: 12px; }
.landing-nav .brand { display: flex; align-items: center; gap: 10px; color: var(--green-900); }
.landing-nav .brand-logo { background: linear-gradient(135deg, var(--green-700), var(--green-500)); }
.landing-nav .brand-sub { color: var(--gray-400); }
.hero { background: linear-gradient(145deg, var(--green-900), var(--green-700) 60%, var(--green-600)); color: #fff; padding: 72px 32px 88px; text-align: center; }
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.15; max-width: 760px; margin: 0 auto; }
.hero p { font-size: 16px; opacity: .85; max-width: 640px; margin: 16px auto 28px; }
.hero .btn-white { background: #fff; color: var(--green-800); }
.hero .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.section { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.landing-stats { margin-top: -48px; }
.feature { background: #fff; border-radius: 16px; padding: 22px; border: 1px solid var(--gray-100); box-shadow: var(--shadow); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--gray-500); }
.cta { background: linear-gradient(135deg, var(--green-700), var(--green-600)); color: #fff; border-radius: 20px; padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer { background: var(--green-900); color: rgba(255,255,255,.7); padding: 36px 32px; margin-top: 56px; font-size: 13px; }
.footer a { color: rgba(255,255,255,.85); }
.footer h4 { color: #fff; font-size: 13px; margin-bottom: 10px; }
.footer .cols { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer li { list-style: none; margin-bottom: 6px; }

/* ── Pagination ─────────────────────────────────────── */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px 16px; font-size: 12px; color: var(--gray-500); }
.pagination .pages { display: flex; gap: 4px; flex-wrap: wrap; }
.pagination a, .pagination span.pg { min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--gray-200); color: var(--gray-700); background: #fff; text-decoration: none; }
.pagination span.pg.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.pagination span.pg.disabled { color: var(--gray-300); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .sidebar.open { transform: translateX(0); }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 45; }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--green-900); color: #fff; position: sticky; top: 0; z-index: 30; }
  .topbar button { background: rgba(255,255,255,.12); border: none; border-radius: 9px; color: #fff; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .topbar .brand-name { font-size: 13px; }
  .audit-bar { top: 62px; }
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .page { padding: 18px 16px; }
  .page-header h1 { font-size: 20px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; } .stat-value { font-size: 22px; }
  .card { padding: 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .audit-bar { padding: 10px 16px; gap: 10px; }
  .audit-bar .progress .bar { width: 70px; }
  .dim-card { padding: 14px; gap: 10px; flex-direction: column; }
  .score-option { padding: 9px 10px; gap: 10px; }
  .gap-row { grid-template-columns: 36px minmax(0,1fr) auto; }
  .gap-row .gapv { display: none; }
  .hero { padding: 48px 16px 72px; } .hero h1 { font-size: 28px; }
  .section { padding: 0 16px; }
  .landing-nav { padding: 12px 16px; }
  .footer .cols { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 22px; }
  .big-score { font-size: 52px; }
  .toast { right: 16px; bottom: 16px; }
  .dist-row .name { width: 90px; }
}

/* ── Print ──────────────────────────────────────────── */
@media print {
  .no-print, .sidebar, .topbar, .toast, .audit-bar { display: none !important; }
  body { background: #fff; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .page { padding: 0; max-width: none; }
  .card, .stat { box-shadow: none; break-inside: avoid; }
  .result-hero { background: none; color: var(--gray-900); border: 2px solid var(--green-700); }
  .g-2 { grid-template-columns: 1fr 1fr; }
  .timeline-item:not([open]) { display: none; }
  a { color: inherit; }
}
