/* ── Tokens ─────────────────────────────────── */
:root {
  --bg:        #121212;
  --surface:   #181818;
  --surface-2: #1f1f1f;
  --line:      rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text:      #ededed;
  --text-dim:  #8f8f94;
  --text-faint:#5c5c62;
  --accent:    #6c5ce7;
  --accent-lo: rgba(108, 92, 231, 0.14);
  --accent-tx: #b9aeff;
  --ok:        #3fb27f;
  --warn:      #d9a441;
  --danger:    #e05561;
  --radius:    10px;
  --mono: "SF Mono", "JetBrains Mono", "IBM Plex Mono", ui-monospace,
          Menlo, Consolas, monospace;
}

[data-theme="light"] {
  --bg:        #faf9fc;
  --surface:   #ffffff;
  --surface-2: #f2f0f7;
  --line:      rgba(20, 15, 40, 0.10);
  --line-soft: rgba(20, 15, 40, 0.06);
  --text:      #1c1a22;
  --text-dim:  #625f6b;
  --text-faint:#95919e;
  --accent:    #6c5ce7;
  --accent-lo: rgba(108, 92, 231, 0.10);
  --accent-tx: #5a45d6;
  --ok:        #1f8f5f;
  --warn:      #a5720a;
  --danger:    #c53548;
}

body {
  transition: background-color 0.15s ease, color 0.15s ease;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
               "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Masthead ───────────────────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.masthead-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mark { display: flex; align-items: center; gap: 9px; }
.mark-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(108, 92, 231, 0.8);
}
.mark-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }

.masthead-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover { border-color: #45454c; transform: scale(1.05); }

.license-pill {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 13px;
  transition: all 0.15s ease;
}
.license-pill[data-paid="true"] {
  background: var(--accent-lo);
  border-color: rgba(108, 92, 231, 0.4);
  color: var(--accent-tx);
}

/* ── Page layout ────────────────────────────── */
.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* Full-width cards */
.grid > #licenseCard,
.grid > .card:has(#checklistDetails),
.grid > #checklistDetails {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.card-head h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Inputs ─────────────────────────────────── */
.script-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.65;
  padding: 13px 14px;
  resize: vertical;
  min-height: 140px;
  transition: border-color 0.15s ease;
}
.script-input::placeholder { color: var(--text-faint); }
.script-input:focus { outline: none; border-color: var(--accent); }

.field { margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field label,
.field-head label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.field-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-tx);
  font-variant-numeric: tabular-nums;
}

.grid-2, .grid-3 { display: grid; gap: 10px; margin-top: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-2 .field, .grid-3 .field { margin-top: 0; }
.card-head + .grid-2 { margin-top: 0; }

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  transition: border-color 0.15s ease;
}
.input-wrap:focus-within { border-color: var(--accent); }
.affix {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.affix-r { margin-left: auto; }
.input-wrap input {
  width: 100%;
  min-width: 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  padding: 9px 0;
}
.input-wrap input[type="text"] {
  font-family: inherit;
  font-size: 13.5px;
}
.input-wrap input:focus { outline: none; }
.input-wrap input::placeholder { color: var(--text-faint); }
.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12.5px;
  padding: 10px 9px;
  cursor: pointer;
  outline: none;
}
.select:focus { border-color: var(--accent); }

.hint {
  margin: 11px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-faint);
}

/* ── Range slider ───────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--surface-2);
  outline: none;
  margin: 7px 0 5px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  cursor: grab;
  transition: transform 0.12s ease;
}
input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.18);
}
.scale {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-faint);
}

/* ── Readouts ───────────────────────────────── */
.readout {
  margin-top: 16px;
  padding: 15px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}
.readout-accent {
  background: var(--accent-lo);
  border-color: rgba(108, 92, 231, 0.3);
}
.readout-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.readout-hero {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 5px;
  line-height: 1.15;
}
.readout-accent .readout-hero { color: var(--accent-tx); font-size: 26px; }
.readout-foot {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 14px 0 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}
.stat { background: var(--surface); padding: 11px 13px; }
.stat-wide { grid-column: 1 / -1; }
.stat dt { font-size: 11px; color: var(--text-dim); }
.stat dd {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.stat-wide dd { font-size: 18px; }

/* ── Offer / verdict ────────────────────────── */
.offer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.verdict-wrap {
  position: relative;
  margin-top: 14px;
}

.verdict {
  padding: 15px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.verdict-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-dim);
}
.verdict-hero {
  font-family: var(--mono);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  margin-top: 10px;
  line-height: 1.15;
}
.verdict-note {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-faint);
}

.meter {
  height: 3px;
  margin-top: 12px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--text-faint);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
}

.verdict[data-state="ok"] {
  background: rgba(63, 178, 127, 0.09);
  border-color: rgba(63, 178, 127, 0.28);
}
.verdict[data-state="ok"] .verdict-badge {
  background: rgba(63, 178, 127, 0.18); color: var(--ok);
}
.verdict[data-state="ok"] .verdict-hero { color: var(--ok); }
.verdict[data-state="ok"] .meter span { background: var(--ok); }

.verdict[data-state="warn"] {
  background: rgba(217, 164, 65, 0.09);
  border-color: rgba(217, 164, 65, 0.28);
}
.verdict[data-state="warn"] .verdict-badge {
  background: rgba(217, 164, 65, 0.18); color: var(--warn);
}
.verdict[data-state="warn"] .verdict-hero { color: var(--warn); }
.verdict[data-state="warn"] .meter span { background: var(--warn); }

.verdict[data-state="danger"] {
  background: rgba(224, 85, 97, 0.1);
  border-color: rgba(224, 85, 97, 0.35);
  animation: pulse-danger 0.5s ease;
}
.verdict[data-state="danger"] .verdict-badge {
  background: rgba(224, 85, 97, 0.2); color: var(--danger);
}
.verdict[data-state="danger"] .verdict-hero { color: var(--danger); }
.verdict[data-state="danger"] .meter span { background: var(--danger); }

@keyframes pulse-danger {
  0%   { box-shadow: 0 0 0 0 rgba(224, 85, 97, 0.35); }
  100% { box-shadow: 0 0 0 9px rgba(224, 85, 97, 0); }
}

/* ── Buttons ────────────────────────────────── */
.primary-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  background: var(--accent);
  border: none;
  border-radius: 7px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.primary-btn:hover { background: #5b4bd6; }
.primary-btn:active { transform: translateY(1px); }
.primary-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.primary-btn.sm {
  display: inline-block;
  width: auto;
  margin-top: 0;
  font-size: 12.5px;
  padding: 9px 16px;
}

.ghost-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-faint);
  font-family: inherit;
  font-size: 12px;
  padding: 7px 12px;
  cursor: pointer;
  transition: color 0.13s ease, border-color 0.13s ease;
}
.ghost-btn:hover { color: var(--text); border-color: #45454c; }
.ghost-btn.wide { width: 100%; margin-top: 9px; padding: 10px; }
.ghost-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 14px;
}

/* ── License card ───────────────────────────── */
.buy-cta { text-align: center; }

.license-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-top: 14px;
}
.license-input-row .input-wrap input {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
@media (max-width: 480px) {
  .license-input-row { grid-template-columns: 1fr; }
}

.license-msg {
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.55;
  min-height: 15px;
}
.license-msg[data-tone="error"]   { color: var(--danger); }
.license-msg[data-tone="ok"]      { color: var(--ok); }
.license-msg[data-tone="pending"] { color: var(--text-faint); }

/* ── Lock veil (shared by Offer Check) ──────── */
.lock-veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  padding: 18px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(6px);
}
.lock-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-tx);
}
.lock-note {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 260px;
  line-height: 1.55;
  margin-bottom: 4px;
}

/* ── Proposal ───────────────────────────────── */
.proposal-wrap { margin-top: 14px; }

.proposal-preview {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  border-bottom: none;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.65;
  padding: 14px;
  white-space: pre-wrap;
  position: relative;
}
.proposal-preview::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.proposal-box { position: relative; }
.proposal-text {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
  padding: 14px;
  resize: vertical;
  outline: none;
}
.proposal-text:focus { border-color: var(--accent); }

/* ── Ledger ─────────────────────────────────── */
.limit-note {
  margin: 11px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--warn);
}
.limit-note .buy-cta {
  display: inline;
  color: var(--accent-tx);
  text-decoration: underline;
  cursor: pointer;
}

.ledger { list-style: none; margin: 14px 0 0; padding: 0; }
.ledger:empty { margin: 0; }

.ledger-item {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--text-faint);
  border-radius: 7px;
  padding: 11px 12px;
  margin-bottom: 8px;
  animation: slide-in 0.22s ease;
}
.ledger-item[data-tone="ok"]     { border-left-color: var(--ok); }
.ledger-item[data-tone="warn"]   { border-left-color: var(--warn); }
.ledger-item[data-tone="danger"] { border-left-color: var(--danger); }

@keyframes slide-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ledger-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px;
}
.ledger-name {
  font-size: 13.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ledger-rate {
  font-family: var(--mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.ledger-item[data-tone="ok"] .ledger-rate     { color: var(--ok); }
.ledger-item[data-tone="warn"] .ledger-rate   { color: var(--warn); }
.ledger-item[data-tone="danger"] .ledger-rate { color: var(--danger); }

.ledger-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.ledger-delta { margin-left: auto; }
.ledger-del {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
  transition: color 0.13s ease;
}
.ledger-del:hover { color: var(--danger); }

.empty {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-faint);
  text-align: center;
  padding: 16px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.ledger-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--text-dim);
}
.ledger-summary strong {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ── Checklist card — intentionally de-emphasized ─ */
.card-secondary {
  padding: 0;
  color: inherit;
}
.card-secondary[open] { padding-bottom: 6px; }

.card-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 13px 18px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-faint);
  list-style: none;
}
.card-summary::-webkit-details-marker { display: none; }
.card-summary::before {
  content: "›";
  display: inline-block;
  margin-right: 7px;
  transform: rotate(0deg);
  transition: transform 0.15s ease;
  color: var(--text-faint);
}
.card-secondary[open] .card-summary::before { transform: rotate(90deg); }

.card-secondary .progress {
  margin: 0 18px 11px;
  padding-top: 0;
  border-top: none;
}
.card-secondary .checklist { padding: 0 18px; }
.card-secondary .checklist li:first-child { border-top: 1px solid var(--line-soft); }

/* ── Checklist ──────────────────────────────── */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li + li { border-top: 1px solid var(--line-soft); }
.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 2px;
  cursor: pointer;
  user-select: none;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.box {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 1px;
  border: 1.5px solid #45454c;
  border-radius: 4px;
  position: relative;
  transition: background 0.13s ease, border-color 0.13s ease;
}
.box::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 1px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition: opacity 0.13s ease, transform 0.13s ease;
}
.check input:checked ~ .box {
  background: var(--accent);
  border-color: var(--accent);
}
.check input:checked ~ .box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.check input:focus-visible ~ .box {
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
}
.check-body { display: flex; flex-direction: column; }
.check-title { font-size: 13.5px; transition: color 0.13s ease; }
.check-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 1px;
}
.check input:checked ~ .check-body .check-title {
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: var(--text-faint);
}

.progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}
.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* ── Toast ──────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(8px);
  background: #2a2a30;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  padding: 10px 18px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Misc ───────────────────────────────────── */
.disclaimer {
  margin: 20px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.6;
}
.footer-link {
  color: var(--text-faint);
  text-decoration: underline;
}
.footer-link:hover { color: var(--accent-tx); }

/* ── Privacy policy footer section ──────────── */
.policy {
  border-top: 1px solid var(--line-soft);
  margin-top: 48px;
  background: var(--surface);
}
.policy-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.policy h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.policy .updated {
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 28px;
}
.policy h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-top: 34px;
  margin-bottom: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.policy h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-top: 22px;
  margin-bottom: 8px;
}
.policy p {
  margin: 0 0 13px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.65;
}
.policy ul {
  margin: 0 0 13px;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.65;
}
.policy li { margin-bottom: 6px; }
.policy code {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: var(--mono);
  color: var(--text);
}
.policy a { color: var(--accent-tx); }
.policy hr {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 28px 0;
}
.policy .fine-print {
  color: var(--text-faint);
  font-size: 12px;
  font-style: italic;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #2c2c30;
  border-radius: 5px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #3a3a40; }

[data-theme="light"] .box { border-color: #c7c3d1; }
[data-theme="light"] .ghost-btn:hover { border-color: #b8b3c4; }
[data-theme="light"] .toast {
  background: #2a2a30;
  color: #f2f0f7;
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #d4d0dc;
  border-color: var(--bg);
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #c0bbcb; }
