/* Homebrew Studio - Pinballs Store brand (tokens and fonts from the Expo brand kit, local files only).
   One style for the whole site: dark by default (the brand), light when the system asks for it.
   The glass (16-segment display) stays dark in both: it is a display, not a page. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #050505; --bg-raise: #0d0b0b; --bg-raise-2: #161212; --line: #2b2424; --line-soft: #1c1717;
  --ink: #f2ece2; --ink-dim: #bdb3a4; --ink-mute: #958a7c;
  --accent: #e7524d; --accent-hot: #ff8f89; --accent-wash: rgba(231, 82, 77, 0.12);
  --btn: #c63b36; --btn-ink: #fff; --btn-hover: #ff8f89; --btn-hover-ink: #140303;
  --teal: #62f0dc; --teal-wash: rgba(98, 240, 220, 0.12);
  --ok: #62f0dc; --warn: #f4c26b; --bad: #ff7a75;
  --field: #0a0909; --focus: #ffd27a; --link: #ff8f89; --bad-ink: #1a0202;
  --top-bg: rgba(5, 5, 5, 0.93); --shadow: 0 16px 40px rgba(0, 0, 0, .6);
  --hero-glow: rgba(231, 82, 77, .16);
  --seg-on: #62f0dc; --seg-core: #b8fbf1; --seg-off: rgba(98, 240, 220, 0.10); --seg-glass: #040a0a;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f2ea; --bg-raise: #fffdf9; --bg-raise-2: #efe7da; --line: #d8cdbb; --line-soft: #e8dfd1;
    --ink: #1b1513; --ink-dim: #463c35; --ink-mute: #685d52;
    --accent: #b8322d; --accent-hot: #96241f; --accent-wash: rgba(184, 50, 45, 0.10);
    --btn: #b8322d; --btn-ink: #fff; --btn-hover: #8f211c; --btn-hover-ink: #fff;
    --teal: #0b6e62; --teal-wash: rgba(11, 110, 98, 0.10);
    --ok: #0b6e62; --warn: #8a5a00; --bad: #b3261e;
    --field: #fff; --focus: #1a5fb4; --link: #a3231f; --bad-ink: #fff;
    --top-bg: rgba(247, 242, 234, 0.94); --shadow: 0 14px 36px rgba(60, 40, 20, .16);
    --hero-glow: rgba(184, 50, 45, .10);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--font-body); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-wrap: break-word; }
#root { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--link); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mute { color: var(--ink-mute); }
.dim { color: var(--ink-dim); }
.small { font-size: 15px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85em; overflow-wrap: anywhere; }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: 0.01em; line-height: 1.05; margin: 0 0 12px; }
h1 { font-size: 54px; } h2 { font-size: 36px; } h3 { font-size: 25px; font-weight: 700; }
p { margin: 0 0 12px; }

/* ---------- skip link, top bar ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 10px; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding: 10px 24px;
  background: var(--top-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand b { font-family: var(--font-head); font-weight: 800; font-size: 27px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.brand b span { color: var(--accent); }
nav.tabs { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; min-width: 0; }
nav.tabs a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-dim); font-weight: 600; font-size: 16px; white-space: nowrap; }
nav.tabs a:hover { color: var(--ink); background: var(--bg-raise-2); }
nav.tabs a[aria-current="page"] { color: var(--bg); background: var(--ink); }
.topright { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg-raise-2);
  border: 1px solid var(--line); font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--ink); text-decoration: none; }
.pill .n { font-family: var(--font-head); font-size: 21px; font-weight: 800; color: var(--teal); }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs button { background: none; border: 0; padding: 6px 10px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-dim); min-width: 40px; min-height: 34px; }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.who { position: relative; }
.who > button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 600; font-size: 15px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 34px; }
.menu { position: absolute; right: 0; top: 44px; background: var(--bg-raise-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 230px; box-shadow: var(--shadow); z-index: 20; }
.menu .who-line { padding: 8px 12px; font-size: 14px; color: var(--ink-mute); }
.menu button, .menu a { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); text-decoration: none; font-size: 16px; }
.menu button:hover, .menu a:hover { background: var(--bg-raise); }
.banner { padding: 10px 24px; font-weight: 700; font-size: 15px; letter-spacing: .02em; text-align: center; }
.banner.bad { background: var(--bad); color: var(--bad-ink); }
.banner.draft { background: repeating-linear-gradient(135deg, #f4c26b 0 14px, #f0b44a 14px 28px); color: #241600; }
.tag.draft { background: #f4c26b; color: #241600; }

main { padding: 28px 24px 48px; width: 100%; max-width: 1240px; margin: 0 auto; flex: 1; }
main:focus { outline: none; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-width: 0; }
.card.hero { background: radial-gradient(ellipse 80% 120% at 0% 0%, var(--hero-glow), rgba(0,0,0,0) 60%), var(--bg-raise); }
.stack > * + * { margin-top: 22px; }
section { scroll-margin-top: 90px; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; cursor: pointer;
  padding: 12px 20px; font-weight: 700; font-size: 17px; background: var(--btn); color: var(--btn-ink); text-decoration: none; min-height: 44px; text-align: center; }
.btn:hover { background: var(--btn-hover); color: var(--btn-hover-ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sec { background: var(--bg-raise-2); color: var(--ink); border: 1px solid var(--line); }
.btn.sec:hover { border-color: var(--ink-mute); }
.btn.small { padding: 7px 12px; font-size: 15px; border-radius: 9px; min-height: 36px; }
.btn.big { padding: 15px 26px; font-size: 20px; }
.btn.wide { width: 100%; }
input[type=text], input[type=email], input[type=number], input:not([type]), textarea, select {
  width: 100%; background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 18px; color: var(--ink); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
input[aria-invalid=true] { border-color: var(--bad); }
label { display: block; font-weight: 600; font-size: 15px; color: var(--ink-dim); margin: 12px 0 6px; }
.err { color: var(--bad); font-weight: 600; }
.err:empty { display: none; }
.okmsg { color: var(--ok); font-weight: 600; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1 1 180px; width: auto; }
/* the admin's grant form: account, then credits and reason, then what it will do */
.gform { max-width: 820px; }
.gform .gcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 14px; }
.gform #ghelp { margin-top: 10px; }
.gprev { font-weight: 600; margin: 14px 0; }
.gprev.hint { color: var(--ink-mute); font-weight: 400; }
.gprev.bad { color: var(--bad); }
.gform .err, .gform .okmsg { margin: 12px 0 0; }
.gform .okmsg:empty { margin: 0; }
.spacer { flex: 1; }

/* ---------- landing ---------- */
.landing h1 { font-size: 64px; text-transform: none; max-width: 16ch; }
.landing .lead { font-size: 21px; color: var(--ink-dim); max-width: 46ch; }
.heroland { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; align-items: center; padding: 18px 0 8px; }
.heroland .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.shot { margin: 0; }
.shot .frame { display: block; overflow: hidden; border-radius: 12px; background: #06090a; border: 1px solid #1d2a28; aspect-ratio: 684 / 139; box-shadow: 0 0 0 5px #030303; }
.shot .frame img { display: block; width: 100%; height: auto; }
.shot .frame.capped img { margin-top: -3.51%; }
.shot figcaption { font-size: 15px; color: var(--ink-mute); margin-top: 10px; }
.steps4 { counter-reset: st; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps4 li { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: relative; }
.steps4 li::before { counter-increment: st; content: counter(st); font-family: var(--font-head); font-weight: 800; font-size: 34px; color: var(--accent); display: block; line-height: 1; margin-bottom: 8px; }
.steps4 b { display: block; font-size: 19px; margin-bottom: 4px; }
.need { list-style: none; padding: 0; margin: 0; }
.need li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line-soft); }
.need li::before { content: "✓"; position: absolute; left: 4px; top: 9px; color: var(--teal); font-weight: 800; }
.packs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 14px 0; }
.pack { background: var(--bg-raise-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.pack b { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1.1; }
.pack .price { font-size: 19px; font-weight: 700; color: var(--ink); }
details.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style-position: inside; }
details.faq p { color: var(--ink-dim); }
.section-title { margin-top: 44px; }

/* ---------- sign-in, waiting, plain pages ---------- */
.narrow { max-width: 640px; margin: 0 auto; }
.signin .box { margin-top: 10px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--ink-mute); margin: 26px 0 8px; font-size: 15px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.plainpage { max-width: 680px; margin: 0 auto; padding: 48px 24px; }
.plainpage h1 span { color: var(--accent); }
/* the private front page (until site.public_landing is on) */
.privatepage { margin-top: 6vh; text-align: center; }
.privatepage .card { padding: 44px 24px 40px; }
.privatepage img { display: block; width: 117px; height: auto; margin: 0 auto 18px; }
.privatepage h1 { text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.privatepage h1 span { color: var(--accent); }
.privatepage .kicker { margin-bottom: 26px; }
.statusbig { font-family: var(--font-head); font-size: 50px; font-weight: 800; line-height: 1.05; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 22px 24px 30px; color: var(--ink-mute); font-size: 15px; }
.foot .in { max-width: 1240px; margin: 0 auto; display: flex; gap: 10px 26px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--ink-dim); }
.foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }

/* ---------- numbers, tables, tags ---------- */
.bignum { font-family: var(--font-head); font-weight: 800; font-size: 76px; line-height: 1; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin-top: 14px; }
.stat { background: var(--bg-raise-2); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 800; overflow-wrap: anywhere; }
.stat span { font-size: 14px; color: var(--ink-mute); }
.tablewrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { text-align: left; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
td.num, th.num { text-align: right; white-space: nowrap; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--bg-raise-2); color: var(--ink-dim); white-space: nowrap; }
.tag.done, .tag.ok { background: var(--teal-wash); color: var(--ok); }
.tag.running, .tag.queued, .tag.claimed { background: rgba(244,194,107,.16); color: var(--warn); }
.tag.failed, .tag.cancelled, .tag.bad { background: rgba(255,107,102,.14); color: var(--bad); }
.dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: var(--ink-mute); margin-right: 8px; vertical-align: middle; }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.bad { background: var(--bad); }
.plus { color: var(--ok); font-weight: 700; }

/* ---------- glass (16-segment, PS16): always a dark display ---------- */
.ps16 { position: relative; display: block; padding: 1.2% 2%; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.045) 0%, rgba(255,255,255,0) 38%), radial-gradient(ellipse 120% 160% at 50% 50%, #08100f 0%, var(--seg-glass) 70%);
  box-shadow: inset 0 0 0 2px rgba(98,240,220,.06), inset 0 0 40px rgba(0,0,0,.9), 0 0 0 5px #030303; }
.ps16 svg { display: block; width: 100%; height: auto; overflow: visible; }
.ps16 .ps16-off polygon { fill: var(--seg-off); }
.ps16 .ps16-on polygon { fill: var(--seg-on); }
.ps16 .ps16-core polygon { fill: var(--seg-core); }
.ps16 + .ps16 { margin-top: 8px; }
.glassbox { background: #020202; border-radius: 14px; padding: 14px; border: 1px solid #241f1f; }
.glassbox .cap { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #a8bcb8; margin: 0 0 10px; }
.glassbox + .glassbox { margin-top: 12px; }

/* ---------- studio ---------- */
.studiopage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 22px; height: calc(100vh - 150px); min-height: 600px; }
.chat { display: flex; flex-direction: column; background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--r); min-height: 0; }
.chathead { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chathead h1 { font-size: 28px; margin: 0; }
.chat .log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 18px; font-size: 18px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--btn); color: #fff; border-bottom-right-radius: 6px; }
.msg.studio { align-self: flex-start; background: var(--bg-raise-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg .whois { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 4px; }
.msg .cost { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-mute); white-space: normal; }
.msg.sys { align-self: center; background: none; color: var(--ink-mute); font-size: 15px; padding: 4px; text-align: center; max-width: 100%; }
.typing { display: inline-flex; gap: 5px; padding: 4px 0; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); opacity: .3; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: 1; } }
.toolchip { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--teal); border: 1px solid var(--teal); border-radius: 999px; padding: 3px 12px; white-space: normal; }
.compose { border-top: 1px solid var(--line); padding: 14px; display: flex; gap: 12px; align-items: flex-end; }
.compose textarea { resize: none; height: 64px; font-size: 18px; flex: 1; }
.compose .btns { display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px 12px; }
.chips button { background: var(--bg-raise-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; font-size: 15px; color: var(--ink-dim); }
.chips button:hover { color: var(--ink); border-color: var(--accent); }
.costnote { padding: 0 14px 12px; font-size: 14px; color: var(--ink-mute); margin: 0; }
.studiopage .panel { display: flex; flex-direction: column; gap: 18px; min-height: 0; overflow-y: auto; }
.bar { height: 12px; border-radius: 999px; background: var(--bg-raise-2); overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--btn), var(--accent-hot)); transition: width .5s ease; }
.bar.ok > i { background: linear-gradient(90deg, #2bbfa9, #62f0dc); }
.preview img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; background: #000; }

/* ---------- machine, builds ---------- */
.kv { display: grid; grid-template-columns: minmax(90px, 160px) 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--ink-mute); } .kv dd { margin: 0; font-weight: 600; }
.buildcard { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.buildcard .facts p { margin: 0 0 8px; }
.textlines { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; background: var(--bg-raise-2); border-radius: 10px; padding: 10px 12px; margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- admin ---------- */
.switch { position: relative; display: inline-block; width: 64px; height: 36px; vertical-align: middle; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: .2s; }
.switch i::before { content: ""; position: absolute; width: 28px; height: 28px; left: 4px; top: 4px; border-radius: 50%; background: var(--ink); transition: .2s; }
.switch input:checked + i { background: var(--teal); }
.switch input:checked + i::before { transform: translateX(28px); background: var(--bg); }
.switch input:focus-visible + i { outline: 3px solid var(--focus); outline-offset: 2px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--bg-raise-2); border: 1px solid var(--line); padding: 12px 20px; border-radius: 12px; z-index: 60; font-weight: 600; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 1000px) {
  .studiopage { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .chat { height: 72vh; min-height: 460px; }
  .heroland { grid-template-columns: 1fr; }
  .buildcard { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  main { padding: 18px 14px 36px; }
  .top { padding: 8px 12px; gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .brand b { font-size: 21px; }
  nav.tabs { order: 3; flex-basis: 100%; }
  nav.tabs a { padding: 7px 11px; font-size: 15px; }
  .who > button { max-width: 120px; }
  h1 { font-size: 40px; } h2 { font-size: 30px; }
  .landing h1 { font-size: 42px; }
  .landing .lead { font-size: 18px; }
  .card { padding: 18px; }
  .bignum { font-size: 60px; }
  .statusbig { font-size: 38px; }
  .msg { max-width: 94%; font-size: 17px; }
  .compose { padding: 10px; gap: 8px; }
  .compose textarea { font-size: 17px; }
  .banner { padding: 8px 12px; }
  .foot { padding: 18px 14px 26px; }
  td, th { padding: 8px 6px; }
  .gform .gcols { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  /* signed in: the logo alone, so the balance, the language and the account fit on its row */
  .top.signed .brand b { display: none; }
  .pill { padding: 5px 10px; }
  .who > button { max-width: 96px; }
  .langs button { min-width: 36px; padding: 6px 8px; }
}
