@import url("tokens.css");
/* freeworker.org — marketing landing.
   Layout: full-width tinted/ink bands, each with a centered max-width inner
   wrapper; a product-shot hero, a feature grid, a 3-step "how it works", a
   guides showcase, and ink privacy + CTA bands.
   Palette from the product: navy ink, bright-blue accent, teal + amber. */
:root {
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  --radius: 16px;
  --maxw: 1080px;
  --readw: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 1.04rem; line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { position: relative; }
.band.tint { background: var(--surface-2); }
.band.ink { background: linear-gradient(170deg, var(--ink), var(--ink-2)); color: var(--ink-fg); }
.band.ink h2, .band.ink h3 { color: #fff; }
.band.ink a { color: #8fc2ff; }

/* ---- header ------------------------------------------------------------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--bg); }
.site-header .bar { display: flex; align-items: center; gap: 14px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 12px; border-radius: 9px; }
.site-header nav a:hover { color: var(--fg); background: var(--surface-2); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: .92rem; text-decoration: none; border-radius: 10px; padding: 10px 18px; border: 1px solid transparent; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, background .14s ease; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.lg { padding: 14px 26px; font-size: 1rem; }
.band.ink .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.band.ink .btn.ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.site-header nav .nav-cta { color: var(--accent); }
@media (max-width: 680px) { .site-header nav a.hide-sm { display: none; } }
/* Phone width: each link on one line, and fewer of them. */
.site-header nav a { white-space: nowrap; }
@media (max-width: 440px) { .site-header nav a.hide-xs { display: none; } }

/* ---- hero --------------------------------------------------------------- */
.hero { padding-block: clamp(48px, 9vw, 92px); overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.eyebrow { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin: 0 0 16px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.02; font-weight: 700; margin: 0 0 18px; }
.hero h1 .hl { color: #6fb4ff; }
.hero p.lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--ink-muted); margin: 0 0 28px; max-width: 46ch; }
.hero .c, .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin: 18px 0 0; font-size: .85rem; color: var(--ink-muted); }
.hero-visual { position: relative; }
.hero-visual .desktop { width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg); display: block; }
.hero-visual .phone { position: absolute; right: -6px; bottom: -22px; width: 29%; min-width: 108px; border-radius: 18px; border: 3px solid var(--ink-2); box-shadow: var(--shadow-lg); }
@media (max-width: 860px) {
  .hero .grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 8px auto 0; }
  .hero p.lead { max-width: none; }
}

/* ---- trust strip -------------------------------------------------------- */
.trust { border-top: 1px solid rgba(255,255,255,.08); }
.trust .row { display: flex; flex-wrap: wrap; gap: 10px 14px; padding-block: 18px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--ink-fg); padding: 7px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.04); }
.chip .d { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* ---- section scaffolding ----------------------------------------------- */
.section { padding-block: clamp(48px, 8vw, 84px); }
.section-intro { max-width: 640px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.section-intro .kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.section-intro h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 10px 0 12px; font-weight: 700; }
.section-intro p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---- feature grid ------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; background: var(--blue-bg); }
.feature h3 { font-size: 1.16rem; margin: 0 0 7px; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.55; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---- how it works ------------------------------------------------------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: st; }
.step3 { counter-increment: st; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.step3 .num { font-family: var(--font-display); font-weight: 700; font-size: 1rem; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: #fff; margin-bottom: 14px; }
.step3 .num::before { content: counter(st); }
.step3 h3 { font-size: 1.14rem; margin: 0 0 7px; }
.step3 p { margin: 0; color: var(--muted); font-size: .96rem; }
.step3 code { font-family: var(--font-mono); font-size: .84em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } }

/* ---- guides showcase ---------------------------------------------------- */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gcard { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: transform .14s ease, border-color .14s ease; min-width: 0; }
.gcard:hover { transform: translateY(-3px); border-color: var(--accent); }
.gcard .ic { font-size: 1.5rem; }
.gcard .k { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.gcard h3 { font-size: 1.08rem; margin: 2px 0 0; }
.gcard p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.center { text-align: center; margin-top: 30px; }

/* ---- privacy band ------------------------------------------------------- */
.privacy .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 52px); align-items: center; }
.privacy h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 14px; }
.privacy p { color: var(--ink-muted); margin: 0 0 14px; max-width: 54ch; }
.privacy ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.privacy li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-fg); font-size: .98rem; align-items: start; }
.privacy li .tick { color: var(--teal); font-weight: 700; }
@media (max-width: 760px) { .privacy .grid { grid-template-columns: 1fr; } }

/* ---- CTA ---------------------------------------------------------------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 0 0 12px; }
.cta p { color: var(--ink-muted); font-size: 1.1rem; margin: 0 0 26px; }

/* ---- footer ------------------------------------------------------------- */
footer.site { background: var(--ink); color: var(--ink-muted); padding-block: 44px 40px; border-top: 1px solid rgba(255,255,255,.08); }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer.site .brand { color: #fff; margin-bottom: 10px; }
footer.site p { margin: 0 0 6px; font-size: .9rem; max-width: 40ch; }
footer.site h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-fg); margin: 0 0 12px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site a { color: var(--ink-muted); text-decoration: none; font-size: .92rem; }
footer.site a:hover { color: #fff; }
footer.site .legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: var(--faint); }
footer.site code { font-family: var(--font-mono); color: var(--ink-fg); }
@media (max-width: 680px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .about { grid-column: 1 / -1; } }

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

/* ---- pricing ------------------------------------------------------------ */
.plan { max-width: 466px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; padding: 36px 30px 32px; box-shadow: var(--shadow-lg); position: relative; }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: 5px 15px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow); }
.plan .pname { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 7px; margin: 6px 0 2px; }
.price .amt { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.8rem, 9vw, 3.5rem); letter-spacing: -.03em; line-height: 1; }
.price .per { color: var(--muted); font-weight: 600; }
.plan .alt { margin: 2px 0 22px; color: var(--muted); font-size: .96rem; }
.plan .alt strong { color: var(--fg); }
.btn.full { display: flex; width: 100%; justify-content: center; }
.plan .fine { text-align: center; color: var(--faint); font-size: .82rem; margin: 11px 0 0; }
.plan-feats { list-style: none; padding: 22px 0 0; margin: 24px 0 0; display: grid; gap: 11px; border-top: 1px solid var(--line); }
.plan-feats li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .95rem; align-items: start; line-height: 1.45; }
.plan-feats li::before { content: "✓"; color: var(--teal); font-weight: 800; }
.teams-note { text-align: center; margin: 28px 0 0; color: var(--muted); font-size: .95rem; }

/* ---- system requirements ------------------------------------------------ */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.spec.hi { border-color: var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.spec .tier { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--teal); }
.spec.hi .tier { color: var(--accent); }
.spec .pin { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-size: .62rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; box-shadow: var(--shadow); }
.spec .ram { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: 2rem; line-height: 1.05; margin: 8px 0 2px; }
.spec .ram small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.spec .model { margin: 2px 0 14px; font-size: .9rem; color: var(--muted); }
.spec .model code { font-family: var(--font-mono); font-size: .84em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--fg); }
.spec ul { list-style: none; padding: 16px 0 0; margin: 14px 0 0; display: grid; gap: 9px; border-top: 1px solid var(--line); }
.spec li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; font-size: .9rem; color: var(--muted); line-height: 1.5; align-items: start; }
.spec li::before { content: "·"; color: var(--teal); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.spec-notes { max-width: 880px; margin: 28px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.spec-notes p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; padding-left: 20px; position: relative; }
.spec-notes p::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.spec-notes code { font-family: var(--font-mono); font-size: .85em; }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr; } .spec-notes { grid-template-columns: 1fr; } }

/* Privacy comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 560px; background: var(--surface); }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-size: 1.02rem; border-bottom: 2px solid var(--line-strong); }
.compare thead th.us { color: var(--accent); }
.compare thead th.them { color: var(--faint); font-weight: 600; }
.compare td:first-child, .compare th:first-child { color: var(--muted); font-weight: 600; width: 34%; }
.compare td.us { background: var(--blue-bg); color: var(--fg); font-weight: 600; }
.compare th.us { background: var(--blue-bg); }
.compare td.them { color: var(--faint); }
.compare .yes { color: var(--teal); font-weight: 800; margin-right: 8px; }
.compare .no { color: var(--amber); font-weight: 800; margin-right: 8px; }
.compare tbody tr:last-child td { border-bottom: none; }

/* ---- account and pricing pages (account/, pricing/) --------------------- */
[hidden] { display: none !important; }
.wrap.narrow { max-width: 560px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 28px); margin-bottom: 18px; }
.card h2 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card .kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card .email { font-family: var(--font-display); font-size: clamp(1.2rem, 4vw, 1.5rem); margin: 4px 0 0; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.fine { font-size: .85rem; color: var(--muted); }
.loading, .center { text-align: center; }
.notice { background: var(--blue-bg); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 16px; }
.tabs { display: flex; gap: 6px; background: var(--surface-2); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tabs button { flex: 1; font: 600 .95rem var(--font-body); color: var(--muted); background: transparent; border: 0; border-radius: 9px; padding: 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.providers { display: grid; gap: 10px; margin-bottom: 4px; }
.providers .or { text-align: center; margin: 6px 0 10px; font-size: .88rem; }
.btn.full { width: 100%; justify-content: center; }
#auth-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
#auth-form input { font: 1rem var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; }
#auth-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hint { margin: -8px 0 14px; font-size: .85rem; color: var(--muted); }
.form-error { color: var(--danger); font-weight: 600; margin: 0 0 12px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.devices { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.devices li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.devices .grow { flex: 1; display: grid; min-width: 0; }
.devices strong { overflow-wrap: anywhere; }
.devices .muted { font-size: .85rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.dot.on { background: var(--success); }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 8px 0 22px; }
.plan-choice { position: relative; display: grid; gap: 6px; text-align: left; font: inherit; color: var(--fg); background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; cursor: pointer; box-shadow: var(--shadow); }
.plan-choice:hover { border-color: var(--line-strong); }
.plan-choice.chosen { border-color: var(--accent); }
.plan-choice .pname { font-weight: 700; }
.plan-choice .amt { font-family: var(--font-display); font-size: 2rem; }
.plan-choice .per, .plan-choice .note { color: var(--muted); font-size: .9rem; }
.plan-choice .badge { position: absolute; top: -11px; right: 14px; background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.terms { max-width: 640px; margin-inline: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 14px 0 16px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
footer.site .fine { color: var(--ink-muted); max-width: none; }
.tf-step { margin-top: 12px; }
.tf-step label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; margin: 12px 0; }
.tf-step input, #code-form input { font: 1rem var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; letter-spacing: .08em; }
#code-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
#code-form h2 { margin-top: 0; }
#code-form .btn + .btn { margin-top: 10px; }
#tf-qr { display: block; background: #fff; border-radius: 12px; padding: 8px; margin: 10px 0; }
.key code, #tf-code-list { font-family: var(--font-mono); }
#tf-code-list { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; columns: 2; line-height: 1.8; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.small-link { margin: 12px 0 0; font-size: .9rem; }
.h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 14px; }
#forgot-form label, #reset-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
#forgot-form input, #reset-form input { font: 1rem var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; }
#forgot-form h2 { margin-top: 0; }
#forgot-form .btn + .btn { margin-top: 10px; }

/* Pricing: Free, subscription and team side by side. */
.tiers { margin: 0 0 32px; }
.tiers .tier { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--teal); }

/* Recipes: reviewed recipes to import. */
.recipe-link { display: inline-block; margin-top: 12px; font-weight: 600; }
.recipe-meta { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin: 0 0 6px; }


/* The admins' error reports page */
.errors-page h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; }
.errors-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.errors-search input { margin-left: 8px; min-width: min(320px, 100%); }
.errors { list-style: none; padding: 0; margin: 0; }
.error .error-code { font-family: var(--font-mono); font-weight: 600; color: var(--accent); }
.error .error-message { margin: 10px 0 6px; overflow-wrap: anywhere; }
.error .small { font-size: .85rem; margin: 4px 0; overflow-wrap: anywhere; }
.error details pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; max-height: 320px; overflow: auto; }
.errors-page .tabs button { white-space: nowrap; }

/* The admins' usage page: P2P versus relay */
.usage-page { --route-relay: #2a78d6; --route-direct: #eb6834; --route-punched: #1baf7a; }
@media (prefers-color-scheme: dark) {
  .usage-page { --route-relay: #3987e5; --route-direct: #d95926; --route-punched: #199e70; }
}
.usage-page .tabs { max-width: 480px; margin-top: 18px; flex-wrap: wrap; }
.usage-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.usage-tile .usage-value { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 700; margin: 4px 0; }
.usage-tile .small { font-size: .85rem; margin: 0; }
.usage-page .card { position: relative; }
.usage-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 14px; font-size: .9rem; color: var(--muted); }
.usage-page .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.usage-page .relay { background: var(--route-relay); }
.usage-page .direct { background: var(--route-direct); }
.usage-page .punched { background: var(--route-punched); }
.usage-chart { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 220px auto; column-gap: 8px; }
.usage-chart[hidden] { display: none; }
.usage-axis { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.usage-axis.top { grid-row: 1; grid-column: 1; align-self: start; }
.usage-axis.from { grid-row: 2; grid-column: 2; justify-self: start; margin-top: 6px; }
.usage-axis.to { grid-row: 2; grid-column: 2; justify-self: end; margin-top: 6px; }
.usage-bars { grid-row: 1; grid-column: 2 / 4; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line-strong); min-width: 0; }
.usage-day { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; border-radius: 4px 4px 0 0; outline-offset: 2px; }
.usage-day:hover, .usage-day:focus-visible { background: var(--surface-2); }
.usage-stack { width: 100%; display: flex; flex-direction: column-reverse; gap: 2px; }
.usage-stack span { flex-basis: 0; min-height: 1px; }
.usage-stack span:last-child { border-radius: 4px 4px 0 0; }
.usage-tip { position: absolute; z-index: 2; pointer-events: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); padding: 8px 12px; font-size: .85rem; white-space: nowrap; }
.usage-tip div { margin-top: 2px; }
.usage-page details { margin-top: 18px; }
.usage-table-wrap { overflow-x: auto; }
.usage-table { border-collapse: collapse; width: 100%; font-size: .9rem; margin-top: 10px; }
.usage-table th, .usage-table td { text-align: right; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.usage-table th:first-child { text-align: left; }
