/* Pension: same look as Current (dark, aurora, glass cards, floating nav). */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/manrope.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #06080f;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --ink: #f2f4f8;
  --ink-2: #b4bccb;
  --ink-3: #7a8396;
  --ink-4: #4b5263;
  --grid: rgba(255, 255, 255, 0.06);

  /* series: Current's validated dark palette, fixed order */
  --s1: #00a99c; --s2: #be8700; --s3: #8968d4; --s4: #d95737; --s5: #1f7dcf; --s6: #499537; --s7: #d162a5; --s8: #5a616c;
  /* drivers: NVIDIA, other big tech, rest of N. America, Europe & UK, Asia-Pacific, pound, unexplained */
  --g-nvda: var(--s1); --g-tech: var(--s2); --g-na: var(--s3); --g-eu: var(--s4); --g-apac: var(--s5); --g-fx: var(--s6); --g-other: var(--s8);
  --pot: #3fb6ff;
  --actual: #f2c94c;

  --good: #34d399; --warn: #fbbf24; --bad: #f87171;
  --aura-1: #0f766e; --aura-2: #1e3a8a;
  --radius: 26px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif; font-feature-settings: 'tnum' 1, 'ss01' 1;
  font-size: 15px; line-height: 1.4; min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: var(--s1); }

.aura {
  position: fixed; inset: -20vh -20vw; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 15% 10%, color-mix(in oklab, var(--aura-1) 55%, transparent), transparent 70%),
    radial-gradient(45vmax 45vmax at 95% 35%, color-mix(in oklab, var(--aura-2) 45%, transparent), transparent 70%),
    radial-gradient(35vmax 35vmax at 40% 105%, color-mix(in oklab, var(--aura-1) 25%, transparent), transparent 70%);
  filter: blur(30px) saturate(130%); opacity: 0.55;
  animation: drift 40s ease-in-out infinite alternate;
}
body.down { --aura-1: #7f1d3a; --aura-2: #3b1e8a; }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-3vw,2vh,0) scale(1.05); } 100% { transform: translate3d(2vw,-2vh,0) scale(1.02); } }
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: calc(var(--safe-top) + 18px) 16px calc(var(--safe-bottom) + 110px); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; margin: 4px 4px 18px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 20px; }
.brand svg { width: 26px; height: 26px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: ping 2s infinite; }
.live.stale i { background: var(--warn); animation: none; }
.live.off i { background: var(--ink-4); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--good) 70%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
.iconbtn { appearance: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.iconbtn svg { width: 18px; height: 18px; }

/* Pages and cards */
.page { display: none; animation: pageIn .5s cubic-bezier(.2,.8,.2,1); }
.page.on { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 1000px) {
  main { max-width: 1120px; }
  .page.on { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
  .page > .wide { grid-column: 1 / -1; }
}
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px; backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -30px rgba(0,0,0,.8); overflow: hidden;
}
.card h2 { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card h2 .aside { letter-spacing: 0.02em; text-transform: none; font-weight: 600; font-size: 12px; }
.card h3 { margin: 18px 0 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.sub { color: var(--ink-3); font-size: 13px; }
.muted { color: var(--ink-3); }
.up { color: var(--good); } .down { color: var(--bad); }
.note { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.section-title { margin: 22px 6px 12px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; display: flex; align-items: baseline; justify-content: space-between; }
.section-title span { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
@media (min-width: 1000px) { .section-title { grid-column: 1 / -1; } }

/* Hero */
.hero { padding: 26px 20px 20px; text-align: center;
  background: radial-gradient(110% 70% at 50% 0%, color-mix(in oklab, var(--hc, var(--good)) 13%, transparent), transparent 65%), var(--surface); }
.hero h2 { justify-content: center; }
.potval { font-size: 60px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; transition: opacity .3s; }
.potval small { font-size: .45em; color: var(--ink-2); letter-spacing: -0.02em; vertical-align: .55em; margin-right: 2px; }
.potchg { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 14px 7px 12px; border-radius: 999px;
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
  background: color-mix(in oklab, var(--c, var(--good)) 15%, transparent); color: color-mix(in oklab, var(--c, var(--good)) 85%, white);
  border: 1px solid color-mix(in oklab, var(--c, var(--good)) 30%, transparent); }
.potchg small { font-size: 14px; font-weight: 700; opacity: .85; }
.ext { opacity: .7; }
.since { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.tick { margin-top: 4px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.extnote { display: inline-block; margin-top: 10px; padding: 6px 11px; border-radius: 12px; font-size: 12.5px; font-weight: 600;
  background: color-mix(in oklab, var(--warn) 14%, transparent); color: color-mix(in oklab, var(--warn) 70%, white); border: 1px solid color-mix(in oklab, var(--warn) 25%, transparent); }
.flash-up { animation: flashUp 1.6s ease-out; } .flash-down { animation: flashDown 1.6s ease-out; }
@keyframes flashUp { from { text-shadow: 0 0 30px var(--good); color: color-mix(in oklab, var(--good) 60%, white); } }
@keyframes flashDown { from { text-shadow: 0 0 30px var(--bad); color: color-mix(in oklab, var(--bad) 60%, white); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stats.two { grid-template-columns: repeat(2, 1fr); }
.stats.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 480px) { .stats.four { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 12px 12px 11px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; text-align: left; }
.stat b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b small { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-left: 2px; letter-spacing: 0; }
.stat > span { font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.04em; display: block; }
.stat > em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-3); }

.hero .stat b { font-size: 17px; }
@media (max-width: 400px) { .hero .stat b { font-size: 15.5px; } }

/* Rows (markets, holdings, movers) */
.rows { display: grid; gap: 2px; }
.row { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .nm { font-weight: 600; font-size: 14.5px; line-height: 1.25; min-width: 0; }
.row .nm em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.row .v { text-align: right; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.row .v em { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.row .gbp { min-width: 64px; }
.dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px -1px var(--c); justify-self: center; }
.flag { display: block; width: 24px; height: 17px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 2px 8px -2px rgba(0,0,0,.6); }
.flag svg { display: block; width: 100%; height: 100%; }
.chip { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--c, var(--ink-2)); white-space: nowrap;
  background: color-mix(in oklab, var(--c, var(--ink-3)) 14%, transparent); border: 1px solid color-mix(in oklab, var(--c, var(--ink-3)) 30%, transparent); }
.bar { height: 4px; border-radius: 4px; background: var(--grid); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--c, var(--s5)); }
.hbar { display: grid; grid-template-columns: 130px 1fr 64px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.hbar .t { position: relative; height: 10px; border-radius: 6px; background: var(--grid); }
.hbar .t i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--c); }
.hbar .t.div::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ink-4); }
.hbar b { text-align: right; font-weight: 700; }
@media (max-width: 420px) { .hbar { grid-template-columns: 104px 1fr 58px; } }

/* Charts */
.chart { position: relative; width: 100%; touch-action: pan-y; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; fill: var(--ink-3); font-size: 10.5px; font-family: inherit; font-weight: 600; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .zero { stroke: var(--ink-4); stroke-width: 1; }
.chart .cross { stroke: var(--ink-2); stroke-width: 1; }
.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 130px; max-width: 250px; padding: 10px 12px; border-radius: 14px; font-size: 12px; line-height: 1.5;
  background: rgba(14,18,30,.94); border: 1px solid var(--line-2); backdrop-filter: blur(10px); box-shadow: 0 12px 30px -10px rgba(0,0,0,.8); opacity: 0; transition: opacity .15s; }
.tip.on { opacity: 1; }
.tip .tt { color: var(--ink-3); font-weight: 700; margin-bottom: 4px; }
.tip .r { display: flex; align-items: center; gap: 10px; justify-content: space-between; white-space: nowrap; }
.tip .r span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.tip .r i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); display: inline-block; }
.tip .r b { color: var(--ink); font-weight: 700; }
.tip .hl { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-2); color: var(--ink-2); white-space: normal; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: -4px 0 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.legend i.line { height: 2px; border-radius: 0; width: 12px; }
.legend i.dot2 { border-radius: 50%; }

/* Range control (Current's segmented control, any number of buttons) */
.seg-ctl { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.seg-ctl button { appearance: none; border: 0; background: none; color: var(--ink-3); font-weight: 700; font-size: 13px; padding: 9px 0; border-radius: 12px; cursor: pointer; transition: color .3s, background .3s; }
.seg-ctl button.on { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (min-width: 1000px) { .seg-ctl { grid-column: 1 / -1; } }
.toggle { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.toggle button { appearance: none; border: 0; background: none; color: var(--ink-3); font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 8px; cursor: pointer; }
.toggle button.on { background: rgba(255,255,255,.1); color: var(--ink); }

/* Records / facts */
.records { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.records.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .records.three { grid-template-columns: 1fr 1fr; } }
.record { padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.record span { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.record b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 1px; white-space: nowrap; }
.record em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.facts { display: grid; gap: 2px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts div:last-child { border-bottom: 0; }
.facts span { color: var(--ink-3); } .facts b { text-align: right; }

/* Market timeline */
.tl { position: relative; margin-top: 4px; }
.tl .r { display: grid; grid-template-columns: 104px 1fr; gap: 8px; align-items: center; height: 24px; }
.tl .r .lab { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.tl .r .lab .flag { width: 18px; height: 13px; border-radius: 3px; flex: none; }
.tl .track { position: relative; height: 12px; border-radius: 6px; background: var(--grid); }
.tl .seg { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.tl .seg.main { background: color-mix(in oklab, var(--s1) 70%, transparent); }
.tl .seg.main.live { background: var(--s1); box-shadow: 0 0 12px -2px var(--s1); }
.tl .seg.pre, .tl .seg.after { background: color-mix(in oklab, var(--s1) 22%, transparent); }
.tl .nowline { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 10px var(--ink); z-index: 2; }
.tl .ticks { position: relative; height: 16px; margin-left: 112px; font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.tl .ticks span { position: absolute; transform: translateX(-50%); }
.mk { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.mk:last-child { border-bottom: 0; }
.mk .nm { font-weight: 700; font-size: 15px; } .mk .nm em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.mk .side { text-align: right; } .mk .side b { display: block; font-size: 14.5px; } .mk .side em { font-style: normal; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.mk .meta { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink-3); font-weight: 600; margin-top: -2px; }

/* Heatmap */
.heat { display: grid; gap: 3px; font-size: 10.5px; font-weight: 700; }
.heat .h { color: var(--ink-3); text-align: center; }
.heat .y { color: var(--ink-3); display: flex; align-items: center; }
.heat .c { border-radius: 6px; text-align: center; padding: 6px 0; color: var(--ink); background: var(--grid); min-width: 0; }
.heat .c.empty { background: none; }
.scale { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.scale i { flex: 1; height: 6px; border-radius: 3px; }

/* Holdings */
.hold { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.hold:last-child { border-bottom: 0; }
.hold .ck { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ink-4); display: grid; place-items: center; }
.hold.sel .ck { background: var(--c); border-color: var(--c); }
.hold .ck svg { width: 14px; height: 14px; color: #06080f; opacity: 0; }
.hold.sel .ck svg { opacity: 1; }
.hold .nm { font-weight: 600; font-size: 14.5px; min-width: 0; }
.hold .nm em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.hold .side { text-align: right; } .hold .side b { display: block; font-size: 14.5px; white-space: nowrap; } .hold .side em { font-style: normal; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.hold:not(.sel) .nm, .hold:not(.sel) .side { opacity: .5; }
.detail { grid-column: 1 / -1; padding: 6px 0 4px; cursor: default; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.qbtn { appearance: none; padding: 6px 11px; border-radius: 999px; cursor: pointer; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.qbtn.on { background: color-mix(in oklab, var(--s1) 22%, transparent); border-color: color-mix(in oklab, var(--s1) 50%, transparent); color: var(--ink); }
.range52 { position: relative; height: 6px; border-radius: 3px; background: var(--grid); margin: 8px 0 4px; }
.range52 i { position: absolute; top: -3px; width: 3px; height: 12px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }

/* News */
.ev { padding: 12px 0; border-bottom: 1px solid var(--line); } .ev:first-child { padding-top: 0; } .ev:last-child { border-bottom: 0; }
.ev .h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; } .ev .h b { font-size: 14.5px; }
.ev ul { margin: 6px 0 0; padding-left: 18px; } .ev li { margin: 3px 0; font-size: 13.5px; color: var(--ink-2); }
.ev li a { color: var(--ink); text-decoration: none; } .ev li span { color: var(--ink-3); font-size: 11.5px; }
.ev .chip { margin: 6px 6px 0 0; }
.pin { font-size: 13.5px; margin-top: 6px; color: var(--ink-2); } .pin::before { content: '📌 '; }
.pin button { appearance: none; border: 0; background: none; color: var(--ink-3); cursor: pointer; }

/* Forms / buttons / sheet */
.btn { appearance: none; display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 14px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-size: 14px; font-weight: 700; }
.btn.primary { background: var(--s1); border-color: transparent; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.field { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); color-scheme: dark; }
.form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .form .field { flex: 1 1 160px; width: auto; }
.sheet { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(3,5,10,.72); backdrop-filter: blur(6px); animation: pageIn .3s; }
.sheet-card { width: min(460px, 100%); max-height: 88vh; overflow: auto; margin: 0; background: #0d1220; }
.sheet .x { appearance: none; border: 0; background: none; color: var(--ink-3); font-size: 16px; cursor: pointer; }
.setup { max-width: 420px; margin: 12vh auto 0; text-align: center; }

/* Bottom nav */
nav { position: fixed; z-index: 10; left: 50%; bottom: calc(var(--safe-bottom) + 14px); transform: translateX(-50%);
  display: flex; gap: 2px; padding: 6px; border-radius: 26px; background: rgba(16,20,32,.72); border: 1px solid var(--line-2);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); box-shadow: 0 20px 40px -12px rgba(0,0,0,.7); }
nav button { appearance: none; border: 0; background: none; color: var(--ink-3); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 68px; padding: 8px 0 6px; border-radius: 20px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; transition: color .25s, background .25s; }
nav button svg { width: 22px; height: 22px; transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
nav button.on { color: var(--ink); background: rgba(255,255,255,.08); }
nav button.on svg { transform: translateY(-1px) scale(1.08); }
@media (max-width: 380px) { nav button { width: 60px; } .potval { font-size: 50px; } }

.err { padding: 12px 14px; border-radius: 14px; background: color-mix(in oklab, var(--bad) 14%, transparent); color: color-mix(in oklab, var(--bad) 60%, white); font-size: 13px; margin-bottom: 14px; }
.shimmer { height: 160px; border-radius: 16px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 100px); transform: translate(-50%, 20px); z-index: 30; opacity: 0;
  padding: 12px 16px; border-radius: 14px; background: #1b2236; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; transition: all .35s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.credits { margin: 8px 6px 0; font-size: 11px; line-height: 1.6; color: var(--ink-4); }
.credits a { color: var(--ink-3); }
@media (min-width: 1000px) { .credits { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
