:root {
  --bg: #0B1428;
  --surface: #121E37;
  --raised: #1A2A4A;
  --line: #24375C;
  --fg: #E9F1FF;
  --muted: #8EA2C6;
  --dim: #5D7096;
  --cyan: #3CD8F7;
  --blue: #2A6FE0;
  --ok: #3DDC97;
  --warn: #F5B941;
  --bad: #FF5F6D;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --r: 18px;
  --pad: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: radial-gradient(1100px 520px at 50% -180px, #13295A 0%, var(--bg) 62%) no-repeat, var(--bg);
  color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- top bar ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) 8px max(var(--pad), env(safe-area-inset-left));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand img { border-radius: 9px; display: block; }
.word { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.getapp {
  text-decoration: none; font-weight: 700; font-size: .88rem; color: var(--fg); white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--surface);
}
.getapp:hover { border-color: var(--cyan); }

/* ---------- layout ---------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px;
  max-width: 1120px; margin: 0 auto; padding: 8px var(--pad) 24px;
}
.main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { order: 2; }
  .ad-side { display: none; }
}

/* ---------- intro ---------- */
.intro h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(1.45rem, 5.4vw, 2.3rem); line-height: 1.15; margin: 10px 0 10px;
}
.intro h1 span { color: var(--cyan); display: block; }
.intro p { margin: 0; color: var(--muted); max-width: 620px; font-size: .98rem; }

/* ---------- this device ---------- */
.me {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: rgba(18,30,55,.6); border: 1px solid var(--line); border-radius: var(--r);
}
.me-icon, .peer-icon {
  width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2F6FD8, #0E2557); color: #fff;
}
.me-text { min-width: 0; flex: 1; }
.label { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.me-name {
  display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; max-width: 100%;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-align: left;
}
.me-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-name svg { color: var(--muted); flex: none; }
.status { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); white-space: nowrap; flex: none; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.status.on .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(61,220,151,.15); }
.status.off .dot { background: var(--bad); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card h2, .steps-card h2 { font-family: var(--display); font-size: .98rem; font-weight: 600; margin: 0; }
.hint, .note { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
@media (hover: none) { .desk { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  background: var(--blue); color: #fff; border: 0; border-radius: 12px; padding: 10px 18px;
  font-weight: 700; cursor: pointer; text-decoration: none; font-size: .95rem; white-space: nowrap;
}
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .55; cursor: default; filter: none; }
.btn.ghost { background: var(--raised); border: 1px solid var(--line); color: var(--fg); }
.btn.small { min-height: 38px; padding: 7px 13px; font-size: .86rem; border-radius: 10px; }
.btn.danger { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* ---------- nearby ---------- */
.peers { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.peer {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0;
  background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 16px 10px 12px;
  cursor: pointer; transition: border-color .15s, transform .15s;
}
.peer:hover, .peer.drop { border-color: var(--cyan); transform: translateY(-2px); }
.peer .peer-icon { width: 54px; height: 54px; }
.peer .name { font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peer .where { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.peer .where.ok { color: var(--ok); }
.peer .where.bad { color: var(--warn); }
@media (max-width: 400px) { .peers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.empty { text-align: center; padding: 10px 8px 6px; color: var(--muted); }
.empty .big { color: var(--fg); font-weight: 700; margin: 10px 0 4px; }
.empty p { margin: 0 auto; max-width: 420px; font-size: .9rem; }
.radar { position: relative; width: 80px; height: 80px; margin: 0 auto; }
.radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cyan); opacity: 0; animation: ping 2.4s ease-out infinite; }
.radar span:nth-child(2) { animation-delay: .8s; }
.radar span:nth-child(3) { animation-delay: 1.6s; }
.radar i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--cyan); }
@keyframes ping { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }

/* ---------- transfers ---------- */
.xfer { padding: 14px 0; border-top: 1px solid var(--line); min-width: 0; }
.xfer:first-child { border-top: 0; padding-top: 0; }
.xfer .row1 { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.xfer .title { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xfer .state { font-size: .8rem; color: var(--muted); white-space: nowrap; flex: none; }
.xfer .state.ok { color: var(--ok); }
.xfer .state.bad { color: var(--bad); white-space: normal; text-align: right; }
.xfer .sub { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.bar { height: 6px; border-radius: 99px; background: var(--raised); overflow: hidden; margin: 10px 0 6px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 99px; transition: width .2s; }
.xfer .meta { display: flex; justify-content: space-between; gap: 4px 12px; font-size: .74rem; color: var(--muted); font-family: var(--mono); flex-wrap: wrap; }
.xfer .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.xfer .actions:empty { display: none; }
.xfer .actions .note { margin: 0; flex-basis: 100%; }
@media (max-width: 520px) {
  .xfer .actions .btn { flex: 1 1 140px; }
}

/* ---------- received ---------- */
.file { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.file:first-child { border-top: 0; padding-top: 0; }
.file .ficon { width: 36px; height: 36px; border-radius: 10px; background: var(--raised); display: grid; place-items: center; color: var(--muted); }
.file .ftext { min-width: 0; }
.file .fname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .fsize { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- how it works ---------- */
.steps-card { padding: 4px 2px; }
.steps { list-style: none; counter-reset: s; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps li { counter-increment: s; background: rgba(18,30,55,.6); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--raised); color: var(--cyan); font-family: var(--display); font-size: .8rem; margin-bottom: 8px; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: .88rem; }
@media (max-width: 640px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; }
  .steps li::before { grid-row: span 2; margin: 0; }
}

/* ---------- help, log ---------- */
details.card summary { cursor: pointer; font-weight: 700; list-style-position: inside; }
details.help ol { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: .9rem; }
details.help li { margin-bottom: 8px; }
details.help b { color: var(--fg); }
details.log pre { margin: 12px 0 0; max-height: 260px; overflow: auto; font-family: var(--mono); font-size: .72rem; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- side: app promo + ads ---------- */
.promo { text-align: center; }
.promo-icon img { border-radius: 12px; display: block; margin: 0 auto 10px; }
.promo h3 { font-family: var(--display); font-size: 1rem; margin: 0 0 6px; }
.promo p { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.ad {
  display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 12px;
  background: repeating-linear-gradient(45deg, rgba(36,55,92,.16) 0 10px, transparent 10px 20px);
}
.ad span { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ad-side { height: 600px; }
.ad-phone { height: 100px; max-width: 728px; width: 100%; margin: 0 auto; }
@media (min-width: 901px) { .ad-phone { height: 90px; } }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 8px var(--pad) max(32px, env(safe-area-inset-bottom)); color: var(--muted); font-size: .84rem; }
.foot p { margin: 4px 0; }
.foot .credit { color: var(--dim); }
.foot .credit a { color: var(--muted); text-decoration: none; }

/* ---------- sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(6,11,23,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.sheet { position: relative; width: 100%; max-width: 400px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
@media (max-width: 520px) {
  .sheet-wrap { place-items: end center; padding: 0; }
  .sheet { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}
.sheet h3 { font-family: var(--display); font-size: 1.02rem; margin: 0 0 6px; }
.sheet p { margin: 0 0 12px; font-size: .9rem; }
.x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.qr { background: #fff; border-radius: 14px; padding: 12px; width: 220px; height: 220px; margin: 6px auto 12px; display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; display: block; }
.code { text-align: center; font-family: var(--mono); font-size: 2rem; font-weight: 600; letter-spacing: .25em; color: var(--cyan); }
#codeNote { text-align: center; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: .8rem; margin: 16px 0 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.join { display: flex; gap: 8px; }
.join input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font-size: 16px; font-family: var(--mono); letter-spacing: .1em; }
#nameInput { font-family: var(--body); letter-spacing: 0; }
.join input:focus { outline: none; border-color: var(--cyan); }
.error { color: var(--bad); font-size: .85rem; margin: 10px 0 0; }
.ask-from { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ask-text { min-width: 0; }
.ask-files { list-style: none; margin: 0 0 18px; padding: 0; max-height: 240px; overflow: auto; border-top: 1px solid var(--line); }
.ask-files li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.ask-files li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-files li span:last-child { color: var(--muted); font-family: var(--mono); font-size: .8rem; white-space: nowrap; }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 60; background: var(--raised); border: 1px solid var(--cyan); color: var(--fg);
  padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: .92rem; width: max-content; max-width: calc(100vw - 32px);
  box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: opacity .6s;
}
.toast.gone { opacity: 0; }

/* test tools (?test) */
.testbtns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.testbtns .btn { padding: 14px 18px; }

/* ================= livelier look ================= */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(60,216,247,.10), transparent 70%),
    radial-gradient(700px 400px at 0% 60%, rgba(42,111,224,.12), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(142,162,198,.07) 1px, transparent 0) 0 0 / 22px 22px;
}
.getapp { display: inline-flex; align-items: center; gap: 8px; }
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(245,185,65,.15); }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: center; }
.intro-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(42,111,224,.35)); }
.intro-art .beam { animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -15; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips span {
  font-size: .74rem; font-weight: 700; color: var(--fg); padding: 4px 10px; border-radius: 999px;
  background: rgba(60,216,247,.08); border: 1px solid rgba(60,216,247,.25);
}
@media (max-width: 640px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro-art { order: -1; max-width: 230px; margin: 0 auto -6px; }
}

.card {
  background: linear-gradient(180deg, rgba(26,42,74,.65), rgba(18,30,55,.92));
  border: 1px solid rgba(60,216,247,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 14px 40px rgba(0,0,0,.25);
}
.card h2, .steps-card h2 { display: flex; align-items: center; gap: 8px; }
.h-ic { font-size: 1rem; line-height: 1; }

.btn { background: linear-gradient(135deg, #2A6FE0, #2C8BEA); box-shadow: 0 6px 18px rgba(42,111,224,.35); }
.btn.ghost, .btn.danger { box-shadow: none; }
.btn:active { transform: translateY(1px); }

/* device colours by platform */
.t-iPhone, .t-iPad { background: linear-gradient(135deg, #3CD8F7, #1B6FD1); }
.t-Android { background: linear-gradient(135deg, #3DDC97, #148A63); }
.t-Mac { background: linear-gradient(135deg, #A78BFA, #5B3FD0); }
.t-Windows { background: linear-gradient(135deg, #4FA3FF, #1F4FD8); }
.t-Linux, .t-ChromeOS, .t-Device { background: linear-gradient(135deg, #F5B941, #C9781B); }
.peer { background: linear-gradient(180deg, rgba(36,55,92,.55), rgba(26,42,74,.55)); }
.peer:hover, .peer.drop { box-shadow: 0 10px 30px rgba(60,216,247,.15); }

.me { background: linear-gradient(90deg, rgba(60,216,247,.08), rgba(18,30,55,.6)); border-color: rgba(60,216,247,.2); }
.steps li { background: linear-gradient(180deg, rgba(26,42,74,.6), rgba(18,30,55,.6)); border-color: rgba(60,216,247,.14); }

.promo { position: relative; }
.soon {
  display: inline-block; font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #2A1C00; background: var(--warn); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px;
}
.foot .links { margin-bottom: 6px; }
.foot .links a { color: var(--muted); }

/* ================= cookie message ================= */
html.consent-open, html.consent-open body { overflow: hidden; }
.consent { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(6,11,23,.78); backdrop-filter: blur(8px); }
.consent-box {
  width: 100%; max-width: 420px; text-align: center; padding: 26px 22px 18px;
  background: linear-gradient(180deg, #1A2A4A, #121E37); border: 1px solid rgba(60,216,247,.3); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.consent-art img { border-radius: 12px; display: block; margin: 0 auto 12px; }
.consent-box h2 { font-family: var(--display); font-size: 1.1rem; margin: 0 0 8px; }
.consent-box p { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.consent-yes { width: 100%; min-height: 50px; font-size: 1rem; }
.consent-no { display: block; margin: 12px auto 4px; background: none; border: 0; color: var(--muted); font-size: .85rem; cursor: pointer; padding: 6px; }
.consent-more { display: inline-block; font-size: .78rem; color: var(--dim); margin-top: 2px; }
.consent.strip { inset: auto 0 0 0; background: none; backdrop-filter: none; padding: 0; }
.consent.strip .consent-box { max-width: none; border-radius: 18px 18px 0 0; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.consent.strip .consent-art { display: none; }

/* ================= privacy page ================= */
.docmain { max-width: 760px; margin: 0 auto; padding: 8px var(--pad) 32px; }
.docmain h1 { font-family: var(--display); font-size: clamp(1.5rem, 5vw, 2.1rem); margin: 14px 0 10px; }
.docmain h2 { font-family: var(--display); font-size: 1.02rem; margin: 28px 0 8px; }
.docmain p, .docmain li { color: #C9D6EE; font-size: .96rem; }
.docmain ul { padding-left: 20px; }
.docmain li { margin-bottom: 6px; }
.docmain b { color: var(--fg); }
.docmain .lead { font-size: 1.05rem; color: var(--fg); }
.docmain .meta { color: var(--dim); font-size: .82rem; }
.short { background: linear-gradient(90deg, rgba(60,216,247,.10), rgba(18,30,55,.6)); border: 1px solid rgba(60,216,247,.25); border-left: 3px solid var(--cyan); border-radius: 0 14px 14px 0; padding: 14px 16px; color: #C9D6EE; font-size: .95rem; margin: 18px 0 8px; }

/* ================= readability + sections ================= */
:root {
  --text: #C3D1EA;      /* explanations: softer than titles, still high contrast */
  --muted: #9FB2D3;     /* small print */
  --c-cyan: #3CD8F7; --c-blue: #5C9BFF; --c-green: #3DDC97; --c-amber: #F5B941;
}
body { color: var(--text); }
.intro h1, .card h2, .steps-card h2, .me-name, .peer .name, .xfer .title, .file .fname, .ask-text b, .sheet h3, .docmain h1 { color: var(--fg); }
.intro p, .steps span, details.help ol, .empty p { color: var(--text); font-size: 1rem; }
.main { gap: 22px; }

/* each section has its own colour: top edge, title, tint */
.sec-cyan { --accent: var(--c-cyan); }
.sec-blue { --accent: var(--c-blue); }
.sec-green { --accent: var(--c-green); }
.sec-amber { --accent: var(--c-amber); }
.card[class*="sec-"] {
  border-top: 3px solid var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, #16233F), #121E37 70%);
  scroll-margin-top: 70px;
}
.card[class*="sec-"] h2, .steps-card[class*="sec-"] h2 { color: var(--accent); font-size: 1.05rem; }
.steps-card { scroll-margin-top: 70px; }
.steps li::before { color: var(--accent, var(--c-amber)); background: color-mix(in srgb, var(--c-amber) 16%, #1A2A4A); }
.steps b { color: var(--c-amber); margin-bottom: 2px; }
details.help { scroll-margin-top: 70px; }
details.help summary { color: var(--fg); font-size: 1.02rem; }
details.help b { color: var(--fg); }
.xfer .state { font-weight: 700; }
.xfer .state:not(.ok):not(.bad) { color: var(--c-cyan); }
.peer .where { color: var(--muted); font-size: .78rem; }
.label { color: var(--muted); }

/* sticky section bar (phones and narrow windows) */
.secnav { display: none; }
@media (max-width: 900px) {
  .secnav {
    display: flex; gap: 6px; position: sticky; top: 0; z-index: 40; overflow-x: auto;
    padding: 8px max(var(--pad), env(safe-area-inset-left)); margin-bottom: 4px;
    background: rgba(11,20,40,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }
  .secnav::-webkit-scrollbar { display: none; }
  .secnav a {
    flex: 1 0 auto; text-align: center; text-decoration: none; color: var(--text); font-weight: 700; font-size: .88rem;
    padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  }
  .secnav a.on { color: #06101F; background: var(--c-cyan); border-color: var(--c-cyan); }
  .secnav a[data-sec="transfersCard"].on { background: var(--c-blue); border-color: var(--c-blue); }
  .secnav a[data-sec="receivedCard"].on { background: var(--c-green); border-color: var(--c-green); }
  .secnav a[data-sec="help"].on { background: var(--c-amber); border-color: var(--c-amber); }
  .secnav b { font-size: .72rem; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c-amber); color: #2A1C00; display: inline-grid; place-items: center; }
}

/* ================= warmer text: sand instead of bright white ================= */
:root {
  --fg: #EADCBC;        /* titles, names, questions: warm sand */
  --text: #AEBCD6;      /* explanations: calm blue-grey, easy on the eyes */
  --muted: #8FA2C4;
}
.intro h1 { color: var(--fg); }
.intro h1 span { color: var(--c-cyan); }
details.help summary, details.help b, .steps b { color: var(--fg); }
.steps b { color: var(--c-amber); }
.empty .big, .peer .name, .me-name, .xfer .title, .file .fname { color: var(--fg); }
.chips span { color: var(--fg); }
.getapp, .btn.ghost { color: var(--fg); }
.docmain p, .docmain li { color: var(--text); }
.docmain .lead, .docmain b, .docmain h1, .docmain h2 { color: var(--fg); }
.short { color: var(--text); }
.consent-box h2 { color: var(--fg); }
.consent-box p { color: var(--text); }

/* headline: one calm colour, reads as one sentence */
.intro h1 { color: var(--fg); font-weight: 600; letter-spacing: -.015em; }
.intro h1 span { color: inherit; display: inline; }

/* ================= ad slots: real ad sizes ================= */
.ad-side, .ad-phone { display: none; }
.ad-banner { width: 728px; max-width: 100%; height: 90px; margin: 0 auto; }
.ad-rect { width: 300px; max-width: 100%; height: 250px; margin: 0 auto; }
.side .ad-rect + .ad-rect { margin-top: 8px; }
.phone-only { display: none; }
@media (max-width: 900px) {
  .side .ad-rect { display: none; }           /* the side column moves to the bottom on phones */
  .phone-only { display: grid; }
  .ad-banner { width: 320px; height: 100px; }
}

/* ads switched off on this server */
html.no-ads .ad, html.no-ads [data-ad-choices], html.no-ads .ad-choices-sep { display: none !important; }
.no-ads-only { display: none; }
html.no-ads .no-ads-only { display: block; }
html.no-ads .ads-only { display: none; }

/* ad frames */
@media (max-width: 900px) { .ad-banner { height: 50px; } }
.ad.filled { border: 0; background: none; height: auto; width: auto; }
.ad.filled iframe { display: block; border: 0; margin: 0 auto; max-width: 100%; }
html.ads-declined .ad { display: none !important; }
html.no-consent [data-ad-choices], html.no-consent .ad-choices-sep { display: none !important; }
