/* Wire Goose, the site. The colours are the app's: every value below is a
   token of app/lib/ui/wire_theme.dart or packages/wiregoose_map/lib/src/
   map_theme.dart, under the same name. Dark is the default, light follows
   the system, as the app does. */
:root {
  --surface: #111D2A; --surface-toolbar: #0F1A26; --surface-raised: #1B2836;
  --control-fill: #16222F; --well-fill: #0B1520; --segment-on: #2A3D52; --tile-fill: #223246;
  --selection-fill: #17283A; --row-selected: #243850; --hover-overlay: rgba(255, 255, 255, 0.08);
  --warn-surface: #3A2A1A; --notice-surface: #16323A; --notice-text: #CDE7E4;
  --border: #1F2D3C; --divider: #1A2837; --control-border: #2A3B4E; --chip-border: #3A4C60; --focus-ring: #4E7CA8;
  --text-strong: #F2F6FA; --text-primary: #E7EEF5; --text-dim: #9FB0C2; --text-faint: #7F92A7; --text-on-fill: #DDEBF7;
  --accent-out: #F4A93B; --accent-in: #3CC6BC;
  --home-fill: #21422F; --home-line: #7FCF84; --external-fill: #42232C; --external-line: #D96F86;
  --local-fill: #23405F; --local-line: #7FB2E8; --mixed-fill: #4A2C14; --mixed-line: #F0843C;
  --blocked: #FF5A5A; --split-us: #D96F86; --split-other: #8E4E5C; --split-unmapped: #2F3D4E;
  --map-ocean: #0B1520; --map-land: #18273A; --map-land-home: #23405F; --map-border: #2A3B4E;
  --map-arc: rgba(78, 96, 117, 0.4); --map-arc-bright: #CFE0F0; --map-node-home: #7FCF84; --map-node-foreign: #D96F86;
  --map-overlay-fill: rgba(17, 29, 42, 0.8); --map-overlay-border: #3A4C60; --map-overlay-text: #E7EEF5; --map-overlay-text-dim: #9FB0C2;
  --lights-red: #FF5F57; --lights-yellow: #FEBC2E; --lights-green: #28C840;
}
@media (prefers-color-scheme: light) {
  :root {
    --surface: #F4F7FB; --surface-toolbar: #E9EFF5; --surface-raised: #E2EAF2;
    --control-fill: #FFFFFF; --well-fill: #D3DDE8; --segment-on: #FFFFFF; --tile-fill: #D6E1EC;
    --selection-fill: #DBE7F5; --row-selected: #C6DAEF; --hover-overlay: rgba(11, 23, 39, 0.05);
    --warn-surface: #FBECD4; --notice-surface: #D9F0ED; --notice-text: #0A4A46;
    --border: #DAE2EA; --divider: #E3E9F0; --control-border: #C7D2DE; --chip-border: #AFBDCC; --focus-ring: #4A7FBF;
    --text-strong: #0B1727; --text-primary: #16263A; --text-dim: #4C607A; --text-faint: #5A6D82; --text-on-fill: #0E3560;
    --accent-out: #9E5C0A; --accent-in: #0A6F69;
    --home-fill: #CDEBD8; --home-line: #226B3C; --external-fill: #F5D5DC; --external-line: #9E2540;
    --local-fill: #CBDFF4; --local-line: #1F5FA8; --mixed-fill: #FADCC8; --mixed-line: #B04A10;
    --blocked: #C0271F; --split-us: #9E2540; --split-other: #C4778A; --split-unmapped: #BFC9D5;
    --map-ocean: #E4EDF5; --map-land: #FAFCFD; --map-land-home: #B4D0EE; --map-border: #DCE4EC;
    --map-arc: rgba(81, 105, 132, 0.4); --map-arc-bright: #1B3450; --map-node-home: #226B3C; --map-node-foreign: #9E2540;
    --map-overlay-fill: rgba(244, 247, 251, 0.9); --map-overlay-border: #AFBDCC; --map-overlay-text: #16263A; --map-overlay-text-dim: #4C607A;
  }
}

/* ---- page ---- */
html, body { margin: 0; background: var(--surface-toolbar); color: var(--text-primary);
  font: 16px/1.5 -apple-system, system-ui, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--text-strong); }
button, input { font-family: inherit; }
.page { max-width: 1480px; margin: 0 auto; padding: 0 20px 60px; }
.article { max-width: 44rem; margin: 0 auto; padding: 8px 20px 64px; }
.article h1 { font-size: 28px; letter-spacing: -.02em; margin: 24px 0 4px; color: var(--text-strong); }
.article h2 { font-size: 19px; margin: 32px 0 6px; color: var(--text-strong); }
.article h3 { font-size: 16px; margin: 22px 0 4px; color: var(--text-strong); }
.article p, .article li { line-height: 1.65; }
.article .meta { color: var(--text-dim); margin: 0 0 8px; }
.article .note { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; color: var(--text-dim); font-size: 14px; }
.article ul { padding-left: 20px; } .article li { margin: 4px 0; }
.article code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: var(--well-fill); padding: 1px 5px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---- header ---- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 50px; line-height: 1; font-weight: 600; letter-spacing: -.01em; color: var(--text-strong); }
/* The original head, sized in em so it tracks the name at any size: 64 px
   beside 50 px type, which puts the crown level with the capitals' tops. */
.brand img { height: 1.28em; width: auto; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav > a:not(.btn) { color: var(--text-dim); text-decoration: none; font-size: 15px; padding: 0 6px; }
.site-nav > a:not(.btn):hover { color: var(--text-strong); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--text-strong); color: var(--surface); }
.btn-primary:not(.is-disabled):hover { background: var(--text-primary); }
.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--chip-border); }
.btn-secondary:not(.is-disabled):hover { background: var(--hover-overlay); }
/* Switched off until launch: no href, so nothing to follow or focus. The
   target waits in data-href; putting it back into href turns it on. */
.btn.is-disabled { opacity: .45; cursor: not-allowed; }
.btn-download { height: 46px; padding: 0 22px; font-size: 16px; }
.btn-download svg { width: 18px; height: 18px; }
.download-note { margin: 0 0 8px; text-align: right; color: var(--text-dim); font-size: 13px; }

/* ---- hero, the list, the footer ---- */
.hero { padding: 36px 0 12px; max-width: 820px; }
.hero h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: var(--text-strong); }
.hero p { margin: 0; font-size: 17px; color: var(--text-dim); }
.things { margin: 28px 0 0; padding: 0 0 0 20px; max-width: 760px; }
.things li { margin: 6px 0; color: var(--text-primary); }
.board { margin-top: 34px; }
.board h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; color: var(--text-dim); }
.board .sample { font-size: 13px; color: var(--text-faint); margin: 0 0 12px; }
.frame { position: relative; overflow: hidden; }
.scale { transform-origin: top left; position: absolute; left: 0; top: 0; }
/* The footer is as tall as its text, as it was before the goose arrived. The
   goose is taken out of the flow and made exactly that tall, so it can never
   make the footer bigger: one line of links on most pages, two on the home
   page, and the goose follows. The right padding keeps text from its feet. */
.site-footer { position: relative; margin-top: 48px; padding: 18px 64px 0 0; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 14px; }
.footer-text { min-width: 0; }
.footer-goose { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; display: block; }
.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--text-dim); }
@media (max-width: 720px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-nav { justify-content: flex-start; }
  .download-note { text-align: left; }
  .hero h1 { font-size: 26px; }
  /* 50 px of name and logo would overrun a phone; the same lockup, smaller. */
  .brand { font-size: 36px; }
}

/* ---- the window: 1440 × 900, the app's own numbers ---- */
.win { display: flex; flex-direction: column; width: 1440px; height: 900px; box-sizing: border-box; overflow: hidden;
  border-radius: 12px; background: var(--surface); color: var(--text-primary); font-size: 13px; line-height: 1.3; }
.win-toolbar { display: flex; align-items: center; height: 52px; flex-shrink: 0; box-sizing: border-box; padding: 0 16px 0 18px;
  background: var(--surface-toolbar); border-bottom: 1px solid var(--border); gap: 14px; }
.win-lights { display: flex; gap: 8px; }
.win-lights span { width: 12px; height: 12px; border-radius: 50%; }
.l-red { background: var(--lights-red); } .l-yellow { background: var(--lights-yellow); } .l-green { background: var(--lights-green); }
.win-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-strong); width: 240px; }
.win-switch { display: flex; gap: 0; padding: 2px; border-radius: 8px; background: var(--well-fill); border: 1px solid var(--control-border); margin: 0 auto; }
.win-switch button { height: 26px; padding: 0 16px; border: 0; border-radius: 6px; background: transparent; color: var(--text-dim);
  font-size: 13px; font-weight: 500; cursor: pointer; }
.win-switch button[aria-pressed="true"] { background: var(--segment-on); color: var(--text-strong); }
.win-tools { display: flex; align-items: center; gap: 10px; width: 420px; justify-content: flex-end; }
.win-search { display: flex; align-items: center; gap: 8px; flex-grow: 1; height: 28px; padding: 0 10px; box-sizing: border-box;
  border-radius: 8px; border: 1px solid var(--control-border); background: var(--control-fill); color: var(--text-faint); font-size: 12px; }
.win-search svg { width: 14px; height: 14px; }
.win-tool { height: 28px; padding: 0 12px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--control-fill);
  color: var(--text-primary); font-size: 12px; font-weight: 500; cursor: pointer; }
.win-icon { width: 30px; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.win-icon svg { width: 16px; height: 16px; }
.win-body { display: flex; height: 716px; flex-shrink: 0; }

.win-side { display: flex; flex-direction: column; width: 336px; height: 716px; flex-shrink: 0; box-sizing: border-box;
  border-right: 1px solid var(--border); overflow: hidden; }
.win-side-head { display: flex; align-items: center; gap: 10px; height: 26px; padding: 0 16px; flex-shrink: 0;
  border-bottom: 1px solid var(--divider); color: var(--text-faint); font-size: 12px; }
.win-side-head .grow { flex-grow: 1; } .col-now { width: 46px; text-align: center; } .col-sent { width: 80px; text-align: center; }
.win-rows { display: flex; flex-direction: column; overflow: hidden; }
.win-row { display: flex; align-items: center; gap: 10px; height: 44px; flex-shrink: 0; padding: 0 16px; box-sizing: border-box;
  border-bottom: 1px solid var(--divider); }
.tile { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px;
  background: var(--tile-fill); color: var(--text-on-fill); font-size: 13px; font-weight: 600; }
.win-row .name { flex-grow: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { flex-shrink: 0; }
.pill { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 80px; height: 24px; box-sizing: border-box;
  border-radius: 999px; border: 1px solid; font-size: 12px; font-weight: 600; }
.pill.home { background: var(--home-fill); border-color: var(--home-line); color: var(--home-line); }
.pill.external { background: var(--external-fill); border-color: var(--external-line); color: var(--external-line); }
.pill.local { background: var(--local-fill); border-color: var(--local-line); color: var(--local-line); }
.pill.mixed { background: var(--mixed-fill); border-color: var(--mixed-line); color: var(--mixed-line); }

.win-map { position: relative; width: 784px; height: 716px; flex-shrink: 0; overflow: hidden; background: var(--map-ocean); }
.pulse { position: absolute; left: 0; top: 0; border-radius: 50%; offset-anchor: 50% 50%; offset-rotate: 0deg;
  animation-name: travel; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; offset-distance: 55%; } }
.map-caption { position: absolute; left: 14px; top: 14px; font-size: 13px; font-weight: 600; color: var(--map-overlay-text); }
.map-zoom { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden;
  background: var(--map-overlay-fill); border: 1px solid var(--map-overlay-border); }
.map-zoom button { width: 30px; height: 30px; border: 0; background: transparent; color: var(--map-overlay-text-dim); font-size: 16px; cursor: pointer; }
.map-zoom button + button { border-top: 1px solid var(--map-overlay-border); }
.map-buttons { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.map-btn { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--map-overlay-border);
  background: var(--map-overlay-fill); color: var(--map-overlay-text); font-size: 12px; font-weight: 600; cursor: pointer; }
.lock { width: 13px; height: 13px; color: var(--text-faint); }
.map-legend { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 4px; padding: 8px; max-width: 260px;
  border-radius: 8px; background: var(--map-overlay-fill); color: var(--map-overlay-text-dim); font-size: 11px; }
.map-legend .sw { display: flex; align-items: center; gap: 6px; }
.map-legend .sw i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.home-band { display: inline-block; padding: 3px 6px; border-radius: 3px; background: var(--map-land-home); color: var(--map-overlay-text); }

.win-summary { display: flex; flex-direction: column; gap: 10px; width: 320px; height: 716px; flex-shrink: 0; box-sizing: border-box;
  padding: 12px 12px 16px; border-left: 1px solid var(--border); overflow: hidden; }
.card { padding: 10px 12px; border-radius: 8px; background: var(--surface-raised); }
.card h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-strong); }
.card-head { display: flex; align-items: center; justify-content: space-between; }
.unit { display: flex; gap: 1px; padding: 1px; border-radius: 6px; background: var(--well-fill); border: 1px solid var(--control-border); font-size: 10.5px; }
.unit b, .unit i { padding: 1px 7px; border-radius: 5px; font-style: normal; font-weight: 500; color: var(--text-dim); }
.unit b { background: var(--segment-on); color: var(--text-strong); }
.card .sub { margin: 2px 0 10px; font-size: 11px; color: var(--text-faint); }
.card .big { margin: 0 0 10px; font-size: 22px; font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.rates { display: flex; gap: 8px; margin-top: 8px; }
.rate { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 6px; background: var(--tile-fill); }
.rate span { font-size: 11px; color: var(--text-dim); } .rate strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--well-fill); margin-bottom: 10px; }
.split i { display: block; height: 100%; }
.legend-row { display: flex; align-items: center; gap: 7px; height: 20px; font-size: 11.5px; color: var(--text-dim); }
.legend-row i { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; } .legend-row span { flex-grow: 1; } .legend-row b { font-weight: 500; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.op-row { display: flex; align-items: center; gap: 8px; height: 22px; font-size: 12px; }
.op-row .op-name { flex-grow: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc { width: 30px; text-align: center; border-radius: 5px; font-size: 10px; font-weight: 600; padding: 1px 0; }
.cc.external { background: var(--external-fill); color: var(--external-line); } .cc.home { background: var(--home-fill); color: var(--home-line); }
.op-row b { width: 58px; text-align: right; font-weight: 500; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.fineprint { margin: 4px 4px 0; font-size: 10.5px; line-height: 1.4; color: var(--text-faint); }

.win-strip { display: flex; align-items: center; height: 132px; flex-shrink: 0; box-sizing: border-box; border-top: 1px solid var(--border); }
.strip-left { width: 336px; flex-shrink: 0; box-sizing: border-box; padding: 0 18px; }
.strip-left h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.strip-left p { margin: 0; font-size: 11px; line-height: 1.3; color: var(--text-faint); }
.strip-left .totals { margin-top: 8px; display: flex; gap: 14px; color: var(--text-dim); } .totals b { font-weight: 600; }
.strip-bars { position: relative; flex-grow: 1; display: flex; align-items: flex-end; gap: 6px; height: 96px; padding: 0 18px; box-sizing: border-box; }
.strip-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.strip-bar.lit::before { content: ""; display: block; height: var(--o); background: var(--accent-out); border-radius: 2px 2px 0 0; }
.strip-bar.lit::after { content: ""; display: block; height: var(--i); background: var(--accent-in); border-radius: 0 0 2px 2px; margin-top: 2px; }
.strip-band { position: absolute; left: 18px; top: 0; bottom: 0; width: calc(100% - 36px - 3 * (100% - 36px - 29 * 6px) / 30 - 18px);
  display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; background: var(--well-fill);
  color: var(--text-faint); font-size: 11.5px; }
.strip-right { width: 150px; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding: 0 18px 0 0; box-sizing: border-box; }
.live { display: inline-flex; align-items: center; height: 28px; padding: 0 13px; border-radius: 14px; border: 1px solid var(--control-border);
  background: var(--segment-on); font-size: 12px; font-weight: 600; color: var(--text-strong); }
.strip-right p { margin: 0; font-size: 11px; color: var(--text-faint); }

/* ---- the menu bar board: 440 × 430 ---- */
.mb { display: flex; flex-direction: column; width: 440px; height: 430px; box-sizing: border-box; background: var(--surface-toolbar); color: var(--text-primary); font-size: 13px; }
.mb-bar-row { display: flex; justify-content: flex-end; align-items: center; gap: 12px; height: 30px; padding: 0 12px; flex-shrink: 0; background: var(--surface-raised); }
.mb-clock { font-size: 12px; color: var(--text-dim); }
.status-item { display: flex; align-items: flex-end; gap: 2px; width: 38px; height: 18px; padding: 0 4px; box-sizing: border-box; border: 0; border-radius: 4px; background: var(--hover-overlay); cursor: pointer; }
.mb-bar { display: flex; flex-direction: column-reverse; width: 3px; height: 15px; }
.mb-bar::before { content: ""; height: var(--home); background: var(--home-line); }
.mb-bar::after { content: ""; height: var(--away); background: var(--external-line); }
.mb-panel { width: 320px; margin: 6px 12px 0 auto; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--control-border); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.mb-top { padding: 14px; border-bottom: 1px solid var(--border); }
.mb-head { display: flex; align-items: flex-start; justify-content: space-between; }
.mb-last { display: flex; flex-direction: column; gap: 1px; max-width: 240px; }
.mb-last span { font-size: 11px; color: var(--text-faint); }
.mb-last strong { font-size: 19px; font-weight: 600; }
.mb-last em { font-style: normal; font-size: 11px; color: var(--text-dim); }
.mb-gear { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.mb-gear svg { width: 14px; height: 14px; }
.mb-top p { margin: 10px 0; font-size: 12px; color: var(--text-dim); }
.mb-most { padding: 12px 14px 8px; border-bottom: 1px solid var(--border); }
.mb-most h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--text-dim); }
.mb-row { display: flex; align-items: center; gap: 10px; height: 36px; }
.mb-row .name { flex-grow: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-open { padding: 10px 14px; font-size: 12px; color: var(--text-dim); }

/* ---- the Pro page and the return page ---- */
.pro { max-width: 640px; padding: 36px 0 12px; }
.pro h1 { margin: 0 0 12px; font-size: 32px; line-height: 1.2; font-weight: 600; color: var(--text-strong); }
.pro-adds { font-size: 18px; margin: 0 0 6px; }
.pro-price { font-size: 22px; font-weight: 600; margin: 0 0 14px; color: var(--text-strong); }
.pro-how { color: var(--text-dim); margin: 0 0 24px; }
.checkout { min-height: 320px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); padding: 12px; box-sizing: border-box; }
.store-down { display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.keybox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.keybox code { flex: 1 1 320px; padding: 12px 14px; border-radius: 10px; background: var(--well-fill); color: var(--text-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; word-break: break-all; user-select: all; }

/* ---- support cards ---- */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 18px 0 22px; }
.card-link { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-primary); }
.card-link:hover { border-color: var(--chip-border); }
.card-link strong { color: var(--text-strong); font-size: 17px; }
.card-link span { color: var(--text-dim); font-size: 14px; }

/* ---- breadcrumbs ---- */
.crumbs { margin: 0 0 14px; font-size: 13px; color: var(--text-faint); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--text-faint); }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--text-strong); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text-dim); }
.article .crumbs { margin-top: 18px; }
