/* KRYPTA — shared styles. Design tokens first, then components.
   Direction: midnight blue and violet, matching the uploaded reference.
   Market gains, losses and warnings retain their separate semantic colors. */
:root {
  --bg: #070B1F;
  --bg-2: #0A1028;
  --surface: rgba(150,160,255, .035);
  --surface-2: rgba(150,160,255, .06);
  --surface-solid: #0D1230;
  --line: rgba(150,160,255, .085);
  --line-2: rgba(150,160,255, .16);
  --text: #F1F3FF;
  --text-2: #A9B0D8;
  --text-3: #7A82B0;
  /* The one accent, in three steps of the same family. Nothing else is ever an accent. */
  --accent: #6972FF;
  --accent-2: #8B94FF;
  --accent-3: #B7BFFF;
  --accent-deep: #5740B8;
  --up: #2FD69B;
  --down: #FF5A6E;
  --warn: #FFB648;
  --grad: linear-gradient(135deg, #5740B8, #6972FF 60%, #7F8CFF);
  /* The aurora: the light the whole page sits in. */
  --glow-sm: 0 0 24px -6px rgba(105,114,255, .55);
  --glow-md: 0 0 60px -18px rgba(105,114,255, .7);
  --glow-lg: 0 0 140px -40px rgba(105,114,255, .8);
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* Slight overshoot: what makes a press feel physical rather than timed. */
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px -12px rgba(0, 0, 0, .8);
  --shadow-2: 0 30px 70px -30px rgba(0, 0, 0, .95);
  --inner-hi: inset 0 1px 0 rgba(255, 255, 255, .06);
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Archivo Black', 'Geist', 'Arial Black', Impact, sans-serif;
  /* Indigo extrusion keeps the display type in the same light as the background. */
  --ext-1: #232A78;
  --ext-2: #1B1D5E;
  /* Extrusion for the 3D display type, in em so it scales with the font size. */
  --extrude:
    .010em .010em 0 var(--ext-1),
    .020em .020em 0 var(--ext-1),
    .030em .030em 0 var(--ext-1),
    .040em .040em 0 var(--ext-2),
    .050em .050em 0 var(--ext-2),
    .060em .060em 0 var(--ext-2),
    0 .10em .18em rgba(0, 0, 0, .5),
    0 .22em .42em rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
.num { font-variant-numeric: tabular-nums; }
.zsub { font-size: .68em; vertical-align: -.28em; margin: 0 .04em; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.up { color: var(--up); } .down { color: var(--down); } .warn { color: var(--warn); } .muted { color: var(--text-2); } .dim { color: var(--text-3); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spacer { flex: 1; }
.grow { flex: 1; min-width: 0; }

/* ---------- 3D display type ----------
   No gradient fill on purpose: text-shadow paints above a background clipped to the glyphs,
   so a gradient face would be swallowed by the extrusion. Solid faces stay crisp. */
.t3d {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.015em;
  color: #FFFFFF;
  text-shadow: var(--extrude);
}
.t3d small { font-size: .5em; }
.t3d .word-run { color: #B7BFFF; --ext-1: #5740B8; --ext-2: #1B1D5E; }
.t3d .word-rug { color: #FFA3AE; --ext-1: #8E2233; --ext-2: #44101A; }

/* ---------- surfaces ---------- */
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1), var(--inner-hi);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}
.panel-title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pill.up { background: rgba(47,214,155,.12); color: var(--up); }
.pill.down { background: rgba(255,90,110,.12); color: var(--down); }
.pill.warn { background: rgba(255,182,72,.12); color: var(--warn); }
.badge-demo { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: rgba(255,182,72,.12); border: 1px solid rgba(255,182,72,.25); color: var(--warn); font-size: 12px; font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: pulse 2s ease-out infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,214,155,.55); } 100% { box-shadow: 0 0 0 8px rgba(47,214,155,0); } }
.sep { width: 1px; align-self: stretch; background: var(--line); }

/* spotlight that follows the cursor inside cards (set --mx/--my from JS) */
.spot { --mx: 50%; --my: 50%; }
.spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(105,114,255,.07), transparent 45%); }
.spot:hover::after { opacity: 1; }

/* ---------- buttons ----------
   Every control is a real pressable: it lifts on hover, sinks on press within 80 ms, keeps a
   44 px hit area on touch, and carries a specular sweep instead of a flat colour change. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .26s var(--spring), background .2s, border-color .2s, box-shadow .3s, opacity .2s, color .2s;
}
.btn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.28) 50%, transparent 62%);
  transform: translateX(-120%);
}
.btn:hover::after { opacity: 1; animation: sheen .75s var(--ease) 1; }
@keyframes sheen { to { transform: translateX(120%); } }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(105,114,255,.32); }
.btn-primary { background: var(--grad); color: #F4F6FF; box-shadow: 0 10px 30px -12px rgba(105,114,255,.65), var(--inner-hi); }
.btn-primary:hover { box-shadow: 0 18px 44px -14px rgba(142,140,255,.8), var(--inner-hi); }
.btn-primary:active { box-shadow: 0 6px 18px -10px rgba(105,114,255,.7), var(--inner-hi); }
.btn-light { background: var(--text); color: #0B1030; }
.btn-light:hover { background: #fff; box-shadow: 0 14px 34px -16px rgba(255,255,255,.55); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-2); background: var(--surface-2); }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 12px; }
.btn svg { flex-shrink: 0; }
.btn:disabled { opacity: .45; pointer-events: none; }
/* Anything else that should feel pressable without being a .btn. */
.pressable { transition: transform .26s var(--spring), border-color .2s, background .2s, box-shadow .3s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pressable:hover { transform: translateY(-2px); }
.pressable:active { transform: translateY(0) scale(.985); transition-duration: .08s; }
@media (prefers-reduced-motion: reduce) { .btn::after { display: none; } }

/* segmented control */
.seg { position: relative; display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; height: 28px; padding: 0 11px; border-radius: 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text-2); transition: color .25s; -webkit-tap-highlight-color: transparent; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: var(--text); }
.seg button:active { transform: scale(.94); transition: transform .08s; }
/* The pill slides between options instead of blinking on and off. */
.seg-ink { position: absolute; top: 3px; height: 28px; border-radius: 8px; background: var(--surface-2); box-shadow: var(--inner-hi); transition: left .42s var(--spring), width .42s var(--spring); pointer-events: none; }
.seg.no-ink button[aria-pressed="true"] { background: var(--surface-2); box-shadow: var(--inner-hi); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: 66px; display: flex; align-items: center; gap: 18px; padding: 0 24px; background: rgba(7,11,31,.72); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: .09em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 20px -6px rgba(105,114,255,.7); }
.logo-mark:has(img) { background: transparent; box-shadow: none; }
.logo-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nav { display: flex; gap: 26px; font-size: 14.5px; }
.nav a { color: var(--text-2); transition: color .2s; }
.nav a:hover { color: var(--text); }
.ava-me { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); }

/* The account slot: "Se connecter" for visitors, then the chip and its menu once signed in
   (account.js swaps one for the other). Phones keep the icon and the avatar only. */
.nav-account { gap: 8px; }
.account { position: relative; }
.account-chip { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.account-chip:hover, .account-chip[aria-expanded="true"] { border-color: var(--line-2); background: var(--surface-2); }
.account-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(105,114,255,.32); }
.account-chip img, .account-initial { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.account-initial { display: grid; place-items: center; background: var(--grad); color: #F4F6FF; font-size: 14px; font-weight: 800; }
.account-name { max-width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-role { padding: 3px 6px; border: 1px solid rgba(105,114,255,.35); border-radius: 5px; color: #B7BFFF; font: 700 9px/1 'Geist Mono', monospace; letter-spacing: .08em; }
.account-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 240px; padding: 8px; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-solid); box-shadow: var(--shadow-2); animation: rise .25s var(--ease) both; }
.account-email { margin-bottom: 6px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.account-menu button { height: 40px; padding: 0 10px; border-radius: 10px; text-align: left; font-size: 14px; font-weight: 600; color: var(--text); transition: background .2s; }
.account-menu button:hover, .account-menu button:focus-visible { outline: none; background: var(--surface-2); }

/* ---------- token avatar ---------- */
.avatar { position: relative; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: #10163A; display: grid; place-items: center; font-weight: 800; color: #0B1030; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: coin-pop .5s var(--ease) both; }
@keyframes coin-pop { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: none; } }
.avatar-ring { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 26px -12px rgba(0,0,0,.9); }
.coin-shot { position: relative; overflow: hidden; border-radius: 18px; background: #0E1436; }
.coin-shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 100; display: none; }
.search-overlay.open { display: block; }
.search-backdrop { position: absolute; inset: 0; background: rgba(7,11,31,.7); backdrop-filter: blur(26px) saturate(130%); -webkit-backdrop-filter: blur(26px) saturate(130%); opacity: 0; transition: opacity .35s var(--ease); }
.search-overlay.shown .search-backdrop { opacity: 1; }
.search-sheet { position: absolute; left: 50%; top: 12vh; width: min(760px, calc(100vw - 32px)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 16px; }
.search-box { position: relative; border-radius: 22px; padding: 1px; background: linear-gradient(140deg, rgba(105,114,255,.55), rgba(142,140,255,.45) 50%, rgba(255,255,255,.08)); box-shadow: var(--shadow-2); }
.search-inner { display: flex; align-items: center; gap: 12px; height: 70px; padding: 0 10px 0 22px; border-radius: 21px; background: #0D1230; }
.search-inner input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent; font-size: 18px; caret-color: var(--accent); }
.search-inner input::placeholder { color: var(--text-3); }
.search-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; font-size: 13.5px; color: var(--text-2); padding: 0 6px; }
.detect { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(105,114,255,.1); color: #D2D3FF; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(4px) scale(.96); transition: all .3s var(--ease); }
.detect.show { opacity: 1; transform: none; }
.detect.bad { background: rgba(255,90,110,.12); color: #FFB3BD; }
.search-results { display: flex; flex-direction: column; gap: 8px; }
.result { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(16,20,27,.9); text-align: left; transition: border-color .2s, transform .25s var(--ease), background .2s; animation: rise .45s var(--ease) both; }
.result:hover, .result[aria-selected="true"] { border-color: rgba(105,114,255,.5); background: rgba(22,28,38,.95); transform: translateX(3px); }
.result .grow { display: flex; flex-direction: column; gap: 2px; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; }
.examples button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--text-2); transition: border-color .2s, background .2s, color .2s; }
.examples button:hover { border-color: var(--line-2); background: var(--surface-2); color: var(--text); }
.search-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.search-error { padding: 14px 16px; border-radius: 14px; background: rgba(255,90,110,.08); border: 1px solid rgba(255,90,110,.25); color: #FFC2CA; font-size: 14px; }
.kbd { font-family: var(--mono); font-size: 11.5px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--text-3); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 22px) scale(.96); opacity: 0; padding: 12px 20px; border-radius: 14px; background: rgba(237,238,246,.96); backdrop-filter: blur(20px); color: #0B1030; font-size: 14px; font-weight: 600; box-shadow: 0 24px 60px -14px rgba(0,0,0,.75); transition: opacity .35s var(--ease), transform .45s var(--spring); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .topbar { padding: 0 14px; height: 60px; gap: 10px; }
  .nav { display: none; }
  .nav-account { width: 42px; padding: 0; }
  .nav-account span { display: none; }
  .account-chip { padding: 0 4px; }
  .account-name { display: none; }
  .search-sheet { top: 14px; }
  .search-inner { height: 62px; padding-left: 16px; gap: 8px; padding-right: 7px; }
  .search-inner input { font-size: 16px; }
  .search-inner [data-paste] { width: 42px; padding: 0; }
  .search-inner [data-paste] span { display: none; }
  .search-inner [data-img] { width: 42px; padding: 0; }
  .search-inner [data-img] span { display: none; }
  .search-inner [data-go] { padding: 0 14px; }
  [data-keys] { display: none; }
}

/* ---------- screenshot import ---------- */
.search-drop { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(7,11,31,.7); backdrop-filter: blur(6px); }
.search-drop span { display: flex; align-items: center; gap: 10px; padding: 22px 30px; border-radius: 20px; border: 2px dashed rgba(105,114,255,.6); background: rgba(105,114,255,.07); font-size: 16px; font-weight: 600; color: var(--text); }
.search-read { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(105,114,255,.07); border: 1px solid rgba(105,114,255,.22); font-size: 13.5px; color: #D2D3FF; animation: rise .35s var(--ease) both; }
.search-read strong { font-weight: 600; }
.search-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--accent); animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* discovery */
.hero-find{display:flex;flex-direction:column;align-items:flex-start;text-align:left;flex:1;gap:2px}
.hero-find strong{font-size:18px}.hero-find small{color:var(--text-3);font-size:13px}
.disc-ov{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:16px;background:radial-gradient(60% 50% at 50% 40%,rgba(105,114,255,.1),transparent 70%),rgba(7,11,31,.92);overflow-y:auto;animation:discin .5s var(--ease) both}
.disc-ov[hidden]{display:none}
.disc-ov[data-phase="paused"] .disc-sweep,.disc-ov[data-phase="paused"] .disc-core{animation:none!important}
.disc-ov[data-state="waiting"] .disc-err{color:var(--text-2)}
@keyframes discin{from{opacity:0}to{opacity:1}}
.disc-card{--progress:0;position:relative;width:min(440px,100%);max-height:100%;padding:28px 24px 22px;border-radius:24px;border:1px solid var(--line-2);background:linear-gradient(180deg,rgba(16,20,56,.96),#0D1230);box-shadow:var(--shadow-2),var(--inner-hi);display:grid;justify-items:center;text-align:center;gap:12px}
.disc-card h2{margin:0;font-size:clamp(20px,6vw,24px);letter-spacing:-.02em;line-height:1.2}
.disc-card p{margin:0;color:var(--text-2)}
.disc-eyebrow{font-size:11px;font-weight:700;letter-spacing:.3em;color:var(--accent)!important}
.disc-orb{width:clamp(110px,34vw,148px);aspect-ratio:1;margin-bottom:4px}
.disc-orb svg{width:100%;height:100%;overflow:visible}
.disc-orb circle{fill:none;transform-origin:60px 60px}
.disc-ring{stroke:var(--line-2);stroke-width:1;opacity:0;animation:discring .9s var(--ease) forwards}
.disc-ring.r2{animation-delay:.25s}.disc-ring.r3{animation-delay:.5s}
@keyframes discring{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
.disc-track{stroke:rgba(150,160,255,.08);stroke-width:2}
.disc-arc{stroke:var(--accent-2);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:calc(100 - var(--progress));transform:rotate(-90deg);transition:stroke-dashoffset .6s var(--ease);filter:drop-shadow(0 0 4px rgba(105,114,255,.6))}
.disc-sweep{transform-origin:60px 60px;animation:discsweep 2.8s linear 2 both}
.disc-sweep path{fill:rgba(105,114,255,.14)}
@keyframes discsweep{to{transform:rotate(360deg)}}
.disc-core{fill:var(--accent)!important;animation:disccore 2.5s ease-in-out 2}
@keyframes disccore{50%{opacity:.35;transform:scale(1.8)}}
.disc-bar{width:100%;height:4px;border-radius:4px;background:rgba(150,160,255,.08);overflow:hidden}
.disc-bar i{display:block;height:100%;width:100%;border-radius:4px;background:var(--grad);transform-origin:left;transform:scaleX(calc(var(--progress) / 100));transition:transform .6s var(--ease)}
.disc-count{font-size:13px;color:var(--text-3);min-height:1em;font-family:var(--mono)}
.disc-note{font-size:12.5px;color:var(--text-3)!important;max-width:34ch}
.disc-err{color:var(--down)!important}
.disc-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;width:100%}
.disc-actions .btn{flex:1 1 130px}
.disc-ov[data-state=waiting] .disc-sweep{animation:discsweep 7s linear infinite}
.disc-ov[data-state=waiting] .disc-core{animation:disccore 3.5s ease-in-out infinite}
.disc-ov[data-state=error] .disc-card{border-color:rgba(255,90,110,.35)}
.disc-ov[data-state=error] .disc-arc{stroke:var(--down);filter:none}
.disc-ov[data-state=error] .disc-sweep{animation:none;opacity:0}
.disc-ov[data-state=error] .disc-core{fill:var(--down)!important;animation:none}
.disc-ov[data-state=error] .disc-eyebrow{color:var(--down)!important}
.disc-ov[data-state=done] .disc-sweep{animation:none;opacity:0}
.disc-ov[data-state=done] .disc-core{animation:none}
@media (prefers-reduced-motion:reduce){.disc-ov,.disc-ring{animation:none;opacity:1}.disc-sweep,.disc-core{animation:none!important}.disc-arc,.disc-bar i{transition:none}}
@media (max-width:360px){.disc-card{padding:22px 16px 18px}}
.disc-card .btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.disc-evidence{padding:16px 18px;margin-bottom:14px;display:grid;gap:10px}
.disc-head{display:flex;justify-content:space-between;gap:10px}.disc-reason{margin:0}
.disc-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin:0}
.disc-stats dt{font-size:12px;color:var(--text-3)}.disc-stats dd{margin:0;font-weight:650}
.disc-alts{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.disc-lim{margin:0;padding-left:18px;font-size:13px;color:var(--text-3)}
