@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);

  /* fuels: fixed order, validated for dark surface (dataviz validator, 2026-10-23) */
  --wind: #00a99c;
  --solar: #be8700;
  --nuclear: #8968d4;
  --gas: #d95737;
  --hydro: #1f7dcf;
  --biomass: #499537;
  --imports: #d162a5;
  --other: #5a616c;

  /* home */
  --elec: #3fb6ff;
  --gasfuel: #ff8a4c;
  --car: #8f7cff;

  /* status: always shown with a label */
  --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;
  user-select: none;
}

/* Aurora backdrop: tinted by grid carbon intensity */
.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;
  transition: --aura-1 2s, --aura-2 2s, opacity 1s;
  animation: drift 40s ease-in-out infinite alternate;
}
@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);
}
@media (min-width: 1000px) {
  main { max-width: 1120px; }
  .page { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
  .page > .wide { grid-column: 1 / -1; }
}

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; margin: 4px 4px 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 20px; }
.brand svg { width: 26px; height: 26px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.04em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: ping 2s infinite; }
.live.stale i { background: var(--warn); 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; }
}

/* Pages */
.page { display: none; animation: pageIn .5s cubic-bezier(.2, .8, .2, 1); }
.page.on { display: block; }
@media (min-width: 1000px) { .page.on { display: grid; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.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, 0.04) inset, 0 20px 50px -30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.card.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.card.reveal.in { opacity: 1; transform: none; }
.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; color: var(--ink-3); 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); }

/* Hero */
.hero { padding: 24px 20px 20px; }
.ringwrap { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 0 auto 6px; }
.ringwrap svg { width: 100%; height: 100%; overflow: visible; }
.ringcentre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.big { font-size: 76px; font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; }
.big small { font-size: 0.32em; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); margin-left: 4px; }
.unit { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.06em; margin-top: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 11px 5px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: color-mix(in oklab, var(--c, var(--good)) 16%, transparent);
  color: color-mix(in oklab, var(--c, var(--good)) 80%, white);
  border: 1px solid color-mix(in oklab, var(--c, var(--good)) 30%, transparent);
}
.pill svg { width: 13px; height: 13px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stats.two { 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; }
.stat b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.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; }

/* Fuel table */
.fuels { display: grid; gap: 4px; }
.fuel { display: grid; grid-template-columns: 12px 1fr auto 52px; align-items: center; gap: 12px; padding: 9px 4px; border-radius: 12px; transition: background .2s; }
.fuel:active, .fuel.hl { background: var(--surface-2); }
.fuel .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px -1px var(--c); }
.fuel .name { font-weight: 600; font-size: 15px; display: flex; flex-direction: column; min-width: 0; }
.fuel .name em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.fuel .bar { grid-column: 2 / -1; height: 4px; border-radius: 4px; background: var(--grid); overflow: hidden; margin-top: -4px; }
.fuel .bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--c); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.fuel .gw { font-weight: 700; font-size: 15px; text-align: right; }
.fuel .pct { font-weight: 600; font-size: 13px; color: var(--ink-3); text-align: right; }

/* 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 .now { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .cross { stroke: var(--ink-2); stroke-width: 1; }
.tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 120px; max-width: 220px;
  padding: 10px 12px; border-radius: 14px; font-size: 12px; line-height: 1.5;
  background: rgba(14, 18, 30, 0.92); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -10px rgba(0, 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 .row { display: flex; align-items: center; gap: 7px; justify-content: space-between; white-space: nowrap; }
.tip .row i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); display: inline-block; }
.tip .row span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.tip .row b { color: var(--ink); font-weight: 700; }

.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.dash { height: 2px; border-radius: 0; background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); }

.callout { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.callout b { color: var(--ink); }
.callout svg { flex: none; width: 22px; height: 22px; color: var(--good); }

/* Interconnectors */
.ics { display: grid; gap: 2px; }
.ic { display: grid; grid-template-columns: 26px 1fr 128px 64px; gap: 10px; align-items: center; padding: 7px 0; }
.ic .flag { font-size: 20px; line-height: 1; }
.ic .nm { font-weight: 600; font-size: 14px; line-height: 1.2; }
.ic .nm em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.ic .flow { position: relative; height: 8px; border-radius: 6px; background: var(--grid); }
.ic .flow::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ink-4); }
.ic .flow i {
  position: absolute; top: 0; bottom: 0; border-radius: 6px; transition: all 1s cubic-bezier(.2, .8, .2, 1);
  background-size: 14px 100%;
}
.ic .flow i.in { left: 50%; background-color: var(--imports);
  background-image: linear-gradient(90deg, transparent 0 50%, rgba(255, 255, 255, .35) 50% 60%, transparent 60%); animation: flowL 1s linear infinite; }
.ic .flow i.out { right: 50%; background-color: #9aa5bb; box-shadow: 0 0 10px -2px #9aa5bb;
  background-image: linear-gradient(90deg, transparent 0 40%, rgba(255, 255, 255, .35) 40% 50%, transparent 50%); animation: flowR 1s linear infinite; }
@keyframes flowL { to { background-position: -14px 0; } }
@keyframes flowR { to { background-position: 14px 0; } }
.ic .mw { text-align: right; font-weight: 700; font-size: 14px; }
.ic .mw em { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-3); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.ic-sum { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.ic-sum b { color: var(--ink); }
.ic-head { display: grid; grid-template-columns: 26px 1fr 128px 64px; gap: 10px; font-size: 10.5px; color: var(--ink-3); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ic-head span:nth-child(3) { display: flex; justify-content: space-between; }

/* Gauges */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo .card { margin-bottom: 0; }
.duo + .card, .duo { margin-bottom: 16px; }
.gauge svg { width: 100%; display: block; overflow: visible; }
.gauge .val { text-align: center; margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.gauge .val small { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-left: 2px; }
.mini { margin-top: 10px; }
.priceval { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; margin: 4px 0 2px; }
.priceval small { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-left: 3px; letter-spacing: 0; }

/* Home hero */
.power { text-align: center; padding: 30px 20px 22px; }
.orb { position: relative; width: 230px; height: 230px; margin: 0 auto 8px; display: grid; place-items: center; }
.orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--oc, var(--elec)) 60%, transparent); animation: ripple var(--speed, 3s) cubic-bezier(.2, .6, .3, 1) infinite; opacity: 0; }
.orb .ring:nth-child(2) { animation-delay: calc(var(--speed, 3s) / 3); }
.orb .ring:nth-child(3) { animation-delay: calc(var(--speed, 3s) / 1.5); }
@keyframes ripple { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.12); opacity: 0; } }
.orb .core {
  position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--oc, var(--elec)) 55%, white 10%), color-mix(in oklab, var(--oc, var(--elec)) 25%, #000) 70%);
  box-shadow: 0 0 60px -6px var(--oc, var(--elec)), inset 0 0 30px rgba(255, 255, 255, .12);
  animation: breathe var(--speed, 3s) ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.04); box-shadow: 0 0 90px 0 var(--oc, var(--elec)), inset 0 0 30px rgba(255, 255, 255, .18); } }
.orb .reading { position: relative; text-align: center; }
.orb .reading .big { font-size: 58px; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }

.rate { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.costline { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.costline b { color: var(--ink); }

.today { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.today .card { margin: 0; padding: 16px; }
.today .k { font-size: 32px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; margin-top: 4px; }
.today .k small { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; margin-left: 2px; }
.today .p { font-size: 14px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.today .lbl { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.today .lbl i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* Slots timeline */
.timeline { position: relative; height: 54px; margin-top: 6px; }
.timeline .track { position: absolute; left: 0; right: 0; top: 14px; height: 18px; border-radius: 9px; background: var(--grid); overflow: hidden; }
.timeline .seg { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.timeline .seg.offpeak { background: color-mix(in oklab, var(--good) 22%, transparent); }
.timeline .seg.slot { background: var(--car); box-shadow: 0 0 14px var(--car); top: 3px; bottom: 3px; }
.timeline .nowmark { position: absolute; top: 8px; height: 30px; width: 2px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 10px var(--ink); }
.timeline .ticks { position: absolute; left: 0; right: 0; top: 38px; font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.timeline .ticks span { position: absolute; transform: translateX(-50%); }
.slots { display: grid; gap: 8px; margin-top: 8px; }
.slotrow { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.slotrow b { font-weight: 700; }
.slotrow span { color: var(--ink-3); font-size: 13px; }

/* Car */
.battery { position: relative; width: min(260px, 70vw); aspect-ratio: 1; margin: 0 auto; }
.battery svg { width: 100%; height: 100%; overflow: visible; }
.empty { text-align: center; padding: 26px 10px; color: var(--ink-3); font-size: 14px; }
.empty b { color: var(--ink-2); display: block; font-size: 16px; margin-bottom: 6px; }

/* History */
.seg-ctl { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; position: relative; }
.seg-ctl button { appearance: none; border: 0; background: none; color: var(--ink-3); font: inherit; font-weight: 700; font-size: 13px; padding: 10px 0; border-radius: 12px; position: relative; z-index: 1; transition: color .3s; cursor: pointer; }
.seg-ctl button.on { color: var(--ink); }
.seg-ctl .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); transition: transform .4s cubic-bezier(.3, 1.3, .5, 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: inherit; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 8px; cursor: pointer; letter-spacing: 0; text-transform: none; }
.toggle button.on { background: rgba(255, 255, 255, .1); color: var(--ink); }
.section-title { margin: 26px 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; }
.records { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.record { padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.record span { display: block; font-size: 11px; 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; }
.record em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.heat { display: block; width: 100%; }
.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; }

/* 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, 0.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); font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 74px; 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); }

/* Setup */
.setup { max-width: 420px; margin: 12vh auto 0; text-align: center; }
.setup input { width: 100%; margin: 8px 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; }
.setup button { width: 100%; margin-top: 8px; padding: 14px; border-radius: 14px; border: 0; background: var(--wind); color: #fff; font: inherit; font-weight: 700; }

.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; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 380px) {
  .big { font-size: 64px; }
  .ic { grid-template-columns: 22px 1fr 96px 56px; }
  .ic-head { grid-template-columns: 22px 1fr 96px 56px; }
  nav button { width: 66px; }
}

/* Weather small multiples */
.wx-h { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 6px; }
.wx-h span { display: inline-flex; align-items: center; gap: 8px; }
.wx-h i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.wx-h em { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 600; }

.ic .flag { display: block; width: 26px; height: 18px; 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); }
.ic .flag svg { display: block; width: 100%; height: 100%; }

/* Data credits (the sources' licences ask for them) */
.credits { margin: 8px 6px 0; font-size: 11px; line-height: 1.6; color: var(--ink-4); user-select: text; }
.credits a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--line-2); }

/* Connect phone (browser only) */
.top-right { display: flex; align-items: center; gap: 12px; }
.connect { appearance: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 700; }
.connect svg { width: 15px; height: 15px; }
.connect[hidden] { display: none; }
.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(420px, 100%); margin: 0; background: #0d1220; }
.sheet .x { appearance: none; border: 0; background: none; color: var(--ink-3); font-size: 16px; cursor: pointer; }
.steps { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.steps a, .sheet a { color: var(--wind); }
.qr { background: #fff; border-radius: 16px; padding: 10px; width: min(260px, 70vw); margin: 0 auto 14px; }
.qr svg { display: block; width: 100%; height: auto; }
.sheet code { font-size: 12px; word-break: break-all; color: var(--ink); }
.sheet details { margin-top: 8px; }
