:root {
  --ink: #16181d;
  --muted: #5c6370;
  --line: #e3e6ea;
  --bg: #ffffff;
  --soft: #f7f8fa;
  --accent: #b8860b;
  --good: #1f7a4d;
  --warn: #9a4b1f;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; }
header { border-bottom: 1px solid var(--line); padding: 22px 0; }
header .wrap { display: flex; align-items: baseline; gap: 18px; }
.logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--ink);
}
.mark { display: block; flex: none; }
/* Workers: many, solid, unremarkable individually. */
.mark .cell { fill: var(--ink); }
/* The centre cell is the orchestration layer -- us -- so it carries our colour.
   Filled, not outlined: a thin stroke vanished at 30px and the cluster read as a
   flower. Solid holds its shape down to favicon size. */
.mark .cell-core { fill: var(--accent); }
.wordmark { font-weight: 650; letter-spacing: -0.02em; font-size: 19px; }
nav { margin-left: auto; display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
nav a:hover, nav a.on { color: var(--ink); }
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.025em; margin: 48px 0 14px; }
h2 { font-size: 21px; letter-spacing: -0.015em; margin: 44px 0 12px; }
h3 { font-size: 16px; margin: 28px 0 8px; }
p { margin: 0 0 14px; }
.lede { font-size: 18.5px; color: var(--muted); margin-bottom: 30px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
code { font-family: var(--mono); font-size: 13.5px; background: var(--soft); padding: 1.5px 5px; border-radius: 3px; }
pre {
  background: var(--soft); border: 1px solid var(--line); border-radius: 7px;
  padding: 15px 17px; overflow-x: auto; font-family: var(--mono);
  font-size: 13px; line-height: 1.6; margin: 0 0 16px;
}
pre code { background: none; padding: 0; font-size: inherit; }
table { border-collapse: collapse; width: 100%; margin: 0 0 18px; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
td.num { text-align: right; font-family: var(--mono); font-size: 13.5px; }
.note {
  border-left: 3px solid var(--accent); background: var(--soft);
  padding: 13px 17px; margin: 0 0 18px; font-size: 15px;
}
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 13px; margin: 0 0 26px; }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: 15px 17px; }
.tile .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.tile .v { font-size: 27px; font-family: var(--mono); letter-spacing: -0.02em; margin-top: 4px; }
.tile .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pos { color: var(--good); } .neg { color: var(--warn); }
input[type=password], input[type=text], input[type=email] {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 7px;
  font-family: var(--mono); font-size: 14px;
}
button {
  background: var(--ink); color: #fff; border: 0; border-radius: 7px;
  padding: 10px 19px; font-size: 15px; cursor: pointer;
}
button:hover { opacity: 0.88; }
footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 26px 0 50px; color: var(--muted); font-size: 14px; }
.bar { height: 7px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }

/* ---- sign-in -------------------------------------------------------------
   A single narrow column. The form is the only thing on the page, so it does
   not need a card to separate it from anything. */
.auth { max-width: 380px; margin: 0 0 34px; }
.auth .field { margin: 0 0 16px; }
.auth label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.auth .hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.auth .actions { display: flex; gap: 10px; align-items: center; }
.auth input { font-size: 15px; }
/* Digits are read back one at a time when someone checks a code against a
   phone, so they are spaced and oversized rather than merely monospaced. */
#code { letter-spacing: 0.42em; font-size: 21px; text-align: center; padding: 12px; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
button.ghost:hover { color: var(--ink); opacity: 1; }
button[disabled] { opacity: 0.45; cursor: default; }
.msg { font-size: 14.5px; margin: 4px 0 0; min-height: 1.5em; }
.msg.err { color: var(--warn); }
.msg.ok { color: var(--good); }
.msg.work { color: var(--muted); }
.sent-to { font-family: var(--mono); font-size: 13.5px; }

/* ---- admin tables --------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14.5px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
     color: var(--muted); font-weight: 600; padding: 0 10px 7px 0; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
td code { font-family: var(--mono); font-size: 13px; }
button.small { padding: 5px 11px; font-size: 13px; }
/* Wide tables scroll inside themselves rather than pushing the page sideways. */
#people, #keys { overflow-x: auto; }
.keyval {
  display: inline-block; font-family: var(--mono); font-size: 14px; word-break: break-all;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 11px;
}

/* ---- sandbox answer -------------------------------------------------------
   Model output is prose, not code. Rendering it in <pre> meant it never wrapped
   and the reader had to scroll in two dimensions to read a paragraph. Preserve
   the model's own line breaks, wrap everything else, and break any single long
   token rather than pushing the page sideways. */
.answer {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 17px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  max-height: 26rem;
  overflow-y: auto;
}
/* Long model names in a tile must not widen the grid. */
.tile .s { overflow-wrap: anywhere; }
/* Code samples scroll inside themselves, never the page. */
pre { overflow-x: auto; max-width: 100%; }

/* the desk: which piece you are on, and where it lives */
.desk-bar { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; padding:.4rem .1rem .5rem; border-bottom:1px solid var(--line,#e5e5e5); margin-bottom:.5rem; }
.desk-title { flex:1 1 14rem; min-width:8rem; font-size:1.05rem; font-weight:600; border:0; border-bottom:1px solid transparent; background:transparent; padding:.2rem 0; color:inherit; }
.desk-title:focus { outline:none; border-bottom-color:var(--line,#bbb); }
.desk-open { max-width:12rem; }
.desk-where { font-size:.8rem; opacity:.6; }
.desk-msg { font-size:.8rem; opacity:.9; flex-basis:100%; }

/* fields catalogue */
.fields { list-style:none; padding:0; }
.fields li { padding:.7rem 0; border-bottom:1px solid var(--line,#e5e5e5); }
.fields .muted { display:block; font-size:.9rem; opacity:.7; margin-top:.15rem; }
.crumb { font-size:.85rem; opacity:.7; }
.lede { font-size:1.1rem; }
.asks { padding-left:1.1rem; }
.asks li { padding:.2rem 0; font-style:italic; opacity:.85; }
/* The way out of a field and into every reader in it. Same weight as the readers above it - it is
   the next step in the flow, not an aside. */
/* Say what you check, when none of the readers above is your work. */
.ask { margin:1.4rem 0 .2rem; padding-top:1rem; border-top:1px solid var(--line,#e5e5e5); }
.ask label { display:block; font-size:.9rem; opacity:.7; margin-bottom:.4rem; }
.ask input { width:100%; padding:.6rem .7rem; font:inherit; color:inherit;
  background:var(--card,#fff); border:1px solid var(--line,#e5e5e5); border-radius:.5rem; }
#sugg { margin-top:.6rem; }
#sugg .muted { font-size:.9rem; margin:.5rem 0 .3rem; }
a.opt { display:inline-block; margin:0 .4rem .4rem 0; padding:.35rem .7rem; font-size:.9rem;
  border:1px solid var(--line,#e5e5e5); border-radius:999px; text-decoration:none; }

.more { margin:1.4rem 0 .2rem; padding-top:1rem; border-top:1px solid var(--line,#e5e5e5); }
.more .muted { display:block; font-size:.9rem; opacity:.7; margin-top:.15rem; }

.start { margin:1.2rem 0; display:flex; gap:.7rem; align-items:center; flex-wrap:wrap; }
.start button[disabled] { opacity:.45; cursor:not-allowed; }
