/* ============================================================
   SaiTaMo OnePass — พาเลตต์กลาง SaiTaMo (Navy / Gold / Teal / Ice)
   ชุดเดียวกับ editpdf.saitamo.com · ค่าตั้งต้น = โหมดมืด navy
   ============================================================ */
:root {
  --bg: #0A192F;
  --panel: #0E2942;
  --panel-2: #143650;
  --line: #33505C;
  --text: #E0F2FE;
  --muted: #9FB6C9;
  --accent: #2FA6B8;
  --accent-2: #4CB8F5;
  --on-accent: #06202B;
  --gold: #D4AF37;
  --gold-lite: #EFCF7A;
  --on-gold: #0A192F;
  --danger: #ff8a8a;
  --danger-solid: #e5484d;
  --warn: #ffcf70;
  --good: #4ade80;
  --p3: #ff6b6b;
  --p2: #f5b942;
  --p1: #8aa4b8;
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 2px 16px rgba(2, 10, 20, .5);
  --shadow-lg: 0 18px 46px rgba(2, 10, 20, .6);
  --ring: var(--gold);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #EEF4F8; --panel: #ffffff; --panel-2: #E6F0F5; --line: #CBD9E1;
    --text: #0A192F; --muted: #42606B; --accent: #0E7C8C; --accent-2: #0b74c4; --on-accent: #fff;
    --gold: #B98F1E; --gold-lite: #D4AF37; --on-gold: #0A192F;
    --danger: #cc2f2f; --danger-solid: #cc2f2f; --warn: #a86400; --good: #15803d;
    --p3: #d92d2d; --p2: #c27c00; --p1: #6b8293;
    --shadow: 0 1px 2px rgba(20, 50, 60, .04), 0 12px 30px -14px rgba(20, 50, 60, .18);
    --shadow-lg: 0 18px 46px -18px rgba(20, 50, 60, .3);
    color-scheme: light;
  }
}
:root[data-theme='light'] {
  --bg: #EEF4F8; --panel: #ffffff; --panel-2: #E6F0F5; --line: #CBD9E1;
  --text: #0A192F; --muted: #42606B; --accent: #0E7C8C; --accent-2: #0b74c4; --on-accent: #fff;
  --gold: #B98F1E; --gold-lite: #D4AF37; --on-gold: #0A192F;
  --danger: #cc2f2f; --danger-solid: #cc2f2f; --warn: #a86400; --good: #15803d;
  --p3: #d92d2d; --p2: #c27c00; --p1: #6b8293;
  --shadow: 0 1px 2px rgba(20, 50, 60, .04), 0 12px 30px -14px rgba(20, 50, 60, .18);
  --shadow-lg: 0 18px 46px -18px rgba(20, 50, 60, .3);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; overflow-x: clip;
}
a { color: var(--accent); }
[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 20px; }
h3 { font-size: 15px; margin-top: 18px; }
.muted { color: var(--muted); }
small.muted { font-size: 13px; display: block; margin-top: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spacer { flex: 1 1 auto; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }

:where(a, button, [tabindex], input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 10px;
}
.skip-link {
  position: absolute; left: 14px; top: -60px; z-index: 200; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-weight: 700; transition: top .18s;
}
.skip-link:focus { top: 14px; }

.glow {
  position: fixed; inset: -30% 0 auto 0; height: 60vh; pointer-events: none; z-index: 0; filter: blur(24px);
  background:
    radial-gradient(50% 65% at 18% 35%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%),
    radial-gradient(45% 60% at 82% 28%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 72%);
}
.wrap {
  position: relative; z-index: 1; max-width: 860px; margin: 0 auto;
  padding: 0 calc(16px + env(safe-area-inset-right)) 0 calc(16px + env(safe-area-inset-left));
}

/* ---------- Header + breadcrumb ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(16px + env(safe-area-inset-top)) 0 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; min-width: 0; }
.brand .hero-mark { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: radial-gradient(120% 120% at 50% 20%, #12335A, #0A192F); border: 2px solid #D4AF37; }
.brand small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.crumb { color: var(--muted); font-weight: 600; }
.crumb-sep { color: var(--gold); margin: 0 2px; }
.header-actions { display: inline-flex; gap: 8px; flex: none; }
.icon-btn {
  font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--text); font-weight: 600; font-size: 14px;
  transition: transform .15s var(--spring), border-color .15s, background .15s;
}
.icon-btn:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--panel-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn--gold { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); color: var(--gold-lite); }
.icon-btn--plain { border-color: transparent; background: transparent; }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s var(--spring), background .15s, border-color .15s, opacity .15s, box-shadow .15s;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--primary { background: var(--gold); color: var(--on-gold); box-shadow: 0 6px 22px -8px color-mix(in srgb, var(--gold) 70%, transparent); }
.btn--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--gold) 86%, #fff); }
.btn--ghost { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn--ghost:hover:not(:disabled) { background: var(--panel-2); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.btn--danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.btn--danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 14%, transparent); }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy::after { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { font: inherit; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 8px 4px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.link-btn .i { width: 16px; height: 16px; }

/* ---------- Intro ---------- */
.intro { padding: 18px 0 6px; max-width: 700px; }
.intro h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; text-wrap: balance; }
.grad { color: var(--gold); background: linear-gradient(100deg, var(--gold-lite), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.intro p { color: var(--muted); font-size: 17px; margin: 0; max-width: 62ch; text-wrap: pretty; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 18px 0 0; }
.trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.trust .i { width: 15px; height: 15px; color: var(--accent); }

/* ---------- Panels & fields ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); margin: 22px 0; }
.narrow { max-width: 480px; }
#view-lock .narrow, #view-recover .narrow, #view-link .narrow { margin-inline: auto; }
.panel > .btn { margin-top: 10px; }
.field { display: block; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select {
  font: inherit; width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; font-family: var(--mono); font-size: 14px; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); outline: none; }
input[type=password], #f-pass { font-family: var(--mono); letter-spacing: .02em; }
.input-row { display: flex; gap: 6px; }
.input-row input { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.err { color: var(--danger); font-size: 14px; min-height: 1.2em; margin: 10px 0 0; font-weight: 600; }
.err:empty { display: none; }
.alt-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 14px; }

.meter { display: flex; align-items: center; gap: 10px; margin: -6px 0 14px; font-size: 13px; color: var(--muted); }
.meter i { flex: 1; height: 6px; border-radius: 99px; background: var(--panel-2); position: relative; overflow: hidden; }
.meter i::after { content: ''; position: absolute; inset: 0; width: var(--w, 0%); background: var(--c, var(--danger)); border-radius: inherit; transition: width .3s var(--spring), background .2s; }
.meter span { min-width: 70px; text-align: right; font-weight: 600; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: var(--panel-2); margin: 4px 0 14px; }
.note .i { margin-top: 2px; }
.note--warn { background: color-mix(in srgb, var(--danger) 12%, var(--panel)); color: var(--text); }
.note--warn .i { color: var(--danger); }
.note--ok .i { color: var(--good); }

.banner { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--warn) 18%, var(--panel)); border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); font-weight: 600; font-size: 14px; margin: 6px 0 0; }
.banner .i { color: var(--warn); }

/* segmented */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel-2); margin-bottom: 14px; }
.seg > button, .seg > label { flex: 1; }
.seg > button { font: inherit; font-weight: 600; font-size: 14px; border: 0; border-radius: 10px; min-height: 40px; background: transparent; color: var(--muted); cursor: pointer; }
.seg > button.is-on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.seg > label input { position: absolute; opacity: 0; pointer-events: none; }
.seg > label span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; text-align: center; }
.seg > label input:checked + span { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.seg > label input:focus-visible + span { outline: 3px solid var(--ring); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot--3 { background: var(--p3); } .dot--2 { background: var(--p2); } .dot--1 { background: var(--p1); }

.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); margin-bottom: 8px; cursor: pointer; border: 1.5px solid transparent; transition: border-color .15s; }
.radio-card input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--gold); flex: none; }
.radio-card b { display: block; font-size: 15px; }
.radio-card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.radio-card:has(input:checked) { border-color: var(--gold); }
.radio-card--danger:has(input:checked) { border-color: var(--danger); }
.radio-card--danger input { accent-color: var(--danger-solid); }

/* ---------- Lock ---------- */
.lock-panel { text-align: center; margin-top: 36px; }
.lock-hero { width: 120px; height: 120px; object-fit: contain; margin: -70px auto 6px; display: block; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); animation: float 4s ease-in-out infinite; }
.lock-panel h1 { font-size: 24px; }
.lock-panel input { text-align: center; }
@keyframes float { 50% { transform: translateY(-6px); } }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- Vault hero card (Black & Gold — เหมือนกันทั้งสองโหมด) ---------- */
.vault-card {
  position: relative; overflow: hidden; margin: 10px 0 18px; padding: 22px 22px 18px; border-radius: 22px; color: #F4E7C1;
  background: radial-gradient(120% 140% at 100% 0%, rgba(212,175,55,.22), transparent 45%), linear-gradient(150deg, #0F2340 0%, #07111F 70%);
  border: 1px solid rgba(212,175,55,.45); box-shadow: 0 22px 50px -24px rgba(5,12,24,.85), inset 0 1px 0 rgba(255,255,255,.06);
}
.vc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vc-label { margin: 0; font-size: 13px; color: #B9A877; font-weight: 600; letter-spacing: .04em; }
.vc-num { margin: 0; font-size: 44px; font-weight: 700; line-height: 1.1; color: #EFCF7A; text-shadow: 0 0 22px rgba(239,207,122,.35); font-variant-numeric: tabular-nums; }
.vc-num small { font-size: 15px; color: #B9A877; font-weight: 600; }
.vc-health { position: relative; width: 64px; height: 64px; flex: none; }
.vc-health svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.vc-health circle { fill: none; stroke-width: 3.5; }
.ring-bg { stroke: rgba(239,207,122,.16); }
.ring { stroke: #EFCF7A; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .8s var(--spring); }
.vc-health span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: #EFCF7A; font-size: 17px; }
.vc-stats { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vc-stats li { background: rgba(239,207,122,.07); border-radius: 12px; padding: 8px 6px; text-align: center; }
.vc-stats b { display: block; font-size: 20px; color: #F4E7C1; font-variant-numeric: tabular-nums; }
.vc-stats span { font-size: 12px; color: #B9A877; }
.vc-sync { margin: 12px 0 0; font-size: 12.5px; color: #B9A877; display: flex; align-items: center; gap: 6px; }
.vc-sync:empty { display: none; }

/* ---------- Toolbar + chips ---------- */
.toolbar { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; padding: 10px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.search { flex: 1; position: relative; display: block; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 42px !important; border-radius: 999px !important; background: var(--panel) !important; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { font: inherit; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 0; background: var(--panel-2); color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.chip .i { width: 14px; height: 14px; }
.chip.is-on { background: var(--text); color: var(--bg); }

/* ---------- List (de-box: การ์ดเดียว คั่นด้วยเส้นบาง) ---------- */
.list { list-style: none; margin: 0 0 30px; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.list:empty { display: none; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.row:first-child { border-top: 0; }
.row:hover { background: var(--panel-2); }
.avatar { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; position: relative; }
.avatar .dot { position: absolute; right: -2px; top: -2px; width: 12px; height: 12px; border: 2px solid var(--panel); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 700; display: flex; align-items: center; gap: 6px; min-width: 0; }
.row-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; flex: none; }
.badge .i { width: 11px; height: 11px; }
.badge--secret { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.badge--weak { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.totp { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .08em; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px; cursor: pointer; }
.totp i { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(var(--accent) var(--t, 100%), var(--panel-2) 0); }
.row-actions { display: flex; gap: 4px; flex: none; }
.row-actions .icon-btn { min-width: 40px; min-height: 40px; padding: 0; border-color: transparent; background: transparent; color: var(--muted); }
.row-actions .icon-btn:hover { color: var(--text); background: var(--panel-2); }
.revealed { font-family: var(--mono); font-size: 14px; color: var(--text); word-break: break-all; white-space: normal; }

.empty { text-align: center; padding: 30px 10px 40px; color: var(--muted); }
.empty img { width: 140px; height: 140px; object-fit: contain; animation: float 4s ease-in-out infinite; }

/* ---------- Dialog sheets ---------- */
dialog.sheet { border: 0; padding: 0; background: var(--panel); color: var(--text); border-radius: 22px; width: min(560px, calc(100vw - 24px)); max-height: min(88vh, 900px); box-shadow: var(--shadow-lg); }
dialog.sheet--sm { width: min(400px, calc(100vw - 24px)); }
dialog.sheet::backdrop { background: rgba(3, 10, 20, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.sheet[open] { animation: pop .28s var(--spring); }
@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.sheet form, .sheet-wrap { display: flex; flex-direction: column; max-height: inherit; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 8px 22px; }
.sheet-h h2 { margin: 0; }
.sheet-b { padding: 6px 22px 10px; overflow-y: auto; }
.sheet-f { display: flex; gap: 8px; align-items: center; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 560px) {
  dialog.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92vh; }
}
.gen-opts { margin: -4px 0 14px; font-size: 14px; }
.gen-opts summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.gen-row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding-top: 10px; }
.gen-row label:first-child { display: flex; align-items: center; gap: 8px; flex-basis: 100%; }
.gen-row input[type=range] { flex: 1; accent-color: var(--gold); }
.gen-row .check { margin: 0; }

/* settings */
.set-sec { padding: 16px 0; border-top: 1px solid var(--line); }
.set-sec:first-child { border-top: 0; padding-top: 4px; }
.set-sec h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.set-sec h3 .i { color: var(--gold); }
.set-sec p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.set-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.set-row .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.set-grid { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; font-size: 14px; margin-bottom: 10px; }
.set-grid select { width: auto; min-height: 40px; }
.status { font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--panel-2); color: var(--muted); }
.status--on { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.events { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--muted); max-height: 180px; overflow: auto; }
.events li { padding: 5px 0; border-top: 1px solid var(--line); }
.events time { font-variant-numeric: tabular-nums; margin-right: 8px; }
.health-list { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; }
.health-list li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.health-list .i { color: var(--warn); }
.code-box { font-family: var(--mono); font-size: 14px; background: var(--bg); border: 1px dashed var(--gold); border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; word-break: break-all; user-select: all; margin: 0; }
.shares { padding-left: 22px; margin: 0; }
.shares li { margin-bottom: 8px; }
.shares code { font-family: var(--mono); font-size: 13px; word-break: break-all; display: block; background: var(--bg); border-radius: 10px; padding: 8px 10px; user-select: all; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 300; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); animation: pop .25s var(--spring); }
.toast .i { color: var(--good); }

.site-footer { margin-top: 30px; padding: 24px 0 calc(38px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.site-footer p { margin: 0 0 8px; }

@media (max-width: 560px) {
  .hide-sm { display: none; }
  .brand { font-size: 16px; }
  .brand small { display: none; }
  .panel { padding: 20px 18px; }
  .intro p { font-size: 15.5px; }
  .vc-num { font-size: 38px; }
  .vc-stats b { font-size: 17px; }
  .vc-stats span { font-size: 11px; }
  #btn-add span { display: none; }
  #btn-add { padding: 0 14px; }
  .row-actions .act-user { display: none; }
}
@media print {
  body * { visibility: hidden; }
  #dlg-recovery, #dlg-recovery .printable, #dlg-recovery .printable * { visibility: visible; }
  #dlg-recovery { position: absolute; inset: 0; box-shadow: none; width: 100%; max-height: none; }
  .glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
