/* The hosted team view. Warm-paper light by default (like the team app), the dark
   workshop theme as an option. Orange is kept for primary actions, focus and Otto. */
@font-face { font-family: 'Public Sans'; src: url('/fonts/pubsans-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jbmono-normal.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

:root, :root[data-theme="light"] {
  --paper: #F4EEE3;
  --card: #FBF8F2;
  --inset: #EBE3D4;
  --ink: #1A1714;
  --muted: #5F5548;
  --faint: #685E51;
  --line: rgba(26, 23, 20, .12);
  --line-strong: rgba(26, 23, 20, .22);
  --orange: #FF5F12;
  --orange-edge: #D85512;
  --orange-ink: #A93C04;
  --ok: #1D6B4A;
  --ok-bg: rgba(29, 107, 74, .1);
  --wait: #8A5A00;
  --wait-bg: rgba(181, 122, 0, .12);
  --bad: #A12C1C;
  --bad-bg: rgba(161, 44, 28, .09);
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 12px 36px rgba(74, 52, 28, .10), 0 2px 6px rgba(74, 52, 28, .05);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #121110;
  --card: #1C1A18;
  --inset: #26231F;
  --ink: #F3ECDF;
  --muted: #C2B8A8;
  --faint: #A79C8C;
  --line: rgba(243, 236, 223, .12);
  --line-strong: rgba(243, 236, 223, .24);
  --orange-ink: #FF8A4C;
  --ok: #6FCF9C;
  --ok-bg: rgba(111, 207, 156, .12);
  --wait: #F0C267;
  --wait-bg: rgba(240, 194, 103, .12);
  --bad: #FF8C7A;
  --bad-bg: rgba(255, 140, 122, .12);
  --shadow: 0 12px 36px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Public Sans', -apple-system, system-ui, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 16px; }
.app:focus { outline: none; }
.noscript { max-width: 520px; margin: 40px auto; padding: 0 16px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.01em; font-size: 1.1rem; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

main { padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 40px) 64px; margin: 0 auto; }
main.narrow { max-width: 520px; }
main.wide { max-width: 1080px; display: grid; gap: 28px; }

h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1:focus { outline: none; }
h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
h3 { font-size: 1.02rem; font-weight: 800; }
.empty { display: grid; gap: 12px; justify-items: start; }
.empty h1 { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 600; }
.empty .btn { margin-top: 8px; }
.lede { color: var(--muted); margin-top: 10px; max-width: 60ch; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78rem; letter-spacing: .02em; }
.faint { color: var(--faint); }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .92rem; margin: -4px 0 10px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 26px); box-shadow: var(--shadow); }
.sign-in { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
input { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px 14px; width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.form-note { color: var(--muted); min-height: 1.5em; }

.btn { font: inherit; font-weight: 800; cursor: pointer; border-radius: 6px; padding: 11px 18px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: var(--orange); border-color: var(--orange-edge); color: #1A1714; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-quiet { padding: 8px 12px; font-weight: 700; font-size: .9rem; }
.btn-link { font: inherit; background: none; border: 0; color: var(--orange-ink); text-decoration: underline; cursor: pointer; padding: 4px 0; }

.title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.fresh { font-weight: 700; font-size: .95rem; }
.fresh-ok { color: var(--ok); }
.fresh-wait { color: var(--wait); }
.fresh-bad { color: var(--bad); }
.fresh-muted { color: var(--muted); }

.banner { display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px; border: 1px solid; }
.banner p { margin-top: 4px; max-width: 70ch; }
.banner-bad { background: var(--bad-bg); border-color: var(--bad); }
.banner-wait { background: var(--wait-bg); border-color: var(--wait); }

.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.job { display: grid; gap: 12px; align-content: start; }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.reason { color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .92rem; }
.facts dt { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .76rem; color: var(--faint); padding-top: 2px; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.stats li { display: grid; }
.stats b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 1rem; }
.stats span { color: var(--faint); font-size: .74rem; }

.pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { color: var(--ok); background: var(--ok-bg); }
.pill-wait { color: var(--wait); background: var(--wait-bg); }
.pill-bad { color: var(--bad); background: var(--bad-bg); }
.pill-muted { color: var(--muted); background: var(--inset); }

.reviews { list-style: none; display: grid; gap: 10px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.review-urgent { border-color: var(--bad); }
.review-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.review-title { font-weight: 800; margin-top: 6px; }
.review-preview { color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }

.health ul { list-style: none; display: grid; gap: 6px; margin-top: 12px; }
.health li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.health .good { color: var(--ok); }
.health .bad { color: var(--bad); }

@media (max-width: 560px) {
  .top { flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr; gap: 0 0; }
  .facts dd { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
