/* ===================================================================
   ST30 Assessment System — Design System v3.0
   Audience: Pelajar & Mahasiswa | Brand: Navy + Teal
   =================================================================== */

/* ─── 1. TOKENS ─────────────────────────────────────────────────── */
:root {
  --navy:    #08224a;
  --navy2:   #0d356b;
  --teal:    #07999b;
  --teal2:   #13b7b0;
  --gold:    #f2aa12;
  --red:     #e53946;

  --bg:      #f0f5fb;
  --bg2:     #e4ecf5;
  --card:    #ffffff;
  --card2:   #f4f8fd;
  --line:    #d8e4f0;
  --line2:   #e8eef6;

  --tx:      #0f1f3b;
  --tx2:     #40546e;
  --tx3:     #6b7fa0;

  --focus:   rgba(7,153,155,.22);
  --hover:   rgba(7,153,155,.06);

  --sh-xs: 0 1px 3px rgba(8,34,74,.06), 0 1px 2px rgba(8,34,74,.04);
  --sh-sm: 0 4px 14px rgba(8,34,74,.08), 0 1px 3px rgba(8,34,74,.05);
  --sh:    0 10px 30px rgba(8,34,74,.10), 0 2px 6px rgba(8,34,74,.06);
  --sh-lg: 0 24px 60px rgba(8,34,74,.13), 0 4px 12px rgba(8,34,74,.07);

  --r-xs:   6px;
  --r-sm:   12px;
  --r:      18px;
  --r-lg:   24px;
  --r-pill: 999px;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system,
          BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  --bg:    #0c1628;
  --bg2:   #111f35;
  --card:  #172035;
  --card2: #1e2d44;
  --line:  #2a3d58;
  --line2: #243450;
  --tx:    #dde8f6;
  --tx2:   #8aa0be;
  --tx3:   #566882;
  --sh-xs: 0 1px 3px rgba(0,0,0,.30);
  --sh-sm: 0 4px 14px rgba(0,0,0,.35);
  --sh:    0 10px 30px rgba(0,0,0,.42);
  --sh-lg: 0 24px 60px rgba(0,0,0,.50);
  --hover: rgba(7,153,155,.10);
  --focus: rgba(19,183,176,.24);
}

/* ─── 2. RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  color: var(--tx);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* Smooth theme transitions only on key surfaces */
body, .app-header, .card, .hero-card, .mini,
.statement-card, .progress-card, .admin-sidebar,
.table td, .table th, .field input, .field select,
.field textarea, .btn, .theme-toggle, .report-sheet,
.instruction-banner {
  transition: background-color .22s ease, border-color .22s ease,
              color .22s ease, box-shadow .22s ease;
}

/* ─── 3. HEADER ──────────────────────────────────────────────────── */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-xs);
}
[data-theme="dark"] .app-header {
  background: rgba(12,22,40,.92);
}

.nav {
  max-width: 1180px; margin: 0 auto;
  padding: 10px 24px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; color: var(--navy);
  font-size: 1.4rem; letter-spacing: -.04em;
}
[data-theme="dark"] .brand { color: var(--tx); }

.brand-logo {
  height: 40px; width: auto; display: block; flex-shrink: 0;
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Theme toggle */
.theme-toggle {
  padding: 7px 13px;
  background: var(--card2); border: 1.5px solid var(--line);
  color: var(--tx2); border-radius: var(--r-pill);
  font-size: 1rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center;
}
.theme-toggle:hover { border-color: var(--teal); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ─── 4. BUTTONS ─────────────────────────────────────────────────── */
.btn {
  border: 0; border-radius: var(--r-pill);
  padding: 12px 24px;
  font-family: var(--font); font-weight: 700; font-size: .9rem;
  cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; line-height: 1;
  transition: transform .14s ease, box-shadow .14s ease,
              opacity .14s ease, background-color .14s ease;
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--sh); }
.btn:active { transform: translateY(0); }
.btn:disabled {
  opacity: .40; cursor: not-allowed;
  transform: none !important; box-shadow: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy2) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(7,153,155,.30);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(7,153,155,.45); }

.btn-ghost {
  background: var(--card); border: 1.5px solid var(--line); color: var(--tx2);
}
[data-theme="dark"] .btn-ghost { background: var(--card2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-danger { background: #fee2e2; color: #991b1b; border: 1.5px solid #fca5a5; }
[data-theme="dark"] .btn-danger { background: #3b1010; color: #fca5a5; border-color: #7f1d1d; }

/* ─── 5. LAYOUT ──────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 36px 24px; }

/* ─── 6. HERO ────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px; align-items: center;
  min-height: calc(100vh - 64px);
  padding-block: 40px;
}

.hero-card, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
}

.hero-card {
  padding: 52px 48px;
  position: relative; overflow: hidden;
}
/* Decorative glow spots */
.hero-card::before {
  content: '';
  position: absolute; right: -100px; top: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(19,183,176,.14), transparent 65%);
  pointer-events: none;
}
.hero-card::after {
  content: '';
  position: absolute; left: -60px; bottom: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,170,18,.10), transparent 65%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(7,153,155,.09);
  color: var(--teal); border: 1px solid rgba(7,153,155,.25);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-weight: 800; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 20px;
}

/* Gradient headline — the signature element */
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1.04; margin: 0 0 18px;
  font-weight: 900; letter-spacing: -.055em;
  background: linear-gradient(135deg, var(--navy) 30%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .hero h1 {
  background: linear-gradient(135deg, #93c5fd 0%, var(--teal2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero > .hero-card > p {
  font-size: 1.05rem; color: var(--tx2); line-height: 1.75;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.hero-side {
  padding: 28px; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
}

.mini-grid { display: grid; gap: 14px; }

.mini {
  background: var(--card2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px;
}
.mini b {
  display: block; color: var(--navy);
  font-size: .95rem; margin-bottom: 5px;
}
[data-theme="dark"] .mini b { color: var(--teal2); }
.mini span { font-size: .88rem; color: var(--tx2); line-height: 1.55; }

/* ─── 7. CARDS ───────────────────────────────────────────────────── */
.card { padding: 32px; }

.card-title {
  font-size: 1.7rem; font-weight: 900;
  letter-spacing: -.04em; margin: 0 0 8px;
  background: linear-gradient(135deg, var(--navy) 40%, var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .card-title {
  background: linear-gradient(135deg, #93c5fd, var(--teal2));
  -webkit-background-clip: text; background-clip: text;
}

/* ─── 8. FORMS ───────────────────────────────────────────────────── */
.form-wrap { max-width: 820px; margin: 28px auto; }

.form-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 20px; margin-top: 20px;
}

.field label {
  display: block; font-weight: 700; font-size: .82rem;
  color: var(--tx2); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .05em;
}

.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--card); color: var(--tx);
  border-radius: var(--r-sm); padding: 13px 15px;
  font-family: var(--font); font-size: .95rem; outline: none;
  transition: border-color .15s, box-shadow .15s, background-color .22s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px var(--focus);
}
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea {
  background: var(--card2); color: var(--tx); border-color: var(--line);
}

.field-hint {
  margin: 8px 2px 0;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--tx2);
}
.field-hint-info {
  padding: 9px 11px;
  border: 1px solid rgba(7,153,155,.24);
  border-radius: var(--r-sm);
  background: rgba(7,153,155,.07);
}
.field-hint-info span {
  display: inline-block;
  margin-right: 4px;
  color: var(--teal);
  font-weight: 800;
}
[data-theme="dark"] .field-hint-info {
  border-color: rgba(45,212,191,.28);
  background: rgba(45,212,191,.08);
}

.req { color: var(--red); }

/* ─── 9. ASSESSMENT ──────────────────────────────────────────────── */
.assessment-shell {
  max-width: 860px; margin: 0 auto;
  padding-top: 18px; display: grid; gap: 14px;
}

/* Instruction banner */
.instruction-banner {
  display: flex; align-items: flex-start; gap: 14px;
  background: linear-gradient(135deg,
    rgba(8,34,74,.05) 0%, rgba(7,153,155,.08) 100%);
  border: 1px solid rgba(7,153,155,.22);
  border-radius: var(--r);
  padding: 16px 20px;
  font-size: .9rem; color: var(--tx2); line-height: 1.65;
}
[data-theme="dark"] .instruction-banner {
  background: linear-gradient(135deg,
    rgba(8,34,74,.25), rgba(7,153,155,.12));
  border-color: rgba(7,153,155,.3);
}
.instruction-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.instruction-banner p { margin: 0; }
.instruction-banner strong { color: var(--navy); font-weight: 700; }
[data-theme="dark"] .instruction-banner strong { color: var(--teal2); }

/* Progress card */
.progress-card {
  position: sticky; top: 62px; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 20px; box-shadow: var(--sh-sm);
}
[data-theme="dark"] .progress-card {
  background: rgba(23,32,53,.97);
}

.progress-top {
  display: grid; grid-template-columns: 1fr auto;
  gap: 14px; align-items: center;
}

.progress-title h2 {
  margin: 0; font-size: 1.05rem; font-weight: 800;
  color: var(--navy); letter-spacing: -.02em; line-height: 1.2;
}
[data-theme="dark"] .progress-title h2 { color: var(--tx); }
.progress-title p {
  margin: 4px 0 0; font-size: .86rem; color: var(--tx2); line-height: 1.3;
}

.counter {
  font-weight: 900; color: var(--teal); font-size: 1rem;
  white-space: nowrap; background: rgba(7,153,155,.10);
  padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid rgba(7,153,155,.2);
}
.counter-warn {
  color: #b91c1c;
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.30);
}
.counter-ok {
  color: #047857;
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.32);
}
[data-theme="dark"] .counter-warn {
  color: #fca5a5;
  background: rgba(239,68,68,.16);
  border-color: rgba(248,113,113,.34);
}
[data-theme="dark"] .counter-ok {
  color: #86efac;
  background: rgba(34,197,94,.15);
  border-color: rgba(74,222,128,.34);
}

.bar {
  height: 7px; border-radius: var(--r-pill);
  background: var(--line); overflow: hidden; margin-top: 12px;
}
.bar > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width .35s cubic-bezier(.4,0,.2,1);
  border-radius: var(--r-pill);
}

.actions-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center; margin-top: 12px;
}

/* ─── Statement cards (centered, card-style) ─────────────────────── */
.statement-grid { display: grid; gap: 8px; }

.statement-card {
  display: flex; align-items: center;
  justify-content: center; text-align: center;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 20px 52px 20px 20px;  /* right space for check badge */
  cursor: pointer; position: relative;
  box-shadow: var(--sh-xs);
  transition: background-color .13s, border-color .13s,
              box-shadow .13s, transform .13s;
  min-height: 72px;
}

.statement-card:hover:not(.selected) {
  border-color: rgba(7,153,155,.45);
  background: var(--hover);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}

.statement-card.selected {
  border-color: var(--teal);
  background: rgba(7,153,155,.07);
  box-shadow: 0 4px 20px rgba(7,153,155,.15);
}
[data-theme="dark"] .statement-card.selected {
  background: rgba(7,153,155,.12);
}

.statement-card p {
  margin: 0; text-align: center;
  font-size: 1rem; line-height: 1.55; color: var(--tx);
}
.statement-card.selected p { font-weight: 600; }
.statement-card .idx, .statement-card .type { display: none; }

/* Check badge (top-right corner, non-intrusive) */
.check {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--card);
  display: grid; place-items: center; color: transparent;
  font-weight: 900; font-size: .7rem;
  transition: background-color .13s, border-color .13s, color .13s;
  flex-shrink: 0;
}
.selected .check {
  background: var(--teal); border-color: var(--teal); color: #fff;
}

/* ─── 10. ALERTS ─────────────────────────────────────────────────── */
.alert {
  padding: 13px 16px; border-radius: var(--r-sm);
  background: #fff7ed; border: 1.5px solid #fed7aa;
  color: #9a3412; font-size: .88rem; margin: 10px 0; line-height: 1.5;
}
[data-theme="dark"] .alert { background: #2d1400; border-color: #92400e; color: #fdba74; }
.success-alert { background: #ecfdf5; border-color: #86efac; color: #166534; }
[data-theme="dark"] .success-alert { background: #052e16; border-color: #16a34a; color: #86efac; }
.hidden { display: none !important; }
.disabled-link { opacity: .40; pointer-events: none; }

/* ─── 11. SUCCESS ────────────────────────────────────────────────── */
.success-box {
  max-width: 580px; margin: 72px auto;
  text-align: center; padding: 56px 48px;
}
.result-actions {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 10px; margin-top: 28px;
}

/* ─── 12. ADMIN ──────────────────────────────────────────────────── */
.admin-layout {
  display: grid; grid-template-columns: 248px 1fr;
  gap: 24px; align-items: start;
}
.admin-sidebar {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px;
  position: sticky; top: 82px; box-shadow: var(--sh-xs);
}
.admin-sidebar a {
  display: block; padding: 11px 14px;
  border-radius: var(--r-sm); font-weight: 700;
  font-size: .88rem; color: var(--tx2); margin-bottom: 3px;
  transition: background-color .12s, color .12s;
}
.admin-sidebar a.active, .admin-sidebar a:hover {
  background: rgba(7,153,155,.10); color: var(--teal);
}
[data-theme="dark"] .admin-sidebar a.active,
[data-theme="dark"] .admin-sidebar a:hover {
  background: rgba(7,153,155,.16);
}

.table-wrap {
  overflow: auto; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--card);
}
.table { width: 100%; border-collapse: collapse; min-width: 860px; }
.table th, .table td {
  padding: 13px 15px; border-bottom: 1px solid var(--line2);
  text-align: left; vertical-align: top; font-size: .875rem;
}
.table th {
  background: var(--card2); color: var(--tx2);
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  position: sticky; top: 0;
}
.table tbody tr:hover { background: var(--hover); }
.table tbody tr:last-child td { border-bottom: 0; }

.search-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px; align-items: flex-end;
}
.search-row input { max-width: 300px; }
.login { max-width: 440px; margin: 10vh auto; }

/* ─── 13. PILLS ──────────────────────────────────────────────────── */
.pill {
  display: inline-flex; border-radius: var(--r-pill);
  padding: 4px 11px; font-size: .73rem; font-weight: 800; line-height: 1;
}
.pill-red    { background: #fee2e2; color: #b91c1c; }
.pill-yellow { background: #fef3c7; color: #a16207; }
.pill-white  { background: var(--card2); color: var(--tx2); border: 1px solid var(--line); }
.pill-gray   { background: #e5e7eb; color: #374151; }
.pill-black  { background: #111827; color: #fff; }
[data-theme="dark"] .pill-gray { background: #374151; color: #d1d5db; }

/* ─── 14. CLUSTER MAP (web) ──────────────────────────────────────── */
.cluster-list {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
}
.cluster-item {
  background: var(--card2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 16px; text-align: center;
}
.cluster-item b { display: block; color: var(--navy); font-size: .84rem; margin-bottom: 5px; }
[data-theme="dark"] .cluster-item b { color: var(--teal2); }

/* ─── 15. ST30 PROFILE MAP ───────────────────────────────────────── */
.map-legend {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center; margin: 12px 0 16px;
}
.map-chip {
  border-radius: var(--r-pill); padding: 5px 13px;
  font-size: .76rem; font-weight: 800; border: 1.5px solid transparent;
}

.st30-profile-map {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card2); padding: 18px 20px; margin-top: 16px;
}
.st30-profile-map h2 {
  margin: 0; text-align: center; color: var(--navy);
  font-size: 1.05rem; letter-spacing: -.02em; font-weight: 800;
}
[data-theme="dark"] .st30-profile-map h2 { color: var(--tx); }

.map-note {
  max-width: 640px; margin: 6px auto 16px;
  text-align: center; color: var(--tx3);
  font-size: .80rem; line-height: 1.5;
}

/* Cluster group box */
.map-group {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 6px 6px 2px;
  margin-bottom: 10px;
  background: var(--card);
  overflow: hidden;
}
.map-group:nth-child(1) { border-color: rgba(7,153,155,.40); background: rgba(7,153,155,.04); }
.map-group:nth-child(2) { border-color: rgba(100,60,160,.30); background: rgba(100,60,160,.04); }
.map-group:nth-child(3) { border-color: rgba(242,170,18,.40); background: rgba(242,170,18,.04); }
[data-theme="dark"] .map-group { background: var(--card2); }
[data-theme="dark"] .map-group:nth-child(1) { background: rgba(7,153,155,.08); }
[data-theme="dark"] .map-group:nth-child(2) { background: rgba(100,60,160,.08); }
[data-theme="dark"] .map-group:nth-child(3) { background: rgba(242,170,18,.08); }
.map-group .map-cluster-row:last-child { margin-bottom: 0; }

.map-cluster-row { margin: 8px 0; text-align: center; }
.map-cluster-title {
  display: inline-flex; gap: 10px;
  align-items: center; justify-content: center; margin-bottom: 7px;
}
.map-cluster-title b {
  font-size: .76rem; color: var(--tx2);
  letter-spacing: .04em; text-transform: uppercase;
}
.map-cluster-title span { font-weight: 900; color: var(--teal); font-size: .86rem; }

.map-type-row {
  display: flex; justify-content: center;
  align-items: stretch; gap: 6px; flex-wrap: wrap;
}
.map-type-box {
  width: 70px; min-height: 44px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  line-height: 1.2; padding: 5px 4px;
  box-shadow: var(--sh-xs);
  transition: transform .12s, box-shadow .12s;
}
.map-type-box:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.map-type-box strong { font-size: .82rem; letter-spacing: .04em; }
.map-type-box small {
  font-size: .63rem; margin-top: 2px;
  white-space: nowrap; max-width: 64px;
  overflow: hidden; text-overflow: ellipsis;
}

/* SEMANTIC typology colors — NEVER change */
.map-cat-most    { background:#e11d48; color:#fff; border-color:#e11d48; }
.map-cat-like    { background:#f2aa12; color:#fff; border-color:#f2aa12; }
.map-cat-neutral { background:var(--card); color:var(--navy); border-color:var(--line); }
.map-cat-dislike { background:#6b7280; color:#fff; border-color:#6b7280; }
.map-cat-least   { background:#111827; color:#fff; border-color:#111827; }
[data-theme="dark"] .map-cat-neutral { background:var(--card2); color:var(--tx); }

/* ─── 16. REPORT WEB PREVIEW ──────────────────────────────────────── */
.report-page { background: var(--bg); min-height: 100vh; }

.report-actions {
  position: sticky; top: 0; z-index: 50;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 10px 24px;
  display: flex; justify-content: center; align-items: center;
  gap: 10px; flex-wrap: wrap; box-shadow: var(--sh-xs);
}

.report-sheet {
  width: 794px; min-height: 1123px;
  margin: 28px auto;
  background: #ffffff; color: #0f203c;
  border-radius: var(--r);
  box-shadow: 0 8px 40px rgba(0,0,0,.13);
  padding: 44px 52px;
  overflow: hidden; page-break-after: always;
}
[data-theme="dark"] .report-sheet {
  background: #182540; color: #dde5f4;
  box-shadow: 0 8px 40px rgba(0,0,0,.55);
}

.report-head {
  display: flex; gap: 20px; align-items: center;
  border-bottom: 3px solid #cfe2f5;
  padding-bottom: 18px; margin-bottom: 22px;
}
[data-theme="dark"] .report-head { border-color: #2a4070; }

.report-logo img { height: 54px; width: auto; display: block; }

.report-title h1 {
  font-size: 1.4rem; margin: 0; font-weight: 900;
  letter-spacing: -.03em; line-height: 1.2;
  background: linear-gradient(135deg, #08224a, #07999b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .report-title h1 {
  background: linear-gradient(135deg, #93c5fd, #13b7b0);
  -webkit-background-clip: text; background-clip: text;
}
.report-title p { margin: 5px 0 0; color: #07999b; font-size: .9rem; font-weight: 600; }

.info-report {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 12px; margin: 0 0 22px;
  padding: 16px 20px;
  border: 1px solid #c6d9ef; border-radius: var(--r);
  background: #f5f9ff;
}
[data-theme="dark"] .info-report { background: #1e2d44; border-color: #2a4070; }
.info-report small {
  display: block; color: #64748b; font-weight: 700;
  font-size: .70rem; text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 3px;
}
.info-report b { color: #08224a; font-size: .9rem; }
[data-theme="dark"] .info-report b { color: #dde5f4; }

.intro-report {
  font-size: .875rem; line-height: 1.7;
  color: #374155; margin-bottom: 16px;
}
[data-theme="dark"] .intro-report { color: #94a3b8; }

/* Section header bar */
.report-section-head {
  background: linear-gradient(135deg, #08224a, #07999b);
  color: #fff; border-radius: var(--r-sm) var(--r-sm) 0 0;
  padding: 11px 18px; font-size: .96rem; font-weight: 800;
  margin-top: 14px; letter-spacing: -.01em;
}
.report-section-body {
  border: 1px solid #c6d9ef; border-top: 0;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: 13px 16px; margin-bottom: 14px;
  background: var(--card);
  font-size: .865rem; line-height: 1.65;
}
[data-theme="dark"] .report-section-body {
  background: var(--card2); border-color: #2a4070; color: #94a3b8;
}

/* Guide cards */
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.guide-card { border: 1px solid #c6d9ef; border-radius: var(--r); overflow: hidden; }
[data-theme="dark"] .guide-card { border-color: #2a4070; }
.guide-card h2 {
  margin: 0; background: linear-gradient(135deg, #08224a, #07999b);
  color: #fff; padding: 12px 18px; font-size: .93rem; font-weight: 800;
}
.guide-card .inner {
  padding: 16px 18px; font-size: .84rem; line-height: 1.65;
}
[data-theme="dark"] .guide-card .inner { color: #94a3b8; }
.guide-card-wide { grid-column: 1/-1; }

/* Legend rows — more breathing room */
.legend-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 6px 0; border-bottom: 1px solid #eef2f7;
}
[data-theme="dark"] .legend-row { border-color: #2a4070; }
.legend-row:last-child { border-bottom: 0; }

.dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.dot.red    { background: #e11d48; }
.dot.yellow { background: #f2aa12; }
.dot.white  { background: #fff; border: 2px solid #cbd5e1; }
.dot.gray   { background: #6b7280; }
.dot.black  { background: #111827; }

.legend-row div b { display: block; margin-bottom: 1px; font-size: .86rem; }
.legend-row div span { font-size: .81rem; color: #475569; line-height: 1.35; }
[data-theme="dark"] .legend-row div span { color: #94a3b8; }

/* Pesan Penting */
.pesan-penting { margin-top: 6px; }
.pesan-item {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 11px 14px; border-radius: var(--r-sm);
  margin-bottom: 7px;
}
.pesan-item.p-focus   { background: rgba(225,29,72,.08);  border-left: 3px solid #e11d48; }
.pesan-item.p-siasati { background: rgba(22,163,74,.08);  border-left: 3px solid #16a34a; }
.pesan-item.p-ingat   { background: rgba(242,170,18,.10); border-left: 3px solid #f2aa12; }
.pesan-icon { font-size: 1.12rem; flex-shrink: 0; margin-top: 2px; }
.pesan-item b { display: block; font-size: .9rem; margin-bottom: 3px; color: #0f203c; }
[data-theme="dark"] .pesan-item b { color: var(--tx); }
.pesan-item span { font-size: .82rem; color: #334155; line-height: 1.48; }
[data-theme="dark"] .pesan-item span { color: #94a3b8; }

/* Report guide pages */
.cluster-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}
.cluster-guide-intro {
  background: #f0fdfa;
  border-left: 4px solid #07999b;
  color: #334155;
  font-size: .86rem;
  line-height: 1.55;
}
.cluster-guide-card {
  border: 1px solid #d5e2ee;
  border-radius: var(--r-sm);
  background: #fbfdff;
  padding: 15px 17px 15px 19px;
  min-height: 0;
  border-left: 4px solid #07999b;
}
.cluster-guide-card b {
  display: block;
  color: #08224a;
  font-size: .96rem;
  margin-bottom: 6px;
}
.cluster-guide-card span {
  display: block;
  color: #334155;
  font-size: .84rem;
  line-height: 1.48;
  font-weight: 700;
  margin-bottom: 8px;
}
.cluster-guide-card p {
  margin: 0;
  color: #64748b;
  font-size: .83rem;
  line-height: 1.50;
}
[data-theme="dark"] .cluster-guide-card {
  background: #14223a;
  border-color: #2a4070;
  border-left-color: #20c4c7;
}
[data-theme="dark"] .cluster-guide-card b { color: #93c5fd; }
[data-theme="dark"] .cluster-guide-card span { color: #cbd5e1; }
[data-theme="dark"] .cluster-guide-card p { color: #94a3b8; }
[data-theme="dark"] .cluster-guide-intro {
  background: rgba(7,153,155,.10);
  border-left-color: #20c4c7;
  color: #cbd5e1;
}

.usage-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
.usage-guide-card {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid #d5e2ee;
  border-radius: var(--r-sm);
  background: #fbfdff;
  padding: 13px 15px;
}
.usage-guide-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #07999b;
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
}
.usage-guide-card b {
  display: block;
  color: #08224a;
  font-size: .92rem;
  margin-bottom: 4px;
}
.usage-guide-card p {
  margin: 0;
  color: #475569;
  font-size: .84rem;
  line-height: 1.50;
}
.career-read-note {
  background: #f0fdfa;
  border-left: 4px solid #07999b;
  color: #334155;
  font-size: .86rem;
  line-height: 1.55;
}
[data-theme="dark"] .usage-guide-card {
  background: #14223a;
  border-color: #2a4070;
}
[data-theme="dark"] .usage-guide-card b { color: #93c5fd; }
[data-theme="dark"] .usage-guide-card p { color: #94a3b8; }
[data-theme="dark"] .career-read-note {
  background: rgba(7,153,155,.10);
  border-left-color: #20c4c7;
  color: #cbd5e1;
}

/* Web report tooltips for cluster and typology labels */
.report-page-2,
.report-page-2 .lb-section,
.report-page-2 .lb-row,
.report-page-2 .lb-cell-name,
.report-page-2 .lb-cell-chips {
  overflow: visible;
}
.report-tip {
  position: relative;
  cursor: help;
  outline: none;
}
.report-tip:hover,
.report-tip:focus-visible {
  z-index: 600;
}
.report-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  transform: translateX(-50%) translateY(-2px);
  width: max-content;
  max-width: min(360px, 70vw);
  padding: 9px 11px;
  border-radius: 8px;
  background: #061a3a;
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 34px rgba(8,34,74,.24);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 500;
}
.report-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 3px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #061a3a;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 501;
}
.report-tip:hover::after,
.report-tip:focus-visible::after,
.report-tip:hover::before,
.report-tip:focus-visible::before {
  opacity: 1;
  visibility: visible;
}
.report-tip-cluster::after {
  text-align: left;
  min-width: 280px;
}
.report-tip-type::after {
  min-width: 240px;
}
[data-theme="dark"] .report-tip::after {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(15,23,42,.12);
  box-shadow: 0 16px 36px rgba(0,0,0,.36);
}
[data-theme="dark"] .report-tip::before {
  border-bottom-color: #f8fafc;
}
@media (max-width: 720px) {
  .report-tip::after {
    left: 0;
    transform: translateY(-2px);
    max-width: min(300px, 82vw);
  }
  .report-tip::before {
    left: 18px;
  }
}

/* Cluster score table */
.cluster-score-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.cluster-score-table th, .cluster-score-table td {
  border: 1px solid #d5e2ee; padding: 10px 12px; text-align: left;
}
.cluster-score-table th {
  background: #eef5ff; color: #08224a; font-weight: 800;
  font-size: .76rem; text-transform: uppercase; letter-spacing: .04em;
}
[data-theme="dark"] .cluster-score-table th { background: #1e2d44; color: #93c5fd; border-color: #2a4070; }
[data-theme="dark"] .cluster-score-table td { border-color: #2a4070; }

.interpret {
  margin-top: 16px; border: 1px solid #c6d9ef;
  border-radius: var(--r); padding: 16px 20px;
}
[data-theme="dark"] .interpret { border-color: #2a4070; }
.interpret h3 { margin: 0 0 10px; color: #07999b; font-size: .98rem; }
.interpret p { font-size: .86rem; margin: 8px 0; line-height: 1.65; }
[data-theme="dark"] .interpret p { color: #94a3b8; }

.disclaimer {
  margin-top: 16px; border: 1px solid #c6d9ef; border-radius: var(--r);
  padding: 16px 20px; background: #f5f9ff;
  font-size: .80rem; line-height: 1.70; color: #475569;
}
[data-theme="dark"] .disclaimer { background: #1e2d44; border-color: #2a4070; color: #64748b; }

.report-footer {
  margin-top: 20px; text-align: center; color: #08224a;
  font-size: .73rem; border-top: 2px solid #9ccad0;
  padding-top: 12px; font-weight: 700; letter-spacing: .03em;
}
[data-theme="dark"] .report-footer { color: #93c5fd; border-color: #2a4070; }

/* Career table */
.career-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .80rem; }
.career-table td, .career-table th {
  border: 1px solid #d5e2ee; padding: 8px 10px; vertical-align: top;
  overflow-wrap: anywhere; word-break: normal;
}
.career-table th:first-child,
.career-table td:first-child { width: 34%; }
.career-table td:first-child b {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.career-table th { background: #eef5ff; color: #08224a; font-weight: 800; }
[data-theme="dark"] .career-table td,
[data-theme="dark"] .career-table th { border-color: #2a4070; }
[data-theme="dark"] .career-table th { background: #1e2d44; color: #93c5fd; }
[data-theme="dark"] .career-table td { color: #94a3b8; }

/* Appendix */
.appendix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.typo-mini {
  border: 1px solid #d5e2ee; border-radius: var(--r-sm);
  padding: 14px 16px; font-size: .82rem; line-height: 1.45;
}
[data-theme="dark"] .typo-mini { border-color: #2a4070; }
.typo-mini b { color: #08224a; font-size: .86rem; display: block; margin-bottom: 3px; }
[data-theme="dark"] .typo-mini b { color: #93c5fd; }
.typo-mini small { display: block; color: #64748b; margin-top: 4px; }

/* ─── 17. PRINT ──────────────────────────────────────────────────── */
@media print {
  body { background: #fff; color: #000; }
  .app-header, .no-print, .btn, .admin-sidebar,
  .report-actions, .theme-toggle, .nav-actions { display: none !important; }
  .container { max-width: none; padding: 0; }
  .report-sheet {
    width: auto; min-height: auto; margin: 0;
    padding: 14mm; box-shadow: none; border-radius: 0;
    page-break-after: always;
  }
  .report-sheet:last-child { page-break-after: auto; }
  .guide-grid, .appendix-grid { grid-template-columns: 1fr 1fr; }
  @page { size: A4; margin: 0; }
}

/* ─── 18. RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 28px; }
  .hero-card { padding: 32px 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .cluster-list { grid-template-columns: repeat(2,1fr); }
  .guide-grid { grid-template-columns: 1fr; }
  .cluster-guide-grid { grid-template-columns: 1fr; }
  .appendix-grid { grid-template-columns: 1fr; }
  .info-report { grid-template-columns: 1fr 1fr; }
  .report-sheet { width: 100%; margin: 8px; padding: 24px 20px; }
  .progress-card { top: 64px; }
  .assessment-shell { max-width: 100%; }
}

@media (max-width: 640px) {
  .nav { padding: 9px 16px; }
  .container { padding: 18px 16px; }
  .hero-card { padding: 24px 20px; }
  .card { padding: 20px; }
  .success-box { margin: 28px auto; padding: 28px 20px; }
  .cluster-list { grid-template-columns: 1fr 1fr; }
  .info-report { grid-template-columns: 1fr; }
  .report-sheet { padding: 16px; }
  .progress-top { grid-template-columns: 1fr; gap: 6px; }
  .actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .map-type-box { width: 56px; }
  .map-type-box small { display: none; }
  .brand-logo { height: 34px; }
  .statement-card { padding: 18px 44px 18px 18px; }
}

/* ─── MISC ───────────────────────────────────────────────────────── */
.steps { display: none !important; }
.cluster-formula { font-size: .72rem; color: var(--tx3); margin: 6px 0; }

/* ─── CLUSTER RANK INDICATORS ─────────────────────────────────────
   Applied to top-3 clusters by dominance in the profile map
   and score table. Colors mirror the ST30 color system:
   Rank 1 = Merah, Rank 2 = Kuning, Rank 3 = Putih/outlined
   ─────────────────────────────────────────────────────────────── */

/* Map cluster row — color the % badge */
.cluster-rank-1 .map-cluster-title span,
.cluster-rank-2 .map-cluster-title span,
.cluster-rank-3 .map-cluster-title span {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: .82rem;
}
.cluster-rank-1 .map-cluster-title span {
  background: #e11d48;
  color: #fff;
}
.cluster-rank-2 .map-cluster-title span {
  background: #f2aa12;
  color: #fff;
}
.cluster-rank-3 .map-cluster-title span {
  background: var(--card);
  border: 2px solid var(--line);
  color: var(--tx2);
}
[data-theme="dark"] .cluster-rank-3 .map-cluster-title span {
  background: var(--card2);
  border-color: #5a7090;
}

/* Map cluster row — subtle left accent bar */
.cluster-rank-1 { border-left: 3px solid #e11d48; padding-left: 4px; }
.cluster-rank-2 { border-left: 3px solid #f2aa12; padding-left: 4px; }
.cluster-rank-3 { border-left: 3px solid var(--line); padding-left: 4px; }

/* Score table rank badges */
.rank-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: .72rem; font-weight: 900; line-height: 1;
  margin-right: 7px; vertical-align: middle; flex-shrink: 0;
}
.rank-badge-1 { background: #e11d48; color: #fff; }
.rank-badge-2 { background: #f2aa12; color: #fff; }
.rank-badge-3 {
  background: var(--card2);
  border: 2px solid var(--line);
  color: var(--tx2);
}
[data-theme="dark"] .rank-badge-3 { border-color: #5a7090; }

/* Score table row highlights */
.rank-row-1 td:first-child { background: rgba(225,29,72,.05); }
.rank-row-2 td:first-child { background: rgba(242,170,18,.05); }
.rank-row-3 td:first-child { background: rgba(200,210,225,.05); }
[data-theme="dark"] .rank-row-1 td:first-child { background: rgba(225,29,72,.10); }
[data-theme="dark"] .rank-row-2 td:first-child { background: rgba(242,170,18,.10); }

/* Interpretasi text rank colors */
.rank-inline-1 { color: #e11d48; }
.rank-inline-2 { color: #c07800; }
[data-theme="dark"] .rank-inline-2 { color: #f2aa12; }
.rank-inline-3 { color: var(--tx2); }

/* ─── MAP SPACING FIXES ────────────────────────────────────────── */

/* More breathing room inside group boxes */
.map-group {
  padding: 10px 8px 6px !important;
  margin-bottom: 12px !important;
}

/* Cluster rows need more vertical space */
.map-cluster-row { margin: 12px 0 !important; }

/* Cluster title more space between name and % */
.map-cluster-title { gap: 14px !important; margin-bottom: 10px !important; }

/* Larger tiles with more padding */
.map-type-box {
  width: 74px !important;
  min-height: 50px !important;
  border-radius: 12px !important;
  padding: 7px 5px !important;
  gap: 3px;
}
.map-type-box strong { font-size: .84rem !important; }
.map-type-box small  { font-size: .65rem !important; }


/* ===================================================================
   ST30 Contrast & Layout Refinement — report/admin patch
   =================================================================== */
:root {
  --navy: #061a3a;
  --navy2:#0a2f64;
  --teal:#047f83;
  --teal2:#0aa6a8;
  --gold:#f0a000;
  --red:#d91f45;
  --line:#c8d8ea;
  --line2:#dbe6f2;
  --tx:#081a34;
  --tx2:#31445f;
  --tx3:#526985;
}
[data-theme="dark"] {
  --bg:#081120;
  --bg2:#0d1a2e;
  --card:#121e33;
  --card2:#172844;
  --line:#38506f;
  --line2:#2b4160;
  --tx:#f1f6ff;
  --tx2:#c0cce0;
  --tx3:#9cadaf;
}

.btn-primary { background: linear-gradient(135deg, #047f83 0%, #061a3a 100%); }
[data-theme="dark"] .btn-primary { background: linear-gradient(135deg, #0aa6a8 0%, #1d4f95 100%); }
.btn-ghost { color: var(--tx2); }

/* Semantic result colors: yellow needs dark text for real contrast. */
.map-cat-most    { background:#d91f45 !important; color:#fff !important; border-color:#d91f45 !important; }
.map-cat-like    { background:#f0a000 !important; color:#1b2433 !important; border-color:#bf7c00 !important; }
.map-cat-neutral { background:#ffffff !important; color:#061a3a !important; border-color:#aebdd0 !important; }
.map-cat-dislike { background:#596579 !important; color:#fff !important; border-color:#596579 !important; }
.map-cat-least   { background:#0b1220 !important; color:#fff !important; border-color:#0b1220 !important; }
[data-theme="dark"] .map-cat-neutral { background:#f8fafc !important; color:#061a3a !important; }

.pill-yellow { background:#fef3c7; color:#713f12; border:1px solid #f59e0b; }
[data-theme="dark"] .pill-yellow { background:#422006; color:#fde68a; border-color:#b45309; }

/* Report web: cleaner paper, higher contrast, closer to printable output. */
.report-sheet {
  color:#081a34;
  border:1px solid #d8e4f0;
}
[data-theme="dark"] .report-sheet {
  background:#111d32;
  color:#f1f6ff;
  border-color:#38506f;
}
.report-head {
  border-bottom:4px solid #047f83;
}
.report-title h1 {
  background:linear-gradient(135deg,#061a3a 0%,#047f83 100%);
  -webkit-background-clip:text;
  background-clip:text;
}
.info-report {
  background:#eef6ff;
  border-color:#abc2dc;
}
.info-report small { color:#435a76; }
.info-report b { color:#061a3a; overflow-wrap:anywhere; }
.intro-report { color:#243750; }
.st30-profile-map {
  background:#eef6ff;
  border:1.5px solid #abc2dc;
}
.st30-profile-map h2 {
  color:#061a3a;
  background:#ffffff;
  border:1px solid #d5e2ee;
  border-radius:12px;
  padding:9px 12px;
  margin-bottom:12px;
}
.map-group {
  border-width:2px !important;
  box-shadow:0 2px 8px rgba(8,34,74,.04);
}
.map-cluster-title b { color:#1d3048; }
.map-type-box { box-shadow:0 2px 6px rgba(8,34,74,.12); }
.report-section-head {
  background:linear-gradient(135deg,#061a3a,#047f83);
}
.report-section-body, .interpret, .disclaimer, .typo-mini {
  border-color:#abc2dc;
}
.report-section-body { color:#243750; }
.cluster-score-table th, .career-table th { background:#e4f0ff; color:#061a3a; }
.cluster-score-table td, .career-table td { color:#243750; }
.disclaimer { background:#fff8e7; border-color:#e8c879; color:#334155; }
.report-footer { color:#061a3a; border-top-color:#047f83; }

[data-theme="dark"] .report-section-body,
[data-theme="dark"] .career-table td,
[data-theme="dark"] .interpret p,
[data-theme="dark"] .pesan-item span,
[data-theme="dark"] .legend-row div span {
  color:#c0cce0;
}
[data-theme="dark"] .st30-profile-map h2 { background:#172844; color:#f1f6ff; border-color:#38506f; }
[data-theme="dark"] .map-cluster-title b { color:#d9e5f6; }
[data-theme="dark"] .disclaimer { background:#2a1f0b; border-color:#8a6618; color:#ead9ad; }


/* Admin table should feel like a clean dashboard, not a cramped raw table. */
.admin-sidebar { border-color:var(--line); box-shadow:var(--sh-sm); }
.admin-sidebar p { margin:0; }
.admin-sidebar a.active { background:linear-gradient(135deg,rgba(4,127,131,.14),rgba(6,26,58,.08)); color:var(--teal); }
.table-wrap { border-color:var(--line); box-shadow:var(--sh-xs); }
.table th { background:linear-gradient(180deg,var(--card2),var(--card)); color:var(--tx2); }
.table tbody tr:hover { background:rgba(4,127,131,.075); }
[data-theme="dark"] .table tbody tr:hover { background:rgba(10,166,168,.12); }

@media print {
  html, body { background:#fff !important; }
  .report-sheet {
    width:210mm !important;
    min-height:297mm !important;
    margin:0 !important;
    padding:12mm 13mm !important;
    border:0 !important;
    box-shadow:none !important;
    color:#081a34 !important;
    background:#fff !important;
  }
  .report-title h1 {
    color:#061a3a !important;
    background:none !important;
    -webkit-text-fill-color:initial !important;
  }
  .report-section-body, .cluster-score-table td, .career-table td { color:#243750 !important; }
  .st30-profile-map, .info-report { background:#eef6ff !important; }
  .map-cat-like { color:#1b2433 !important; }
  .map-cat-neutral { background:#fff !important; color:#061a3a !important; }
}

/* ===================================================================
   ST30 Dark Mode Result Visibility Hotfix
   Issue: beberapa selector report web masih memakai warna fixed light-mode
   sehingga teks tenggelam saat body memakai data-theme="dark".
   =================================================================== */
[data-theme="dark"] .report-page {
  background: #081120;
  color: #f1f6ff;
}

[data-theme="dark"] .report-actions {
  background: #121e33;
  border-color: #38506f;
  color: #f1f6ff;
}

[data-theme="dark"] .report-sheet {
  background: #111d32 !important;
  color: #f1f6ff !important;
  border-color: #38506f !important;
}

[data-theme="dark"] .report-title p,
[data-theme="dark"] .report-footer {
  color: #8ee8e4 !important;
}

[data-theme="dark"] .info-report,
[data-theme="dark"] .st30-profile-map,
[data-theme="dark"] .report-section-body,
[data-theme="dark"] .interpret,
[data-theme="dark"] .typo-mini,
[data-theme="dark"] .guide-card,
[data-theme="dark"] .guide-card .inner {
  background: #172844 !important;
  border-color: #38506f !important;
  color: #d9e5f6 !important;
}

[data-theme="dark"] .info-report small,
[data-theme="dark"] .typo-mini small,
[data-theme="dark"] .map-note {
  color: #b8c8de !important;
}

[data-theme="dark"] .info-report b,
[data-theme="dark"] .intro-report,
[data-theme="dark"] .report-section-body,
[data-theme="dark"] .cluster-score-table td,
[data-theme="dark"] .career-table td,
[data-theme="dark"] .interpret p,
[data-theme="dark"] .guide-card .inner,
[data-theme="dark"] .legend-row div span,
[data-theme="dark"] .pesan-item span,
[data-theme="dark"] .typo-mini {
  color: #d9e5f6 !important;
}

[data-theme="dark"] .st30-profile-map h2,
[data-theme="dark"] .typo-mini b,
[data-theme="dark"] .pesan-item b,
[data-theme="dark"] .legend-row div b,
[data-theme="dark"] .interpret h3,
[data-theme="dark"] .map-cluster-title b {
  color: #f1f6ff !important;
}

[data-theme="dark"] .map-group {
  background: #122138 !important;
  border-color: #38506f !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.28) !important;
}

[data-theme="dark"] .map-cluster-title span {
  color: #8ee8e4 !important;
}

[data-theme="dark"] .cluster-rank-1 .map-cluster-title span,
[data-theme="dark"] .rank-badge-1 {
  background: #e54868 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .cluster-rank-2 .map-cluster-title span,
[data-theme="dark"] .rank-badge-2 {
  background: #f6b72a !important;
  color: #1b2433 !important;
}

[data-theme="dark"] .cluster-rank-3 .map-cluster-title span,
[data-theme="dark"] .rank-badge-3 {
  background: #f8fafc !important;
  color: #061a3a !important;
  border-color: #cbd5e1 !important;
}

[data-theme="dark"] .cluster-score-table th,
[data-theme="dark"] .career-table th {
  background: #213655 !important;
  color: #dbeafe !important;
  border-color: #38506f !important;
}

[data-theme="dark"] .cluster-score-table td,
[data-theme="dark"] .career-table td {
  background: #111d32;
  border-color: #38506f !important;
}

[data-theme="dark"] .rank-row-1 td:first-child { background: rgba(229,72,104,.18) !important; }
[data-theme="dark"] .rank-row-2 td:first-child { background: rgba(246,183,42,.18) !important; }
[data-theme="dark"] .rank-row-3 td:first-child { background: rgba(248,250,252,.10) !important; }

[data-theme="dark"] .disclaimer {
  background: #2a1f0b !important;
  border-color: #a97916 !important;
  color: #f3dfad !important;
}

[data-theme="dark"] .map-cat-most    { background:#e54868 !important; color:#fff !important; border-color:#ff7a92 !important; }
[data-theme="dark"] .map-cat-like    { background:#f6b72a !important; color:#1b2433 !important; border-color:#ffd166 !important; }
[data-theme="dark"] .map-cat-neutral { background:#f8fafc !important; color:#061a3a !important; border-color:#cbd5e1 !important; }
[data-theme="dark"] .map-cat-dislike { background:#6b7890 !important; color:#fff !important; border-color:#9aabc4 !important; }
[data-theme="dark"] .map-cat-least   { background:#020617 !important; color:#fff !important; border-color:#64748b !important; }

[data-theme="dark"] .map-type-box strong,
[data-theme="dark"] .map-type-box small {
  text-shadow: none !important;
}

/* ST30 logo refresh: landscape app logo + square favicon-friendly mark. */
.brand-logo {
  height: 42px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}
.report-logo {
  flex: 0 0 auto;
}
.report-logo img {
  height: 44px !important;
  max-width: 210px;
  width: auto !important;
  object-fit: contain;
  border-radius: 0 !important;
}
@media (max-width: 640px) {
  .brand-logo { height: 36px; max-width: 140px; }
  .report-head { align-items: flex-start; gap: 12px; }
  .report-logo img { height: 36px !important; max-width: 160px; }
}

/* Compact color reading guide in report page */
.report-section-body.legend-compact {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}
.legend-compact .legend-row {
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #d8e5f2;
  border-radius: 12px;
  background: rgba(248, 251, 255, .72);
}
[data-theme="dark"] .legend-compact .legend-row {
  border-color: #2a4070;
  background: rgba(15, 32, 60, .38);
}
.legend-compact .legend-row:last-child { border-bottom: 1px solid #d8e5f2; }
[data-theme="dark"] .legend-compact .legend-row:last-child { border-bottom-color: #2a4070; }
.legend-compact .dot {
  width: 16px;
  height: 16px;
  margin-top: 0;
}
.legend-compact .dot.white { border-width: 1.5px; }
.legend-copy b {
  display: block;
  margin: 0 0 2px;
  font-size: .82rem;
  line-height: 1.2;
}
.legend-copy span {
  display: block;
  font-size: .78rem;
  color: #475569;
  line-height: 1.35;
}
[data-theme="dark"] .legend-copy span { color: #cbd5e1; }
@media (max-width: 760px) {
  .report-section-body.legend-compact { grid-template-columns: 1fr; }
}


/* ===================================================================
   ST30 Admin Participants Layout Fix
   Tujuan: menghilangkan horizontal scrollbar yang tidak perlu dan
   membuat tabel peserta memakai ruang secara efisien.
   =================================================================== */
.admin-page .admin-shell { min-width: 0; }
.admin-page .admin-layout { grid-template-columns: minmax(210px, 248px) minmax(0, 1fr); }
.admin-page .admin-card { overflow: hidden; }
.admin-page .participants-wrap {
  overflow-x: hidden;
  max-width: 100%;
}
.admin-page .participants-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.admin-page .participants-table .col-check { width: 44px; }
.admin-page .participants-table .col-name { width: 27%; }
.admin-page .participants-table .col-email { width: 25%; }
.admin-page .participants-table .col-referrer { width: 18%; }
.admin-page .participants-table .col-date { width: 130px; }
.admin-page .participants-table .col-actions { width: 174px; }
.admin-page .participants-table th,
.admin-page .participants-table td {
  padding: 12px 12px;
  overflow-wrap: anywhere;
  word-break: normal;
}
.admin-page .participants-table th:first-child,
.admin-page .participants-table td:first-child {
  padding-left: 10px;
  padding-right: 6px;
}
.admin-page .participants-table th:last-child,
.admin-page .participants-table td:last-child {
  padding-right: 12px;
}
.admin-page .actions-cell {
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}
.admin-page .actions-cell .btn-sm {
  padding-left: 11px !important;
  padding-right: 11px !important;
}
.admin-page .participant-name { overflow-wrap:anywhere; }
.admin-page .participant-meta { line-height:1.25; }
.admin-page .admin-toolbar { min-width:0; }
.admin-page .admin-toolbar-actions { min-width:0; }

@media (max-width: 1080px) {
  .admin-page .admin-layout { grid-template-columns: 1fr; }
  .admin-page .admin-sidebar { position: static; }
}

@media (max-width: 760px) {
  .admin-page .participants-wrap { border:0; background:transparent; box-shadow:none; }
  .admin-page .participants-table,
  .admin-page .participants-table thead,
  .admin-page .participants-table tbody,
  .admin-page .participants-table tr,
  .admin-page .participants-table td { display:block; width:100%; }
  .admin-page .participants-table colgroup,
  .admin-page .participants-table thead { display:none; }
  .admin-page .participants-table tr {
    position:relative;
    margin-bottom:10px;
    padding:12px 12px 12px 44px;
    border:1px solid var(--line);
    border-radius:16px;
    background:var(--card);
  }
  .admin-page .participants-table td {
    border:0;
    padding:3px 0 !important;
  }
  .admin-page .participants-table td:first-child {
    position:absolute; left:12px; top:16px; width:20px;
  }
  .admin-page .participants-table td:nth-child(3)::before { content:'Email: '; color:var(--tx3); font-weight:700; }
  .admin-page .participants-table td:nth-child(4)::before { content:'Rekomendasi: '; color:var(--tx3); font-weight:700; }
  .admin-page .participants-table td:nth-child(5)::before { content:'Waktu: '; color:var(--tx3); font-weight:700; }
  .admin-page .participants-table td:nth-child(5) { white-space:normal !important; }
  .admin-page .participants-table td:nth-child(6) { padding-top:10px !important; }
  .admin-page .actions-cell { justify-content:flex-start; flex-wrap:wrap; }
}

/* ===================================================================
   ST30 Admin Referrals Layout Fix
   Tujuan: merapikan tab Rekomendasi, menghapus overflow horizontal,
   dan menjaga tombol aksi tidak terpotong di desktop maupun mobile.
   =================================================================== */
.admin-page .referrals-card {
  max-width: 1080px;
  margin-inline: auto;
}
.admin-page .referrals-title-row {
  margin-bottom: 14px;
}
.admin-page .referral-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7,153,155,.045);
}
[data-theme="dark"] .admin-page .referral-form {
  background: rgba(10,166,168,.075);
}
.admin-page .referral-name-field {
  min-width: 0;
}
.admin-page .referral-active-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--tx2);
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.admin-page .referral-active-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}
.admin-page .referral-submit {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}
.admin-page .referrals-wrap {
  margin-top: 16px;
  overflow-x: hidden;
  max-width: 100%;
}
.admin-page .referrals-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.admin-page .referrals-table .col-ref-name { width: auto; }
.admin-page .referrals-table .col-ref-status { width: 160px; }
.admin-page .referrals-table .col-ref-actions { width: 190px; }
.admin-page .referrals-table th,
.admin-page .referrals-table td {
  padding: 12px 16px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.admin-page .referrals-table th:nth-child(2),
.admin-page .referrals-table td:nth-child(2) {
  text-align: left;
}
.admin-page .referrals-table th:last-child,
.admin-page .referrals-table td:last-child {
  text-align: right;
  padding-right: 16px;
}
.admin-page .referrals-table .actions-cell {
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}
.admin-page .referrals-table .actions-cell .btn-sm {
  min-width: 72px;
  text-align: center;
}

@media (max-width: 860px) {
  .admin-page .referral-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .admin-page .referral-active-check {
    min-height: 30px;
  }
  .admin-page .referral-submit {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .admin-page .referrals-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .admin-page .referrals-table,
  .admin-page .referrals-table thead,
  .admin-page .referrals-table tbody,
  .admin-page .referrals-table tr,
  .admin-page .referrals-table td {
    display: block;
    width: 100%;
  }
  .admin-page .referrals-table colgroup,
  .admin-page .referrals-table thead {
    display: none;
  }
  .admin-page .referrals-table tr {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
  }
  .admin-page .referrals-table td {
    border: 0;
    padding: 4px 0 !important;
    text-align: left !important;
  }
  .admin-page .referrals-table td:nth-child(2)::before {
    content: 'Status: ';
    color: var(--tx3);
    font-weight: 800;
  }
  .admin-page .referrals-table td:last-child {
    padding-top: 10px !important;
  }
  .admin-page .referrals-table .actions-cell {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ===================================================================
   ST30 Admin Participants Pagination + Compact Table v2
   Tujuan: pagination 50 data/halaman dan menghilangkan scrollbar
   horizontal yang tidak perlu pada tabel peserta.
   =================================================================== */
.admin-page .admin-card { min-width: 0; }
.admin-page .participants-wrap {
  overflow-x: hidden !important;
  overflow-y: visible;
}
.admin-page .participants-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}
.admin-page .participants-table .col-check { width: 38px; }
.admin-page .participants-table .col-name { width: 28%; }
.admin-page .participants-table .col-email { width: 23%; }
.admin-page .participants-table .col-referrer { width: 16%; }
.admin-page .participants-table .col-date { width: 138px; }
.admin-page .participants-table .col-actions { width: 132px; }
.admin-page .participants-table th,
.admin-page .participants-table td {
  padding: 10px 10px !important;
  min-width: 0;
}
.admin-page .participant-email,
.admin-page .participant-referrer {
  font-size: .82rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.admin-page .participant-referrer {
  color: var(--tx2);
}
.admin-page .participant-date {
  font-size: .8rem;
  line-height: 1.25;
  white-space: normal;
  color: var(--tx3);
}
.admin-page .participants-table .actions-cell {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.admin-page .participants-table .actions-cell .btn-sm {
  padding: 6px 10px !important;
  font-size: .76rem !important;
  min-width: 0;
}
.admin-page .empty-cell {
  text-align: center !important;
  color: var(--tx3);
  padding: 22px 12px !important;
}
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.admin-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--tx2);
  background: var(--card2);
  font-weight: 800;
  font-size: .82rem;
  box-shadow: var(--sh-xs);
}
.admin-pagination .page-btn:hover { color: var(--teal); border-color: var(--teal); }
.admin-pagination .page-btn.disabled {
  opacity: .45;
  pointer-events: none;
  box-shadow: none;
}
.admin-pagination .page-summary {
  color: var(--tx3);
  font-size: .82rem;
  font-weight: 800;
}
.admin-page .admin-limit {
  white-space: normal;
  text-align: right;
  line-height: 1.3;
}

@media (max-width: 980px) {
  .admin-page .admin-toolbar { grid-template-columns: 1fr; }
  .admin-page .admin-toolbar-actions { justify-content: flex-start; }
  .admin-page .admin-limit { text-align: left; }
}

@media (max-width: 760px) {
  .admin-page .participants-wrap { overflow: visible !important; }
  .admin-page .participants-table .actions-cell { justify-content: flex-start; flex-wrap: wrap; }
  .admin-pagination { justify-content: center; }
}

/* ===================================================================
   ST30 Admin Table Line Alignment Fix
   Catatan: jangan jadikan <td> sebagai flex container di mode tabel.
   Display:flex pada table-cell membuat border per kolom tampak patah/tidak sejajar.
   =================================================================== */
@media (min-width: 761px) {
  .admin-page .participants-table td.actions-cell,
  .admin-page .referrals-table td.actions-cell {
    display: table-cell !important;
    text-align: right !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
  }
  .admin-page .participants-table td.actions-cell .btn-sm,
  .admin-page .referrals-table td.actions-cell .btn-sm {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
  }
  .admin-page .participants-table td.actions-cell .btn-sm:first-child,
  .admin-page .referrals-table td.actions-cell .btn-sm:first-child {
    margin-left: 0;
  }
  .admin-page .participants-table tr,
  .admin-page .referrals-table tr {
    height: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Peta Typology + Summary + Progress Bar + Rank Pill
   ═══════════════════════════════════════════════════════════════ */

/* Auto-summary bar */
.map-summary {
  background: rgba(7,153,155,.06);
  border: 1px solid rgba(7,153,155,.22);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: .82rem;
  color: var(--tx2);
  line-height: 1.6;
  margin: 10px 0 14px;
  text-align: left;
}
.map-summary-icon { color: var(--teal); font-weight: 900; margin-right: 4px; }
[data-theme="dark"] .map-summary { background: rgba(7,153,155,.09); border-color: rgba(7,153,155,.30); }

/* Peta Typology ST30 wrapper */
.map-typology-wrap {
  margin: 0 auto 10px;
  max-width: 560px;
  position: relative;
}
.st30-map-svg { width: 100%; height: auto; display: block; }
.rn-red { color: #ef4444; }
.rn-yellow { color: #b45309; }
.rn-gray { color: #6b7280; }
.rn-black { color: #111827; }
[data-theme="dark"] .rn-yellow { color: #f59e0b; }
[data-theme="dark"] .rn-gray { color: #9ca3af; }
[data-theme="dark"] .rn-black { color: #e5e7eb; }

/* Legend strip */
.map-legend-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 5px 14px; margin: 0 0 12px; padding: 7px 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; font-size: .76rem;
}
.map-legend-strip span { display: inline-flex; align-items: center; gap: 5px; color: var(--tx2); }
.map-legend-dot {
  width: 11px; height: 11px; border-radius: 2px;
  flex-shrink: 0; display: inline-block;
}

/* Dominance progress bar in cluster title */
.cluster-dom-bar-wrap {
  width: 48px; height: 4px;
  background: var(--line); border-radius: 99px; overflow: hidden; flex-shrink: 0;
}
.cluster-dom-bar {
  height: 100%; background: var(--teal);
  border-radius: 99px; min-width: 3px;
}

/* Rank pill badge */
.cluster-rank-pill {
  font-size: .62rem; font-weight: 800; font-style: normal;
  border-radius: 99px; padding: 1px 6px; line-height: 1.5;
  flex-shrink: 0;
}
.cluster-rank-pill-1 { background: #e11d48; color: #fff; }
.cluster-rank-pill-2 { background: #2563eb; color: #fff; }
.cluster-rank-pill-3 { background: #7c3aed; color: #fff; }

/* Responsive: hide legend on small mobile */
@media (max-width: 380px) {
  .map-legend-strip { display: none; }
  .map-typology-wrap { max-width: 320px; }
}

/* ===================================================================
   Web report footer alignment fix
   -------------------------------------------------------------------
   Keep every report footer anchored near the bottom of its paper sheet.
   This prevents short pages from showing the footer floating too high,
   while still allowing taller content pages to flow normally.
   =================================================================== */
.report-sheet {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.report-sheet > .report-footer {
  margin-top: auto !important;
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
}

.report-sheet > .report-head {
  flex: 0 0 auto;
}

/* ===================================================================
   ST30 web report tidy-up: dominant typology pills, clearer typology note,
   and cleaner cluster rank treatment without misleading vertical lines.
   =================================================================== */
.map-summary-label {
  font-weight: 800;
  color: var(--navy);
  margin-left: 4px;
}

.dominant-type-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  vertical-align: middle;
  margin-left: 6px;
}

.dominant-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-weight: 800;
  font-size: .76rem;
  line-height: 1.45;
  letter-spacing: .01em;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset;
}

.map-typology-note {
  margin: 8px 0 0;
  padding: 8px 10px;
  font-size: .76rem;
  line-height: 1.55;
  text-align: center;
  color: var(--tx2);
  background: rgba(7,153,155,.05);
  border: 1px dashed rgba(7,153,155,.24);
  border-radius: 8px;
}

.cluster-rank-1,
.cluster-rank-2,
.cluster-rank-3 {
  border-left: 0 !important;
  padding-left: 0 !important;
}

.cluster-title-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .76rem !important;
  line-height: 1.1;
  letter-spacing: .04em;
  font-weight: 900;
  text-transform: uppercase;
}

.cluster-title-chip-default {
  background: rgba(148, 163, 184, .12);
  border-color: rgba(148, 163, 184, .22);
  color: var(--tx2) !important;
}

.cluster-title-chip-rank-1 {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff !important;
}

.cluster-title-chip-rank-2 {
  background: #f2aa12;
  border-color: #f2aa12;
  color: #182335 !important;
}

.cluster-title-chip-rank-3 {
  background: #ffffff;
  border-color: #b9cadb;
  color: #24364d !important;
}

[data-theme="dark"] .map-summary-label {
  color: #eef5ff;
}

[data-theme="dark"] .map-typology-note {
  background: rgba(7,153,155,.08);
  border-color: rgba(94,234,212,.22);
  color: #d7e5f5;
}

[data-theme="dark"] .cluster-title-chip-default {
  background: rgba(148, 163, 184, .12);
  border-color: rgba(148, 163, 184, .20);
  color: #d7e5f5 !important;
}

[data-theme="dark"] .cluster-title-chip-rank-3 {
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.92);
  color: #182335 !important;
}

@media (max-width: 640px) {
  .dominant-type-pills {
    display: flex;
    margin-left: 0;
    margin-top: 6px;
  }

  .map-summary-label {
    display: block;
    margin: 6px 0 0;
  }
}


/* ===================================================================
   Cluster rank color refinement
   -------------------------------------------------------------------
   Rank #3 is green to avoid being confused with non-top-3 neutral chips.
   Non-top-3 chips stay subdued but readable in both light and dark mode.
   =================================================================== */
.cluster-title-chip-rank-3 {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

.cluster-title-chip-default {
  background: rgba(148, 163, 184, .14) !important;
  border-color: rgba(148, 163, 184, .28) !important;
  color: #334155 !important;
}

[data-theme="dark"] .cluster-title-chip-rank-3 {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #052e16 !important;
}

[data-theme="dark"] .cluster-title-chip-default {
  background: rgba(148, 163, 184, .16) !important;
  border-color: rgba(203, 213, 225, .24) !important;
  color: #e2e8f0 !important;
}


/* ===================================================================
   Top-3 color consistency across ALL web report sections
   -------------------------------------------------------------------
   Applies the same Top 1/2/3 color logic not only to Distribusi Warna
   per Klaster, but also to Skor Klaster table and Interpretasi text.
   =================================================================== */

/* New canonical color classes */
.cluster-title-chip-red,
.cluster-title-chip-rank-1 {
  background: #e11d48 !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
}

.cluster-title-chip-yellow,
.cluster-title-chip-rank-2 {
  background: #f2aa12 !important;
  border-color: #f2aa12 !important;
  color: #182335 !important;
}

.cluster-title-chip-green,
.cluster-title-chip-rank-3 {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

.rank-badge-red,
.rank-badge-1 {
  background: #e11d48 !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
}

.rank-badge-yellow,
.rank-badge-2 {
  background: #f2aa12 !important;
  border-color: #f2aa12 !important;
  color: #182335 !important;
}

.rank-badge-green,
.rank-badge-3 {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

.text-rank-red,
.text-rank-1 {
  color: #e11d48 !important;
  font-weight: 900;
}

.text-rank-yellow,
.text-rank-2 {
  color: #c47f00 !important;
  font-weight: 900;
}

.text-rank-green,
.text-rank-3 {
  color: #15803d !important;
  font-weight: 900;
}

[data-theme="dark"] .cluster-title-chip-green,
[data-theme="dark"] .cluster-title-chip-rank-3,
[data-theme="dark"] .rank-badge-green,
[data-theme="dark"] .rank-badge-3 {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #052e16 !important;
}

[data-theme="dark"] .text-rank-yellow,
[data-theme="dark"] .text-rank-2 {
  color: #fbbf24 !important;
}

[data-theme="dark"] .text-rank-green,
[data-theme="dark"] .text-rank-3 {
  color: #4ade80 !important;
}

/* Keep score table text readable on colored rank rows in dark mode. */
[data-theme="dark"] .cluster-score-table .rank-badge {
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}


/* ===================================================================
   HOTFIX: restore colored cluster-name pills in "Distribusi Warna per Klaster"
   -------------------------------------------------------------------
   Previous patch updated rank colors globally but allowed older .map-cluster-title b
   rules to visually flatten the cluster title chip.
   This patch is intentionally scoped to report-page-map-detail only.
   =================================================================== */
.report-page-map-detail .map-cluster-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.report-page-map-detail .map-cluster-title .cluster-title-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  border-width: 1.5px !important;
  border-style: solid !important;
  font-size: .76rem !important;
  line-height: 1.1 !important;
  letter-spacing: .045em !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.16) inset !important;
}

.report-page-map-detail .map-cluster-title .cluster-title-chip-red {
  background: #e11d48 !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
}

.report-page-map-detail .map-cluster-title .cluster-title-chip-yellow {
  background: #f2aa12 !important;
  border-color: #f2aa12 !important;
  color: #182335 !important;
}

.report-page-map-detail .map-cluster-title .cluster-title-chip-green {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

.report-page-map-detail .map-cluster-title .cluster-title-chip-default {
  background: rgba(148, 163, 184, .14) !important;
  border-color: rgba(148, 163, 184, .30) !important;
  color: #334155 !important;
}

[data-theme="dark"] .report-page-map-detail .map-cluster-title .cluster-title-chip-red {
  background: #e11d48 !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .report-page-map-detail .map-cluster-title .cluster-title-chip-yellow {
  background: #fbbf24 !important;
  border-color: #fbbf24 !important;
  color: #1f2937 !important;
}

[data-theme="dark"] .report-page-map-detail .map-cluster-title .cluster-title-chip-green {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #052e16 !important;
}

[data-theme="dark"] .report-page-map-detail .map-cluster-title .cluster-title-chip-default {
  background: rgba(148, 163, 184, .16) !important;
  border-color: rgba(203, 213, 225, .26) !important;
  color: #e2e8f0 !important;
}

/* Do not show the old vertical rank accent lines. */
.report-page-map-detail .cluster-rank-1,
.report-page-map-detail .cluster-rank-2,
.report-page-map-detail .cluster-rank-3 {
  border-left: 0 !important;
  padding-left: 0 !important;
}


/* Hotfix: interpretation top-3 text colors */
.rank-inline-3 { color: #15803d !important; }
[data-theme="dark"] .rank-inline-3 { color: #4ade80 !important; }


/* ===================================================================
   Final print preview stabilization + cluster title simplification
   =================================================================== */

/* Cluster title: no mini bar chart; percentage lives inside the pill. */
.map-cluster-title .cluster-dom-bar-wrap,
.map-cluster-title > span {
  display: none !important;
}

.map-cluster-title .cluster-title-chip {
  min-width: 132px;
  text-align: center;
}







/* ===================================================================
   ST30 UI Update — Top Menu, Compact Admin, Color Themes, Assessment UX
   =================================================================== */
:root,
[data-color-theme="teal"] {
  --navy: #08224a;
  --navy2: #0d356b;
  --teal: #07999b;
  --teal2: #13b7b0;
  --gold: #f2aa12;
  --focus: rgba(7,153,155,.22);
  --hover: rgba(7,153,155,.06);
}
[data-color-theme="sapphire"] {
  --navy: #081f4d;
  --navy2: #1d4ed8;
  --teal: #2563eb;
  --teal2: #60a5fa;
  --gold: #f59e0b;
  --focus: rgba(37,99,235,.22);
  --hover: rgba(37,99,235,.07);
}
[data-color-theme="emerald"] {
  --navy: #052e2b;
  --navy2: #047857;
  --teal: #059669;
  --teal2: #34d399;
  --gold: #f59e0b;
  --focus: rgba(5,150,105,.22);
  --hover: rgba(5,150,105,.07);
}
[data-color-theme="violet"] {
  --navy: #24124d;
  --navy2: #6d28d9;
  --teal: #7c3aed;
  --teal2: #a78bfa;
  --gold: #f59e0b;
  --focus: rgba(124,58,237,.22);
  --hover: rgba(124,58,237,.07);
}
[data-color-theme="sunset"] {
  --navy: #3b1d08;
  --navy2: #c2410c;
  --teal: #ea580c;
  --teal2: #fb923c;
  --gold: #facc15;
  --focus: rgba(234,88,12,.22);
  --hover: rgba(234,88,12,.07);
}
[data-color-theme="rose"] {
  --navy: #4a1027;
  --navy2: #be185d;
  --teal: #db2777;
  --teal2: #f472b6;
  --gold: #f59e0b;
  --focus: rgba(219,39,119,.22);
  --hover: rgba(219,39,119,.07);
}

.nav { max-width: 1280px; }
.brand-logo { height: 48px !important; max-width: 198px !important; }
.theme-select {
  height: 38px;
  max-width: 126px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--card2);
  color: var(--tx2);
  padding: 0 34px 0 13px;
  font: 800 .82rem/1 var(--font);
  cursor: pointer;
  outline: none;
}
.theme-select:hover,
.theme-select:focus { border-color: var(--teal); color: var(--teal); }
[data-theme="dark"] .theme-select { background: var(--card2); color: var(--tx); }

/* Admin: move menu to top and reclaim horizontal space */
.admin-page .container { max-width: 1280px; padding-top: 28px; }
.admin-page .admin-layout {
  display: block !important;
}
.admin-page .admin-sidebar {
  position: static !important;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px;
  border-radius: 20px;
  overflow-x: auto;
}
.admin-page .admin-sidebar p { display: none; }
.admin-page .admin-sidebar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 38px;
  padding: 9px 16px;
  white-space: nowrap;
}
.admin-page .admin-shell { width: 100%; min-width: 0; }
.admin-page .admin-card { padding: 22px 24px !important; }
.admin-page .admin-title-row { margin-bottom: 14px !important; }
.admin-page .card-title { font-size: 1.42rem !important; line-height: 1.15 !important; }
.admin-page .admin-muted { font-size: .9rem; line-height: 1.35; }
.admin-page .stat-row { gap: 10px !important; margin: 14px 0 16px !important; }
.admin-page .admin-stat {
  min-height: 58px !important;
  padding: 12px 16px !important;
  border-radius: 16px !important;
}
.admin-page .stat-num { font-size: 1.85rem !important; line-height: 1 !important; }
.admin-page .stat-label { font-size: .76rem !important; letter-spacing: .06em !important; line-height: 1.25 !important; }
.admin-page .admin-toolbar {
  gap: 10px !important;
  margin-bottom: 14px !important;
}
.admin-page .admin-search input { min-height: 40px !important; }
.admin-page .admin-search .btn,
.admin-page .admin-toolbar-actions .btn { min-height: 36px !important; padding: 9px 15px !important; }
.admin-page .participants-table .col-check { width: 34px !important; }
.admin-page .participants-table .col-name { width: 26% !important; }
.admin-page .participants-table .col-email { width: 22% !important; }
.admin-page .participants-table .col-referrer { width: 15% !important; }
.admin-page .participants-table .col-date { width: 138px !important; }
.admin-page .participants-table .col-actions { width: 124px !important; }
.admin-page .participants-table th,
.admin-page .participants-table td {
  padding: 8px 10px !important;
  vertical-align: middle !important;
}
.admin-page .participants-table th { font-size: .68rem !important; }
.admin-page .participant-name { font-size: .9rem !important; line-height: 1.18 !important; margin-bottom: 2px !important; }
.admin-page .participant-meta { font-size: .76rem !important; line-height: 1.1 !important; }
.admin-page .participant-org { margin-top: 4px !important; padding: 4px 9px !important; font-size: .68rem !important; }
.admin-page .participant-email,
.admin-page .participant-referrer,
.admin-page .participant-date { font-size: .78rem !important; }
.admin-page .participants-table td.actions-cell .btn-sm { padding: 6px 9px !important; font-size: .72rem !important; }

/* Home page: more compact, more focused */
.hero { min-height: calc(100vh - 70px); padding-block: 28px; gap: 18px; }
.hero-card { padding: 38px 40px; }
.hero > .hero-card > p { font-size: 1rem; line-height: 1.62; max-width: 760px; }
.hero-actions { margin-top: 24px; }
.hero-side { padding: 22px; }
.mini { padding: 14px 16px; }
.mini span { line-height: 1.45; }
.lookup-card {
  margin-top: 16px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7,153,155,.08), rgba(7,153,155,.025)),
    var(--card);
}
.lookup-card b {
  display: block;
  color: var(--navy);
  font-size: .98rem;
  line-height: 1.35;
  margin-bottom: 5px;
}
[data-theme="dark"] .lookup-card b { color: var(--teal2); }
.lookup-card span {
  display: block;
  color: var(--tx2);
  font-size: .88rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.lookup-card .btn { width: 100%; }
.lookup-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(8, 20, 40, .56);
  z-index: 9999;
}
.lookup-modal.open { display: flex; }
.lookup-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(680px, 92vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  color: var(--tx);
  box-shadow: 0 28px 80px rgba(8,34,74,.30);
  padding: 24px;
}
.lookup-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card2);
  color: var(--tx2);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}
.lookup-modal-card h2 {
  margin: 0 44px 8px 0;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.2;
}
[data-theme="dark"] .lookup-modal-card h2 { color: var(--teal2); }
.lookup-modal-card > p {
  margin: 0 44px 18px 0;
  color: var(--tx2);
  line-height: 1.55;
  font-size: .92rem;
}
.lookup-form {
  display: grid;
  gap: 14px;
}
.lookup-message {
  margin-top: 14px;
  border-radius: 14px;
  padding: 11px 13px;
  font-size: .86rem;
  line-height: 1.45;
}
.lookup-message-error {
  border: 1px solid #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}
[data-theme="dark"] .lookup-message-error {
  border-color: #7f1d1d;
  background: #3b1010;
  color: #fca5a5;
}
.lookup-results {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.lookup-results > b {
  color: var(--tx);
  font-size: .9rem;
}
.lookup-result-item {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card2);
  text-decoration: none;
  color: var(--tx);
}
.lookup-result-item:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.lookup-result-item span {
  font-weight: 900;
  line-height: 1.3;
}
.lookup-result-item small {
  color: var(--tx3);
  font-size: .78rem;
}

/* Assessment: keep guidance visible but reduce vertical cost */
.assessment-shell { max-width: 980px; padding-top: 10px; gap: 10px; }
.instruction-banner {
  padding: 10px 14px;
  gap: 10px;
  font-size: .82rem;
  line-height: 1.45;
  border-radius: 16px;
}
.instruction-icon { font-size: 1.05rem; }
.progress-card {
  top: 62px;
  padding: 10px 14px;
  border-radius: 18px;
}
.progress-title h2 { font-size: .98rem; }
.progress-title p { font-size: .82rem; margin-top: 2px; }
.counter { font-size: .9rem; padding: 5px 11px; }
.bar { height: 5px; margin-top: 8px; }
.actions-row { margin-top: 8px; gap: 8px; }
.actions-row .btn { min-height: 36px; padding: 10px 20px; }
.statement-grid { gap: 7px; }
.statement-card {
  justify-content: flex-start !important;
  text-align: left !important;
  min-height: 58px !important;
  padding: 14px 16px 14px 54px !important;
  border-radius: 18px !important;
}
.statement-card p {
  text-align: left !important;
  font-size: .98rem !important;
  line-height: 1.42 !important;
}
.statement-card .check {
  left: 16px !important;
  right: auto !important;
  width: 24px !important;
  height: 24px !important;
}

@media (max-width: 760px) {
  .brand-logo { height: 41px !important; max-width: 162px !important; }
  .theme-select { max-width: 104px; height: 34px; font-size: .76rem; }
  .admin-page .admin-card { padding: 18px 16px !important; }
  .admin-page .admin-sidebar { border-radius: 16px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-card { padding: 28px 22px; }
  .progress-top { grid-template-columns: 1fr; gap: 8px; }
  .counter { width: fit-content; }
}

/* ===================================================================
   ST30 UI Update v111 — Richer Theme Backgrounds & Stronger Theme Feel
   =================================================================== */
:root,
[data-color-theme="teal"] {
  --page-spot-1: rgba(7,153,155,.20);
  --page-spot-2: rgba(8,34,74,.16);
  --page-spot-3: rgba(242,170,18,.10);
  --page-orb-1: rgba(19,183,176,.18);
  --page-orb-2: rgba(13,53,107,.13);
}
[data-color-theme="sapphire"] {
  --page-spot-1: rgba(37,99,235,.22);
  --page-spot-2: rgba(8,31,77,.18);
  --page-spot-3: rgba(96,165,250,.12);
  --page-orb-1: rgba(96,165,250,.19);
  --page-orb-2: rgba(29,78,216,.14);
}
[data-color-theme="emerald"] {
  --page-spot-1: rgba(5,150,105,.22);
  --page-spot-2: rgba(5,46,43,.17);
  --page-spot-3: rgba(52,211,153,.12);
  --page-orb-1: rgba(52,211,153,.18);
  --page-orb-2: rgba(4,120,87,.14);
}
[data-color-theme="violet"] {
  --page-spot-1: rgba(124,58,237,.22);
  --page-spot-2: rgba(36,18,77,.18);
  --page-spot-3: rgba(167,139,250,.12);
  --page-orb-1: rgba(167,139,250,.18);
  --page-orb-2: rgba(109,40,217,.14);
}
[data-color-theme="sunset"] {
  --page-spot-1: rgba(234,88,12,.24);
  --page-spot-2: rgba(59,29,8,.18);
  --page-spot-3: rgba(251,146,60,.12);
  --page-orb-1: rgba(251,146,60,.19);
  --page-orb-2: rgba(194,65,12,.15);
}
[data-color-theme="rose"] {
  --page-spot-1: rgba(219,39,119,.22);
  --page-spot-2: rgba(74,16,39,.18);
  --page-spot-3: rgba(244,114,182,.12);
  --page-orb-1: rgba(244,114,182,.18);
  --page-orb-2: rgba(190,24,93,.14);
}

[data-theme="dark"][data-color-theme="teal"] {
  --page-spot-1: rgba(19,183,176,.24);
  --page-spot-2: rgba(56,189,248,.10);
  --page-spot-3: rgba(242,170,18,.10);
  --page-orb-1: rgba(19,183,176,.20);
  --page-orb-2: rgba(8,34,74,.22);
}
[data-theme="dark"][data-color-theme="sapphire"] {
  --page-spot-1: rgba(96,165,250,.24);
  --page-spot-2: rgba(29,78,216,.14);
  --page-spot-3: rgba(147,197,253,.10);
  --page-orb-1: rgba(96,165,250,.19);
  --page-orb-2: rgba(8,31,77,.24);
}
[data-theme="dark"][data-color-theme="emerald"] {
  --page-spot-1: rgba(52,211,153,.24);
  --page-spot-2: rgba(4,120,87,.16);
  --page-spot-3: rgba(110,231,183,.10);
  --page-orb-1: rgba(52,211,153,.18);
  --page-orb-2: rgba(5,46,43,.24);
}
[data-theme="dark"][data-color-theme="violet"] {
  --page-spot-1: rgba(167,139,250,.24);
  --page-spot-2: rgba(109,40,217,.16);
  --page-spot-3: rgba(196,181,253,.10);
  --page-orb-1: rgba(167,139,250,.18);
  --page-orb-2: rgba(36,18,77,.24);
}
[data-theme="dark"][data-color-theme="sunset"] {
  --page-spot-1: rgba(251,146,60,.25);
  --page-spot-2: rgba(194,65,12,.16);
  --page-spot-3: rgba(253,186,116,.10);
  --page-orb-1: rgba(251,146,60,.19);
  --page-orb-2: rgba(59,29,8,.24);
}
[data-theme="dark"][data-color-theme="rose"] {
  --page-spot-1: rgba(244,114,182,.24);
  --page-spot-2: rgba(190,24,93,.16);
  --page-spot-3: rgba(251,182,206,.10);
  --page-orb-1: rgba(244,114,182,.19);
  --page-orb-2: rgba(74,16,39,.24);
}

html, body { min-height: 100%; }
body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(1000px 560px at -8% -10%, var(--page-spot-1) 0%, transparent 62%),
    radial-gradient(780px 440px at 110% 2%, var(--page-spot-2) 0%, transparent 57%),
    radial-gradient(860px 520px at 50% 104%, var(--page-spot-3) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
}
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  filter: blur(10px);
}
body::before {
  width: 32vw;
  height: 32vw;
  min-width: 260px;
  min-height: 260px;
  left: -10vw;
  top: 10vh;
  background: radial-gradient(circle, var(--page-orb-1) 0%, transparent 68%);
  opacity: .95;
}
body::after {
  width: 36vw;
  height: 36vw;
  min-width: 300px;
  min-height: 300px;
  right: -12vw;
  top: 52vh;
  background: radial-gradient(circle, var(--page-orb-2) 0%, transparent 70%);
  opacity: .92;
}

.app-header {
  overflow: hidden;
  background: rgba(255,255,255,.76) !important;
  border-bottom-color: rgba(255,255,255,.42) !important;
  box-shadow: 0 10px 28px rgba(8,34,74,.08);
}
[data-theme="dark"] .app-header {
  background: rgba(12,22,40,.76) !important;
  border-bottom-color: rgba(255,255,255,.08) !important;
}
.app-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, var(--page-spot-1) 16%, transparent 36%),
    linear-gradient(90deg, transparent 58%, var(--page-spot-2) 84%, transparent 100%);
  opacity: .85;
  pointer-events: none;
}
.app-header::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--gold), transparent);
  opacity: .55;
  pointer-events: none;
}
.nav { position: relative; z-index: 1; }

.theme-select,
.theme-toggle {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.60), 0 6px 16px rgba(8,34,74,.08);
}
[data-theme="dark"] .theme-select,
[data-theme="dark"] .theme-toggle {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 18px rgba(0,0,0,.25);
}
.theme-select {
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.75));
}
[data-theme="dark"] .theme-select {
  background: linear-gradient(135deg, rgba(30,45,68,.96), rgba(23,32,53,.92));
}

.hero-card,
.card,
.progress-card,
.admin-sidebar,
.table-wrap,
.mini,
.statement-card,
.success-box,
.instruction-banner,
.login {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-card,
.card,
.table-wrap,
.success-box,
.login {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.88)) !important;
  border-color: rgba(255,255,255,.58) !important;
  box-shadow: 0 20px 48px rgba(8,34,74,.10), 0 4px 12px rgba(8,34,74,.05);
}
[data-theme="dark"] .hero-card,
[data-theme="dark"] .card,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .success-box,
[data-theme="dark"] .login {
  background: linear-gradient(180deg, rgba(23,32,53,.96), rgba(23,32,53,.92)) !important;
  border-color: rgba(138,160,190,.18) !important;
  box-shadow: 0 22px 52px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.03);
}

.hero-card {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.90)),
    linear-gradient(135deg, rgba(255,255,255,0) 0%, var(--page-spot-1) 100%) !important;
}
[data-theme="dark"] .hero-card {
  background-image:
    linear-gradient(180deg, rgba(23,32,53,.97), rgba(23,32,53,.93)),
    linear-gradient(135deg, rgba(255,255,255,.02) 0%, var(--page-spot-1) 100%) !important;
}
.hero-side {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.86)),
    linear-gradient(135deg, transparent 0%, var(--page-spot-2) 100%) !important;
}
[data-theme="dark"] .hero-side {
  background-image:
    linear-gradient(180deg, rgba(23,32,53,.96), rgba(23,32,53,.92)),
    linear-gradient(135deg, rgba(255,255,255,.02) 0%, var(--page-spot-2) 100%) !important;
}

.mini {
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.74)) !important;
  border-color: rgba(255,255,255,.55) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.70), 0 8px 20px rgba(8,34,74,.06);
}
[data-theme="dark"] .mini {
  background: linear-gradient(135deg, rgba(30,45,68,.94), rgba(23,32,53,.88)) !important;
  border-color: rgba(138,160,190,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 22px rgba(0,0,0,.22);
}

.instruction-banner {
  background:
    linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,255,255,.60)),
    linear-gradient(135deg, var(--page-spot-1), transparent 75%) !important;
  border-color: rgba(255,255,255,.52) !important;
  box-shadow: 0 10px 26px rgba(8,34,74,.06);
}
[data-theme="dark"] .instruction-banner {
  background:
    linear-gradient(135deg, rgba(23,32,53,.92), rgba(23,32,53,.86)),
    linear-gradient(135deg, var(--page-spot-1), transparent 75%) !important;
  border-color: rgba(138,160,190,.18) !important;
}

.progress-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,.93), rgba(255,255,255,.84)),
    linear-gradient(135deg, transparent 0%, var(--page-spot-1) 100%) !important;
  border-color: rgba(255,255,255,.58) !important;
  box-shadow: 0 18px 42px rgba(8,34,74,.10), inset 0 1px 0 rgba(255,255,255,.65);
}
[data-theme="dark"] .progress-card {
  background:
    linear-gradient(135deg, rgba(23,32,53,.97), rgba(17,31,53,.92)),
    linear-gradient(135deg, transparent 0%, var(--page-spot-1) 100%) !important;
  border-color: rgba(138,160,190,.18) !important;
  box-shadow: 0 20px 46px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.03);
}

.admin-sidebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.85)),
    linear-gradient(135deg, transparent 0%, var(--page-spot-1) 100%) !important;
  border-color: rgba(255,255,255,.58) !important;
}
[data-theme="dark"] .admin-sidebar {
  background:
    linear-gradient(180deg, rgba(23,32,53,.96), rgba(23,32,53,.90)),
    linear-gradient(135deg, transparent 0%, var(--page-spot-1) 100%) !important;
  border-color: rgba(138,160,190,.18) !important;
}

.statement-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86)),
    linear-gradient(135deg, transparent 0%, rgba(255,255,255,.02) 100%) !important;
  border-color: rgba(180,196,216,.85) !important;
}
[data-theme="dark"] .statement-card {
  background:
    linear-gradient(180deg, rgba(23,32,53,.97), rgba(23,32,53,.90)),
    linear-gradient(135deg, transparent 0%, rgba(255,255,255,.02) 100%) !important;
  border-color: rgba(138,160,190,.17) !important;
}
.statement-card:hover:not(.selected) {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.90)),
    linear-gradient(135deg, transparent 0%, var(--page-spot-1) 100%) !important;
}
[data-theme="dark"] .statement-card:hover:not(.selected) {
  background:
    linear-gradient(180deg, rgba(30,45,68,.97), rgba(23,32,53,.92)),
    linear-gradient(135deg, transparent 0%, var(--page-spot-1) 100%) !important;
}
.statement-card.selected {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.90)),
    linear-gradient(135deg, transparent 0%, var(--page-spot-1) 100%) !important;
  box-shadow: 0 12px 28px rgba(8,34,74,.10), 0 0 0 1px rgba(255,255,255,.42) inset;
}
[data-theme="dark"] .statement-card.selected {
  background:
    linear-gradient(180deg, rgba(30,45,68,.97), rgba(23,32,53,.92)),
    linear-gradient(135deg, transparent 0%, var(--page-spot-1) 100%) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.03) inset;
}

.table-wrap {
  box-shadow: 0 18px 42px rgba(8,34,74,.08);
}
.table th {
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(244,248,253,.84)) !important;
}
[data-theme="dark"] .table th {
  background: linear-gradient(180deg, rgba(30,45,68,.96), rgba(23,32,53,.90)) !important;
}

@media print {
  body,
  .report-page {
    background: #fff !important;
  }
  body::before,
  body::after,
  .app-header::before,
  .app-header::after {
    display: none !important;
  }
}

/* ===================================================================
   ST30 UI Update v112 — Referrals Table Cleanup + Dark Theme Select Fix
   =================================================================== */
.admin-page .referrals-card {
  max-width: none;
}
.admin-page .referrals-wrap {
  overflow-x: auto;
  overflow-y: visible;
}
.admin-page .referrals-table {
  min-width: 620px;
  table-layout: auto !important;
}
.admin-page .referrals-table .col-ref-status { width: 140px; }
.admin-page .referrals-table .col-ref-actions { width: 190px; }
.admin-page .referrals-table th,
.admin-page .referrals-table td {
  padding: 12px 16px;
  vertical-align: middle;
}
.admin-page .referrals-table th:first-child,
.admin-page .referrals-table td:first-child {
  text-align: left !important;
}
.admin-page .referrals-table th:nth-child(2),
.admin-page .referrals-table td:nth-child(2) {
  text-align: center !important;
}
.admin-page .referrals-table th:last-child,
.admin-page .referrals-table td:last-child {
  text-align: right !important;
}
.admin-page .referrals-table td:first-child b {
  display: inline-block;
  color: var(--tx);
  font-size: .98rem;
  line-height: 1.3;
}
.admin-page .referrals-table .actions-cell {
  white-space: nowrap;
}
.admin-page .referrals-table td.actions-cell {
  display: table-cell !important;
}
.admin-page .referrals-table td.actions-cell .btn-sm {
  min-width: 72px;
}

.theme-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.75)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 12px center;
  background-size: auto, 14px 14px;
}
[data-theme="dark"] .theme-select {
  background-image:
    linear-gradient(135deg, rgba(30,45,68,.96), rgba(23,32,53,.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.theme-select option,
.theme-select optgroup {
  color: #0f1f3b;
  background: #ffffff;
}
[data-theme="dark"] .theme-select option,
[data-theme="dark"] .theme-select optgroup {
  color: #dde8f6;
  background: #172035;
}

@media (max-width: 760px) {
  .admin-page .referrals-table {
    min-width: 0;
  }
}


/* ===================================================================
   ST30 UI Update v114 — Mobile Header Compact Fix
   Masalah: di viewport smartphone, kombinasi logo + Admin + tema + toggle
   melebihi lebar layar sehingga icon light/dark terpotong.
   =================================================================== */
@media (max-width: 560px) {
  .app-header {
    overflow: visible;
  }
  .nav {
    max-width: 100%;
    padding: 8px 10px !important;
    gap: 6px !important;
  }
  .brand {
    min-width: 0;
    flex: 0 1 auto;
  }
  .brand-logo {
    height: 38px !important;
    max-width: 132px !important;
    object-fit: contain;
  }
  .nav-actions {
    gap: 5px !important;
    flex: 0 0 auto;
    min-width: 0;
  }
  .nav-actions .btn {
    min-height: 36px;
    padding: 0 13px !important;
    font-size: .82rem !important;
    border-width: 1.25px;
  }
  .theme-select {
    height: 36px !important;
    max-width: 86px !important;
    min-width: 0;
    padding: 0 24px 0 10px !important;
    font-size: .76rem !important;
    border-width: 1.25px;
    background-size: 100% 100%, 12px 12px !important;
    background-position: center, right 9px center !important;
  }
  .theme-toggle {
    width: 38px !important;
    height: 36px !important;
    min-width: 38px !important;
    padding: 0 !important;
    justify-content: center;
    border-width: 1.25px;
  }
}

@media (max-width: 380px) {
  .nav {
    padding-inline: 8px !important;
    gap: 4px !important;
  }
  .brand-logo {
    height: 34px !important;
    max-width: 112px !important;
  }
  .nav-actions {
    gap: 4px !important;
  }
  .nav-actions .btn {
    min-height: 34px;
    padding: 0 10px !important;
    font-size: .76rem !important;
  }
  .theme-select {
    height: 34px !important;
    max-width: 76px !important;
    padding-left: 8px !important;
    padding-right: 22px !important;
    font-size: .70rem !important;
    background-position: center, right 8px center !important;
  }
  .theme-toggle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: .9rem !important;
  }
}

/* Fallback kalau browser memperbesar font/select secara agresif */
@media (max-width: 560px) and (orientation: portrait) {
  .nav-actions {
    transform-origin: right center;
  }
}


/* ===================================================================
   ST30 UI Update v117 — Participants Refresh Button
   =================================================================== */
.admin-page .admin-toolbar-actions .refresh-btn {
  color: var(--teal);
  border-color: rgba(7,153,155,.32);
}
.admin-page .admin-toolbar-actions .refresh-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--navy2));
  border-color: transparent;
}
@media (max-width: 760px) {
  .admin-page .admin-toolbar-actions .refresh-btn {
    order: -1;
  }
}


/* ===================================================================
   ST30 UI Update v118 — Persistent Bulk Selection Across Search/Page
   =================================================================== */
.admin-page #selectedCount {
  color: var(--teal);
  font-weight: 900;
}


/* ===================================================================
   ST30 UI Update v122 — Safe Resume Draft Choice
   =================================================================== */
.resume-box {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(7,153,155,.26);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.66)),
    linear-gradient(135deg, var(--page-spot-1, rgba(7,153,155,.12)), transparent 80%);
  box-shadow: 0 12px 28px rgba(8,34,74,.08);
}
[data-theme="dark"] .resume-box {
  background:
    linear-gradient(135deg, rgba(23,32,53,.94), rgba(23,32,53,.86)),
    linear-gradient(135deg, var(--page-spot-1, rgba(7,153,155,.18)), transparent 80%);
  border-color: rgba(138,160,190,.18);
}
.resume-box b {
  display: block;
  color: var(--navy);
  font-size: .98rem;
  line-height: 1.35;
  margin-bottom: 5px;
}
[data-theme="dark"] .resume-box b { color: var(--teal2); }
.resume-box span {
  display: block;
  color: var(--tx2);
  font-size: .9rem;
  line-height: 1.55;
}
.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
@media (max-width: 520px) {
  .resume-actions .btn {
    width: 100%;
  }
}


/* ===================================================================
   ST30 UI Update v123 — Career Match & Appendix Typology Highlight
   =================================================================== */
.career-table tr.career-match-red td {
  background: #fff1f4 !important;
  border-color: #f6a6b8 !important;
  color: #4a1020 !important;
}
.career-table tr.career-match-red td:first-child {
  box-shadow: inset 5px 0 0 #e11d48;
}
.career-table tr.career-match-red td:first-child b {
  color: #9f1239 !important;
}
.career-table tr.career-match-yellow td {
  background: #fff8db !important;
  border-color: #e8c15c !important;
  color: #3f2d08 !important;
}
.career-table tr.career-match-yellow td:first-child {
  box-shadow: inset 5px 0 0 #f2aa12;
}
.career-table tr.career-match-yellow td:first-child b {
  color: #92400e !important;
}

.typo-mini.typo-mini-red {
  background: #fff1f4 !important;
  border-color: #f6a6b8 !important;
  box-shadow: inset 4px 0 0 #e11d48;
}
.typo-mini.typo-mini-red,
.typo-mini.typo-mini-red p,
.typo-mini.typo-mini-red small {
  color: #4a1020 !important;
}
.typo-mini.typo-mini-red b {
  color: #9f1239 !important;
}
.typo-mini.typo-mini-yellow {
  background: #fff8db !important;
  border-color: #e8c15c !important;
  box-shadow: inset 4px 0 0 #f2aa12;
}
.typo-mini.typo-mini-yellow,
.typo-mini.typo-mini-yellow p,
.typo-mini.typo-mini-yellow small {
  color: #3f2d08 !important;
}
.typo-mini.typo-mini-yellow b {
  color: #92400e !important;
}

[data-theme="dark"] .career-table tr.career-match-red td {
  background: #451224 !important;
  border-color: #fb7185 !important;
  color: #ffe4ea !important;
}
[data-theme="dark"] .career-table tr.career-match-red td:first-child b {
  color: #fecdd3 !important;
}
[data-theme="dark"] .career-table tr.career-match-yellow td {
  background: #3f2f0b !important;
  border-color: #facc15 !important;
  color: #fff1b8 !important;
}
[data-theme="dark"] .career-table tr.career-match-yellow td:first-child b {
  color: #fde68a !important;
}
[data-theme="dark"] .typo-mini.typo-mini-red {
  background: #451224 !important;
  border-color: #fb7185 !important;
}
[data-theme="dark"] .typo-mini.typo-mini-red,
[data-theme="dark"] .typo-mini.typo-mini-red p,
[data-theme="dark"] .typo-mini.typo-mini-red small {
  color: #ffe4ea !important;
}
[data-theme="dark"] .typo-mini.typo-mini-red b {
  color: #fecdd3 !important;
}
[data-theme="dark"] .typo-mini.typo-mini-yellow {
  background: #3f2f0b !important;
  border-color: #facc15 !important;
}
[data-theme="dark"] .typo-mini.typo-mini-yellow,
[data-theme="dark"] .typo-mini.typo-mini-yellow p,
[data-theme="dark"] .typo-mini.typo-mini-yellow small {
  color: #fff1b8 !important;
}
[data-theme="dark"] .typo-mini.typo-mini-yellow b {
  color: #fde68a !important;
}

@media print {
  .career-table tr.career-match-red td {
    background: #fff1f4 !important;
    border-color: #d65275 !important;
    color: #4a1020 !important;
  }
  .career-table tr.career-match-yellow td {
    background: #fff8db !important;
    border-color: #bd8200 !important;
    color: #3f2d08 !important;
  }
  .typo-mini.typo-mini-red {
    background: #fff1f4 !important;
    border-color: #d65275 !important;
  }
  .typo-mini.typo-mini-yellow {
    background: #fff8db !important;
    border-color: #bd8200 !important;
  }
}


/* ===================================================================
   ST30 UI Update v124f — Web Logo Reduced Additional ~5%
   Catatan: khusus web/admin/report web. Ukuran logo PDF tetap sama.
   =================================================================== */
.brand-logo {
  height: 45px !important;
  max-width: 170px !important;
  width: auto !important;
  object-fit: contain !important;
}
.report-logo img {
  height: 49px !important;
  max-width: 210px !important;
  width: auto !important;
  object-fit: contain !important;
}
.report-head {
  gap: 18px;
  align-items: center;
}
@media (max-width: 760px) {
  .brand-logo {
    height: 37px !important;
    max-width: 143px !important;
    width: auto !important;
  }
}
@media (max-width: 640px) {
  .report-logo img {
    height: 41px !important;
    max-width: 158px !important;
    width: auto !important;
  }
  .report-head { gap: 12px; }
}
@media (max-width: 560px) {
  .brand-logo {
    height: 30px !important;
    max-width: 116px !important;
    width: auto !important;
  }
}
@media (max-width: 380px) {
  .brand-logo {
    height: 28px !important;
    max-width: 99px !important;
    width: auto !important;
  }
}

/* ===================================================================
   ST30 Assessment Sticky Progress Fix v125
   Keeps the selected counter visible below the sticky header while
   scrolling through the statement list.
   =================================================================== */
.assessment-shell {
  scroll-padding-top: 102px;
}
.assessment-shell .progress-card {
  top: 88px !important;
  z-index: 95;
  margin-bottom: 4px;
  border-color: rgba(122, 154, 196, .42) !important;
  box-shadow:
    0 20px 48px rgba(6, 16, 35, .20),
    0 2px 0 rgba(255, 255, 255, .55) inset !important;
}

[data-theme="dark"] .assessment-shell .progress-card {
  border-color: rgba(138, 160, 190, .34) !important;
  box-shadow:
    0 22px 56px rgba(0, 0, 0, .46),
    0 1px 0 rgba(255, 255, 255, .05) inset !important;
}

@media (max-width: 900px) {
  .assessment-shell .progress-card {
    top: 86px !important;
  }
}

@media (max-width: 640px) {
  .assessment-shell {
    scroll-padding-top: 94px;
  }
  .assessment-shell .progress-card {
    top: 78px !important;
  }
}
.language-switcher{display:inline-flex;align-items:center;gap:7px;font-size:.78rem;font-weight:800;letter-spacing:.04em;color:var(--tx3);white-space:nowrap}.language-switcher a{color:var(--tx3);text-decoration:none;padding:5px 7px;border-radius:7px}.language-switcher a.active{color:var(--primary,#0f766e);background:color-mix(in srgb,var(--primary,#0f766e) 12%,transparent)}.language-switcher a:hover{color:var(--tx1)}


/* v1.0.45 — explicit bilingual controls for report/admin */
.report-language-control {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 8px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card2, var(--card));
}
.report-language-label {
  font-size: .72rem; font-weight: 800; color: var(--tx3);
  padding-left: 3px; white-space: nowrap;
}
.report-language-control .language-switcher { gap: 3px; }
.report-language-control .language-switcher a { min-width: 34px; text-align: center; }
.admin-report-language-actions {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end;
}
@media (max-width: 680px) {
  .report-actions { justify-content: flex-start; padding: 10px 12px; }
  .report-language-control { order: -1; width: 100%; justify-content: center; }
  .report-actions .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
  .admin-report-language-actions { justify-content: flex-start; min-width: 190px; }
}


/* v1.0.46 — reliable bilingual output menu in Admin */
.admin-version-badge {
  display:inline-flex; align-items:center; padding:5px 9px; border-radius:999px;
  border:1px solid var(--line); color:var(--tx3); font-size:.72rem; font-weight:900;
  background:var(--card2, var(--card)); white-space:nowrap;
}
.admin-output-menu { position:relative; display:inline-block; }
.admin-output-menu > summary { list-style:none; cursor:pointer; user-select:none; white-space:nowrap; }
.admin-output-menu > summary::-webkit-details-marker { display:none; }
.admin-output-menu-panel {
  position:absolute; right:0; top:calc(100% + 7px); z-index:200; min-width:190px;
  padding:8px; border:1px solid var(--line); border-radius:14px;
  background:var(--card); box-shadow:0 14px 38px rgba(10,22,40,.18);
}
.admin-output-menu-panel a {
  display:flex; align-items:center; min-height:36px; padding:8px 10px; border-radius:9px;
  color:var(--tx1); font-size:.82rem; font-weight:800; text-decoration:none;
}
.admin-output-menu-panel a:hover { background:rgba(13,148,136,.10); color:var(--teal); }
.admin-output-menu-title { padding:5px 10px 3px; color:var(--tx3); font-size:.68rem; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.admin-output-menu-separator { height:1px; margin:6px 4px; background:var(--line); }
.admin-view-output-actions { display:flex; flex-wrap:wrap; gap:8px; }
@media (max-width:760px) {
  /*
   * Mobile fallback: keep the native <details> menu usable even before JS
   * initializes. The enhanced JS version below portals the menu to <body>
   * as a bottom sheet, avoiding clipping by table/card overflow on mobile
   * browsers (notably Safari/iOS).
   */
  .admin-page .admin-card { overflow: visible; }
  .admin-output-menu-panel {
    position:absolute;
    left:0;
    right:auto;
    top:calc(100% + 7px);
    bottom:auto;
    min-width:min(240px, calc(100vw - 44px));
    max-width:calc(100vw - 28px);
  }
  .admin-version-badge { display:none; }
}

/* Mobile Report/PDF portal sheet. Kept outside table/card stacking contexts. */
.admin-output-mobile-layer[hidden] { display:none !important; }
.admin-output-mobile-layer {
  position:fixed;
  inset:0;
  z-index:5000;
  display:grid;
  align-items:end;
  justify-items:stretch;
  isolation:isolate;
}
.admin-output-mobile-backdrop {
  position:absolute;
  inset:0;
  border:0;
  padding:0;
  margin:0;
  background:rgba(2, 12, 27, .58);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  cursor:pointer;
}
.admin-output-mobile-sheet {
  position:relative;
  z-index:1;
  width:min(100%, 520px);
  max-height:78vh;
  max-height:min(78dvh, 620px);
  margin:0 auto;
  padding:10px 14px calc(14px + env(safe-area-inset-bottom));
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:22px 22px 0 0;
  background:var(--card);
  box-shadow:0 -20px 55px rgba(2, 12, 27, .28);
  transform:translateY(14px);
  opacity:0;
  transition:transform .18s ease, opacity .18s ease;
}
.admin-output-mobile-layer.is-open .admin-output-mobile-sheet {
  transform:translateY(0);
  opacity:1;
}
.admin-output-mobile-handle {
  width:44px;
  height:5px;
  margin:2px auto 10px;
  border-radius:999px;
  background:color-mix(in srgb, var(--tx3) 35%, transparent);
}
.admin-output-mobile-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:2px 2px 10px;
  border-bottom:1px solid var(--line);
}
.admin-output-mobile-head strong {
  color:var(--tx1);
  font-size:.96rem;
  line-height:1.25;
}
.admin-output-mobile-close {
  display:grid;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--card2);
  color:var(--tx1);
  font:900 1.15rem/1 system-ui, sans-serif;
  cursor:pointer;
}
.admin-output-mobile-content { padding-top:8px; }
.admin-output-mobile-content .admin-output-menu-title {
  padding:10px 8px 5px;
}
.admin-output-mobile-content .admin-output-menu-separator {
  margin:8px 2px;
}
.admin-output-mobile-content a {
  display:flex;
  align-items:center;
  min-height:48px;
  padding:11px 12px;
  border-radius:12px;
  color:var(--tx1);
  font-size:.9rem;
  font-weight:850;
  text-decoration:none;
  touch-action:manipulation;
}
.admin-output-mobile-content a:active,
.admin-output-mobile-content a:hover {
  background:color-mix(in srgb, var(--teal) 11%, var(--card));
  color:var(--teal);
}
body.admin-output-mobile-open { overflow:hidden; }
@media (prefers-reduced-motion:reduce) {
  .admin-output-mobile-sheet { transition:none; }
}

/* Explicit language selector for admin Bulk ZIP PDF. */
.admin-page .bulk-language-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 4px 8px 4px 11px;
  border: 1px solid var(--border, #d7e1ef);
  border-radius: 12px;
  background: var(--surface, #fff);
  color: var(--text-muted, #64748b);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.admin-page .bulk-language-control select {
  min-height: 27px;
  padding: 3px 26px 3px 8px;
  border: 0;
  border-left: 1px solid var(--border, #d7e1ef);
  background: transparent;
  color: var(--text, #0f2747);
  font: inherit;
  cursor: pointer;
  outline: none;
}
@media (max-width: 720px) {
  .admin-page .bulk-language-control,
  .admin-page #bulkPdfButton {
    width: 100%;
    justify-content: space-between;
  }
}


/* ===================================================================
   ST30 Admin Toolbar Stability Fix — 2026-07-11
   Keep search/filter controls and bulk actions on separate rows. The
   previous two-column grid could overlap when the language selector was
   added or when browser zoom/font metrics differed from development.
   =================================================================== */
.admin-page .admin-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 12px !important;
}
.admin-page .admin-search {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100%;
  min-width: 0;
}
.admin-page .admin-search-input {
  flex: 1 1 280px !important;
  width: auto !important;
  min-width: 220px !important;
  max-width: 420px !important;
}
.admin-page .admin-toolbar-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100%;
  min-width: 0;
}
.admin-page .admin-limit {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}
.admin-page .bulk-language-control {
  flex: 0 0 auto;
}
.admin-page #bulkPdfButton {
  flex: 0 0 auto;
}
@media (max-width: 980px) {
  .admin-page .admin-limit {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
}
@media (max-width: 720px) {
  .admin-page .admin-search-input,
  .admin-page .admin-date-range,
  .admin-page .admin-date-field,
  .admin-page .admin-date-input {
    width: 100% !important;
    max-width: none !important;
  }
  .admin-page .admin-date-range {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .admin-page .admin-toolbar-actions > .btn,
  .admin-page .bulk-language-control,
  .admin-page #bulkPdfButton {
    width: 100%;
    justify-content: center !important;
  }
}


/* ST30 Admin — filter Yang Merekomendasikan */
.admin-page .admin-referrer-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 1 260px;
  min-width: 210px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx3);
  white-space: nowrap;
}
.admin-page .admin-referrer-select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--tx);
  padding: 8px 34px 8px 11px;
  font: inherit;
  font-weight: 600;
}
.admin-page .admin-referrer-select:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--teal);
}
@media (max-width: 720px) {
  .admin-page .admin-referrer-field {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* ST30 v1.0.50 — compact admin label on narrow mobile headers */
.admin-label-short {
  display: none;
}

@media (max-width: 430px) {
  .admin-entry {
    min-width: 0 !important;
    padding-inline: 11px !important;
  }
  .admin-label-full {
    display: none;
  }
  .admin-label-short {
    display: inline;
  }
}

/* ST30 SEO content layer — 2026-07-15, layout revision v2 */
.home-page {
  padding-top: 28px;
  padding-bottom: 64px;
}

.home-hero {
  min-height: 0;
  padding-block: 0 10px;
}

.seo-intro,
.faq-section {
  width: 100%;
  margin-top: 22px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--sh);
}

.seo-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.seo-intro::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  right: -190px;
  top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7,153,155,.12), transparent 68%);
  pointer-events: none;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.seo-copy h2,
.faq-section h2,
.article-card h1,
.article-card h2 {
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -.025em;
}

[data-theme="dark"] .seo-copy h2,
[data-theme="dark"] .faq-section h2,
[data-theme="dark"] .article-card h1,
[data-theme="dark"] .article-card h2 {
  color: var(--tx);
}

.seo-copy h2 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.seo-copy p,
.faq-section p,
.article-card p,
.article-card li {
  color: var(--tx2);
  line-height: 1.75;
}

.seo-copy p {
  max-width: 720px;
  margin: 0 0 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.seo-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.seo-points div {
  min-height: 126px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card2);
}

.seo-points b {
  display: block;
  margin-bottom: 3px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1;
  color: var(--teal);
}

.seo-points span {
  max-width: 90px;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--tx2);
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  column-gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.faq-section > .section-kicker,
.faq-section > h2 {
  grid-column: 1;
}

.faq-section > .section-kicker { margin-top: 5px; }

.faq-section > h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.faq-section > details {
  grid-column: 2;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card2);
  padding: 0 18px;
  margin-bottom: 10px;
}

.faq-section summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 34px 17px 0;
  position: relative;
  font-weight: 800;
  line-height: 1.4;
  color: var(--navy);
}

[data-theme="dark"] .faq-section summary { color: var(--tx); }
.faq-section summary::-webkit-details-marker { display: none; }

.faq-section summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(7,153,155,.1);
  color: var(--teal);
  font-size: 1.1rem;
}

.faq-section details[open] summary::after { content: '−'; }

.faq-section details p {
  margin: -2px 0 17px;
  padding-right: 24px;
}

.article-page {
  padding-top: 30px;
  padding-bottom: 64px;
}

.article-card {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--sh);
}

.article-card h1 {
  max-width: 790px;
  margin: .2em 0 .42em;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.article-card h2 {
  margin: 2.1em 0 .65em;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.article-card ul,
.article-card ol {
  margin: 12px 0 0;
  padding-left: 1.35rem;
}

.article-card li + li { margin-top: 8px; }
.article-lead { max-width: 760px; font-size: 1.08rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  font-size: .84rem;
  color: var(--tx3);
}

.breadcrumb a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 800;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 8px;
}

.definition-grid section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card2);
}

.definition-grid h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1rem;
}

[data-theme="dark"] .definition-grid h3 { color: var(--tx); }
.definition-grid p { margin: 0; font-size: .92rem; }

.article-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-top: 42px;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid rgba(7,153,155,.25);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(7,153,155,.10), rgba(7,153,155,.025)), var(--card2);
}

.article-cta h2 { margin: 0 0 7px; }
.article-cta p { margin: 0; }

@media (max-width: 900px) {
  .seo-intro { grid-template-columns: 1fr; }
  .seo-points { max-width: 560px; }
  .faq-section { grid-template-columns: 1fr; }
  .faq-section > .section-kicker,
  .faq-section > h2,
  .faq-section > details { grid-column: 1; }
  .faq-section > h2 { margin-bottom: 22px; }
}

@media (max-width: 760px) {
  .home-page { padding: 18px 16px 48px; }
  .home-hero { padding: 0; }
  .seo-intro,
  .faq-section { margin-top: 16px; padding: 22px 18px; border-radius: 20px; }
  .seo-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .seo-points div { min-height: 102px; padding: 14px 7px; border-radius: 14px; }
  .seo-points span { font-size: .7rem; }
  .definition-grid { grid-template-columns: 1fr; }
  .article-cta { align-items: stretch; flex-direction: column; }
  .article-cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 430px) {
  .seo-points { grid-template-columns: 1fr; }
  .seo-points div { min-height: 0; flex-direction: row; justify-content: flex-start; gap: 14px; text-align: left; }
  .seo-points b { width: 52px; margin: 0; }
  .seo-points span { max-width: none; font-size: .78rem; }
}


/* SEO v3: stable FAQ layout and spacing */
.faq-section {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.faq-heading {
  min-width: 0;
  position: sticky;
  top: 94px;
}

.faq-heading .section-kicker { margin-top: 5px; }
.faq-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}
.faq-heading p {
  margin: 0;
  max-width: 360px;
  font-size: .94rem;
}

.faq-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.faq-list details {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card2);
  padding: 0 18px;
  margin: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 42px 17px 0;
  position: relative;
  font-weight: 800;
  line-height: 1.4;
  color: var(--navy);
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(7,153,155,.1);
  color: var(--teal);
  font-size: 1.15rem;
  line-height: 1;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p {
  margin: -1px 0 18px;
  padding: 0 36px 0 0;
}
[data-theme="dark"] .faq-list summary { color: var(--tx); }

@media (max-width: 900px) {
  .faq-section { grid-template-columns: 1fr; gap: 22px; }
  .faq-heading { position: static; }
  .faq-heading p { max-width: 650px; }
}

@media (max-width: 560px) {
  .faq-list details { padding: 0 15px; border-radius: 14px; }
  .faq-list summary { padding: 15px 38px 15px 0; font-size: .94rem; }
  .faq-list summary::after { width: 26px; height: 26px; }
  .faq-list details p { padding-right: 0; font-size: .9rem; line-height: 1.65; }
}


/* ST30 SEO v5 — balanced home hero cards */
@media (min-width: 761px) {
  .home-hero {
    align-items: stretch;
  }

  .home-hero > .hero-card {
    height: 100%;
  }

  .home-hero > section.hero-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.hero-supporting-copy {
  margin-top: 14px;
}

.home-hero .hero-actions {
  margin-top: 28px;
}

@media (max-width: 760px) {
  .hero-supporting-copy {
    margin-top: 12px;
  }
}

/* ===================================================================
   ST30 Assessment Sticky Progress — tighter header spacing
   Keeps a small breathing gap below the sticky header while maximizing
   the reading area on desktop, tablet, and mobile.
   =================================================================== */
.assessment-shell {
  scroll-padding-top: 82px;
}

.assessment-shell .progress-card {
  top: 68px !important;
}

@media (max-width: 900px) {
  .assessment-shell {
    scroll-padding-top: 80px;
  }

  .assessment-shell .progress-card {
    top: 66px !important;
  }
}

@media (max-width: 640px) {
  .assessment-shell {
    scroll-padding-top: 74px;
  }

  .assessment-shell .progress-card {
    top: 62px !important;
  }
}

/* ===================================================================
   ST30 Homepage Announcement / Admin Information
   =================================================================== */
body.announcement-open { overflow: hidden; }

.site-announcement-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 18, 31, .68);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: announcementFadeIn .18s ease-out both;
}

.site-announcement-modal.is-closing {
  pointer-events: none;
  animation: announcementFadeOut .18s ease-in both;
}

.site-announcement-card {
  width: min(620px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 17px;
  padding: 25px;
  border: 2px solid;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
  animation: announcementCardIn .22s ease-out both;
}

.site-announcement-warning {
  border-color: #e8aa19;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32), 0 0 0 5px rgba(232, 170, 25, .12);
}
.site-announcement-danger {
  border-color: #dc3f48;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32), 0 0 0 5px rgba(220, 63, 72, .12);
}

.site-announcement-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1;
}
.site-announcement-warning .site-announcement-icon {
  color: #875b00;
  background: #fff1bd;
}
.site-announcement-danger .site-announcement-icon {
  color: #a31420;
  background: #ffe0e2;
}

.site-announcement-content { min-width: 0; }
.site-announcement-label {
  display: block;
  margin-bottom: 5px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
}
.site-announcement-warning .site-announcement-label { color: #a66c00; }
.site-announcement-danger .site-announcement-label { color: #c12631; }
.site-announcement-content h2 {
  margin: 0;
  color: var(--tx);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.28;
}
.site-announcement-body {
  margin-top: 13px;
  color: var(--tx2);
  font-size: .98rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
.site-announcement-ok { margin-top: 22px; min-width: 170px; }

@keyframes announcementFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes announcementFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes announcementCardIn {
  from { opacity: 0; transform: translateY(12px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.announcement-admin-card { max-width: 1080px; }
.announcement-active-pill {
  color: #087c6e;
  background: rgba(13, 148, 136, .12);
}
.announcement-saved-alert { margin: 16px 0 0; }
.announcement-admin-form { margin-top: 20px; }
.announcement-settings-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, .8fr);
  align-items: end;
  gap: 18px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card2);
}
.announcement-toggle {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  color: var(--tx);
  cursor: pointer;
}
.announcement-toggle input { width: 19px; height: 19px; accent-color: var(--teal); }
.announcement-level-field { margin: 0; }
.announcement-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.announcement-editor-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card2);
}
.announcement-editor-panel .field + .field { margin-top: 14px; }
.announcement-editor-heading {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--tx);
  font-size: .95rem;
  font-weight: 900;
}
.announcement-editor-heading span { color: var(--tx3); font-weight: 700; }
.announcement-editor-panel textarea {
  width: 100%;
  min-height: 155px;
  resize: vertical;
  line-height: 1.55;
}
.announcement-admin-note {
  margin-top: 15px;
  color: var(--tx3);
  font-size: .82rem;
  line-height: 1.55;
}
.announcement-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .site-announcement-modal { padding: 15px; align-items: center; }
  .site-announcement-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;
    padding: 20px 17px;
    border-radius: 18px;
  }
  .site-announcement-icon { width: 40px; height: 40px; border-radius: 12px; }
  .site-announcement-body { font-size: .92rem; line-height: 1.65; }
  .site-announcement-ok { width: 100%; }
  .announcement-settings-row,
  .announcement-language-grid { grid-template-columns: 1fr; }
  .announcement-admin-actions > .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .site-announcement-modal,
  .site-announcement-modal.is-closing,
  .site-announcement-card { animation: none; }
}

/* =========================================================
   Youth-oriented landing page — production test variant
   ========================================================= */
.youth-home-hero {
  align-items: stretch;
  gap: 22px;
}

.youth-home-hero > .hero-card {
  min-height: 570px;
}

.youth-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.youth-hero-copy::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: -120px;
  bottom: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--teal) 16%, transparent), transparent 68%);
  pointer-events: none;
}

.youth-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 5vw, 4.7rem);
  line-height: .99;
  letter-spacing: -.052em;
  margin-bottom: 22px;
}

.youth-hero-lead {
  max-width: 700px;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.72;
  color: var(--tx2);
  margin: 0;
}

.assessment-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.assessment-assurances span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  color: var(--tx2);
  font-size: .82rem;
  font-weight: 650;
}

.assessment-assurances span::before {
  content: '✓';
  color: var(--teal);
  font-weight: 900;
}

.youth-benefit-note {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 22px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--teal) 26%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 9%, var(--card)), var(--card));
}

.youth-benefit-note p {
  margin: 0;
  color: var(--tx2);
  font-size: .9rem;
  line-height: 1.58;
}

.youth-benefit-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--teal);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.youth-hero-copy .hero-actions {
  margin-top: 24px;
  gap: 10px;
}

.btn-youth-primary,
.btn-youth-secondary {
  min-height: 49px;
}

.result-preview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--teal) 9%, var(--card)), var(--card) 43%),
    var(--card);
}

.result-preview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--tx2) 25%, transparent) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
}

.result-preview-card > * {
  position: relative;
  z-index: 1;
}

.result-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.result-preview-head h2 {
  margin: 7px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 13%, var(--card));
  border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--line));
  color: var(--teal);
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pattern-visual {
  position: relative;
  flex: 1;
  min-height: 270px;
  margin: 18px 0 14px;
  display: grid;
  place-items: center;
}

.pattern-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--teal) 25%, var(--line));
}

.pattern-orbit-one { width: 210px; height: 210px; }
.pattern-orbit-two { width: 290px; height: 290px; border-style: dashed; opacity: .65; }

.pattern-center {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 34px;
  transform: rotate(8deg);
  background: linear-gradient(145deg, var(--teal), color-mix(in srgb, var(--teal) 62%, #5754e9));
  color: #fff;
  box-shadow: 0 22px 46px color-mix(in srgb, var(--teal) 28%, transparent);
}

.pattern-center span,
.pattern-center strong { transform: rotate(-8deg); }
.pattern-center span { font-size: 1.1rem; font-weight: 700; }
.pattern-center strong { font-size: 2.6rem; line-height: 1; letter-spacing: -.08em; }

.role-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 9px 24px rgba(15, 23, 42, .10);
  color: var(--tx);
  font-size: .78rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.role-chip-a { top: 22px; left: 12%; }
.role-chip-b { top: 72px; right: 5%; }
.role-chip-c { bottom: 46px; left: 5%; }
.role-chip-d { bottom: 14px; right: 14%; }

.preview-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.preview-insight {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
}

.insight-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 5px;
}

.insight-dot-strong { background: #ef5b68; }
.insight-dot-neutral { background: #e9b93f; }

.preview-insight b,
.preview-insight small { display: block; }
.preview-insight b { font-size: .79rem; line-height: 1.3; }
.preview-insight small { margin-top: 4px; color: var(--tx2); font-size: .7rem; line-height: 1.4; }

.preview-report-button {
  width: 100%;
  margin-top: 12px;
}

.youth-value-section {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.youth-value-heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.youth-value-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.youth-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.youth-value-grid article {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--teal) 5%, var(--card)), var(--card));
}

.value-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 11%, var(--card));
  border: 1px solid color-mix(in srgb, var(--teal) 23%, var(--line));
  font-size: .78rem;
  font-weight: 850;
}

.youth-value-grid h3 {
  margin: 25px 0 8px;
  font-size: 1.05rem;
}

.youth-value-grid p {
  margin: 0;
  color: var(--tx2);
  font-size: .9rem;
  line-height: 1.62;
}

@media (max-width: 960px) {
  .youth-home-hero > .hero-card { min-height: auto; }
  .youth-hero-copy { justify-content: flex-start; }
  .youth-value-grid { grid-template-columns: 1fr; }
  .youth-value-grid article { min-height: 0; }
}

@media (max-width: 640px) {
  .youth-home-hero { gap: 14px; }
  .youth-hero-copy h1 { font-size: clamp(2.2rem, 11vw, 3.25rem); }
  .assessment-assurances { display: grid; grid-template-columns: 1fr; }
  .assessment-assurances span { width: 100%; }
  .youth-benefit-note { grid-template-columns: 32px 1fr; padding: 13px; }
  .youth-hero-copy .hero-actions { display: grid; grid-template-columns: 1fr; }
  .btn-youth-primary, .btn-youth-secondary { width: 100%; }
  .result-preview-card { min-height: 510px !important; }
  .pattern-visual { min-height: 240px; }
  .pattern-orbit-one { width: 176px; height: 176px; }
  .pattern-orbit-two { width: 238px; height: 238px; }
  .role-chip { font-size: .7rem; padding: 6px 9px; }
  .preview-insights { grid-template-columns: 1fr; }
  .youth-value-section { padding: 22px 16px; border-radius: 21px; }
}

/* ===== ST30 landing v12: realistic report preview ===== */
.realistic-result-preview {
  padding: clamp(20px, 2.7vw, 30px);
}

.realistic-preview-head h2 {
  max-width: 540px;
}

.preview-badge-simulated {
  white-space: nowrap;
}

.mini-report-shell {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--teal));
  border-radius: 20px;
  background: color-mix(in srgb, var(--card) 96%, #ffffff);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .11);
}

.mini-report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, color-mix(in srgb, var(--teal) 9%, var(--card)), var(--card));
}

.mini-report-toolbar > div {
  min-width: 0;
}

.mini-report-label,
.mini-report-date {
  display: block;
  color: var(--tx2);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mini-report-toolbar strong {
  display: block;
  margin-top: 2px;
  color: var(--tx);
  font-size: .86rem;
}

.mini-report-date {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  letter-spacing: .04em;
  text-transform: none;
}

.mini-report-main {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(168px, .82fr);
  gap: 14px;
  padding: 14px;
}

.mini-map-wrap {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 270px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 92%, #f8fbff);
}

.mini-map-wrap .st30-map-svg {
  display: block;
  width: min(100%, 325px);
  height: auto;
  max-height: 310px;
}

.mini-report-summary {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(150deg, color-mix(in srgb, #ef4444 5%, var(--card)), var(--card));
}

.mini-summary-kicker {
  color: #dc2626;
  font-size: .63rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.mini-report-summary h3 {
  margin: 4px 0 10px;
  color: var(--tx);
  font-size: .98rem;
  letter-spacing: -.015em;
}

.mini-top-list {
  display: grid;
  gap: 6px;
}

.mini-top-item {
  display: grid;
  grid-template-columns: 22px 35px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px;
  border: 1px solid color-mix(in srgb, #ef4444 22%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--card) 91%, #fff1f2);
}

.mini-top-rank {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: #ef4444;
  color: #fff;
  font-size: .66rem;
  font-weight: 900;
}

.mini-top-code {
  color: #dc2626;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.mini-top-item b,
.mini-top-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-top-item b {
  color: var(--tx);
  font-size: .72rem;
  line-height: 1.2;
}

.mini-top-item small {
  margin-top: 2px;
  color: var(--tx2);
  font-size: .59rem;
}

.mini-zone-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 11px;
  padding: 10px 14px 13px;
  border-top: 1px solid var(--line);
  color: var(--tx2);
  font-size: .62rem;
  font-weight: 680;
}

.mini-zone-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mini-zone-legend i {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(15,23,42,.18);
  border-radius: 50%;
}

.zone-red { background: #ef4444; }
.zone-yellow { background: #f59e0b; }
.zone-white { background: #fff; }
.zone-gray { background: #9ca3af; }
.zone-black { background: #111827; }

.realistic-preview-note {
  margin: 13px 2px 0;
  color: var(--tx2);
  font-size: .73rem;
  line-height: 1.5;
}

[data-theme="dark"] .mini-report-shell,
[data-theme="dark"] .mini-map-wrap,
[data-theme="dark"] .mini-report-summary,
[data-theme="dark"] .mini-top-item {
  background-color: color-mix(in srgb, var(--card) 94%, #101827);
}

[data-theme="dark"] .mini-top-item {
  background: color-mix(in srgb, #ef4444 8%, var(--card));
}

@media (max-width: 1120px) {
  .mini-report-main {
    grid-template-columns: 1fr;
  }

  .mini-map-wrap {
    min-height: 330px;
  }

  .mini-map-wrap .st30-map-svg {
    width: min(100%, 370px);
  }

  .mini-top-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .mini-top-item {
    grid-template-columns: 22px 1fr;
  }

  .mini-top-code {
    grid-column: 2;
    grid-row: 1;
  }

  .mini-top-item > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .mini-report-main {
    grid-template-columns: minmax(0, 1.15fr) minmax(190px, .85fr);
  }

  .mini-map-wrap {
    min-height: 280px;
  }

  .mini-top-list {
    grid-template-columns: 1fr;
  }

  .mini-top-item {
    grid-template-columns: 22px 35px minmax(0, 1fr);
  }

  .mini-top-code,
  .mini-top-item > div {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .realistic-result-preview {
    min-height: 0 !important;
  }

  .realistic-preview-head {
    display: grid;
  }

  .preview-badge-simulated {
    justify-self: start;
  }

  .mini-report-main {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .mini-map-wrap {
    min-height: 285px;
  }

  .mini-map-wrap .st30-map-svg {
    width: min(100%, 330px);
  }

  .mini-report-toolbar {
    align-items: flex-start;
  }

  .mini-report-date {
    max-width: 120px;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .mini-map-wrap {
    min-height: 250px;
    padding: 2px;
  }

  .mini-map-wrap .st30-map-svg {
    width: 100%;
  }

  .mini-zone-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.mini-map-fallback {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 240px;
  text-align: center;
  color: var(--tx2);
}
.mini-map-fallback b { color: var(--teal); font-size: 2.4rem; }
.mini-map-fallback span { font-size: .78rem; }

/* ===== ST30 landing v13: denser content and balanced spacing ===== */
.youth-home-hero > .hero-card { min-height: 0; }
.youth-hero-copy { justify-content: flex-start; padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 44px); }
.youth-hero-copy h1 { margin-bottom: 18px; }
.youth-hero-lead { max-width: 760px; }
.youth-benefit-note b { display:block; margin: 1px 0 4px; color:var(--tx); font-size:.92rem; }
.youth-benefit-note p { font-size:.86rem; }
.realistic-preview-note {
  margin: 13px 0 0;
  padding: 14px 15px;
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  border-radius: 15px;
  background: color-mix(in srgb, var(--teal) 5%, var(--card));
}
.realistic-preview-note b { display:block; color:var(--tx); font-size:.82rem; margin-bottom:4px; }
.realistic-preview-note p { margin:0; color:var(--tx2); font-size:.75rem; line-height:1.5; }
.preview-trust-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.preview-trust-chips span {
  display:inline-flex; align-items:center; min-height:26px; padding:4px 8px;
  border-radius:999px; border:1px solid var(--line); background:var(--card);
  color:var(--tx2); font-size:.65rem; font-weight:750;
}
.youth-value-section { padding: clamp(24px, 3.2vw, 34px); }
.youth-value-heading { max-width: 1040px; margin-bottom:18px; }
.youth-value-heading h2 { max-width: 940px; }
.youth-value-heading > p { margin:12px 0 0; max-width:900px; color:var(--tx2); line-height:1.65; font-size:.94rem; }
.youth-value-grid { gap:12px; }
.youth-value-grid article { min-height:0; padding:18px; }
.youth-value-grid h3 { margin:18px 0 7px; }
.youth-value-grid p { font-size:.84rem; line-height:1.55; }
.youth-value-grid ul { margin:13px 0 0; padding:0; list-style:none; display:grid; gap:6px; }
.youth-value-grid li { position:relative; padding-left:17px; color:var(--tx2); font-size:.76rem; line-height:1.4; }
.youth-value-grid li::before { content:'✓'; position:absolute; left:0; color:var(--teal); font-weight:900; }
.seo-intro { align-items:stretch; }
.seo-points-wrap { display:flex; flex-direction:column; justify-content:center; gap:14px; position:relative; z-index:1; }
.seo-points { width:100%; }
.seo-points div { min-height:112px; padding:16px 10px; }
.seo-side-note { padding:16px 17px; border:1px solid var(--line); border-radius:17px; background:linear-gradient(145deg, color-mix(in srgb,var(--teal) 6%,var(--card2)), var(--card2)); }
.seo-side-note b { display:block; margin-bottom:6px; color:var(--tx); font-size:.9rem; }
.seo-side-note p { margin:0; color:var(--tx2); font-size:.8rem; line-height:1.55; }

@media (max-width: 960px) {
  .seo-points-wrap { max-width:none; }
  .youth-value-heading > p { font-size:.9rem; }
}
@media (max-width: 640px) {
  .youth-hero-copy { padding-top:22px; padding-bottom:22px; }
  .realistic-preview-note { padding:12px; }
  .preview-trust-chips { display:grid; grid-template-columns:1fr; }
  .preview-trust-chips span { justify-content:center; }
  .youth-value-grid article { padding:16px; }
  .seo-side-note { padding:14px; }
}


/* ST30 sponsor slots */
.st30-ad-slot{position:relative;max-width:960px;margin:28px auto;padding:12px;border:1px solid var(--border,#dbe4ec);border-radius:18px;background:var(--card,#fff);box-shadow:0 10px 30px rgba(15,23,42,.06);overflow:hidden;min-height:110px}
.st30-ad-label,.st30-ad-modal-label{display:block;margin:0 0 8px;font-size:.68rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--tx3,#64748b)}
.st30-ad-item{display:none;width:100%;aspect-ratio:5/1;text-decoration:none}.st30-ad-item.is-active{display:block;animation:st30AdFade .35s ease}.st30-ad-item img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:5/1;object-fit:contain;border-radius:12px}
@keyframes st30AdFade{from{opacity:.15}to{opacity:1}}
.st30-ad-modal{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(8,18,35,.58);backdrop-filter:blur(5px)}
.st30-ad-modal.is-closing{opacity:0;transition:opacity .18s ease}.st30-ad-modal-card{position:relative;width:min(640px,94vw);max-height:90vh;overflow:auto;padding:22px;border-radius:22px;background:var(--card,#fff);box-shadow:0 28px 80px rgba(0,0,0,.28);text-align:center}.st30-ad-modal-card h2{margin:0 42px 14px;font-size:1.15rem}.st30-ad-modal-card img{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:14px;margin-bottom:16px}.st30-ad-modal-close{position:absolute;right:14px;top:12px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(100,116,139,.13);color:var(--tx,#172033);font-size:1.5rem;cursor:pointer}.st30-ad-report{margin:24px auto 30px}
@media(max-width:640px){.st30-ad-slot{margin:20px 0;padding:9px;min-height:80px}.st30-ad-modal{padding:12px}.st30-ad-modal-card{padding:18px 14px}.st30-ad-modal-card img{max-height:240px}}
@media print{.st30-ad-slot,.st30-ad-modal{display:none!important}}


/* ST30 sponsor placement refinement — appendix web report */
.report-page-appendix .appendix-report-head{margin-bottom:18px}
.report-page-appendix .st30-ad-report-appendix{width:min(100%,760px);max-width:760px;margin:0 auto 26px;padding:10px 12px;border-radius:16px}
.report-page-appendix .st30-ad-report-appendix .st30-ad-label{text-align:left;margin:0 2px 8px}
.report-page-appendix .st30-ad-report-appendix .st30-ad-item img{width:100%;height:auto;max-height:none;aspect-ratio:5/1;object-fit:contain;border-radius:10px}
@media(max-width:640px){
  .report-page-appendix .st30-ad-report-appendix{width:100%;margin:0 auto 20px;padding:8px}
  .report-page-appendix .st30-ad-report-appendix .st30-ad-item img{max-height:none}
}

/* ===== ST30 Ads Admin — refined layout ===== */
.ads-admin-page{display:grid;gap:18px}.ads-admin-hero{background:linear-gradient(135deg,color-mix(in srgb,var(--teal) 8%,var(--card)),var(--card))}.ads-eyebrow{display:block;margin-bottom:6px;color:var(--teal);font-size:.7rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.ads-summary-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.ads-pill-soft{background:color-mix(in srgb,var(--teal) 9%,var(--card));color:var(--teal)}.ads-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.ads-section-head .card-title{margin-bottom:5px}.ads-step-badge{padding:7px 11px;border:1px solid color-mix(in srgb,var(--teal) 28%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--teal) 7%,var(--card));color:var(--teal);font-size:.72rem;font-weight:800}.ads-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:16px}.ads-form-panel{padding:18px;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--card2) 62%,var(--card))}.ads-form-panel>h3{margin:0 0 15px;color:var(--tx);font-size:.93rem}.ads-two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.label-optional{color:var(--tx3);font-size:.72rem;font-weight:600}.ads-input-suffix{display:flex;align-items:stretch}.ads-input-suffix input{border-radius:12px 0 0 12px}.ads-input-suffix span{display:grid;place-items:center;padding:0 12px;border:1px solid var(--line);border-left:0;border-radius:0 12px 12px 0;background:var(--card);color:var(--tx2);font-size:.78rem;font-weight:700}.ads-placement-title{margin-top:18px!important}.ads-placement-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.ads-placement-option,.ads-active-toggle{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--card);cursor:pointer;transition:.18s ease}.ads-placement-option:hover,.ads-active-toggle:hover{border-color:color-mix(in srgb,var(--teal) 48%,var(--line));transform:translateY(-1px)}.ads-placement-option input,.ads-active-toggle input{margin-top:3px}.ads-placement-option span,.ads-active-toggle span{display:grid;gap:3px}.ads-placement-option b,.ads-active-toggle b{font-size:.8rem;color:var(--tx)}.ads-placement-option small,.ads-active-toggle small{font-size:.7rem;color:var(--tx2);line-height:1.35}.ads-active-toggle{margin-top:10px}.ads-form-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px;padding:14px 16px;border-radius:14px;background:color-mix(in srgb,var(--teal) 5%,var(--card2))}.ads-form-footer p{margin:0;max-width:720px;color:var(--tx2);font-size:.76rem;line-height:1.5}.ads-card-list{display:grid;gap:12px}.ads-item-card{display:grid;grid-template-columns:210px minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:17px;background:var(--card);box-shadow:0 5px 18px rgba(15,23,42,.035)}.ads-item-preview{display:grid;place-items:center;min-height:86px;padding:8px;border-radius:12px;background:color-mix(in srgb,var(--card2) 75%,var(--card));overflow:hidden}.ads-item-preview img{display:block;width:100%;max-height:82px;object-fit:contain;border-radius:8px}.ads-item-content{min-width:0}.ads-item-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.ads-item-heading h3{margin:0 0 4px;font-size:.93rem}.ads-item-heading small{color:var(--tx3);font-size:.69rem}.ads-status-dot{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:.67rem;font-weight:800}.ads-status-dot.is-on{background:rgba(34,197,94,.11);color:#15803d}.ads-status-dot.is-off{background:rgba(100,116,139,.12);color:var(--tx2)}.ads-item-form{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.ads-item-options{display:flex;gap:7px;flex-wrap:wrap}.ads-item-options label{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid var(--line);border-radius:9px;background:var(--card2);font-size:.7rem;color:var(--tx2);cursor:pointer}.ads-item-actions{display:flex;align-items:flex-end;gap:8px}.ads-priority-field{display:grid;gap:4px}.ads-priority-field span{font-size:.64rem;color:var(--tx3);font-weight:750}.ads-priority-field input{width:78px;min-height:34px;padding:6px 8px}.ads-delete-form{align-self:center}.ads-empty-state{display:grid;place-items:center;padding:38px 20px;border:1px dashed var(--line);border-radius:16px;text-align:center;background:var(--card2)}.ads-empty-state span{font-size:2rem}.ads-empty-state b{margin-top:7px}.ads-empty-state p{margin:4px 0 0;color:var(--tx2);font-size:.78rem}
@media(max-width:1050px){.ads-form-grid{grid-template-columns:1fr}.ads-item-card{grid-template-columns:170px 1fr}.ads-delete-form{grid-column:2;justify-self:end}.ads-form-footer{align-items:flex-start}}
@media(max-width:700px){.ads-summary-badges{justify-content:flex-start}.ads-section-head,.ads-form-footer{display:grid}.ads-two-col,.ads-placement-grid{grid-template-columns:1fr}.ads-item-card{grid-template-columns:1fr}.ads-delete-form{grid-column:1;justify-self:stretch}.ads-delete-form .btn{width:100%}.ads-item-preview{min-height:120px}.ads-item-form,.ads-item-actions{align-items:stretch}.ads-item-actions{width:100%}.ads-item-actions .btn{flex:1}.ads-priority-field input{width:88px}}


/* Modal-ad frequency controls */
.ads-frequency-field{margin-top:18px}
.ads-frequency-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}
.ads-frequency-options>label{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--border,#d7e0ea);border-radius:12px;background:var(--surface,#fff);cursor:pointer}
.ads-frequency-options input{margin-top:4px}
.ads-frequency-options span{display:grid;gap:3px}
.ads-frequency-options small{line-height:1.35;color:var(--muted,#64748b)}
.ads-item-settings-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.ads-frequency-select{display:grid;gap:5px;min-width:260px;font-size:.84rem;font-weight:700;color:var(--text-muted,#475569)}
.ads-frequency-select select{min-height:40px;border:1px solid var(--border,#d7e0ea);border-radius:10px;padding:0 10px;background:var(--surface,#fff);color:inherit}
@media(max-width:720px){.ads-frequency-options{grid-template-columns:1fr}.ads-frequency-select{min-width:100%;width:100%}}

/* v1.0.46 — web report bottom breathing room
   Keep the final card/disclaimer visually separated from the footer rule,
   including pages whose content nearly fills the sheet. */
.report-sheet > .report-footer {
  border-top: 0 !important;
  padding-top: 24px !important;
  position: relative;
}

.report-sheet > .report-footer::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 2px;
  background: #047f83;
}

[data-theme="dark"] .report-sheet > .report-footer::before {
  background: #2a4070;
}

@media (max-width: 640px) {
  .report-sheet > .report-footer {
    padding-top: 20px !important;
  }

  .report-sheet > .report-footer::before {
    top: 10px;
  }
}

@media print {
  .report-sheet > .report-footer {
    padding-top: 18px !important;
  }

  .report-sheet > .report-footer::before {
    top: 8px;
  }
}

/* Compact advertising list cards */
.ads-list-card .ads-card-list{gap:10px}
.ads-list-card .ads-item-card{
  grid-template-columns:220px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:12px 14px;
  border-radius:15px;
}
.ads-list-card .ads-item-preview{
  min-height:76px;
  padding:7px;
  border-radius:11px;
}
.ads-list-card .ads-item-preview img{max-height:72px}
.ads-list-card .ads-item-content{display:grid;gap:10px}
.ads-list-card .ads-item-heading{align-items:center;margin:0}
.ads-list-card .ads-item-heading h3{margin:0 0 2px;font-size:.92rem}
.ads-list-card .ads-item-form{
  display:grid;
  grid-template-columns:minmax(330px,1fr) minmax(230px,310px) auto;
  gap:10px 14px;
  align-items:end;
}
.ads-list-card .ads-item-options{gap:6px;align-self:end}
.ads-list-card .ads-item-options label{
  padding:6px 9px;
  min-height:34px;
  border-radius:10px;
  font-size:.71rem;
}
.ads-list-card .ads-item-settings-row{margin:0;display:block}
.ads-list-card .ads-frequency-select{min-width:0;width:100%;gap:4px;font-size:.72rem}
.ads-list-card .ads-frequency-select select{min-height:36px;padding:0 10px;font-size:.76rem}
.ads-list-card .ads-item-actions{align-items:end;gap:8px;white-space:nowrap}
.ads-list-card .ads-priority-field{gap:4px}
.ads-list-card .ads-priority-field input{width:72px;min-height:36px}
.ads-list-card .ads-item-actions .btn{min-height:36px;padding:7px 12px}
.ads-list-card .ads-delete-form{align-self:center}
.ads-list-card .ads-delete-form .btn{min-height:36px;padding:7px 13px}

@media(max-width:1180px){
  .ads-list-card .ads-item-card{grid-template-columns:180px minmax(0,1fr) auto}
  .ads-list-card .ads-item-form{grid-template-columns:1fr minmax(220px,280px)}
  .ads-list-card .ads-item-actions{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:800px){
  .ads-list-card .ads-item-card{grid-template-columns:1fr;padding:12px}
  .ads-list-card .ads-item-preview{min-height:110px}
  .ads-list-card .ads-item-preview img{max-height:105px}
  .ads-list-card .ads-item-form{grid-template-columns:1fr}
  .ads-list-card .ads-item-actions{grid-column:auto;justify-content:stretch}
  .ads-list-card .ads-item-actions .btn{flex:1}
  .ads-list-card .ads-delete-form{justify-self:stretch}
  .ads-list-card .ads-delete-form .btn{width:100%}
}

/* Validation feedback for strict 5:1 sponsor image uploads */
.ads-image-validation {
  min-height: 1.2rem;
  margin-top: .45rem;
  font-size: .82rem;
  font-weight: 700;
}
.ads-image-validation.is-error { color: #b42318; }
.ads-image-validation.is-success { color: #15803d; }


/* Full edit controls for existing advertising campaigns */
.ads-edit-details{border:1px solid var(--line);border-radius:13px;background:var(--card2);overflow:hidden}
.ads-edit-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;cursor:pointer;list-style:none;color:var(--teal);font-size:.76rem;font-weight:850}
.ads-edit-details>summary::-webkit-details-marker{display:none}
.ads-edit-details>summary::after{content:'▾';font-size:.9rem;transition:transform .18s ease}
.ads-edit-details[open]>summary::after{transform:rotate(180deg)}
.ads-edit-details>summary small{margin-left:auto;color:var(--tx3);font-size:.67rem;font-weight:650}
.ads-list-card .ads-edit-form{display:block;padding:14px;border-top:1px solid var(--line);background:var(--card)}
.ads-edit-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.ads-edit-panel{display:grid;align-content:start;gap:2px;padding:13px;border:1px solid var(--line);border-radius:13px;background:var(--card2)}
.ads-edit-placements{margin:4px 0 12px}
.ads-edit-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.ads-edit-actions small{max-width:680px;color:var(--tx3);font-size:.69rem;line-height:1.45}
@media(max-width:900px){.ads-edit-grid{grid-template-columns:1fr}.ads-edit-details>summary small{display:none}}
@media(max-width:600px){.ads-edit-actions{display:grid}.ads-edit-actions .btn{width:100%}}


/* ST30 v1.0.59 — compact homepage contact strip */
.contact-strip {
  width: 100%;
  margin-top: 22px;
  padding: 20px clamp(22px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--sh);
}

.contact-strip-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.contact-strip .section-kicker {
  flex: 0 0 auto;
  margin: 0;
}

.contact-strip h2 {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.3;
  letter-spacing: -.015em;
}

[data-theme="dark"] .contact-strip h2 {
  color: var(--tx);
}

.contact-strip p {
  margin: 0;
  color: var(--tx2);
  font-size: .88rem;
  line-height: 1.5;
}

.contact-email-link {
  flex: 0 0 auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border: 1px solid rgba(7, 153, 155, .24);
  border-radius: 999px;
  background: rgba(7, 153, 155, .08);
  color: var(--teal);
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.contact-email-link:hover {
  transform: translateY(-1px);
  border-color: rgba(7, 153, 155, .46);
  background: rgba(7, 153, 155, .13);
}

.contact-email-link:focus-visible {
  outline: 3px solid rgba(7, 153, 155, .24);
  outline-offset: 3px;
}

.contact-email-icon {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: .78rem;
}

@media (max-width: 760px) {
  .contact-strip {
    margin-top: 16px;
    padding: 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    border-radius: 20px;
  }

  .contact-strip-copy {
    align-items: flex-start;
    gap: 14px;
  }

  .contact-strip .section-kicker {
    margin-top: 3px;
  }

  .contact-email-link {
    width: 100%;
    justify-content: center;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .contact-strip-copy {
    display: block;
  }

  .contact-strip .section-kicker {
    margin-bottom: 10px;
  }

  .contact-email-link {
    justify-content: flex-start;
    font-size: .84rem;
  }
}

/* v1.0.65 — sponsor click statistics */
.ads-pill-clicks{background:rgba(14,165,233,.11);color:#0369a1}
.ads-click-overview{
  display:grid;
  grid-template-columns:minmax(105px,1.15fr) repeat(5,minmax(72px,.75fr)) minmax(150px,1.35fr);
  gap:7px;
  margin:0 0 10px;
}
.ads-click-overview>div{
  display:grid;
  gap:2px;
  min-width:0;
  padding:8px 9px;
  border:1px solid var(--line);
  border-radius:10px;
  background:color-mix(in srgb,var(--card2) 72%,var(--card));
}
.ads-click-overview span{color:var(--tx3);font-size:.62rem;font-weight:750;line-height:1.25}
.ads-click-overview b,.ads-click-overview strong{color:var(--tx);font-size:.78rem;line-height:1.2}
.ads-click-total{border-color:color-mix(in srgb,#0ea5e9 28%,var(--line))!important;background:color-mix(in srgb,#0ea5e9 7%,var(--card))!important}
.ads-click-total strong{color:#0369a1;font-size:1rem}
.ads-click-last b{white-space:nowrap;font-size:.69rem}
@media(max-width:1180px){
  .ads-click-overview{grid-template-columns:repeat(4,minmax(100px,1fr))}
  .ads-click-last{grid-column:span 2}
}
@media(max-width:700px){
  .ads-click-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ads-click-last{grid-column:1/-1}
}

/* ST30 v1.0.66 — compact sponsor card and click statistics */
.ads-list-card .ads-item-card{
  grid-template-columns:210px minmax(0,1fr);
  gap:14px;
  align-items:start;
  padding:12px;
}
.ads-list-card .ads-item-preview{
  width:100%;
  min-height:0;
  aspect-ratio:5 / 1;
  padding:6px;
  align-self:start;
}
.ads-list-card .ads-item-preview img{
  width:100%;
  height:100%;
  max-height:none;
  object-fit:contain;
}
.ads-list-card .ads-item-content{gap:8px}
.ads-list-card .ads-item-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:34px;
}
.ads-item-title{min-width:0}
.ads-item-title h3{overflow-wrap:anywhere}
.ads-heading-actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:8px;
}
.ads-heading-actions .ads-delete-form{display:block;margin:0}
.ads-heading-actions .ads-delete-form .btn{
  min-height:32px;
  padding:5px 10px;
  border-radius:10px;
  font-size:.7rem;
}
.ads-click-overview{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  margin:0;
}
.ads-click-overview>div{
  display:flex;
  align-items:center;
  min-width:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.ads-click-total{
  flex:0 0 auto;
  gap:7px;
  min-height:34px;
  padding:6px 10px!important;
  border:1px solid rgba(14,165,233,.24)!important;
  border-radius:10px!important;
  background:rgba(14,165,233,.08)!important;
}
.ads-click-total strong{font-size:1rem;line-height:1;color:#0369a1}
.ads-click-total span{white-space:nowrap}
.ads-click-metrics{
  flex:1 1 auto;
  display:flex!important;
  align-items:center;
  gap:5px;
  min-width:0;
  flex-wrap:wrap;
}
.ads-click-metrics>div{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:30px;
  padding:5px 8px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--card2);
  white-space:nowrap;
}
.ads-click-metrics span{font-size:.62rem}
.ads-click-metrics b{font-size:.75rem}
.ads-click-last{
  flex:0 0 auto;
  display:grid!important;
  align-content:center;
  gap:1px;
  padding-left:9px!important;
  border-left:1px solid var(--line)!important;
}
.ads-click-last span{font-size:.58rem}
.ads-click-last b{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.68rem}
.ads-list-card .ads-edit-details{margin-top:1px}
.ads-list-card .ads-edit-details>summary{padding:8px 10px}
.ads-list-card .ads-edit-details>summary small{font-size:.64rem}

@media(max-width:1180px){
  .ads-list-card .ads-item-card{grid-template-columns:180px minmax(0,1fr)}
  .ads-click-last{display:none!important}
}
@media(max-width:820px){
  .ads-list-card .ads-item-card{grid-template-columns:1fr;padding:11px}
  .ads-list-card .ads-item-preview{
    width:min(100%,460px);
    min-height:0;
    aspect-ratio:5 / 1;
    justify-self:start;
  }
  .ads-click-overview{align-items:flex-start;flex-wrap:wrap}
  .ads-click-metrics{flex-basis:calc(100% - 110px)}
  .ads-click-last{
    display:grid!important;
    flex-basis:100%;
    padding:5px 0 0!important;
    border-left:0!important;
    border-top:1px dashed var(--line)!important;
  }
  .ads-heading-actions .ads-delete-form{justify-self:auto}
  .ads-heading-actions .ads-delete-form .btn{width:auto}
}
@media(max-width:520px){
  .ads-list-card .ads-item-heading{align-items:flex-start}
  .ads-heading-actions{gap:6px}
  .ads-status-dot{padding:4px 7px}
  .ads-heading-actions .ads-delete-form .btn{padding:4px 8px}
  .ads-click-total{min-height:31px;padding:5px 8px!important}
  .ads-click-metrics{flex-basis:100%}
  .ads-click-metrics>div{flex:1 1 calc(33.333% - 5px);justify-content:space-between}
  .ads-edit-details>summary small{display:none}
}

/* ===================================================================
   ST30 CLS hardening — 2026-08-14
   Reserve geometry before images/JS state are resolved. No visual redesign.
   =================================================================== */
html { scrollbar-gutter: stable; }

/* ST30 logo source is 1200×364. A CSS aspect ratio lets the browser reserve
   the final width immediately even when the image bytes are not cached yet. */
.brand-logo,
.report-logo img {
  aspect-ratio: 1200 / 364;
  object-fit: contain;
}

/* The synchronous head probe marks an existing unfinished draft before body
   rendering, preventing the fresh/resume controls from swapping after paint. */
html.st30-has-assessment-draft #freshActions {
  display: none !important;
}
html.st30-has-assessment-draft #resumeBox {
  display: block !important;
}

/* Sponsor uploads are validated at 5:1. Reserve that exact geometry so lazy
   image loading and ad rotation never push the content below the banner. */
.st30-ad-modal-item img {
  aspect-ratio: 5 / 1;
  object-fit: contain;
}


/* ===================================================================
   ST30 UI Update v115 — Referral Access Password + Search/Pagination
   =================================================================== */
.admin-page .referral-form {
  grid-template-columns:minmax(220px,1.2fr) minmax(230px,1fr) auto auto;
}
.admin-page .referral-password-field { min-width:0; }
.admin-page .referral-password-field .field-hint { margin-top:5px; font-size:.74rem; color:var(--tx3); }
.admin-page .referrals-toolbar { margin-bottom:0; }
.admin-page .referrals-table { min-width:760px; }
.admin-page .referrals-table .col-ref-password { width:170px; }
.admin-page .referrals-table .col-ref-status { width:130px; }
.admin-page .referrals-table th:nth-child(2),
.admin-page .referrals-table td:nth-child(2),
.admin-page .referrals-table th:nth-child(3),
.admin-page .referrals-table td:nth-child(3) { text-align:center !important; }
.admin-page .referrals-table th:last-child,
.admin-page .referrals-table td:last-child { text-align:right !important; }

.referral-locked {
  display:flex;
  align-items:center;
  min-height:46px;
  font-weight:800;
  color:var(--tx);
  background:var(--card2);
  cursor:default;
}

@media (max-width:980px) {
  .admin-page .referral-form { grid-template-columns:1fr 1fr; }
  .admin-page .referral-active-check { align-self:center; }
  .admin-page .referral-submit { justify-content:flex-start; }
}

@media (max-width:680px) {
  .admin-page .referral-form { grid-template-columns:1fr; }
  .admin-page .referrals-table { min-width:0; }
  .admin-page .referrals-table td:nth-child(2)::before {
    content:'Password: ';
    color:var(--tx3);
    font-weight:800;
  }
  .admin-page .referrals-table td:nth-child(3)::before {
    content:'Status: ';
    color:var(--tx3);
    font-weight:800;
  }
}


/* ===================================================================
   ST30 UI Update v116 — Biodata referral field alignment
   =================================================================== */
.biodata-page .referral-field {
  min-width: 0;
}
.biodata-page .referral-locked {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--tx);
  box-sizing: border-box;
}
[data-theme="dark"] .biodata-page .referral-locked {
  background: var(--card2);
  border-color: var(--line);
}
.biodata-page .referral-locked-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}
.biodata-page .referral-verified-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(37,99,235,.22);
  border-radius: 999px;
  background: rgba(37,99,235,.07);
  color: var(--tx2);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}
[data-theme="dark"] .biodata-page .referral-verified-badge {
  border-color: rgba(96,165,250,.28);
  background: rgba(96,165,250,.09);
}

@media (max-width: 620px) {
  .biodata-page .referral-locked {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .biodata-page .referral-locked-name {
    white-space: normal;
  }
}


/* ===================================================================
   ST30 UI Update v116 — Admin Referral Layout Polish
   =================================================================== */
.admin-page .referrals-card {
  max-width: 1180px;
}
.admin-page .referrals-title-row {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.admin-page .referral-form {
  display:grid;
  grid-template-columns:minmax(260px,1.2fr) minmax(260px,1fr) auto;
  gap:18px 20px;
  align-items:end;
  padding:20px 24px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(7,153,155,.045);
}
.admin-page .referral-name-field,
.admin-page .referral-password-field {
  min-width:0;
}
.admin-page .referral-password-field .field-hint {
  margin-top:6px;
  line-height:1.45;
}
.admin-page .referral-form-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  min-height:56px;
  flex-wrap:wrap;
}
.admin-page .referral-active-check {
  min-height:auto;
  padding:0;
}
.admin-page .referral-submit {
  justify-content:flex-end;
}
.admin-page .referrals-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-top:18px !important;
}
.admin-page .referrals-search-form {
  flex:1 1 560px;
  max-width:none;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}
.admin-page .referrals-search-form .admin-search-input {
  flex:1 1 auto;
  min-width:0;
}
.admin-page .referrals-count {
  flex:0 0 auto;
  white-space:nowrap;
}
@media (max-width: 1080px) {
  .admin-page .referral-form {
    grid-template-columns:1fr 1fr;
  }
  .admin-page .referral-form-actions {
    grid-column:1 / -1;
    justify-content:space-between;
  }
}
@media (max-width: 760px) {
  .admin-page .referrals-title-row {
    align-items:stretch;
  }
  .admin-page .referrals-title-row .admin-head-actions {
    width:100%;
  }
  .admin-page .referrals-title-row .admin-head-actions .btn {
    width:100%;
    justify-content:center;
  }
  .admin-page .referral-form {
    grid-template-columns:1fr;
    padding:18px;
  }
  .admin-page .referral-form-actions {
    grid-column:auto;
    justify-content:flex-start;
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
  .admin-page .referrals-search-form {
    flex-wrap:wrap;
  }
  .admin-page .referrals-search-form .btn,
  .admin-page .referrals-search-form .btn-ghost {
    flex:0 0 auto;
  }
}
@media (max-width: 520px) {
  .admin-page .referrals-search-form .admin-search-input,
  .admin-page .referrals-search-form .btn,
  .admin-page .referrals-search-form .btn-ghost,
  .admin-page .referrals-count {
    width:100%;
  }
  .admin-page .referrals-count {
    text-align:center;
  }
}

/* ===================================================================
   ST30 UI Update v117 — Referral Admin Two-Row Form
   =================================================================== */
.admin-page .referrals-card {
  max-width: 1180px;
  margin-inline: auto;
}
.admin-page .referral-form {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px 20px;
  align-items:start;
  padding:20px 22px 16px;
}
.admin-page .referral-name-field,
.admin-page .referral-password-field {
  min-width:0;
  margin:0;
}
.admin-page .referral-name-field input,
.admin-page .referral-password-field input {
  width:100%;
}
.admin-page .referral-form-footer {
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-width:0;
  padding-top:2px;
}
.admin-page .referral-default-note {
  flex:1 1 auto;
  min-width:0;
  margin:0;
  color:var(--tx3);
  font-size:.78rem;
  line-height:1.45;
}
.admin-page .referral-form-actions {
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  min-height:0;
  white-space:nowrap;
}
.admin-page .referral-active-check {
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  margin:0;
  padding:0 2px;
}
.admin-page .referral-submit {
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
}
.admin-page .referral-submit .btn {
  min-width:104px;
}
.admin-page .referrals-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:nowrap;
  margin-top:16px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.admin-page .referrals-search-form {
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  max-width:none;
}
.admin-page .referrals-search-form .admin-search-input {
  flex:1 1 auto;
  min-width:0;
}
.admin-page .referrals-search-form .btn {
  flex:0 0 auto;
}
.admin-page .referrals-count {
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:7px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--card);
  color:var(--tx3);
  font-size:.78rem;
  line-height:1;
  white-space:nowrap;
}
[data-theme="dark"] .admin-page .referrals-count {
  background:rgba(255,255,255,.035);
}

@media (max-width: 820px) {
  .admin-page .referral-form {
    grid-template-columns:1fr;
  }
  .admin-page .referral-form-footer {
    grid-column:auto;
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
  .admin-page .referral-form-actions {
    width:100%;
    justify-content:space-between;
  }
  .admin-page .referrals-toolbar {
    flex-wrap:wrap;
  }
  .admin-page .referrals-search-form {
    flex:1 1 100%;
  }
  .admin-page .referrals-count {
    margin-left:auto;
  }
}

@media (max-width: 520px) {
  .admin-page .referral-form {
    padding:16px;
  }
  .admin-page .referral-form-actions {
    align-items:stretch;
    flex-direction:column;
    gap:10px;
  }
  .admin-page .referral-submit,
  .admin-page .referral-submit .btn,
  .admin-page .referral-submit .btn-ghost {
    width:100%;
  }
  .admin-page .referral-submit {
    flex-direction:column;
  }
  .admin-page .referrals-search-form {
    flex-wrap:wrap;
  }
  .admin-page .referrals-search-form .admin-search-input {
    flex:1 1 100%;
    width:100%;
  }
  .admin-page .referrals-count {
    width:100%;
    justify-content:center;
    margin-left:0;
  }
}


/* ===================================================================
   ST30 UI Update v118 — Optional Referral Password + Admin Eye Toggle
   =================================================================== */
.admin-page .referral-password-control {
  position:relative;
  display:flex;
  align-items:center;
}
.admin-page .referral-password-control > input {
  width:100%;
  padding-right:48px;
}
.admin-page .referral-password-toggle {
  position:absolute;
  right:7px;
  top:50%;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--tx2);
  cursor:pointer;
  font-size:1rem;
  line-height:1;
}
.admin-page .referral-password-toggle:hover:not(:disabled),
.admin-page .referral-password-toggle:focus-visible {
  background:rgba(37,99,235,.10);
  color:var(--tx);
  outline:none;
}
.admin-page .referral-password-control.is-optional > input {
  background:var(--card2);
}
.admin-page .referral-password-required-check input {
  accent-color:#2563eb;
}
@media (max-width:760px) {
  .admin-page .referral-form-actions {
    width:100%;
  }
}


/* ===================================================================
   ST30 UI Update v118 — No-password referral notice
   =================================================================== */
.referral-no-password-notice {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:10px;
  padding:11px 13px;
  border:1px solid rgba(7,153,155,.34);
  border-radius:12px;
  background:rgba(7,153,155,.10);
  color:var(--tx);
  box-shadow:0 3px 10px rgba(7,153,155,.07);
}
.referral-no-password-notice[hidden] {
  display:none !important;
}
.referral-no-password-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 24px;
  width:24px;
  height:24px;
  border-radius:999px;
  background:var(--teal);
  color:#fff;
  font-size:.82rem;
  font-weight:900;
  line-height:1;
}
.referral-no-password-notice > div {
  min-width:0;
  display:grid;
  gap:2px;
}
.referral-no-password-notice strong {
  font-size:.82rem;
  font-weight:900;
  letter-spacing:.01em;
  color:var(--teal);
}
.referral-no-password-notice span:not(.referral-no-password-icon) {
  font-size:.78rem;
  line-height:1.45;
  color:var(--tx2);
}
#access_password:disabled {
  opacity:.68;
  cursor:not-allowed;
  background:var(--card2);
}
[data-theme="dark"] .referral-no-password-notice {
  border-color:rgba(33,201,204,.34);
  background:rgba(33,201,204,.12);
  box-shadow:none;
}
[data-theme="dark"] .referral-no-password-notice strong {
  color:#63d9db;
}

/* ===================================================================
   ST30 UI Update v120 — Horizontal actions + no-password notice
   =================================================================== */
.referral-access-form .form-grid {
  align-items:start;
}
.referral-access-actions {
  grid-column:1 / -1;
  margin-top:4px !important;
}
.referral-access-form.no-password-mode .referral-access-actions {
  grid-column:1;
  grid-row:2;
  align-self:center;
  justify-content:flex-start;
  margin-top:0 !important;
}
.referral-access-form.no-password-mode .referral-no-password-notice {
  grid-column:2;
  grid-row:2;
  align-self:start;
  margin-top:0;
}
@media (max-width: 680px) {
  .referral-access-actions,
  .referral-access-form.no-password-mode .referral-access-actions,
  .referral-access-form.no-password-mode .referral-no-password-notice {
    grid-column:1;
    grid-row:auto;
  }
  .referral-access-form.no-password-mode .referral-no-password-notice {
    margin-top:0;
  }
  .referral-access-actions,
  .referral-access-form.no-password-mode .referral-access-actions {
    margin-top:4px !important;
  }
}

/* ===================================================================
   ST30 UI Fix — Ads edit panel overflow containment (2026-08-28)
   Prevent intrinsic-width form controls from escaping the right panel.
   =================================================================== */
.ads-edit-grid > *,
.ads-edit-panel,
.ads-edit-panel .field,
.ads-edit-panel .ads-two-col,
.ads-edit-panel .ads-input-suffix,
.ads-edit-panel .ads-frequency-select {
  min-width: 0;
  max-width: 100%;
}

.ads-edit-panel .ads-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ads-edit-panel input:not([type="checkbox"]):not([type="radio"]),
.ads-edit-panel select,
.ads-edit-panel textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.ads-edit-panel .ads-input-suffix input {
  flex: 1 1 auto;
  width: 0;
}

.ads-edit-panel .ads-frequency-select select {
  display: block;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 700px) {
  .ads-edit-panel .ads-two-col {
    grid-template-columns: 1fr;
  }
}


/* ===================================================================
   ST30 UI Update v121 — Searchable recommender picker
   =================================================================== */
.referral-picker-field {
  position: relative;
  min-width: 0;
}
.referral-picker {
  position: relative;
  display: none;
  min-width: 0;
}
.referral-picker-field.is-enhanced .referral-picker {
  display: block;
}
.referral-picker-field.is-enhanced .referral-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.referral-picker-trigger {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  color: var(--tx2);
}
.referral-picker-trigger.has-value {
  color: var(--tx);
}
.referral-picker-trigger:focus-visible,
.referral-picker.is-open .referral-picker-trigger {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.referral-picker-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.referral-picker-chevron {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.referral-picker.is-open .referral-picker-chevron {
  transform: rotate(225deg) translate(-2px,-2px);
}
.referral-picker-panel {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 16px 36px rgba(15,36,70,.18);
}
.referral-picker.open-upward .referral-picker-panel {
  top: auto;
  bottom: calc(100% + 8px);
}
.referral-picker-search {
  position: relative;
  margin-bottom: 8px;
}
.referral-picker-search input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 9px 12px 9px 38px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card2);
  color: var(--tx);
  font: inherit;
  outline: none;
}
.referral-picker-search input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.referral-picker-search input::-webkit-search-cancel-button {
  cursor: pointer;
}
.referral-picker-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid var(--tx3);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}
.referral-picker-search-icon::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  border-radius: 2px;
  background: var(--tx3);
  transform: rotate(45deg);
  transform-origin: left center;
}
.referral-picker-list {
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 2px;
}
.referral-picker-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--tx);
  font: inherit;
  font-size: .94rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.referral-picker-option:hover,
.referral-picker-option:focus-visible {
  outline: none;
  background: rgba(37,99,235,.09);
}
.referral-picker-option[aria-selected="true"] {
  background: rgba(7,153,155,.11);
  color: var(--teal);
  font-weight: 800;
}
.referral-picker-empty {
  padding: 18px 12px;
  color: var(--tx3);
  font-size: .88rem;
  text-align: center;
}
[data-theme="dark"] .referral-picker-panel {
  box-shadow: 0 18px 42px rgba(0,0,0,.34);
}
[data-theme="dark"] .referral-picker-option:hover,
[data-theme="dark"] .referral-picker-option:focus-visible {
  background: rgba(96,165,250,.13);
}
@media (max-width: 680px) {
  .referral-picker-panel {
    border-radius: 14px;
    padding: 8px;
  }
  .referral-picker-list {
    max-height: min(300px, 48vh);
  }
}

/* ===================================================================
   ST30 UI Update v122 — Recommender picker visual integration
   Make the custom searchable picker feel identical to native ST30 fields.
   =================================================================== */
.field .referral-picker-trigger {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--tx3);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.35;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s, background-color .22s, color .15s;
}
.field .referral-picker-trigger.has-value {
  color: var(--tx);
}
.field .referral-picker-trigger:hover {
  border-color: color-mix(in srgb, var(--teal) 48%, var(--line));
}
.field .referral-picker-trigger:focus-visible,
.field .referral-picker.is-open .referral-picker-trigger {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--focus);
}
.referral-picker-chevron {
  color: var(--tx2);
}
.referral-picker.is-open .referral-picker-chevron {
  color: var(--teal);
}
.referral-picker-panel {
  top: calc(100% + 7px);
  padding: 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  box-shadow: 0 14px 34px rgba(8,34,74,.14);
}
.referral-picker.open-upward .referral-picker-panel {
  bottom: calc(100% + 7px);
}
.referral-picker-search {
  margin-bottom: 6px;
}
.referral-picker-search input {
  height: 46px;
  padding: 10px 12px 10px 39px;
  border: 1.5px solid var(--line);
  border-radius: calc(var(--r-sm) - 3px);
  background: var(--card2);
  color: var(--tx);
  font-family: var(--font);
  font-size: .9rem;
}
.referral-picker-search input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--focus);
}
.referral-picker-search-icon {
  border-color: var(--tx3);
}
.referral-picker-search-icon::after {
  background: var(--tx3);
}
.referral-picker-list {
  padding: 2px 0;
}
.referral-picker-option {
  padding: 10px 12px;
  border-radius: calc(var(--r-sm) - 4px);
  font-family: var(--font);
  font-size: .92rem;
  transition: background-color .12s, color .12s;
}
.referral-picker-option:hover,
.referral-picker-option:focus-visible {
  background: rgba(7,153,155,.08);
  color: var(--tx);
}
.referral-picker-option[aria-selected="true"] {
  background: rgba(7,153,155,.12);
  color: var(--teal);
  font-weight: 800;
}
[data-theme="dark"] .field .referral-picker-trigger {
  background: var(--card2);
  color: var(--tx3);
  border-color: var(--line);
}
[data-theme="dark"] .field .referral-picker-trigger.has-value {
  color: var(--tx);
}
[data-theme="dark"] .referral-picker-panel {
  background: var(--card);
  border-color: var(--line);
  box-shadow: 0 18px 42px rgba(0,0,0,.30);
}
[data-theme="dark"] .referral-picker-search input {
  background: var(--card2);
}
[data-theme="dark"] .referral-picker-option:hover,
[data-theme="dark"] .referral-picker-option:focus-visible {
  background: rgba(45,212,191,.10);
}
[data-theme="dark"] .referral-picker-option[aria-selected="true"] {
  background: rgba(45,212,191,.13);
  color: var(--teal2);
}


/* ===================================================================
   ST30 UI Update v121 — Searchable referral realtime filter safeguard
   =================================================================== */
.referral-picker-option[hidden],
.referral-picker-empty[hidden] {
  display: none !important;
}


/* ===================================================================
   ST30 UI Update v124 — Mobile touch stability for searchable referral picker
   =================================================================== */
.referral-picker-trigger,
.referral-picker-option {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.referral-picker-panel {
  -webkit-overflow-scrolling: touch;
}
.referral-picker-list {
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 680px) {
  .referral-picker-option {
    min-height: 46px;
    display: flex;
    align-items: center;
  }
}


/* ===================================================================
   ST30 UI Update v125 — Viewport-fitted searchable referral dropdown
   Keep the dropdown inside the visible viewport so the page itself does
   not gain vertical scroll just because the picker is open.
   =================================================================== */
.referral-picker-panel {
  display: flex;
  flex-direction: column;
  max-height: var(--referral-panel-max-height, min(330px, 46vh));
  overflow: hidden;
}
.referral-picker-panel[hidden] {
  display: none !important;
}
.referral-picker-search {
  flex: 0 0 auto;
}
.referral-picker-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (max-width: 680px) {
  .referral-picker-panel {
    max-height: var(--referral-panel-max-height, min(320px, 44dvh));
  }
}


/* ===================================================================
   ST30 UI Update v126 — Dedicated mobile recommender picker overlay
   On small screens the searchable picker becomes a viewport-aware modal
   so the virtual keyboard cannot push or clip the inline dropdown.
   =================================================================== */
.referral-picker-mobile-head,
.referral-picker-backdrop {
  display: none;
}

@media (max-width: 760px) {
  body.referral-picker-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .referral-picker.mobile-overlay .referral-picker-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1190;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(5, 23, 52, .32);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .referral-picker.mobile-overlay .referral-picker-panel {
    position: fixed;
    z-index: 1200;
    top: var(--referral-mobile-top, 8px) !important;
    bottom: auto !important;
    left: 10px;
    right: 10px;
    width: auto;
    height: var(--referral-mobile-height, calc(100dvh - 16px));
    max-height: var(--referral-mobile-height, calc(100dvh - 16px));
    min-height: 0;
    padding: 10px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--card);
    box-shadow: 0 24px 64px rgba(5, 23, 52, .28);
    transform: none;
  }

  .referral-picker.mobile-overlay .referral-picker-mobile-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 2px 4px 8px 8px;
    color: var(--tx);
  }

  .referral-picker-mobile-head strong {
    font-size: .96rem;
    font-weight: 900;
    letter-spacing: -.01em;
  }

  .referral-picker-mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card2);
    color: var(--tx2);
    font: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
  }

  .referral-picker.mobile-overlay .referral-picker-search {
    position: sticky;
    top: 0;
    z-index: 2;
    flex: 0 0 auto;
    margin: 0 0 8px;
    background: var(--card);
  }

  .referral-picker.mobile-overlay .referral-picker-search input {
    height: 50px;
    font-size: 16px; /* prevents iOS Safari auto-zoom */
  }

  .referral-picker.mobile-overlay .referral-picker-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 2px 0 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .referral-picker.mobile-overlay .referral-picker-option {
    min-height: 50px;
    padding: 12px 14px;
    font-size: .98rem;
    border-radius: 12px;
  }

  [data-theme="dark"] .referral-picker.mobile-overlay .referral-picker-backdrop {
    background: rgba(0, 0, 0, .48);
  }
}


/* ===================================================================
   ST30 UI Update v127 — Mobile picker safe bottom spacing
   Keep the final recommender fully scrollable above browser chrome and
   virtual keyboards on Android/iOS, including devices with safe areas.
   =================================================================== */
@media (max-width: 760px) {
  .referral-picker.mobile-overlay .referral-picker-panel {
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }

  .referral-picker.mobile-overlay .referral-picker-list {
    padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px));
  }

  .referral-picker.mobile-overlay .referral-picker-option:last-of-type {
    margin-bottom: 4px;
  }
}

/* ===================================================================
   ST30 UI Update v128 — Mobile picker backdrop polish
   Reduce visual distraction from the assessment card behind the picker.
   =================================================================== */
@media (max-width: 760px) {
  .referral-picker.mobile-overlay .referral-picker-backdrop {
    background: rgba(5, 23, 52, .48);
    backdrop-filter: blur(6px) saturate(.88);
    -webkit-backdrop-filter: blur(6px) saturate(.88);
  }

  [data-theme="dark"] .referral-picker.mobile-overlay .referral-picker-backdrop {
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(6px) saturate(.82);
    -webkit-backdrop-filter: blur(6px) saturate(.82);
  }
}

/* ===================================================================
   ST30 UI Update v129 — Remove assessment-card silhouette behind
   mobile recommender picker. The card backdrop-filter can also create
   a containing block for fixed descendants on some mobile browsers.
   =================================================================== */
@media (max-width: 760px) {
  body.referral-picker-modal-open .biodata-page .form-wrap.card {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ST30 Admin Pagination: first/last + direct page jump */
.admin-pagination .page-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-pagination .page-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  color: var(--tx3);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}
.admin-pagination .page-jump-input {
  width: 68px;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card2);
  color: var(--tx1);
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: center;
  outline: none;
}
.admin-pagination .page-jump-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(7,153,155,.12);
}
.admin-pagination .page-go {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card2);
  color: var(--tx2);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--sh-xs);
}
.admin-pagination .page-go:hover {
  color: var(--teal);
  border-color: var(--teal);
}
.admin-pagination .page-total { font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .admin-pagination .page-nav-group { gap: 6px; }
  .admin-pagination .page-btn { padding-inline: 10px; }
  .admin-pagination .page-btn-edge { font-size: .78rem; }
  .admin-pagination .page-jump { order: 3; width: 100%; justify-content: center; }
}
