/* The app's own pieces beside the graph view: the sign-in pages, the account page and the account chip.
   The website's look: the #0b1210 ground, Space Grotesk and Inter, white at a few alphas, the mint accent. */
@font-face { font-family: 'Space Grotesk'; font-weight: 300; font-display: swap; src: url('fonts/space-grotesk-300.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 300; font-display: swap; src: url('fonts/inter-300.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('fonts/inter-500.woff2') format('woff2'); }

/* ---------- the pages outside the graph: sign-in, the email link, the account ---------- */
body.page {
  --bg: #0b1210; --ink: #ffffff; --muted: #ffffffb3; --dim: #ffffff73; --line: #ffffff40; --hair: #ffffff1f; --accent: #a7d5cb; --err: #ff8a80;
  color-scheme: dark;
  margin: 0; min-height: 100vh; min-height: 100dvh; padding: 56px 16px 48px; box-sizing: border-box;
  background: radial-gradient(ellipse at 90% 0%, #10201e, transparent 55%), var(--bg);
  color: var(--ink); font: 300 16px/1.6 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow: auto; height: auto;
}
.page * { box-sizing: border-box; margin: 0; padding: 0; }
.page main { width: min(416px, 100%); margin: 0 auto; }
.page main.wide { width: min(640px, 100%); }
.page .wordmark { display: inline-block; margin: 0 0 56px; font: 500 15px/1 'Space Grotesk', system-ui, sans-serif; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink); text-decoration: none; }
.page h1 { font: 300 32px/1.12 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.01em; margin: 0 0 14px; }
.page h2 { font: 500 11px/1.4 'Space Grotesk', system-ui, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); margin: 44px 0 6px; }
.page .lede { color: var(--muted); margin: 0 0 32px; text-wrap: pretty; }
.page .preview { font-size: 13px; color: #f6c070; border: 1px dashed #f6c07066; border-radius: 10px; padding: 8px 12px; margin: -24px 0 32px; }
.page label { display: block; font: 500 10px/1.4 'Space Grotesk', system-ui, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.page .field { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 28px; transition: border-color .2s; }
.page .field:focus-within { border-bottom-color: #ffffffb3; }
.page .cc { color: var(--dim); font: 300 20px Inter, sans-serif; }
.page input:not([type=checkbox]) { flex: 1; min-width: 0; background: none; border: 0; border-radius: 0; outline: 0; color: var(--ink);
  font: 300 20px/1.4 Inter, sans-serif; padding: 8px 0 10px; }
.page input.code { font: 300 30px 'Space Grotesk', sans-serif; letter-spacing: .5em; }
.page input::placeholder { color: #ffffff38; }
.page .tick { display: flex; gap: 10px; align-items: center; text-transform: none; letter-spacing: 0; font: 300 14px Inter, sans-serif;
  color: var(--muted); margin: -8px 0 28px; cursor: pointer; }
.page .tick input { width: 16px; height: 16px; accent-color: #fff; }
.page .pill { display: block; width: 100%; height: 50px; border-radius: 999px; border: 1px solid #fff; background: #fff; color: #000; cursor: pointer;
  font: 500 12px/1 'Space Grotesk', sans-serif; letter-spacing: .22em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.page .pill:hover { background: #ffffffd9; }
.page .pill.ghost { background: transparent; color: #fff; border-color: #ffffff73; }
.page .pill.ghost:hover { background: #fff; color: #000; }
.page .pill[disabled] { opacity: .5; cursor: progress; }
.page .text { display: block; margin: 20px auto 0; background: none; border: 0; color: var(--muted); font: 400 14px Inter, sans-serif; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #ffffff40; }
.page .text:hover { color: var(--ink); }
.page .err { color: var(--err); font-size: 14px; font-weight: 500; margin: -12px 0 20px; min-height: 0; }
.page .err:empty { display: none; }
.page .fine { margin-top: 56px; font-size: 12px; line-height: 1.6; color: var(--dim); }
.page .fine a { color: var(--dim); }
.page :focus { outline: none; }
.page :focus-visible { outline: 1px solid #ffffffd9; outline-offset: 3px; }
.page .field input:focus-visible { outline: none; }
.page [hidden] { display: none !important; }

/* the account page */
.page .rows { list-style: none; border-top: 1px solid var(--hair); }
.page .rows li { display: flex; gap: 16px; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.page .rows li b { font-weight: 500; }
.page .rows li span { color: var(--dim); font-size: 13px; text-align: right; }
.page .rows li em { font-style: normal; color: var(--accent); font-size: 12px; letter-spacing: .04em; margin-left: 8px; }
.page .rows li.none { color: var(--dim); font-size: 14px; }
.page .who { font: 300 22px/1.3 'Space Grotesk', sans-serif; }
.page .actions { display: grid; gap: 12px; margin-top: 40px; }
.page .note { color: var(--dim); font-size: 13px; margin-top: 10px; }
.page a.back { color: var(--muted); font-size: 14px; }

/* ---------- the account chip in the graph view's top bar ---------- */
#account { margin-left: auto; display: flex; align-items: center; gap: 14px; font: 400 12px Inter, sans-serif; color: var(--muted); white-space: nowrap;
  transition: margin-right .6s var(--ease); }
#account .fresh { color: var(--dim); }
#account .fresh::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 1px; }
#account .who { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; color: var(--ink); font: 400 12px Inter, sans-serif; background: none; cursor: pointer; }
#account .who:hover { border-color: #ffffff73; }
#account menu { position: absolute; right: 24px; top: 62px; z-index: 9; list-style: none; margin: 0; padding: 6px; min-width: 230px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 20px 50px #000a; }
#account menu li { padding: 8px 10px; border-radius: 6px; }
#account menu li.meta { color: var(--dim); font-size: 11px; white-space: normal; }
#account menu a, #account menu button { display: block; width: 100%; text-align: left; color: var(--ink); text-decoration: none; background: none; border: 0;
  font: 400 13px Inter, sans-serif; cursor: pointer; }
#account menu li:has(a, button):hover { background: var(--surface-2); }
/* with a panel open the chip moves left of it, so it never sits behind the panel */
@media (min-width: 761px) {
  body.panel-open #account { margin-right: calc(var(--panel-w) - 24px); }
  body.panel-open #account menu { right: calc(var(--panel-w) + 8px); }
}
/* one copy per person: the Runs filter has nothing to choose between */
#filters section:has(#f-runs) { display: none; }
@media (max-width: 760px) {
  #account { order: 2; }
  #account .fresh { display: none; }
  #account menu { right: 16px; top: 52px; }
  body.panel-open #account { visibility: hidden; }
}
/* the "main" tag beside a situation's main area in its panel */
.link .main-tag { font: 400 10px 'Space Grotesk', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-left: 8px; }
#account menu li.err { color: #ff8a80; font-size: 12px; white-space: normal; max-width: 240px; }
.page #out-err { margin: 32px 0 -20px; }
