/* Fjordcoin site styles. Dark by default; a light theme is set with <html data-theme="light">. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #070b10; --bg-2: #0b1118; --surface: #0f161f; --surface-2: #162029; --surface-3: #1d2a35;
  --ink: #eef4f6; --muted: #8fa1ab; --faint: #5f717c; --line: #1e2b36; --line-strong: #2b3c49;
  --accent: #2dd4bf; --accent-2: #38bdf8; --accent-3: #818cf8; --accent-ink: #04201d; --accent-soft: rgba(45, 212, 191, 0.12);
  --good: #4ade80; --bad: #fb7185; --warn-bg: rgba(250, 204, 21, 0.09); --warn-ink: #f5dc8b; --warn-line: rgba(250, 204, 21, 0.25);
  --grad: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 55%, #818cf8 100%);
  --glow: 0 0 0 1px rgba(45, 212, 191, 0.25), 0 12px 40px -12px rgba(45, 212, 191, 0.45);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.7);
  --nav-bg: rgba(7, 11, 16, 0.72); --code-bg: #05080c; --code-ink: #cfe8e6;
  --radius: 18px; --radius-sm: 12px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fa; --bg-2: #eef2f5; --surface: #ffffff; --surface-2: #f0f4f6; --surface-3: #e4ebef;
  --ink: #0c1b22; --muted: #566b76; --faint: #8497a1; --line: #e1e8ec; --line-strong: #cbd6dc;
  --accent: #0d9488; --accent-2: #0284c7; --accent-3: #4f46e5; --accent-ink: #ffffff; --accent-soft: rgba(13, 148, 136, 0.1);
  --good: #15803d; --bad: #be123c; --warn-bg: #fef6dc; --warn-ink: #6b4e00; --warn-line: #f1dfa0;
  --grad: linear-gradient(135deg, #0d9488 0%, #0284c7 55%, #4f46e5 100%);
  --glow: 0 0 0 1px rgba(13, 148, 136, 0.2), 0 12px 32px -14px rgba(13, 148, 136, 0.5);
  --shadow: 0 1px 2px rgba(12, 27, 34, 0.04), 0 16px 32px -24px rgba(12, 27, 34, 0.25);
  --nav-bg: rgba(246, 248, 250, 0.78); --code-bg: #0c1b22; --code-ink: #d8ece8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
code, pre, .mono { font-family: var(--mono); font-size: 0.88em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(45, 212, 191, 0.3); }

/* ---------- navigation ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; margin-right: auto; flex-shrink: 0; }
.brand img, .brand svg { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); }
.top nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; white-space: nowrap; transition: color .15s, background .15s; }
.top nav a:hover { color: var(--ink); background: var(--surface-2); }
.top nav a[aria-current] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.top nav a.who { color: var(--accent-ink); background: var(--grad); font-weight: 600; margin-left: 8px; padding: 7px 16px; }
.top nav a.who:hover { filter: brightness(1.08); }
.top nav a.who.in { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.top nav a.who.in::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 8px; box-shadow: 0 0 8px var(--good); }
.themebtn { flex-shrink: 0; width: 36px; height: 36px; margin-left: 4px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: color .15s, background .15s; }
.themebtn:hover { color: var(--ink); background: var(--surface-2); }
.themebtn svg { width: 17px; height: 17px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 22px; font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2; cursor: pointer; text-decoration: none; background: var(--grad); color: var(--accent-ink); transition: transform .12s, box-shadow .2s, filter .15s, background .15s; white-space: nowrap; }
.btn:hover { box-shadow: var(--glow); filter: brightness(1.05); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: progress; box-shadow: none; }
.btn.ghost, .btn.quiet { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover, .btn.quiet:hover { background: var(--surface-3); box-shadow: none; filter: none; }
.btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 12%, transparent); box-shadow: none; }
.btn.small { padding: 7px 14px; font-size: 0.85rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 130%; z-index: -2;
  background: radial-gradient(50% 55% at 18% 20%, rgba(45, 212, 191, 0.28), transparent 70%), radial-gradient(45% 50% at 82% 10%, rgba(129, 140, 248, 0.26), transparent 70%), radial-gradient(40% 45% at 60% 70%, rgba(56, 189, 248, 0.16), transparent 70%); filter: blur(10px); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 30%, #000 20%, transparent 80%); }
:root[data-theme="light"] .hero::before { opacity: 0.75; }
.hero .wrap { padding-top: 92px; padding-bottom: 150px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(6px); }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; margin: 26px 0 22px; max-width: 15ch; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 58ch; color: var(--muted); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .cta .btn { padding: 14px 26px; font-size: 1rem; }
.hero svg.ridge { display: none; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: -78px; position: relative; z-index: 2; }
.stat { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); transition: border-color .2s, transform .2s; min-width: 0; }
.stat:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.stat .label { color: var(--muted); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.stat .value { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 6px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat .sub { color: var(--faint); font-size: 0.82rem; margin-top: 2px; }
.live { display: inline-flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--muted); margin-top: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.dot.on { background: var(--good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); animation: pulse 2s infinite; }
.dot.off { background: var(--bad); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- sections and cards ---------- */
section { padding: 88px 0 0; }
section > .wrap > h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.035em; }
section > .wrap > p.intro, .page > p.intro, p.intro { color: var(--muted); max-width: 64ch; margin-top: 10px; font-size: 1.04rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); min-width: 0; }
.grid3 > .card { transition: border-color .2s, transform .2s; }
.grid3 > .card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.card p { color: var(--muted); }
.card .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.95rem; margin-bottom: 16px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
h2.sub { font-size: 1.35rem; margin-top: 48px; letter-spacing: -0.03em; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--faint); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
.tablecard { padding: 6px 10px; overflow-x: auto; }
.spec td { vertical-align: top; }
.spec td:first-child { color: var(--muted); width: 40%; }
#blocks td { white-space: nowrap; }
#app .tablecard th, #app .tablecard td { white-space: nowrap; }
td a, .kv a { text-decoration: none; }
td a:hover, .kv a:hover { text-decoration: underline; }
.pos { color: var(--good); } .neg { color: var(--bad); }

/* ---------- forms ---------- */
input, textarea, select { font: inherit; color: var(--ink); }
form.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
form.row input, .search input, .field input, .field textarea { width: 100%; padding: 12px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
form.row input { flex: 1 1 240px; min-width: 0; width: auto; font-family: var(--mono); font-size: 0.9rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--faint); }
.field { display: block; margin-top: 16px; }
.field > span { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; }
.field input.mono, .field textarea { font-family: var(--mono); font-size: 0.9rem; }
.field textarea { min-height: 88px; resize: vertical; }
select, select.picker { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg-2); max-width: 100%; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 17px; height: 17px; margin-top: 4px; flex-shrink: 0; }
fieldset label { cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.search { display: flex; gap: 10px; margin-top: 8px; }
.search input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 0.9rem; border-radius: 999px; padding: 13px 20px; background: var(--surface); }
.result { margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 0.94rem; overflow-wrap: anywhere; border: 1px solid var(--line); }
.result:empty { display: none; }
.result.ok { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.result.err { color: var(--bad); background: color-mix(in srgb, var(--bad) 9%, transparent); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.result .big { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; display: block; }
.note { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.93rem; margin-top: 26px; }
.small { font-size: 0.86rem; color: var(--muted); margin-top: 12px; }
.pill { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); text-decoration: none; white-space: nowrap; }
.pill.ok { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.pill.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }

/* ---------- roadmap ---------- */
.road { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.road li { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); align-items: start; }
.road .tag { justify-self: start; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); }
.road .tag.done { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.road p { color: var(--muted); margin-top: 3px; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 48px; }
.docs aside { position: sticky; top: 92px; align-self: start; font-size: 0.92rem; border-left: 1px solid var(--line); }
.docs aside a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 1px solid transparent; }
.docs aside a:hover { color: var(--ink); border-left-color: var(--accent); }
.docs article { max-width: 72ch; }
.docs article h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.04em; margin-bottom: 14px; }
.docs article h2 { font-size: 1.5rem; margin: 56px 0 12px; scroll-margin-top: 88px; }
.docs article p, .docs article ul, .docs article ol { margin: 12px 0; color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.docs article li { margin: 6px 0; }
.docs article .card p { margin: 0; }
pre { background: var(--code-bg); color: var(--code-ink); padding: 16px 18px; border-radius: var(--radius-sm); overflow-x: auto; line-height: 1.55; margin: 14px 0; border: 1px solid var(--line); }
:not(pre) > code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); }

/* ---------- app pages: wallet, explorer, pool ---------- */
.page { padding-top: 44px; min-height: 60vh; }
.page h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); letter-spacing: -0.04em; }
.page .stats { margin-top: 26px; }
.narrow { max-width: 600px; }
.page > .narrow:first-child { margin-inline: auto; }
.stack > * + * { margin-top: 18px; }
.walletcard { position: relative; overflow: hidden; isolation: isolate; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 30px 32px; border-radius: 24px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.walletcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 0% 0%, rgba(45, 212, 191, 0.22), transparent 60%), radial-gradient(50% 120% at 100% 0%, rgba(129, 140, 248, 0.22), transparent 60%); }
.walletcard .wname { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.walletcard .wright { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.walletcard .small { margin-top: 6px; }
.balance { font-size: clamp(2.4rem, 8vw, 3.6rem); font-weight: 800; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 6px; }
.balance small { font-size: 0.38em; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.user { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); border: 1px solid var(--line-strong); }
.user::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.tabs { display: inline-flex; gap: 4px; margin-top: 26px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; margin: 16px 0; padding: 0; list-style: none; counter-reset: w; }
.words li { counter-increment: w; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; font-family: var(--mono); font-size: 0.93rem; }
.words li::before { content: counter(w) "  "; color: var(--faint); font-size: 0.8em; }
.addrbox { font-family: var(--mono); font-size: 0.93rem; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px; overflow-wrap: anywhere; }
.qr { width: 190px; max-width: 100%; background: #fff; border-radius: 16px; padding: 8px; }
.qr svg { display: block; width: 100%; height: auto; }
.kv { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); font-size: 0.95rem; }
.kv > div { padding: 12px 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.kv > div:nth-child(odd) { color: var(--muted); }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.io h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--faint); margin-bottom: 8px; }
.io .row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.io .row a, .io .row span:first-child { overflow-wrap: anywhere; min-width: 0; }
.io .row .amt { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
td a.mono, a.mono { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
footer { margin-top: 110px; border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--faint); font-size: 0.88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .top .wrap { gap: 8px; }
  .hero .wrap { padding-top: 60px; padding-bottom: 120px; }
  section { padding-top: 64px; }
  .card { padding: 20px; }
  .docs { grid-template-columns: 1fr; gap: 18px; padding-top: 28px; }
  .docs aside { position: static; columns: 2; border-left: 0; }
  .docs aside a { padding-left: 0; border-left: 0; }
  .road li { grid-template-columns: 1fr; gap: 10px; }
  .io { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv > div:nth-child(odd) { border-bottom: 0; padding-bottom: 0; font-size: 0.84rem; }
  .walletcard { padding: 22px; border-radius: 20px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px 16px; }
  .stat .value { font-size: 1.35rem; }
  th, td { padding: 11px 9px; }
  #blocks td.mono { max-width: 26vw; overflow: hidden; text-overflow: ellipsis; }
  .search { flex-wrap: wrap; }
  .search .btn { width: 100%; }
}

/* ---------- site notice and admin page ---------- */
.sitenotice { background: var(--warn-bg); color: var(--warn-ink); border-bottom: 1px solid var(--warn-line); text-align: center; padding: 10px 20px; font-size: 0.92rem; font-weight: 500; }
.svc { display: flex; flex-wrap: wrap; gap: 10px; }
.svc span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 0.88rem; font-weight: 600; }
.svc span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.svc span.up::before { background: var(--good); box-shadow: 0 0 8px var(--good); }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.switch:last-of-type { border-bottom: 0; }
.switch strong { display: block; }
.switch small { color: var(--muted); }
.toggle { position: relative; width: 48px; height: 28px; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-3); cursor: pointer; transition: background .15s; padding: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.toggle[aria-checked="true"] { background: var(--accent); border-color: transparent; }
.toggle[aria-checked="true"]::after { transform: translateX(20px); background: #fff; }
.inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline .field { margin-top: 0; flex: 1 1 160px; }

/* admin extras */
.tabs.many { display: flex; flex-wrap: wrap; border-radius: 22px; width: fit-content; }
.logbox { max-height: 560px; overflow: auto; white-space: pre; font-size: 0.8rem; margin: 0; }
.svcrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.svcrow:last-child { border-bottom: 0; padding-bottom: 0; }
.svcrow .svc span { border: 0; background: none; padding: 0; }
.svcrow small { color: var(--muted); display: block; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 0.82rem; }
.chips button { border: 0; background: var(--surface-3); color: var(--ink); border-radius: 50%; width: 22px; height: 22px; cursor: pointer; line-height: 1; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.two > .card { margin: 0; }

/* wallet extras */
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 50; max-width: min(360px, calc(100vw - 36px)); }
.toast { padding: 13px 18px; border-radius: var(--radius-sm); background: var(--surface-3); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 600; font-size: 0.94rem; }
.toast.good { border-color: color-mix(in srgb, var(--good) 55%, transparent); color: var(--good); }
.recipient { padding: 14px 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 14px; }
.recipient .rhead { display: flex; justify-content: space-between; align-items: baseline; }
.recipient .field:first-of-type { margin-top: 10px; }
.histbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.field select { width: 100%; }

/* pool charts */
.chart { position: relative; margin-top: 14px; touch-action: pan-y; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--muted); font-size: 12px; font-family: inherit; }
.chart .g { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .l { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .a { fill: var(--accent); opacity: 0.12; }
.chart .x { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .d { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.charttip { position: absolute; pointer-events: none; min-width: 130px; padding: 8px 12px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-strong); box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 0.85rem; }
.charttip strong { display: block; font-size: 1rem; } .charttip span { color: var(--muted); }

/* explorer extras */
.tabs a { border-radius: 999px; padding: 9px 18px; font-size: 0.92rem; font-weight: 600; color: var(--muted); white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sharebar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; min-width: 80px; }
.sharebar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
details > summary { cursor: pointer; }

/* faucet page */
.rules { margin: 14px 0 0; padding-left: 22px; max-width: 760px; color: var(--muted); }
.rules li { margin-top: 8px; }
