/* 計劃通 PlanTung design system
   Layout: sticky brand bar + category rail; content column max 1120px;
   list = 2-col card grid ≥ 860px; detail = content + sticky seller rail.
   Look: cool porcelain paper, navy ink, cobalt actions, flyer-red prices,
   sale-sticker yellow for paid placement. Deliberately light-only. */
:root {
  color-scheme: light;
  --bg: #F3F5FA;
  --surface: #FFFFFF;
  --surface-2: #EDF0F7;
  --ink: #12152A;
  --ink-2: #454A66;
  --muted: #737995;
  --line: #E1E5EF;
  --line-strong: #C9CFDF;
  --brand: #2340F5;
  --brand-hover: #1A33D1;
  --brand-ink: #FFFFFF;
  --brand-soft: #E7EBFF;
  --price: #E0331A;
  --sticker: #FFDD3C;
  --sticker-ink: #221B00;
  --wa: #128C43;
  --wa-hover: #0E7537;
  --ok: #12804A;
  --ok-soft: #E3F5EA;
  --warn: #9A6200;
  --warn-soft: #FFF3D6;
  --danger: #C8243A;
  --danger-soft: #FDE8EB;
  --diamond-bg: #12152A;
  --diamond-ink: #FFDD3C;
  --platinum-bg: #DCE1EC;
  --platinum-ink: #262B40;
  --gold-bg: #F5C23E;
  --gold-ink: #2F2200;
  --overlay: rgba(12, 15, 31, .52);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 21, 42, .05), 0 10px 28px -16px rgba(18, 21, 42, .28);
  --shadow-lg: 0 24px 64px -24px rgba(18, 21, 42, .45);
  --font-sans: "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
  --font-num: "Barlow Condensed", "Arial Narrow", "Noto Sans HK", sans-serif;
  --max: 1120px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 900; font-size: 20px; letter-spacing: .01em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo-en { font-family: var(--font-num); font-weight: 700; font-size: .78em; color: var(--muted); margin-left: 2px; letter-spacing: .02em; }
.logo small { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 6px; margin-left: 2px; }
.topnav { display: flex; gap: 4px; margin-left: 12px; }
.topnav a { color: var(--ink-2); font-weight: 600; padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.topnav a:hover { background: var(--surface-2); text-decoration: none; }
.topnav a[aria-current="page"] { background: var(--ink); color: var(--surface); }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.cat-rail { border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-rail .wrap { display: flex; gap: 6px; padding-block: 8px; }
.cat-rail a { flex: none; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.cat-rail a:hover { text-decoration: none; border-color: var(--line-strong); }
.cat-rail a[aria-current="page"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
@media (min-width: 900px) { .cat-rail { display: none; } }
@media (max-width: 899px) { .topnav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  text-decoration: none; background: var(--surface); color: var(--ink);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-dark { background: var(--ink); color: var(--surface); }
.btn-outline { border-color: var(--line-strong); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-wa { background: var(--wa); color: #FFFFFF; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-danger { background: var(--danger); color: #FFFFFF; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.icon { width: 18px; height: 18px; flex: none; }
.icon-lg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { padding-block: 28px 8px; }
.hero-grid { display: grid; gap: 20px; align-items: end; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.3fr 1fr; } }
.hero h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 900; letter-spacing: .01em; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--sticker) 58%); color: inherit; padding: 0 2px; }
.hero p.lead { margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 34em; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps3 div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.steps3 b { display: block; font-size: 14px; color: var(--ink); }
@media (max-width: 520px) { .steps3 div { padding: 8px; font-size: 12px; } .steps3 b { font-size: 13px; } }

/* ---------- Section head + filters ---------- */
.section-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-block: 22px 12px; }
.section-head h2 { font-size: 22px; font-weight: 900; }
.section-head .muted { font-size: 13px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.placement-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- Post card ---------- */
.grid { display: grid; gap: 12px; }
@media (min-width: 860px) { .grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
.card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 14px 12px; color: var(--ink); box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--line-strong); text-decoration: none; transform: translateY(-1px); }
.card.is-diamond { border-color: color-mix(in srgb, var(--diamond-bg) 35%, var(--line)); }
.card-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-right: 64px; }
.carrier { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.verified { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--ok); }
.verified svg { width: 14px; height: 14px; }
.card-title { font-size: 16px; font-weight: 800; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-sum { font-size: 13px; color: var(--ink-2); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: pre-line; }
.card-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.date { font-size: 12px; color: var(--muted); }
.tag { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); background: transparent; }
.tag.on { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); background: var(--brand-soft); }
.tag.off { text-decoration: line-through; opacity: .55; }
.seller-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); margin-left: auto; }
.avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.prices { display: flex; flex-direction: column; gap: 6px; align-self: center; min-width: 136px; }
.price-row { display: grid; grid-template-columns: minmax(44px, max-content) 1fr; align-items: baseline; gap: 8px; background: var(--surface-2); border-radius: 8px; padding: 3px 10px 3px 8px; }
.price-row .lbl { font-family: var(--font-num); font-weight: 700; font-size: 14px; color: var(--ink-2); text-align: left; white-space: nowrap; }
.price-row .val { font-family: var(--font-num); font-weight: 800; font-size: 22px; color: var(--price); text-align: right; line-height: 1.15; }
.price-row .val small { font-size: 13px; margin-right: 1px; }
.price-row .val.none { color: var(--muted); font-weight: 600; font-size: 16px; }
.price-row .from { font-size: 11px; color: var(--muted); margin-left: 2px; font-family: var(--font-sans); font-weight: 600; }
@media (max-width: 420px) {
  .card { grid-template-columns: 1fr; }
  .prices { flex-direction: row; min-width: 0; }
  .price-row { flex: 1; grid-template-columns: 1fr; text-align: center; padding: 4px 6px; }
  .price-row .lbl, .price-row .val { text-align: center; }
}

/* Tier sticker (price-tag shape) */
.tier {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  padding: 3px 10px 3px 12px; line-height: 1.3;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%);
  white-space: nowrap;
}
.tier svg { width: 12px; height: 12px; }
.card .tier { position: absolute; top: -1px; right: -1px; border-top-right-radius: var(--radius); }
.tier-diamond { background: var(--diamond-bg); color: var(--diamond-ink); }
.tier-platinum { background: var(--platinum-bg); color: var(--platinum-ink); }
.tier-gold { background: var(--gold-bg); color: var(--gold-ink); }

/* Skeleton + empty */
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite linear; min-height: 128px; border: 1px solid var(--line); }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .card:hover { transform: none; } }
.empty { text-align: center; padding: 40px 16px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-2); }
.empty h3 { font-size: 17px; margin-bottom: 6px; color: var(--ink); }

/* ---------- Detail ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-block: 16px 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.detail { display: grid; gap: 16px; padding-bottom: 96px; }
.detail > * { min-width: 0; }
@media (min-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; padding-bottom: 40px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.panel + .panel { margin-top: 0; }
.detail-head { display: flex; flex-direction: column; gap: 10px; }
.detail-head h1 { font-size: clamp(20px, 3.4vw, 26px); font-weight: 900; }
.price-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.price-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; text-align: center; position: relative; }
.price-box .lbl { font-family: var(--font-num); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.price-box .val { font-family: var(--font-num); font-weight: 800; font-size: 30px; color: var(--price); line-height: 1.1; }
.price-box .val.none { color: var(--muted); font-size: 22px; }
.price-box .per { font-size: 11px; color: var(--muted); }
.h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.prose { white-space: pre-line; color: var(--ink-2); overflow-wrap: anywhere; }
.plans-wrap { overflow-x: auto; margin-inline: -4px; }
table.plans { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.plans th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.plans td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plans td.fee { font-family: var(--font-num); font-weight: 800; font-size: 20px; color: var(--price); white-space: nowrap; }
table.plans tr:last-child td { border-bottom: 0; }
.plan-list { display: none; list-style: none; margin: 0; padding: 0; }
.plan-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plan-list li:last-child { border-bottom: 0; }
.plan-list .pl-name { font-weight: 800; }
.plan-list .pl-meta { font-size: 13px; color: var(--muted); }
.plan-list .pl-fee { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--font-num); font-weight: 800; font-size: 22px; color: var(--price); }
.plan-list .pl-gift { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }
@media (max-width: 560px) { .plans-wrap { display: none; } .plan-list { display: block; } }
.promo-img { border-radius: var(--radius-sm); border: 1px solid var(--line); width: 100%; height: auto; }
.seller-card { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
.seller-top { display: flex; gap: 12px; align-items: center; }
.seller-top h3 { font-size: 17px; font-weight: 800; }
.wa-number { font-family: var(--font-num); font-size: 22px; font-weight: 800; letter-spacing: .03em; }
.disclaimer { font-size: 12px; color: var(--muted); line-height: 1.5; }
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px;
  box-shadow: 0 -8px 24px -18px rgba(18, 21, 42, .5);
}
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* ---------- Modal / sheet ---------- */
.modal-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 18px; width: min(560px, 100%); max-height: min(88vh, 900px); overflow: auto; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h2 { font-size: 17px; font-weight: 800; }
.modal-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.share-preview { border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.share-preview img { width: 100%; height: auto; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .share-grid { grid-template-columns: 1fr; } }
.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; min-width: 0; }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); animation: fade .2s ease-out; pointer-events: auto; }
.toast.err { background: var(--danger); color: #FFFFFF; }
@media (min-width: 900px) { .toasts { bottom: 24px; } }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err-msg { font-size: 12px; color: var(--danger); font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
textarea.input { min-height: 110px; resize: vertical; line-height: 1.55; }
.input:focus { outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); border-color: var(--brand); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .field-row.two { grid-template-columns: 1fr 1fr; } .field-row.three { grid-template-columns: repeat(3, 1fr); } }
.prefix-input { display: flex; align-items: stretch; }
.prefix-input span { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line-strong); border-right: 0; border-radius: 10px 0 0 10px; background: var(--surface-2); color: var(--ink-2); font-weight: 700; font-size: 14px; }
.prefix-input .input { border-radius: 0 10px 10px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.toggle-row { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle-row label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; cursor: pointer; background: var(--surface); }
.toggle-row input { accent-color: var(--brand); }
.otp { display: flex; gap: 8px; }
.otp input { width: 100%; max-width: 52px; height: 58px; text-align: center; font-family: var(--font-num); font-size: 28px; font-weight: 800; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); }
.otp input:focus { outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); border-color: var(--brand); }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 18px; text-align: center; background: var(--surface-2); color: var(--ink-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dropzone:hover { border-color: var(--brand); }
.dropzone img { max-height: 180px; width: auto; border-radius: 8px; }
.notice { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.notice svg { flex: none; margin-top: 2px; }
.notice.info { background: var(--brand-soft); color: var(--ink); }
.notice.warn { background: var(--warn-soft); color: var(--ink); }
.notice.ok { background: var(--ok-soft); color: var(--ink); }
.notice.err { background: var(--danger-soft); color: var(--ink); }
.notice b { font-weight: 800; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 480px; margin: 28px auto 60px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 24px; font-weight: 900; }
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.stepper li { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.stepper li.done { background: var(--brand); }
.stepper li.now { background: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.step-label { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.demo-hint { font-size: 13px; background: var(--warn-soft); border-radius: 10px; padding: 8px 12px; }

/* ---------- Dashboard ---------- */
.dash { display: grid; gap: 16px; margin-block: 20px 60px; }
@media (min-width: 900px) { .dash { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.side { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
@media (min-width: 900px) { .side { position: sticky; top: 76px; } }
@media (max-width: 899px) { .side { flex-direction: row; overflow-x: auto; scrollbar-width: none; } .side::-webkit-scrollbar { display: none; } .side .side-title { display: none; } }
.side a { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.side a:hover { background: var(--surface-2); text-decoration: none; }
.side a[aria-current="page"] { background: var(--ink); color: var(--surface); }
.side-title { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .08em; padding: 8px 12px 4px; }
.dash-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-main > h1 { font-size: 22px; font-weight: 900; }
.dash-main [data-box] { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 700; }
.stat .v { font-family: var(--font-num); font-size: 30px; font-weight: 800; line-height: 1.1; }
.stat .v small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.err { background: var(--danger-soft); color: var(--danger); }
.pill.neutral { background: var(--surface-2); color: var(--ink-2); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.n { font-family: var(--font-num); font-size: 17px; font-weight: 700; text-align: right; }
table.data .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.editor { display: grid; gap: 16px; }
@media (min-width: 1100px) { .editor { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .editor .preview-col { position: sticky; top: 76px; } }
.plan-rows { display: flex; flex-direction: column; gap: 10px; }
.plan-row { display: grid; gap: 8px; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px; }
.plan-row .name, .plan-row .gift { grid-column: 1 / -1; }
.plan-row .name { grid-column: 1 / 4; }
.plan-row [data-rm-plan] { grid-column: 4; grid-row: 1; align-self: end; }
.plan-row .field label { font-size: 12px; }
.section-title { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .06em; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.review-card { display: grid; gap: 14px; }
@media (min-width: 760px) { .review-card { grid-template-columns: 260px minmax(0, 1fr); } }
.id-preview { background: var(--surface-2); border-radius: var(--radius-sm); min-height: 160px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.id-preview img { width: 100%; height: auto; }

/* ---------- Footer & static ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; padding-block: 24px 40px; font-size: 13px; color: var(--ink-2); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.footer a { color: var(--ink-2); }
.footer .legal { margin-top: 10px; color: var(--muted); font-size: 12px; max-width: 70em; }
.doc { max-width: 760px; margin: 24px auto 60px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.doc h1 { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.doc h2 { font-size: 17px; font-weight: 800; margin-top: 22px; margin-bottom: 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 20px; }
.demo-banner { background: var(--sticker); color: var(--sticker-ink); font-size: 13px; font-weight: 700; text-align: center; padding: 6px 12px; }
.demo-banner button { background: none; border: 0; text-decoration: underline; font-weight: 800; cursor: pointer; color: inherit; padding: 0 4px; }
.page { min-height: 60vh; }
