/* VerifyGhana — prototype UI. Vanilla CSS, no build step. */

/* ─────────────────────────────  Tokens  ───────────────────────────── */

:root {
  --bg: #07110c;
  --bg-2: #0a1611;
  --panel: #0f1f17;
  --panel-2: #14291e;
  --panel-3: #1a3326;
  --line: #203a2c;
  --line-2: #2b4b39;
  --text: #edf5ef;
  --muted: #93ada0;
  --muted-2: #6c8a7c;
  --gold: #f1c24c;
  --gold-2: #ffdb85;
  --gold-soft: rgba(241, 194, 76, 0.13);
  --green: #2fbf87;
  --green-2: #63d9aa;
  --green-soft: rgba(47, 191, 135, 0.13);
  --red: #f0603f;
  --red-soft: rgba(240, 96, 63, 0.13);
  --amber: #e8a33d;
  --paper: #f7f2e5;
  --paper-2: #efe8d6;
  --paper-ink: #12261c;
  --paper-muted: #5f7568;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.28);
  --ease: cubic-bezier(0.2, 0.75, 0.3, 1);
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(241, 194, 76, 0.28); }

/* ───────────────────────────  Atmosphere  ─────────────────────────── */

.ambient { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.ambient-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.ambient .g1 { width: 620px; height: 620px; left: -180px; top: -160px; background: radial-gradient(circle, rgba(24, 120, 84, 0.5), transparent 68%); }
.ambient .g2 { width: 720px; height: 720px; right: -240px; bottom: -260px; background: radial-gradient(circle, rgba(190, 143, 38, 0.32), transparent 66%); }
.ambient-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
}

/* ────────────────────────────  Stage / rail  ──────────────────────── */

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 5vw, 88px);
}

.rail { flex: 1 1 380px; max-width: 420px; display: flex; flex-direction: column; gap: 24px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #17382a, #0d2119);
  border: 1px solid rgba(241, 194, 76, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.35);
  color: var(--green-2);
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-word { font-size: 19px; font-weight: 680; letter-spacing: -0.02em; }
.brand-word span { color: var(--gold); }

.rail-title {
  font-size: clamp(34px, 3.5vw, 46px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 660;
  background: linear-gradient(100deg, #ffffff 0%, #d9f5e6 45%, #f4d68e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rail-lede { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 40ch; }

.rail-steps { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }
.rail-steps li { display: flex; gap: 16px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.rail-steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.rs-num { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: 0.08em; padding-top: 3px; opacity: 0.85; }
.rail-steps b { display: block; font-weight: 580; font-size: 13.5px; letter-spacing: -0.01em; }
.rail-steps small { display: block; color: var(--muted-2); font-size: 12px; line-height: 1.5; margin-top: 3px; max-width: 34ch; }

.rail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rail-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12.5px; font-weight: 540; color: var(--text);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.rail-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.rail-btn svg { width: 16px; height: 16px; opacity: 0.8; }
.rail-btn.ghost { background: none; color: var(--muted); }
.rail-foot { font-size: 11px; color: var(--muted-2); letter-spacing: 0.01em; }

/* ────────────────────────────  Device frame  ──────────────────────── */

.device { position: relative; flex: 0 0 auto; width: 440px; height: min(880px, calc(100dvh - 56px)); }
.device-shell {
  position: relative; z-index: 2; height: 100%;
  padding: 11px;
  border-radius: 50px;
  background: linear-gradient(160deg, #22302a, #0a0f0c 32%, #050806 70%, #1b2721);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow), inset 0 1px 1px rgba(255, 255, 255, 0.14), inset 0 -2px 6px rgba(0, 0, 0, 0.6);
}
.device-shell::after {
  content: ""; position: absolute; inset: 6px; border-radius: 45px;
  border: 1px solid rgba(0, 0, 0, 0.55); pointer-events: none;
}
.device-shadow {
  position: absolute; left: 8%; right: 8%; bottom: -20px; height: 48px; z-index: 1;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6), transparent 70%);
  filter: blur(12px);
}

.app {
  position: relative; height: 100%;
  border-radius: 40px; overflow: hidden;
  background: var(--bg);
  display: flex; flex-direction: column;
  isolation: isolate;
}
.app::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(47, 191, 135, 0.1), transparent 60%),
    radial-gradient(90% 50% at 100% 105%, rgba(241, 194, 76, 0.07), transparent 60%);
}

/* ─────────────────────────────  Chrome  ───────────────────────────── */

.statusbar {
  flex: 0 0 auto; height: 46px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px 0 30px;
  font-size: 12.5px; font-weight: 640; letter-spacing: 0.01em;
  color: var(--text);
}
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 104px; height: 27px; border-radius: 20px; background: #040705; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.status-icons { display: flex; align-items: center; gap: 5px; }
.status-icons svg { width: auto; height: 11px; stroke: none; fill: currentColor; }
.status-icons .sig { width: 16px; }
.status-icons .wifi { width: 15px; stroke: currentColor; fill: none; }
.status-icons .batt { width: 24px; }

.appbar {
  flex: 0 0 auto; min-height: 54px;
  display: flex; align-items: center; gap: 12px;
  padding: 4px 18px 10px;
}
.appbar[hidden] { display: none; }
.ab-back {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text); flex: 0 0 auto;
  transition: background 0.16s var(--ease);
}
.ab-back:hover { background: var(--panel-2); }
.ab-back svg { width: 18px; height: 18px; }
.ab-title { font-size: 15px; font-weight: 620; letter-spacing: -0.015em; flex: 1; min-width: 0; }
.ab-sub { display: block; font-size: 11px; font-weight: 480; color: var(--muted-2); letter-spacing: 0; margin-top: 1px; }
.ab-action {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 11px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 11.5px; font-weight: 560; color: var(--muted);
  flex: 0 0 auto;
}
.ab-action:hover { color: var(--text); border-color: var(--line-2); }
.ab-action svg { width: 14px; height: 14px; }
.ab-action.live { color: var(--gold); border-color: rgba(241, 194, 76, 0.3); background: var(--gold-soft); }

.view {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 2px 20px 26px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  scroll-behavior: smooth;
}
.view::-webkit-scrollbar { width: 6px; }
.view::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.view.no-pad { padding: 0; }
.view:focus { outline: none; }

.tabbar {
  flex: 0 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 22, 17, 0.86);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.tabbar[hidden] { display: none; }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 7px 0 3px; border-radius: 12px;
  color: var(--muted-2); font-size: 10px; font-weight: 560; letter-spacing: 0.01em;
  transition: color 0.15s var(--ease);
}
.tab svg { width: 21px; height: 21px; stroke-width: 1.6; transition: transform 0.2s var(--ease); }
.tab:hover { color: var(--muted); }
.tab[aria-current="page"] { color: var(--gold); }
.tab[aria-current="page"] svg { transform: translateY(-1px); }
.tab .dot { position: absolute; }

/* ─────────────────────────────  Type  ────────────────────────────── */

.eyebrow { font-size: 10.5px; font-weight: 680; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.h-xl { font-size: 27px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 650; }
.h-lg { font-size: 21px; line-height: 1.18; letter-spacing: -0.025em; font-weight: 640; }
.h-md { font-size: 16px; line-height: 1.25; letter-spacing: -0.018em; font-weight: 620; }
.h-sm { font-size: 13.5px; font-weight: 620; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.small { font-size: 12px; line-height: 1.5; }
.tiny { font-size: 10.5px; line-height: 1.45; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: -0.01em; }
.gold { color: var(--gold); }
.green { color: var(--green); }
.red { color: var(--red); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.spacer { flex: 1; }
.break { word-break: break-word; }

/* ─────────────────────────────  Buttons  ─────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 20px; border-radius: 14px;
  font-size: 14px; font-weight: 620; letter-spacing: -0.01em;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line);
  transition: transform 0.14s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease), opacity 0.16s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--panel-3); border-color: var(--line-2); }
.btn:active { transform: scale(0.982); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn.block { width: 100%; }
.btn.lg { min-height: 54px; font-size: 15px; border-radius: 16px; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 12.5px; border-radius: 11px; }
.btn.xs { min-height: 30px; padding: 0 10px; font-size: 11.5px; border-radius: 9px; gap: 6px; }
.btn.xs svg { width: 13px; height: 13px; }
.btn.primary {
  background: linear-gradient(180deg, #f7d06a, #e9b53e);
  color: #201703; border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 8px 22px rgba(233, 181, 62, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn.primary:hover { background: linear-gradient(180deg, #ffdc85, #f0bf4c); }
.btn.verify {
  background: linear-gradient(180deg, #3ed39a, #24a973);
  color: #04150e; border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 24px rgba(47, 191, 135, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn.verify:hover { background: linear-gradient(180deg, #55e2ad, #2cb87f); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.btn.outline { background: transparent; border-color: var(--line-2); }
.btn.danger { color: var(--red); border-color: rgba(240, 96, 63, 0.32); background: var(--red-soft); }
.btn.danger:hover { background: rgba(240, 96, 63, 0.2); }
.btn.paper { background: var(--paper); color: var(--paper-ink); border-color: rgba(0, 0, 0, 0.12); }
.btn.paper:hover { background: #fffaf0; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: var(--muted); border: 1px solid transparent;
}
.icon-btn:hover { background: var(--panel); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }

/* ─────────────────────────────  Surfaces  ────────────────────────── */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.card.soft { background: var(--panel-2); }
.card.tight { padding: 13px; }
.card.flat { background: rgba(255, 255, 255, 0.025); }
.card.pad-0 { padding: 0; overflow: hidden; }

.divider { height: 1px; background: var(--line); margin: 14px 0; }
.hr-dashed { height: 1px; background-image: linear-gradient(90deg, var(--line-2) 50%, transparent 50%); background-size: 8px 1px; }

/* chips + pills */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 640; letter-spacing: 0.02em;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); color: var(--muted);
  white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }
.chip.green { color: var(--green-2); border-color: rgba(47, 191, 135, 0.28); background: var(--green-soft); }
.chip.gold { color: var(--gold-2); border-color: rgba(241, 194, 76, 0.28); background: var(--gold-soft); }
.chip.red { color: #ff9179; border-color: rgba(240, 96, 63, 0.28); background: var(--red-soft); }
.chip.lg { height: 30px; font-size: 11px; padding: 0 12px; }
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }

.filter-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter {
  height: 31px; padding: 0 13px; border-radius: 999px; flex: 0 0 auto;
  border: 1px solid var(--line); background: transparent; color: var(--muted-2);
  font-size: 12px; font-weight: 570;
}
.filter:hover { color: var(--text); border-color: var(--line-2); }
.filter[aria-pressed="true"] { background: var(--text); color: #0a140f; border-color: var(--text); font-weight: 640; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 21px; padding: 0 8px; border-radius: 6px;
  font-size: 9.5px; font-weight: 720; letter-spacing: 0.06em; text-transform: uppercase;
}
.badge svg { width: 11px; height: 11px; stroke-width: 2.4; }
.badge.verified { background: var(--green-soft); color: var(--green-2); border: 1px solid rgba(47, 191, 135, 0.28); }
.badge.pending { background: var(--gold-soft); color: var(--gold-2); border: 1px solid rgba(241, 194, 76, 0.28); }
.badge.failed { background: var(--red-soft); color: #ff9179; border: 1px solid rgba(240, 96, 63, 0.28); }

.avatar {
  position: relative; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, #2a4a39, #163026);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 14px; font-weight: 680; color: #d8efe2; letter-spacing: -0.02em;
}
.avatar.lg { width: 56px; height: 56px; border-radius: 18px; font-size: 19px; }
.avatar.xl { width: 72px; height: 72px; border-radius: 22px; font-size: 25px; }
.avatar.org { background: linear-gradient(150deg, #4a3a17, #2b2210); color: var(--gold-2); border-color: rgba(241, 194, 76, 0.25); }
.avatar .tick {
  position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); color: #04150e; display: grid; place-items: center;
  border: 2.5px solid var(--panel);
}
.avatar .tick svg { width: 9px; height: 9px; stroke-width: 3.4; }

/* list rows */
.rows { display: flex; flex-direction: column; }
.row-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; text-align: left; width: 100%;
  border-bottom: 1px solid var(--line);
}
.row-item:last-child { border-bottom: 0; }
.row-item .ri-main { flex: 1; min-width: 0; }
.row-item .ri-main b { display: block; font-size: 13px; font-weight: 570; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-item .ri-main span { display: block; font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.row-item > svg { width: 15px; height: 15px; color: var(--muted-2); flex: 0 0 auto; }
button.row-item:hover .ri-main b { color: var(--gold-2); }

/* form */
.field { display: block; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; font-weight: 580; color: var(--muted); margin-bottom: 7px; }
.field-label span { font-weight: 480; color: var(--muted-2); font-size: 10.5px; }
.input {
  width: 100%; height: 54px; padding: 0 15px;
  border-radius: 13px; border: 1px solid var(--line);
  background: rgba(4, 10, 7, 0.5); color: var(--text);
  font-family: var(--mono); font-size: 16px; letter-spacing: 0.045em;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
  -webkit-appearance: none;
}
.input::placeholder { color: #4f6a5c; letter-spacing: 0.02em; }
.input:focus { outline: none; border-color: rgba(241, 194, 76, 0.55); box-shadow: 0 0 0 3px rgba(241, 194, 76, 0.1); background: rgba(4, 10, 7, 0.7); }
.input.invalid { border-color: rgba(240, 96, 63, 0.55); }
.input.text { font-family: var(--sans); font-size: 14px; letter-spacing: 0; height: 46px; }

.field-help { font-size: 11px; color: var(--muted-2); margin-top: 8px; line-height: 1.5; display: flex; gap: 7px; align-items: flex-start; }
.field-help svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; }

.check {
  display: flex; gap: 11px; align-items: flex-start; cursor: pointer;
  font-size: 12px; line-height: 1.5; color: var(--muted);
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  flex: 0 0 auto; width: 21px; height: 21px; border-radius: 7px; margin-top: 1px;
  border: 1.5px solid var(--line-2); background: rgba(0, 0, 0, 0.2);
  display: grid; place-items: center; transition: all 0.16s var(--ease);
}
.check .box svg { width: 13px; height: 13px; stroke-width: 3; opacity: 0; transform: scale(0.6); transition: all 0.16s var(--ease); color: #04150e; }
.check input:checked + .box { background: var(--green); border-color: var(--green); }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 2px; }

/* toggle */
.toggle { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 0; }
.toggle .tg-main { flex: 1; }
.toggle .tg-main b { display: block; font-size: 12.5px; font-weight: 560; }
.toggle .tg-main span { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.switch { flex: 0 0 auto; width: 40px; height: 24px; border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line-2); position: relative; transition: background 0.18s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #9db3a6; transition: transform 0.2s var(--ease), background 0.2s; }
.switch[aria-checked="true"] { background: rgba(47, 191, 135, 0.3); border-color: rgba(47, 191, 135, 0.5); }
.switch[aria-checked="true"]::after { transform: translateX(16px); background: var(--green-2); }

/* steps indicator */
.steps { display: flex; align-items: center; gap: 5px; margin-bottom: 18px; }
.steps .sp { flex: 1; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.steps .sp i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 2px; transition: width 0.4s var(--ease); }
.steps .sp.done i, .steps .sp.active i { width: 100%; }
.steps .sp.active i { background: linear-gradient(90deg, var(--green), var(--green-2)); }
.steps-label { display: flex; justify-content: space-between; font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-2); font-weight: 640; margin-bottom: 7px; }

/* alerts */
.alert { display: flex; gap: 11px; padding: 13px; border-radius: 13px; border: 1px solid; font-size: 12px; line-height: 1.5; }
.alert svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.alert b { display: block; font-weight: 620; margin-bottom: 2px; }
.alert.warn { background: var(--gold-soft); border-color: rgba(241, 194, 76, 0.25); color: #f4dc9e; }
.alert.bad { background: var(--red-soft); border-color: rgba(240, 96, 63, 0.25); color: #ffb3a0; }
.alert.good { background: var(--green-soft); border-color: rgba(47, 191, 135, 0.25); color: #a8ecd2; }
.alert.info { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--muted); }

/* ──────────────────────────────  Home  ───────────────────────────── */

.greet { display: flex; align-items: center; gap: 12px; padding: 6px 0 16px; }
.greet .avatar { width: 44px; height: 44px; border-radius: 14px; }
.greet .g-main { flex: 1; min-width: 0; }
.greet .g-main span { display: block; font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 620; }
.greet .g-main b { display: block; font-size: 17px; letter-spacing: -0.02em; font-weight: 640; margin-top: 1px; }
.actor-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  font-size: 10.5px; font-weight: 600; color: var(--muted); max-width: 132px;
}
.actor-pill svg { width: 12px; height: 12px; flex: 0 0 auto; }
.actor-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actor-pill.org { color: var(--gold-2); border-color: rgba(241, 194, 76, 0.3); background: var(--gold-soft); }

.hero {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(241, 194, 76, 0.19), transparent 58%),
    linear-gradient(155deg, #123326 0%, #0c231a 52%, #0a1a14 100%);
  border: 1px solid rgba(241, 194, 76, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.3);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 88% 88%, rgba(47, 191, 135, 0.22), transparent 46%);
  mask-image: linear-gradient(150deg, #000, transparent 62%);
}
.hero > * { position: relative; }
.hero .h-lg { max-width: 15ch; }
.hero p { color: #a9c6b6; font-size: 12px; line-height: 1.55; margin-top: 8px; max-width: 30ch; }
.hero .hero-cta { margin-top: 16px; }
.hero .btn.verify { width: 100%; min-height: 50px; }
.hero .hero-meta { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 10px; color: #8aaa99; letter-spacing: 0.01em; }
.hero .hero-meta svg { width: 13px; height: 13px; }
.hero .hero-meta .sep { opacity: 0.35; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.trust-cell { background: var(--panel); padding: 10px 8px; text-align: center; }
.trust-cell svg { width: 15px; height: 15px; color: var(--gold); margin-bottom: 4px; }
.trust-cell b { display: block; font-size: 10px; font-weight: 620; letter-spacing: 0.01em; }
.trust-cell span { display: block; font-size: 8.5px; color: var(--muted-2); margin-top: 1px; letter-spacing: 0.02em; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.section-head h3 { font-size: 12px; font-weight: 660; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.section-head button { font-size: 11px; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 2px; }
.section-head button svg { width: 12px; height: 12px; }

.invite-card {
  position: relative; overflow: hidden;
  border-radius: 16px; padding: 14px;
  background: linear-gradient(150deg, rgba(241, 194, 76, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(241, 194, 76, 0.24);
}
.invite-card .ic-top { display: flex; align-items: center; gap: 11px; }
.invite-card .ic-top .avatar { width: 38px; height: 38px; border-radius: 12px; }
.invite-card .ic-top b { display: block; font-size: 13px; font-weight: 580; }
.invite-card .ic-top span { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 1px; }
.invite-card .ic-body { font-size: 11px; color: var(--muted); margin: 11px 0; line-height: 1.5; }
.invite-card .ic-actions { display: flex; gap: 7px; }

.cert-row {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.cert-row:last-child { border-bottom: 0; }
.cert-row .avatar { width: 36px; height: 36px; border-radius: 11px; font-size: 12px; }
.cert-row .cr-main { flex: 1; min-width: 0; }
.cert-row .cr-main b { display: block; font-size: 12.5px; font-weight: 560; }
.cert-row .cr-main span { display: block; font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.cert-row:hover .cr-main b { color: var(--gold-2); }

.trust-card {
  display: flex; align-items: center; gap: 13px; padding: 14px;
  border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(47, 191, 135, 0.08), transparent 70%), var(--panel);
}
.trust-card .tc-seal { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-2); border: 1px solid rgba(47, 191, 135, 0.3); flex: 0 0 auto; }
.trust-card .tc-seal svg { width: 20px; height: 20px; }
.trust-card b { display: block; font-size: 12.5px; font-weight: 600; }
.trust-card span { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; line-height: 1.45; }

/* ───────────────────────────  New / capture  ─────────────────────── */

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); }
.seg button { height: 38px; border-radius: 9px; font-size: 12.5px; font-weight: 580; color: var(--muted-2); display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.seg button svg { width: 15px; height: 15px; }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset; }

.id-card-preview {
  position: relative; overflow: hidden; border-radius: 16px;
  background: linear-gradient(145deg, #123a2a, #0a2018);
  border: 1px solid rgba(241, 194, 76, 0.24);
  padding: 15px; color: #e7f4ea;
}
.id-card-preview::after {
  content: ""; position: absolute; right: -30px; top: -34px; width: 130px; height: 130px; border-radius: 50%;
  border: 1px solid rgba(241, 194, 76, 0.18); box-shadow: 0 0 0 16px rgba(241, 194, 76, 0.05), 0 0 0 34px rgba(241, 194, 76, 0.03);
}
.idc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.idc-flag { display: flex; gap: 2px; height: 5px; width: 34px; border-radius: 2px; overflow: hidden; }
.idc-flag i { flex: 1; }
.idc-flag i:nth-child(1) { background: #ce1126; } .idc-flag i:nth-child(2) { background: #fcd116; } .idc-flag i:nth-child(3) { background: #006b3f; }
.idc-issuer { font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: #86ab95; }
.idc-name { font-size: 15px; font-weight: 640; letter-spacing: -0.01em; margin-top: 18px; }
.idc-num { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--gold-2); margin-top: 3px; }
.idc-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; font-size: 8px; color: #7fa08d; letter-spacing: 0.06em; text-transform: uppercase; }
.idc-photo { width: 42px; height: 50px; border-radius: 6px; background: linear-gradient(160deg, #2c5a44, #1a3b2c); border: 1px solid rgba(255, 255, 255, 0.12); display: grid; place-items: center; color: #8fc4a8; }
.idc-photo svg { width: 20px; height: 20px; }

.scanner {
  position: relative; aspect-ratio: 1.55; width: 100%; border-radius: 18px; overflow: hidden;
  background: #050c08; border: 1px solid var(--line);
  display: grid; place-items: center;
}
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.82; }
.scanner .scan-empty { text-align: center; padding: 16px; z-index: 1; }
.scanner .scan-empty svg { width: 34px; height: 34px; color: var(--muted-2); margin-bottom: 8px; }
.scanner .scan-empty p { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.scanner .corners { position: absolute; inset: 16px; z-index: 2; pointer-events: none; }
.scanner .corners i { position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold); opacity: 0.9; }
.scanner .corners i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 7px 0 0 0; }
.scanner .corners i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 7px 0 0; }
.scanner .corners i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 7px; }
.scanner .corners i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 7px 0; }
.scanner .laser { position: absolute; left: 12%; right: 12%; height: 1.5px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); box-shadow: 0 0 12px rgba(241, 194, 76, 0.8); animation: laser 2.4s ease-in-out infinite; z-index: 2; }
@keyframes laser { 0%, 100% { top: 20%; opacity: 0.2; } 50% { top: 78%; opacity: 1; } }

.turnstile {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-top: 10px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.025);
  font-size: 11px; color: var(--muted-2); cursor: pointer; text-align: left;
}
.turnstile:hover { border-color: var(--line-2); }
.turnstile .ts-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); flex: 0 0 auto; display: grid; place-items: center; }
.turnstile.checked { color: var(--green-2); border-color: rgba(47, 191, 135, 0.3); background: var(--green-soft); }
.turnstile.checked .ts-box { background: var(--green); border-color: var(--green); color: #04150e; }
.turnstile .ts-box svg { width: 12px; height: 12px; stroke-width: 3; opacity: 0; }
.turnstile.checked .ts-box svg { opacity: 1; }
.turnstile b { color: var(--text); font-weight: 560; }

.purpose-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.purpose {
  display: flex; align-items: center; gap: 8px; padding: 10px; text-align: left;
  border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, 0.02);
  font-size: 11px; font-weight: 540; color: var(--muted);
  transition: all 0.15s var(--ease);
}
.purpose svg { width: 15px; height: 15px; color: var(--muted-2); flex: 0 0 auto; }
.purpose:hover { border-color: var(--line-2); color: var(--text); }
.purpose[aria-pressed="true"] { border-color: rgba(241, 194, 76, 0.4); background: var(--gold-soft); color: var(--gold-2); }
.purpose[aria-pressed="true"] svg { color: var(--gold); }

/* sent */
.sent-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 0 8px; }
.sent-orb {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(47, 191, 135, 0.4), rgba(47, 191, 135, 0.06) 70%);
  border: 1px solid rgba(47, 191, 135, 0.34);
  color: var(--green-2); margin-bottom: 16px; position: relative;
}
.sent-orb::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed rgba(47, 191, 135, 0.22); animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sent-orb svg { width: 38px; height: 38px; stroke-width: 1.4; }

.sms {
  border-radius: 15px; border: 1px solid var(--line); overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}
.sms-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 10px; color: var(--muted-2); letter-spacing: 0.03em; text-transform: uppercase; font-weight: 620; }
.sms-head svg { width: 12px; height: 12px; }
.sms-body { padding: 13px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.sms-body b { color: var(--text); font-weight: 570; }
.sms-link { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--gold-2); word-break: break-all; background: var(--gold-soft); border: 1px dashed rgba(241, 194, 76, 0.3); border-radius: 7px; padding: 7px 9px; }

.countdown { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.countdown svg { width: 12px; height: 12px; }

/* ─────────────────────────  Invite / liveness  ───────────────────── */

.invite-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; }
.invite-head .avatar { width: 46px; height: 46px; border-radius: 15px; }
.invite-head .ih-main { flex: 1; min-width: 0; }
.invite-head .ih-main span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-2); font-weight: 620; }
.invite-head .ih-main b { display: block; font-size: 15px; font-weight: 640; letter-spacing: -0.015em; margin-top: 2px; }
.invite-head .ih-main small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }

.purpose-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }
.purpose-tag svg { width: 13px; height: 13px; color: var(--gold); }

.camera-stage { position: relative; width: 100%; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #12271d, #060e0a 72%); border: 1px solid var(--line); }
.camera-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); opacity: 0.9; }
.camera-stage .face-mask {
  position: absolute; inset: 12%; border-radius: 50%;
  box-shadow: 0 0 0 200vmax rgba(3, 8, 5, 0.55);
  border: 2px solid rgba(47, 191, 135, 0.5);
  transition: border-color 0.3s, box-shadow 0.3s;
  z-index: 2; pointer-events: none;
}
.camera-stage.scanning .face-mask { border-color: rgba(241, 194, 76, 0.75); }
.camera-stage.ok .face-mask { border-color: var(--green); box-shadow: 0 0 0 200vmax rgba(3, 8, 5, 0.45), 0 0 40px rgba(47, 191, 135, 0.3); }
.camera-stage .ring { position: absolute; inset: 12%; z-index: 3; pointer-events: none; transform: rotate(-90deg); }
.camera-stage .ring circle { fill: none; stroke-width: 3; }
.camera-stage .ring .track { stroke: rgba(255, 255, 255, 0.12); }
.camera-stage .ring .prog { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 0.28s linear; }
.camera-stage .cam-hint {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 4; text-align: center;
  font-size: 11px; font-weight: 580; color: #dcefe3; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.camera-stage .cam-hint small { display: block; color: #9dbaa8; font-size: 10px; margin-top: 2px; font-weight: 450; }
.camera-stage .cam-idle { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; }
.cam-idle-inner { text-align: center; }
.cam-idle-inner svg { width: 38px; height: 38px; color: var(--muted-2); margin-bottom: 10px; }
.cam-idle-inner p { font-size: 11.5px; color: var(--muted); line-height: 1.5; max-width: 22ch; margin: 0 auto; }

.live-dots { display: inline-flex; gap: 3px; align-items: center; }
.live-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--green); animation: pulse 1.2s ease-in-out infinite; }
.live-dots i:nth-child(2) { animation-delay: 0.15s; } .live-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse { 0%, 100% { opacity: 0.25; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }

.live-score { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; margin-top: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.live-score .ls-main { font-size: 11px; color: var(--muted); }
.live-score b { font-family: var(--mono); font-size: 15px; color: var(--green-2); }
.live-score b.warn { color: var(--gold-2); }

.checklist { display: flex; flex-direction: column; gap: 9px; }
.check-item { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.ci-bullet { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: 0 0 auto; }
.ci-bullet svg { width: 11px; height: 11px; opacity: 0; stroke-width: 3; color: #04150e; }
.check-item.done { color: var(--text); }
.check-item.done .ci-bullet { background: var(--green); border-color: var(--green); }
.check-item.done .ci-bullet svg { opacity: 1; }
.check-item.active .ci-bullet { border-color: var(--gold); border-style: dashed; animation: spin 3s linear infinite; }
.check-item.fail .ci-bullet { background: var(--red); border-color: var(--red); }
.check-item.fail .ci-bullet svg { opacity: 1; }
.check-item .ci-note { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--muted-2); }

.bio-card { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 14px; border: 1px solid rgba(241, 194, 76, 0.22); background: var(--gold-soft); }
.bio-card .bc-icon { width: 38px; height: 38px; border-radius: 11px; background: rgba(241, 194, 76, 0.14); color: var(--gold-2); display: grid; place-items: center; flex: 0 0 auto; }
.bio-card .bc-icon svg { width: 20px; height: 20px; }
.bio-card .bc-main { flex: 1; min-width: 0; }
.bio-card b { display: block; font-size: 12px; font-weight: 600; color: #f7e3b0; }
.bio-card span { display: block; font-size: 10.5px; color: #c7b184; margin-top: 2px; line-height: 1.4; }

/* processing */
.proc { display: flex; flex-direction: column; align-items: center; padding: 24px 0 10px; text-align: center; }
.proc-orb { position: relative; width: 104px; height: 104px; display: grid; place-items: center; margin-bottom: 20px; }
.proc-orb .po-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(47, 191, 135, 0.22); border-top-color: var(--green); animation: spin 1.4s linear infinite; }
.proc-orb .po-ring:nth-child(2) { inset: 9px; border-top-color: transparent; border-right-color: rgba(241, 194, 76, 0.6); animation-duration: 2.2s; animation-direction: reverse; }
.proc-orb .po-core { width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(47, 191, 135, 0.35), rgba(47, 191, 135, 0.05)); display: grid; place-items: center; color: var(--green-2); }
.proc-orb .po-core svg { width: 26px; height: 26px; }
.proc h3 { font-size: 17px; font-weight: 640; letter-spacing: -0.02em; }
.proc p { font-size: 11.5px; color: var(--muted-2); margin-top: 5px; }

/* result */
.result-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 0 18px; }
.seal {
  position: relative; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 18px;
  background: radial-gradient(circle at 34% 28%, rgba(47, 191, 135, 0.45), rgba(47, 191, 135, 0.06) 68%);
  border: 1.5px solid rgba(47, 191, 135, 0.5);
  box-shadow: 0 0 0 8px rgba(47, 191, 135, 0.06), 0 0 50px rgba(47, 191, 135, 0.16);
}
.seal::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(47, 191, 135, 0.25); animation: spin 30s linear infinite; }
.seal svg { width: 46px; height: 46px; color: var(--green-2); stroke-width: 1.8; }
.seal.bad { background: radial-gradient(circle at 34% 28%, rgba(240, 96, 63, 0.4), rgba(240, 96, 63, 0.05) 68%); border-color: rgba(240, 96, 63, 0.5); box-shadow: 0 0 0 8px rgba(240, 96, 63, 0.06); }
.seal.bad svg { color: #ff9179; }
.seal.bad::before { border-color: rgba(240, 96, 63, 0.25); }
.seal svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.6s 0.15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ───────────────────────────  Certificate  ───────────────────────── */

.cert-wrap { padding: 2px 0 0; }
.cert-paper {
  position: relative; overflow: hidden;
  border-radius: 16px; padding: 20px 18px 16px;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(241, 194, 76, 0.12), transparent 55%),
    linear-gradient(180deg, #faf6ea, var(--paper) 55%, #f1e9d5);
  color: var(--paper-ink);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.cert-paper::before {
  content: ""; position: absolute; inset: 7px; border-radius: 11px;
  border: 1px solid rgba(18, 38, 28, 0.14); pointer-events: none;
}
.cert-paper::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image:
    repeating-linear-gradient(45deg, rgba(18, 38, 28, 0.035) 0 0.6px, transparent 0.6px 7px),
    repeating-linear-gradient(-45deg, rgba(18, 38, 28, 0.03) 0 0.6px, transparent 0.6px 9px);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 80%);
}
.cert-paper > * { position: relative; z-index: 1; }
.cert-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(18, 38, 28, 0.14); }
.cert-brand { display: flex; align-items: center; gap: 7px; }
.cert-brand .cb-mark { width: 24px; height: 24px; border-radius: 7px; background: #123a2a; color: var(--gold); display: grid; place-items: center; }
.cert-brand .cb-mark svg { width: 14px; height: 14px; stroke-width: 2; }
.cert-brand b { font-size: 10.5px; font-weight: 780; letter-spacing: 0.02em; }
.cert-brand span { display: block; font-size: 7px; letter-spacing: 0.16em; color: var(--paper-muted); text-transform: uppercase; margin-top: 1px; }
.cert-status { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 5px; background: #123a2a; color: #c9f2df; font-size: 8px; font-weight: 780; letter-spacing: 0.09em; text-transform: uppercase; }
.cert-status svg { width: 9px; height: 9px; stroke-width: 3; }
.cert-title { font-family: var(--serif); font-size: 25px; line-height: 1.06; letter-spacing: -0.015em; font-weight: 500; margin-top: 16px; }
.cert-title em { font-style: italic; color: #17684a; }
.cert-sub { font-size: 8.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--paper-muted); margin-top: 4px; font-weight: 640; }

.cert-person { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.cert-person .cp-av { width: 40px; height: 40px; border-radius: 10px; background: #123a2a; color: #c9f2df; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: 0 0 auto; }
.cert-person .cp-main { flex: 1; min-width: 0; }
.cert-person b { display: block; font-size: 14.5px; font-weight: 640; letter-spacing: -0.01em; }
.cert-person span { display: block; font-size: 8.5px; color: var(--paper-muted); margin-top: 2px; letter-spacing: 0.03em; }
.cert-seal {
  width: 58px; height: 58px; flex: 0 0 auto; border-radius: 50%;
  border: 1.5px solid rgba(23, 104, 74, 0.5); color: #17684a;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 5.5px; font-weight: 800; letter-spacing: 0.1em; text-align: center; line-height: 1.3;
  position: relative; transform: rotate(-8deg);
}
.cert-seal::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 0.7px dashed rgba(23, 104, 74, 0.45); }
.cert-seal svg { width: 16px; height: 16px; margin-bottom: 2px; stroke-width: 2.2; }

.cert-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 15px; }
.cf { min-width: 0; }
.cf span { display: block; font-size: 6.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--paper-muted); font-weight: 700; }
.cf b { display: block; font-size: 10.5px; font-weight: 620; margin-top: 2px; letter-spacing: -0.005em; word-break: break-word; }
.cf b.mono { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0; font-weight: 600; }
.cf.wide { grid-column: 1 / -1; }

.cert-checks { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 14px; }
.cert-check { display: inline-flex; align-items: center; gap: 4px; font-size: 7.5px; font-weight: 680; color: #17684a; background: rgba(23, 104, 74, 0.08); border: 0.7px solid rgba(23, 104, 74, 0.22); border-radius: 4px; padding: 3px 6px; letter-spacing: 0.03em; }
.cert-check svg { width: 8px; height: 8px; stroke-width: 3.2; }

.cert-foot { margin-top: 15px; padding-top: 11px; border-top: 1px dashed rgba(18, 38, 28, 0.22); }
.cert-hash { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cert-hash span { font-size: 6.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-muted); font-weight: 700; }
.cert-hash b { font-family: var(--mono); font-size: 7.5px; color: #2b4b3b; letter-spacing: -0.01em; }
.cert-barcode { display: flex; gap: 1.5px; align-items: flex-end; height: 22px; margin-top: 8px; opacity: 0.75; }
.cert-barcode i { background: #123a2a; border-radius: 0.5px; flex: 0 0 auto; }
.cert-legal { font-size: 6px; line-height: 1.5; color: var(--paper-muted); margin-top: 9px; letter-spacing: 0.01em; }
.cert-legal b { color: #2b4b3b; }

.cert-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cert-actions .btn { min-height: 44px; font-size: 12.5px; }
.cert-actions .full { grid-column: 1 / -1; }

/* verify page */
.verify-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 0 16px; }
.verify-hero .seal { width: 84px; height: 84px; margin-bottom: 14px; }
.verify-hero .seal svg { width: 38px; height: 38px; }
.verify-hero .seal.bad::before { animation: none; }
.verify-hero h2 { font-size: 24px; letter-spacing: -0.03em; font-weight: 650; }
.verify-hero p { font-size: 11.5px; color: var(--muted-2); margin-top: 5px; line-height: 1.5; max-width: 28ch; }
.verify-hero .stamp { margin-top: 14px; }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 11.5px; margin: 0; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; text-align: right; font-weight: 540; }
.kv dd.mono { font-size: 9.5px; color: var(--muted); }

.chain-strip { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; background: var(--green-soft); border: 1px solid rgba(47, 191, 135, 0.22); font-size: 10.5px; color: #a8ecd2; }
.chain-strip.bad { background: var(--red-soft); border-color: rgba(240, 96, 63, 0.25); color: #ffb3a0; }
.chain-strip svg { width: 14px; height: 14px; flex: 0 0 auto; }

.json-box { font-family: var(--mono); font-size: 9.5px; line-height: 1.55; color: var(--muted); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 10px; padding: 11px; overflow: auto; max-height: 220px; white-space: pre; }

/* ────────────────────────────  Activity  ─────────────────────────── */

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.stat { padding: 11px 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel); }
.stat b { display: block; font-size: 19px; font-weight: 640; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 9px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 620; margin-top: 2px; }
.stat.gold b { color: var(--gold-2); }
.stat.green b { color: var(--green-2); }

.timeline { position: relative; padding-left: 2px; }
.act-item { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.act-item:last-child { border-bottom: 0; }
.act-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.act-icon svg { width: 15px; height: 15px; }
.act-icon.ok { background: var(--green-soft); border-color: rgba(47, 191, 135, 0.24); color: var(--green-2); }
.act-icon.bad { background: var(--red-soft); border-color: rgba(240, 96, 63, 0.24); color: #ff9179; }
.act-icon.wait { background: var(--gold-soft); border-color: rgba(241, 194, 76, 0.24); color: var(--gold-2); }
.act-main { flex: 1; min-width: 0; }
.act-main b { display: block; font-size: 12.5px; font-weight: 560; }
.act-main b span { font-weight: 460; color: var(--muted-2); }
.act-main small { display: block; font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.act-right { text-align: right; flex: 0 0 auto; }
.act-right .badge { margin-bottom: 4px; }
.act-right small { display: block; font-size: 9px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.ledger-strip { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 13px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(47, 191, 135, 0.07), transparent 65%), var(--panel); margin-top: 14px; }
.ledger-strip svg { width: 17px; height: 17px; color: var(--green-2); flex: 0 0 auto; }
.ledger-strip .ls-main { flex: 1; min-width: 0; }
.ledger-strip b { display: block; font-size: 10.5px; font-weight: 600; }
.ledger-strip span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 1px; }

/* ────────────────────────────  Business  ─────────────────────────── */

.biz-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 16px; }
.biz-head .avatar { width: 46px; height: 46px; border-radius: 14px; }
.biz-head .bh-main { flex: 1; min-width: 0; }
.biz-head .bh-main b { display: block; font-size: 15px; font-weight: 640; letter-spacing: -0.015em; }
.biz-head .bh-main span { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }

.credits {
  position: relative; overflow: hidden; border-radius: 18px; padding: 17px;
  background:
    radial-gradient(110% 100% at 100% 0%, rgba(241, 194, 76, 0.2), transparent 55%),
    linear-gradient(150deg, #15382a, #0c2119);
  border: 1px solid rgba(241, 194, 76, 0.22);
}
.credits::after { content: ""; position: absolute; right: -22px; bottom: -34px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid rgba(241, 194, 76, 0.16); box-shadow: 0 0 0 14px rgba(241, 194, 76, 0.05), 0 0 0 30px rgba(241, 194, 76, 0.025); }
.credits .cr-top { display: flex; align-items: center; justify-content: space-between; }
.credits .cr-top span { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #a9c6b6; font-weight: 660; }
.credits .cr-num { font-size: 34px; font-weight: 620; letter-spacing: -0.04em; margin-top: 4px; line-height: 1; }
.credits .cr-num small { font-size: 12px; color: #a9c6b6; font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.credits .cr-meter { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); margin-top: 12px; overflow: hidden; }
.credits .cr-meter i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.credits .cr-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 9.5px; color: #9db8a8; }
.credits .cr-foot b { color: var(--gold-2); font-weight: 600; }

.chart-card { padding: 14px 14px 8px; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.chart-head b { font-size: 11.5px; font-weight: 620; }
.chart-head span { font-size: 9.5px; color: var(--muted-2); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.spark i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, rgba(47, 191, 135, 0.8), rgba(47, 191, 135, 0.22)); min-height: 3px; position: relative; }
.spark i:hover { background: var(--gold); }
.spark-axis { display: flex; justify-content: space-between; font-size: 8px; color: var(--muted-2); margin-top: 5px; letter-spacing: 0.04em; }

.table { width: 100%; border-collapse: collapse; font-size: 11px; }
.table th { text-align: left; font-size: 8.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2); font-weight: 680; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.table th:last-child, .table td:last-child { text-align: right; }
.table td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .t-name { font-weight: 560; font-size: 11px; }
.table .t-sub { display: block; font-size: 8.5px; color: var(--muted-2); margin-top: 1px; }
.table .t-time { color: var(--muted-2); font-size: 9.5px; white-space: nowrap; }
.table .t-link { color: var(--gold); font-size: 10px; font-weight: 600; }

.team-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.team-row:last-child { border-bottom: 0; }
.team-row .avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 10px; }
.team-row .tr-main { flex: 1; }
.team-row b { display: block; font-size: 11.5px; font-weight: 560; }
.team-row span { display: block; font-size: 9px; color: var(--muted-2); }

.plan {
  width: 100%; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); display: flex; flex-direction: column; gap: 2px; position: relative;
}
.plan:hover { border-color: var(--line-2); }
.plan[data-selected="true"] { border-color: rgba(241, 194, 76, 0.5); background: linear-gradient(150deg, rgba(241, 194, 76, 0.1), transparent 70%), var(--panel); }
.plan .p-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.plan b { font-size: 13px; font-weight: 620; }
.plan .p-price { font-size: 15px; font-weight: 640; letter-spacing: -0.02em; }
.plan .p-price small { font-size: 9.5px; color: var(--muted-2); font-weight: 450; letter-spacing: 0; }
.plan span { font-size: 10px; color: var(--muted-2); line-height: 1.5; }
.plan .p-per { font-size: 9px; color: var(--gold); margin-top: 4px; letter-spacing: 0.02em; }
.plan[data-selected="true"]::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 4px var(--panel); }

.fee-note { margin-top: 14px; padding: 12px 13px; border-radius: 12px; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, 0.03); }
.fee-note b { display: block; font-size: 11.5px; font-weight: 620; margin-bottom: 3px; }
.fee-note span { font-size: 10.5px; color: var(--muted-2); line-height: 1.55; }

/* ────────────────────────────  Identity  ─────────────────────────── */

.idprofile { position: relative; overflow: hidden; border-radius: 20px; padding: 18px; border: 1px solid rgba(47, 191, 135, 0.24); background: linear-gradient(150deg, #143528, #0b1d16 65%); }
.idprofile::after { content: ""; position: absolute; right: -40px; top: -50px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(241, 194, 76, 0.16); box-shadow: 0 0 0 18px rgba(241, 194, 76, 0.04); }
.idprofile .ip-top { display: flex; align-items: center; gap: 13px; }
.idprofile .ip-main { flex: 1; min-width: 0; }
.idprofile h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.025em; }
.idprofile .ip-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.idprofile .ip-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.reg {
  display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); text-align: left;
}
.reg .rg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); flex: 0 0 auto; }
.reg.on .rg-dot { background: var(--green); box-shadow: 0 0 8px rgba(47, 191, 135, 0.6); }
.reg.soon .rg-dot { background: var(--gold); }
.reg b { display: block; font-size: 10.5px; font-weight: 560; }
.reg span { display: block; font-size: 8.5px; color: var(--muted-2); margin-top: 1px; }

.link-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.link-row:last-child { border-bottom: 0; }
.link-row .lr-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.link-row .lr-icon svg { width: 15px; height: 15px; }
.link-row .lr-main { flex: 1; min-width: 0; }
.link-row b { display: block; font-size: 11.5px; font-weight: 560; }
.link-row span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 1px; }

/* ───────────────────────────  Sheet / toast  ─────────────────────── */

.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(2, 6, 4, 0.62); backdrop-filter: blur(3px); animation: fade 0.18s var(--ease); }
.sheet {
  position: fixed; z-index: 41; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(440px, 100%); max-height: min(78dvh, 720px);
  background: #0d1c15; border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 22px 22px 0 0; box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column; overflow: hidden;
  animation: sheet-in 0.24s var(--ease);
}
@keyframes sheet-in { from { transform: translate(-50%, 18px); opacity: 0.4; } }
@keyframes fade { from { opacity: 0; } }
.sheet-grab { width: 38px; height: 4px; border-radius: 3px; background: var(--line-2); margin: 9px auto 2px; flex: 0 0 auto; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 10px 20px 12px; flex: 0 0 auto; }
.sheet-head .sh-main { flex: 1; }
.sheet-head h2 { font-size: 17px; font-weight: 640; letter-spacing: -0.02em; }
.sheet-head p { font-size: 11px; color: var(--muted-2); margin-top: 3px; line-height: 1.5; }
.sheet-body { padding: 4px 20px 24px; overflow-y: auto; }
.sheet-foot { padding: 12px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 8px; flex: 0 0 auto; background: rgba(13, 28, 21, 0.9); }

.toasts { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: 9px; padding: 10px 15px; border-radius: 12px;
  background: #e9f6ee; color: #0b2015; font-size: 12px; font-weight: 570;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); animation: toast-in 0.22s var(--ease);
}
.toast svg { width: 15px; height: 15px; stroke-width: 2.6; }
.toast.bad { background: #ffe7df; color: #57180a; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

.offline-pill {
  position: fixed; z-index: 61; top: 12px; left: 50%; transform: translateX(-50%);
  padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(241, 194, 76, 0.35);
  background: rgba(11, 25, 18, 0.94); color: var(--gold-2);
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); pointer-events: none;
}

.scenario-list { display: flex; flex-direction: column; gap: 6px; }
.scenario {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); text-align: left;
}
.scenario:hover { border-color: var(--line-2); }
.scenario[data-on="true"] { border-color: rgba(241, 194, 76, 0.45); background: var(--gold-soft); }
.scenario .sc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: 0 0 auto; }
.scenario[data-on="true"] .sc-dot { background: var(--gold); box-shadow: 0 0 9px rgba(241, 194, 76, 0.7); }
.scenario b { display: block; font-size: 11.5px; font-weight: 570; }
.scenario span { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 1px; line-height: 1.4; }

.about-list { display: flex; flex-direction: column; gap: 10px; }
.about-item { display: flex; gap: 10px; font-size: 11px; line-height: 1.55; color: var(--muted); }
.about-item .ai-ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; background: var(--panel-2); border: 1px solid var(--line); }
.about-item .ai-ico svg { width: 12px; height: 12px; }
.about-item b { color: var(--text); font-weight: 600; display: block; margin-bottom: 1px; }

/* ────────────────────────────  Utilities  ────────────────────────── */

.ab-brand { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.ab-mark {
  width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center; color: var(--green-2);
  background: linear-gradient(150deg, #17382a, #0d2119);
  border: 1px solid rgba(241, 194, 76, 0.3);
}
.ab-mark svg { width: 16px; height: 16px; }
.ab-word { font-size: 14.5px; font-weight: 660; letter-spacing: -0.02em; }
.ab-word b { color: var(--gold); font-weight: 680; }

a.btn, a.tab, a.cert-row, a.act-item, a.trust-card, .row-item { text-decoration: none; }
.section-head a { font-size: 11px; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 2px; }
.section-head a:hover { color: var(--gold-2); }
.section-head button:hover { color: var(--gold-2); }

.flex-1 { flex: 1 1 0; min-width: 0; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }

.spin { animation: spin 0.9s linear infinite; }

/* ─────────────────────────────  Print  ──────────────────────────── */

.print-root { display: none; }

.file-warning {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(4, 9, 6, 0.92); color: var(--text);
}
.file-warning > div { max-width: 440px; padding: 24px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); }
.file-warning b { display: block; font-size: 17px; margin-bottom: 8px; }
.file-warning p { font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.file-warning code { font-family: var(--mono); font-size: 11px; color: var(--gold-2); background: rgba(0, 0, 0, 0.3); padding: 2px 5px; border-radius: 4px; }

@media print {
  @page { size: A4 portrait; margin: 14mm; }
  body { background: #fff; display: block; overflow: visible; }
  .stage, .scrim, .sheet, .toasts, .ambient { display: none !important; }
  .print-root { display: block; }
  .print-root .cert-paper {
    width: 100%; max-width: none; border-radius: 0; box-shadow: none;
    padding: 26mm 20mm; background: #fffdf7;
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .print-root .cert-paper::before { inset: 8mm; }
  .print-root .cert-title { font-size: 40pt; }
  .print-root .cert-person b { font-size: 18pt; }
  .print-root .cert-fields { gap: 8mm 10mm; margin-top: 8mm; }
  .print-root .cf span { font-size: 7pt; }
  .print-root .cf b { font-size: 11pt; }
  .print-root .cf b.mono { font-size: 9pt; }
  .print-root .cert-legal { font-size: 7pt; margin-top: 6mm; }
  .print-root .cert-hash b { font-size: 8pt; }
  .print-root .cert-check { font-size: 8pt; padding: 3pt 6pt; }
  .print-root .cert-barcode { height: 14mm; margin-top: 4mm; }
  .print-root .print-foot { margin-top: 10mm; display: flex; justify-content: space-between; font-size: 7pt; color: #5f7568; }
}

/* ─────────────────────────────  Responsive  ─────────────────────── */

/* Mid-size windows: the marketing rail would crowd the demo, so drop it and
   keep the framed phone centred instead of stretching phone-only layouts. */
@media (max-width: 1000px) {
  .rail { display: none; }
  .stage { padding: 16px; }
}

/* Short but wide windows: shrink the framed device to fit the height. A short
   laptop window must not trigger phone full-bleed — that is what made the
   desktop layout look stretched and disorganised. */
@media (min-width: 561px) and (max-height: 760px) {
  .stage { padding: 12px; }
  .device { height: calc(100dvh - 24px); }
}

/* Phone-sized viewports only: the app becomes the whole screen. */
@media (max-width: 560px) {
  body { display: block; overflow: hidden; }
  .stage { display: block; padding: 0; max-width: none; }
  .device { width: 100%; height: 100dvh; }
  .device-shell { padding: 0; border: 0; border-radius: 0; background: var(--bg); box-shadow: none; height: 100%; }
  .device-shell::after { display: none; }
  .device-shadow { display: none; }
  .app { border-radius: 0; }
  .statusbar { display: none; }
  .appbar { padding-top: 10px; }
  .view { padding-bottom: 22px; }
  .island { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .view { scroll-behavior: auto; }
}
