:root {
  /* Chart colours: two categorical series, chart chrome, and a five-step blue ramp for the map (light to dark = less to more). */
  --series-1: #2a78d6; --series-2: #eb6834; --grid: #e1e0d9; --axis: #c3c2b7;
  --seq-0: #ecebe6; --seq-1: #b7d3f6; --seq-2: #86b6ef; --seq-3: #5598e7; --seq-4: #2a78d6; --seq-5: #184f95;
  --bg: #f6f5f1; --card: #fff; --ink: #1c1b19; --mute: #6b6861; --line: #dedbd3;
  --accent: #0b6e4f; --accent-ink: #fff; --danger: #a8321f; --radius: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  /* Dark mode is its own steps of the same ramps: the map's near-zero shade recedes into the dark surface. */
  :root { --series-1: #3987e5; --series-2: #d95926; --grid: #2c2c2a; --axis: #383835;
    --seq-0: #2a2c28; --seq-1: #104281; --seq-2: #1c5cab; --seq-3: #2a78d6; --seq-4: #5598e7; --seq-5: #9ec5f4; }
  :root { --bg: #151614; --card: #1e201d; --ink: #ecebe6; --mute: #9b988f; --line: #33352f; --accent: #46c79a; --accent-ink: #08130f; --danger: #ef7d68; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; max-width: 980px; margin: 0 auto; }
nav.links { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: flex-end; }
.brand { font: 700 1.15rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand b { color: var(--accent); }
/* Some languages' link text is long: on a narrow screen the links and the language menu wrap under the logo. */
header.top { flex-wrap: wrap; row-gap: .6rem; }
.top-links { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
/* The language menu: a globe and the language's short name, with the real <select> laid invisibly over them. */
.lang { position: relative; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 8px; color: var(--mute); font-size: .88rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.lang:hover { color: var(--ink); }
.lang:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; font-size: 1rem; }
/* Set by lang-boot.js until the page is translated; shown regardless after 1.5 s in case a script fails. */
html.i18n-wait body { visibility: hidden; animation: i18n-reveal 0s 1.5s forwards; }
@keyframes i18n-reveal { to { visibility: visible; } }
main { max-width: 980px; margin: 0 auto; padding: 0 1.25rem 3rem; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -.03em; margin: 1.5rem 0 .5rem; }
h2 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
p.lead { color: var(--mute); max-width: 58ch; margin: 0 0 1.5rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin: 0 0 1rem; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 12rem; min-width: 0; }
input[type=text], input[type=password], input[type=number], input[type=search], input[type=datetime-local], textarea {
  font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; width: 100%;
}
textarea { min-height: 7rem; font: .9rem ui-monospace, Menlo, Consolas, monospace; }
.addr { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }
.addr input { border: 0; border-radius: 0; background: transparent; font-family: ui-monospace, Menlo, Consolas, monospace; }
.addr span { padding: .55rem .7rem; color: var(--mute); font-family: ui-monospace, Menlo, Consolas, monospace; border-left: 1px solid var(--line); white-space: nowrap; }
#domain { color: var(--accent); font-weight: 700; } /* the "@needs.email" on the create form, in the brand green like the logo's ".email" */
button { font: inherit; font-weight: 600; cursor: pointer; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: .55rem .9rem; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.danger { color: var(--danger); }
button.small { padding: .25rem .55rem; font-size: .85rem; font-weight: 500; }
button:disabled { opacity: .55; cursor: default; }
button.icon { flex: none; display: inline-flex; padding: .35rem; border-color: transparent; background: transparent; color: var(--mute); line-height: 0; }
button.icon:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
button.icon .i-done, button.icon.done .i-copy { display: none; }
button.icon.done { color: var(--accent); }
button.icon.done .i-done { display: inline; }
.addr-line { display: flex; align-items: center; gap: .35rem; }
.addr-line .mono { min-width: 0; }
.addr-line .mute { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label.check { display: flex; gap: .5rem; align-items: flex-start; margin: .8rem 0; color: var(--mute); font-size: .95rem; }
/* The agreement to the terms on the create form. Full-strength text, not muted: it has to be plain that this is agreeing to something. */
label.agree { display: flex; gap: .65rem; align-items: flex-start; margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .95rem; cursor: pointer; }
label.agree input { flex: none; width: 1.2rem; height: 1.2rem; margin: .12rem 0 0; accent-color: var(--accent); cursor: pointer; }
label.agree a { font-weight: 600; }
footer p.legal-links { margin: .6rem 0 0; }
/* The Terms of Service: a narrower column than the other pages, because long lines are hard to read. */
.legal { max-width: 46rem; }
.legal h2 { margin: 2rem 0 .5rem; scroll-margin-top: 1rem; }
.legal h3 { font-size: 1rem; margin: 1.2rem 0 .3rem; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin: .35rem 0; }
.legal .banner ul { margin: .4rem 0 0; }
.legal .banner > b:first-child { display: block; }
nav.toc { margin: 1.2rem 0 .5rem; }
nav.toc ol { columns: 2 17rem; column-gap: 2rem; margin: 0; padding-left: 1.6rem; }
nav.toc li { break-inside: avoid; margin: .2rem 0; }
select { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; }
fieldset.modes { border: 0; padding: 0; margin: .9rem 0 0; display: grid; gap: .4rem; }
fieldset.modes legend { font-weight: 600; padding: 0; margin-bottom: .3rem; }
fieldset.modes label { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; }
fieldset.modes label span { color: var(--mute); }
fieldset.modes label b { color: var(--ink); font-weight: 600; }
fieldset.modes input:disabled + span { opacity: .6; }
details.plan summary { cursor: pointer; font-weight: 600; }
.modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 1rem; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.modal[data-open="false"] { visibility: hidden; pointer-events: none; }
.modal-box { width: min(100%, 24rem); margin: 0; box-shadow: 0 10px 40px rgb(0 0 0 / .25); }
.modal-box h2 { margin-top: 0; }
#ts { min-height: 0; }
.msg { margin: .6rem 0 0; font-size: .95rem; min-height: 1.4em; }
.msg.err { color: var(--danger); }
.mute { color: var(--mute); font-size: .9rem; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
ul.plain { list-style: none; padding: 0; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.facts div { border-top: 2px solid var(--accent); padding-top: .5rem; font-size: .95rem; color: var(--mute); }
.facts b { display: block; color: var(--ink); }
.empty { text-align: center; color: var(--mute); padding: 2rem 1rem; }
iframe.ad { display: block; width: 100%; height: 110px; border: 0; margin: 0 0 1rem; }

/* Inbox page: the mailbox's own bar, then the mail list laid out like a mail client's. */
.acct { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .9rem 1.25rem; }
.acct-main { display: flex; align-items: center; gap: .9rem; flex: 1 1 18rem; min-width: 0; }
.acct-icon { flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.acct-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.addr-big { font-size: 1.25rem; font-weight: 700; }
.card.inbox { padding: 0; overflow: hidden; }
.inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.inbox-head h2 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.05rem; }
.count { min-width: 1.5rem; padding: 0 .45rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: .78rem; font-weight: 700; line-height: 1.5rem; text-align: center; }
.live { display: inline-flex; align-items: center; gap: .45rem; color: var(--mute); font-size: .85rem; }
.live .dot { display: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--axis); }
.live[data-state] .dot { display: block; }
.live[data-state=live] .dot { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.inbox > .banner { margin: .8rem 1.1rem; }
.inbox #locked { padding: 1rem 1.1rem 1.1rem; }
.mail-list li { border-bottom: 1px solid var(--line); }
.mail-list li:last-child { border-bottom: 0; }
.mail-list li:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.mail-list li.open { background: color-mix(in srgb, var(--accent) 9%, transparent); }
/* A row is a button reset to plain text, with the badge on the left spanning both lines. */
.mail-row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av from when" "av subj subj"; column-gap: .85rem; row-gap: .1rem; align-items: center; width: 100%; padding: .8rem 1.1rem; cursor: pointer; }
.mail-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mail-row .avatar { grid-area: av; }
.mail-row .from { grid-area: from; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row .subj { grid-area: subj; color: color-mix(in srgb, var(--ink) 78%, var(--mute)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row .when { grid-area: when; display: flex; align-items: center; gap: .4rem; color: var(--mute); font-size: .82rem; white-space: nowrap; }
.mail-row .clip { display: inline-flex; line-height: 0; }
/* The sender's badge. --h is a hue taken from the address; the same colour in light and dark mode keeps white text readable on it. */
.avatar { flex: none; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: hsl(var(--h, 160) 40% 38%); color: #fff; font-weight: 700; font-size: 1rem; user-select: none; }
.avatar.big { width: 2.75rem; height: 2.75rem; font-size: 1.1rem; }
.blank { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 2.75rem 1rem 3rem; text-align: center; color: var(--mute); }
.blank svg { margin-bottom: .4rem; opacity: .7; }
.blank b { color: var(--ink); font-size: 1.05rem; }

/* The open message: a lightbox over the page. The bar and the sender stay put while the message scrolls under them. */
dialog.lightbox { width: min(980px, calc(100vw - 2rem)); height: min(920px, calc(100dvh - 2rem)); max-width: none; max-height: none; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 24px 80px rgb(0 0 0 / .45); }
dialog.lightbox::backdrop { background: rgb(10 12 10 / .6); backdrop-filter: blur(3px); }
html.lb-open { overflow: hidden; padding-right: var(--bar, 0); }
.lb-panel { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.lb-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .6rem .8rem .6rem 1rem; border-bottom: 1px solid var(--line); }
.lb-step { display: flex; align-items: center; gap: .15rem; margin-right: auto; }
.lb-step .mute { margin-left: .4rem; white-space: nowrap; }
.lb-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.lb-head { flex: none; padding: 1rem 1.25rem .6rem; overflow-y: auto; max-height: 45%; }
.lb-head h2 { margin: 0 0 .8rem; font-size: 1.35rem; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.lb-from { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .8rem; }
.lb-from .grow { flex: 1 1 12rem; }
.lb-from time { flex: none; align-self: flex-start; padding-top: .15rem; font-size: .85rem; white-space: nowrap; }
.lb-name { font-weight: 600; overflow-wrap: anywhere; }
.lb-from .mono { font-size: .85rem; word-break: normal; overflow-wrap: anywhere; }
.lb-head > p { margin: .8rem 0 0; }
.lb-head pre.mail.headers { margin: .8rem 0 0; }
.lb-body { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; padding: .6rem 1.25rem 1.25rem; }
iframe.mail { flex: 1 1 0; min-height: 0; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.lb-body pre.mail { flex: 1 1 0; min-height: 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) {
  dialog.lightbox[open] { animation: lb-in .16s ease-out; }
  dialog.lightbox[open]::backdrop { animation: lb-fade .16s ease-out; }
}
@keyframes lb-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes lb-fade { from { opacity: 0; } }
@media (max-width: 479px) {
  .acct-icon { display: none; }
  .addr-big { font-size: 1.1rem; }
}
/* On a phone the message takes the whole screen. */
@media (max-width: 640px) {
  dialog.lightbox { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .lb-tools { order: 3; flex-basis: 100%; justify-content: flex-start; } /* the close button stays beside the arrows, the tools take the row below */
  .lb-head, .lb-body { padding-left: .9rem; padding-right: .9rem; }
  .lb-body { padding-bottom: .9rem; }
  .lb-from time { flex-basis: 100%; padding: 0 0 0 3.55rem; } /* under the sender's address, in line with it */
  .mail-row { padding: .7rem .9rem; column-gap: .7rem; }
  .avatar { width: 2.15rem; height: 2.15rem; font-size: .92rem; }
  .inbox-head { padding: .75rem .9rem; }
}
/* Inbox page: a centre column the width of every other page, with an ad space on each side of the inbox. */
main.wide { max-width: 1412px; }
main.wide .col { max-width: 940px; margin-left: auto; margin-right: auto; }
.rails { display: grid; grid-template-columns: 200px minmax(0, 940px) 200px; gap: 0 1rem; justify-content: center; align-items: start; }
.rails .mid { grid-column: 2; grid-row: 1; min-width: 0; }
.rails .left { grid-column: 1; grid-row: 1; }
.rails .right { grid-column: 3; grid-row: 1; }
iframe.ad.side { height: 280px; position: sticky; top: 1rem; }
/* Too narrow for an ad on each side: the two move under the inbox, side by side, then one above the other. */
@media (max-width: 1099px) {
  .rails { grid-template-columns: 1fr 1fr; max-width: 940px; margin: 0 auto; }
  .rails .mid { grid-column: 1 / -1; grid-row: auto; }
  .rails .left, .rails .right { grid-column: auto; grid-row: auto; }
  .rails iframe:only-of-type { grid-column: 1 / -1; } /* only one side space is switched on */
  iframe.ad.side { position: static; }
}
@media (max-width: 559px) {
  .rails { grid-template-columns: 1fr; }
}
pre.mail { white-space: pre-wrap; word-break: break-word; font: .92rem/1.5 ui-monospace, Menlo, Consolas, monospace; margin: 0; overflow: auto; }
pre.mail.headers { max-height: 16rem; margin: 0 0 .8rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: .82rem; }
.banner { border-left: 3px solid var(--accent); padding: .5rem .8rem; background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 0 8px 8px 0; font-size: .95rem; margin: 0 0 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .45rem .4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--mute); font-weight: 500; }
nav.tabs { display: flex; gap: .25rem; flex-wrap: wrap; margin: 1rem 0; }
nav.tabs button[aria-selected=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
footer { max-width: 980px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; color: var(--mute); font-size: .88rem; border-top: 1px solid var(--line); }
[hidden] { display: none !important; }
td.mono { word-break: normal; white-space: nowrap; }
details.lock { margin: .8rem 0 0; }
details.lock summary { cursor: pointer; color: var(--mute); font-size: .95rem; }
details.lock[open] summary { color: var(--ink); margin-bottom: .3rem; }
details.lock .row { margin-top: .5rem; }
.keys li { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.keys li span { flex: 1; min-width: 0; }
.status-lock { display: inline-flex; align-items: center; gap: .3rem; }
/* Admin portal */
select { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; width: 100%; }
input[type=date] { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; width: 100%; }
h2.first { margin-top: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .6rem .8rem; margin: .8rem 0; }
.fields label { display: flex; flex-direction: column; gap: .25rem; color: var(--mute); font-size: .88rem; }
details.quotas { margin: .4rem 0; }
details.quotas summary { cursor: pointer; font-weight: 600; }
.table-wrap { overflow-x: auto; }
table.mb td, table.mb th { white-space: nowrap; }
table.mb td:first-child, table.mb th:first-child { width: 1.8rem; }
button.sort { all: unset; cursor: pointer; color: var(--mute); }
button.sort:focus-visible { outline: 2px solid var(--accent); }
button.sort[data-dir=asc]::after { content: " \2191"; }
button.sort[data-dir=desc]::after { content: " \2193"; }
.bulk { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem .7rem; margin: .4rem 0 .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.bulk input[type=datetime-local] { width: 13rem; padding: .25rem .5rem; }
.tag { display: inline-block; font-size: .78rem; padding: 0 .4rem; border-radius: 999px; border: 1px solid var(--line); color: var(--mute); margin-left: .3rem; }
.tag.on { border-color: var(--accent); color: var(--accent); }
dialog#detail { width: min(860px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); }
dialog#detail::backdrop { background: rgb(0 0 0 / .45); }
dialog .dtop { position: sticky; top: -1.1rem; margin: -1.1rem -1.1rem 0; padding: 1.1rem 1.1rem .2rem; background: var(--card); border-bottom: 1px solid var(--line); z-index: 1; }
.dhead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dhead h2 { margin: 0; }
dialog .facts { margin: .8rem 0; }
dialog section { border-top: 1px solid var(--line); padding-top: .4rem; margin-top: 1rem; }
dialog section h3 { font-size: 1rem; margin: .4rem 0 .5rem; }
@media (max-width: 560px) { dialog#detail { padding: .8rem; } dialog .dtop { top: -.8rem; margin: -.8rem -.8rem 0; padding: .8rem .8rem .2rem; } .bulk input[type=datetime-local] { width: 100%; } }

/* Admin dashboard */
.dash-filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 1rem; }
.dash-filters [aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#dashBody { transition: opacity .15s; }
#dashBody.loading { opacity: .5; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; margin: 0 0 1rem; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; display: flex; flex-direction: column; gap: .1rem; }
.tile b { font-size: 1.6rem; line-height: 1.2; }
.tile span { color: var(--mute); font-size: .9rem; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 0 1rem; }
.card.chart h3 { margin: 0 0 .2rem; font-size: 1rem; }
.card.chart > p.mute { margin: 0 0 .4rem; font-size: .82rem; }
.card.chart .empty { padding: 3.5rem 1rem; }
.plot { position: relative; min-height: 190px; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .85rem; color: var(--mute); margin: .2rem 0 .3rem; }
.leg-key, .tip-key { display: inline-block; width: 14px; height: 2px; border-radius: 1px; vertical-align: middle; margin-right: .4rem; }
svg.lc { display: block; overflow: visible; }
svg.lc .grid { stroke: var(--grid); stroke-width: 1; }
svg.lc .axis { stroke: var(--axis); stroke-width: 1; }
svg.lc .tick { fill: var(--mute); font-size: 11px; font-variant-numeric: tabular-nums; }
svg.lc .endlabel { fill: var(--mute); font-size: 11.5px; }
svg.lc .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
svg.lc .hair { stroke: var(--mute); stroke-width: 1; }
svg.lc .dot { stroke: var(--card); stroke-width: 2; }
svg.lc .hit { cursor: crosshair; outline: none; }
svg.lc .hit:focus-visible { stroke: var(--accent); stroke-width: 2; }
.tip { position: absolute; pointer-events: none; z-index: 2; min-width: 9rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; font-size: .82rem; box-shadow: 0 4px 14px rgb(0 0 0 / .15); }
.tip-when { color: var(--mute); margin-bottom: .15rem; }
.tip-row { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.tip-row b { font-variant-numeric: tabular-nums; }
.tip-row span:last-child { color: var(--mute); }
details.as-table summary { cursor: pointer; color: var(--mute); font-size: .85rem; margin-top: .4rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.row.spread { justify-content: space-between; }
.map-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 760px) { .map-grid { grid-template-columns: 1fr; } }
.map-host { position: relative; }
svg.map { display: block; width: 100%; height: auto; }
svg.map .sea { fill: none; stroke: var(--line); stroke-width: 1; }
svg.map .land { stroke: var(--card); stroke-width: .6; }
svg.map .land:hover { stroke: var(--ink); stroke-width: 1.2; }
.map-legend { display: flex; align-items: center; gap: .3rem; margin-top: .4rem; font-size: .85rem; }
.swatch { display: inline-block; width: 22px; height: 12px; border-radius: 3px; }
.s0 { fill: var(--seq-0); background: var(--seq-0); } .s1 { fill: var(--seq-1); background: var(--seq-1); } .s2 { fill: var(--seq-2); background: var(--seq-2); }
.s3 { fill: var(--seq-3); background: var(--seq-3); } .s4 { fill: var(--seq-4); background: var(--seq-4); } .s5 { fill: var(--seq-5); background: var(--seq-5); }
table.mb .row { flex-wrap: nowrap; }
