/* The console of the orchestrator (docs/ARCHITECTURE.md 1.35). Since v1.15.0 (prompts/sprints/sprint-service.md,
   ruling 22) its look is the service's the owner approved (C:/gf-web/service-2026-10-20/mock/: base.css, gf.css):
   ipafy's sizes, radii and motion in gamefab's blue. A header of 70px with the mark, a side menu of 176px beside a
   column, cards of rows, one accent. Radii: chip 4, control 6, card 8. Type: Geist 14 for reading, 12 for secondary,
   Geist Mono for ids and figures. Colours change in 150ms; what appears springs in.
   The tokens are this sheet's and every other sheet of the page reads them (aso.css, projects.css, apps.css,
   admin.css, terminal.css): a token or a class that exists is never renamed or removed, only added. The names of
   before (--elev, --muted, --faint, --sans, ...) stand beside the service's as the same values.
   The page's content security policy admits no inline style: everything is a class of a sheet. */

@font-face { font-family: "Geist"; src: url("/console/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/console/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* --------------------------------------------------------------------------------------------------- tokens */
:root {
  --bg: #ffffff;            /* header, cards, fields, menus */
  --surface: #fafafa;       /* the page's ground */
  --surface-elev: #f4f4f5;  /* a row under the pointer, the current menu entry, a table's head */
  --border: #e4e4e7;
  --border-subtle: #f4f4f5;
  --text: #09090b;
  --text-muted: #52525b;
  --text-faint: #a1a1aa;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-fg: #ffffff;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --brand-1: #2f6bff;
  --brand-2: #2992f4;
  --brand-3: #1fb6e9;
  --brand-gradient: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%);

  --font-sans: "Geist", ui-sans-serif, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-chip: 4px;
  --r-input: 6px;
  --r-card: 8px;
  --r-modal: 12px;

  --w-page: 768px;
  --w-sidebar: 176px;
  --w-frame-gap: 32px;
  --w-workspace: 976px;     /* 176 + 32 + 768 */
  --w-admin: 1024px;        /* 176 + 32 + 816 */
  --w-settings: 448px;
  --w-auth: 384px;
  --h-header: 70px;
  --h-bar: 40px;

  --shadow-rest: 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-hover: 0 4px 12px rgb(0 0 0 / 0.06);
  --shadow-focus: 0 0 0 3px rgb(37 99 235 / 0.22);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --lh-xs: calc(1 / 0.75);
  --lh-sm: calc(1.25 / 0.875);
  --lh-base: 1.5;

  /* The names of before, read by the sheets of the parts: the same values. */
  --elev: var(--surface-elev);
  --border-soft: var(--border-subtle);
  --muted: var(--text-muted);
  --faint: var(--text-faint);
  --sans: var(--font-sans);
  --mono: var(--font-mono);
  --shadow: var(--shadow-rest);
  --ring: var(--shadow-focus);
  --accent-soft: #eaf1ff;
  --success-soft: #e8f6ed;
  --warning-soft: #fdf3e1;
  --danger-soft: #fdecec;
  --skel: #ececee;
  --shine: rgb(255 255 255 / 0.8);
  --hair: rgb(9 9 11 / 0.1);

  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --surface: #141416;
    --surface-elev: #1f1f22;
    --border: #27272a;
    --border-subtle: #1f1f22;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-faint: #71717a;
    --accent: #5b9bff;
    --accent-hover: #7db0ff;
    --accent-fg: #0a0a0b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-rest: none;
    --shadow-hover: 0 8px 24px rgb(0 0 0 / 0.5);
    --shadow-focus: 0 0 0 3px rgb(91 155 255 / 0.3);
    --accent-soft: #14233d;
    --success-soft: #11281b;
    --warning-soft: #2c2110;
    --danger-soft: #2e1516;
    --skel: #1f1f23;
    --shine: rgb(255 255 255 / 0.07);
    --hair: rgb(255 255 255 / 0.12);
    color-scheme: dark;
  }
}

/* ----------------------------------------------------------------------------------------------------- base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; margin: 0; }
body {
  display: flex; flex-direction: column; min-height: 100vh;
  background: var(--surface); color: var(--text); font: 14px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--r-input); }
::selection { background: color-mix(in oklab, var(--accent) 28%, transparent); }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); } .faint { color: var(--text-faint); } .bad { color: var(--danger); }
.xs { font-size: 12px; line-height: var(--lh-xs); } .xxs { font-size: 11px; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----------------------------------------------------------- the bar of a view as somebody (ruling 12), 40px */
.imp-bar {
  position: sticky; top: 0; z-index: 30; height: var(--h-bar); padding: 0 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: color-mix(in oklab, var(--warning) 12%, var(--surface)); color: var(--warning);
  border-bottom: 1px solid color-mix(in oklab, var(--warning) 30%, transparent); font-size: 14px; line-height: var(--lh-sm);
}
.imp-bar .who { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-bar .who b { font-weight: 500; }
.imp-bar .btn { height: 28px; margin-left: 4px; }

/* ------------------------------------------------------------------------------------- the header, 70px */
.hdr {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; min-height: var(--h-header);
  background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.imp-bar:not([hidden]) ~ .hdr { top: calc(env(safe-area-inset-top, 0px) + var(--h-bar)); }
.logo { display: inline-flex; align-items: center; gap: 10px; border-radius: var(--r-input); }
.logo svg { display: block; width: 28px; height: 28px; flex: none; transition: transform 200ms var(--ease-out); }
@media (hover: hover) { .logo:hover svg { transform: scale(1.06); } }
.logo .word { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.2; }
.logo .word i { font-style: normal; color: var(--accent); }
.logo .tag { display: block; margin-top: 2px; font-size: 11px; color: var(--text-faint); line-height: 1; }
.hdr-right { display: flex; align-items: center; gap: 12px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; }
.live.off .dot { background: var(--danger); }

/* The account's button (32px, a 28px avatar) and its menu: it opens at once, with no motion. */
.acct { position: relative; }
.avatar-btn {
  width: 32px; height: 32px; padding: 0; border: 0; background: none; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px transparent; transition: box-shadow 150ms var(--ease);
}
@media (hover: hover) { .avatar-btn:hover { box-shadow: 0 0 0 1px var(--border); } }
.avatar-btn[aria-expanded="true"] { box-shadow: 0 0 0 1px var(--border); }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 9999px;
  background: color-mix(in oklab, var(--accent) 12%, var(--bg)); color: var(--accent);
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
}
.avatar .ico { width: 14px; height: 14px; }
.acct-menu {
  position: absolute; right: 0; top: 100%; margin-top: 8px; min-width: 220px; max-width: 280px; z-index: 30;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-hover); padding: 6px 0;
}
.acct-menu-head { padding: 8px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: grid; gap: 2px; min-width: 0; }
.acct-menu-head p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu-name { font-size: 12px; line-height: var(--lh-xs); font-weight: 500; color: var(--text); }
.acct-menu-items { display: grid; }
.acct-item {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 12px; border: 0; background: none; text-align: left;
  font-size: 12px; line-height: var(--lh-xs); color: var(--text);
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}
.acct-item .ico { width: 13px; height: 13px; color: var(--text-faint); }
.acct-item.danger { margin-top: 4px; border-top: 1px solid var(--border); padding-top: 8px; color: var(--text-muted); }
@media (hover: hover) {
  .acct-item:hover { background: var(--surface-elev); }
  .acct-item.danger:hover { color: var(--danger); background: color-mix(in oklab, var(--danger) 4%, transparent); }
}

/* ------------------------------------------------------- the frame: the side menu (176px) beside the column */
.shell {
  flex: 1; width: 100%; max-width: calc(var(--w-workspace) + 48px); margin: 0 auto; padding: 40px 24px 48px;
  display: flex; gap: var(--w-frame-gap);
}
.shell.manage { max-width: calc(var(--w-admin) + 48px); }
/* A page with no menu (the sign-in, an account that waits): one card in the middle. */
.shell.bare { max-width: calc(var(--w-auth) + 48px); justify-content: center; padding-top: 48px; }
.side { width: var(--w-sidebar); flex: none; }
.side nav { position: sticky; top: 96px; display: grid; gap: 4px; }
.imp-bar:not([hidden]) ~ .shell .side nav { top: calc(96px + var(--h-bar)); }
.eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-faint); padding: 0 12px; margin-bottom: 4px; }
.side a {
  display: block; padding: 6px 12px; border-radius: var(--r-input); font-size: 12px; line-height: var(--lh-xs); color: var(--text-muted);
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}
@media (hover: hover) { .side a:hover { background: var(--surface-elev); color: var(--text); } }
.side a[aria-current="page"] { background: var(--surface-elev); color: var(--text); font-weight: 500; }
main { flex: 1; min-width: 0; display: grid; gap: 20px; align-content: start; }
.shell.bare main { flex: none; width: 100%; gap: 16px; }

/* The head of a page: 32px, the title and the actions on the right; the line under it. */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.page-head h1 { font-size: 16px; line-height: var(--lh-base); font-weight: 500; letter-spacing: -0.025em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lede { font-size: 12px; color: var(--text-muted); line-height: 1.625; max-width: 62ch; margin-top: -8px; }
.back {
  font-size: 12px; line-height: var(--lh-xs); color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; justify-self: start;
  transition: color 150ms var(--ease);
}
@media (hover: hover) { .back:hover { color: var(--text); } }
.back .ico { width: 12px; height: 12px; }

/* -------------------------------------------------------------------------------------- cards and rows */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-rest); overflow: hidden; }
.card-head { padding: 20px 24px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.card-head h2 { font-size: 14px; line-height: var(--lh-sm); font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.card-body { padding: 16px 24px 24px; display: grid; gap: 14px; }
.card-body.top { padding-top: 20px; }
/* A row: a 40px tile, the title over a muted line, what it says, the arrow. 72px tall. */
.item {
  display: flex; align-items: center; gap: 16px; padding: 16px 24px; width: 100%; border: 0; background: none; text-align: left;
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}
@media (hover: hover) {
  a.item:hover, button.item:hover, .item.linked:hover { background: var(--surface-elev); }
  a.item:hover .tile, .item.linked:hover .tile { color: var(--accent); }
  a.item:hover .ico.arrow, .item.linked:hover .ico.arrow { color: var(--text); transform: translateX(2px); }
}
.item + .item, .item + .sub, .sub + .item { border-top: 1px solid var(--border); }
/* A row that is a link and has buttons too: the link is its name, stretched over the whole row; the buttons are its
   siblings and lie above it, since a button may not stand inside a link. Where the row is too narrow for both, the
   buttons go under it, to the right, and the name keeps its room. */
.item.linked { position: relative; flex-wrap: wrap; row-gap: 12px; }
.cover::after { content: ""; position: absolute; inset: 0; }
.cover:focus-visible { box-shadow: none; }
.cover:focus-visible::after { box-shadow: inset var(--shadow-focus); }
.item.linked .btn { position: relative; }
.item.linked .cover { min-width: 160px; }
.item.linked .meters { width: 160px; }
.item.linked .actions { flex: none; margin-left: auto; }
.item.linked .arrow { margin-left: 8px; }
.tile {
  width: 40px; height: 40px; flex: none; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg);
  display: grid; place-items: center; color: var(--text); transition: color 150ms var(--ease);
}
.ico { display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.tile .ico { width: 20px; height: 20px; }
.ico.arrow { width: 14px; height: 14px; color: var(--text-faint); transition: color 150ms var(--ease), transform 150ms var(--ease); }
.grow { flex: 1; min-width: 0; }
.title { display: block; font-size: 14px; font-weight: 500; line-height: 1.25; }
.desc { display: block; font-size: 12px; line-height: var(--lh-xs); color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desc.wrap { white-space: normal; overflow-wrap: anywhere; }
.desc.mono { font-size: 11px; color: var(--text-faint); }
.desc.bad { color: var(--danger); }
.desc.warn { color: var(--warning); }
.value { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.sub { padding: 16px 24px 20px 80px; display: grid; gap: 12px; background: var(--surface); }
.empty { padding: 28px 24px; display: grid; gap: 4px; justify-items: start; }

/* -------------------------------------------------------------------------------------- badges and buttons */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: var(--r-chip);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; white-space: nowrap;
  background: var(--surface-elev); color: var(--text-muted);
}
.badge.success { background: color-mix(in oklab, var(--success) 15%, transparent); color: var(--success); }
.badge.warning { background: color-mix(in oklab, var(--warning) 15%, transparent); color: var(--warning); }
.badge.danger { background: color-mix(in oklab, var(--danger) 15%, transparent); color: var(--danger); }
.badge.accent { background: color-mix(in oklab, var(--accent) 15%, transparent); color: var(--accent); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: no-preference) { .badge.live::before, .pulse { animation: breathe 2.4s ease-in-out infinite; } }
@keyframes breathe { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* Four kinds and two sizes: primary, ghost, danger (outlined in red) and inverse; 36px and 32px (sm). A busy button
   says so in its words and is off. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: var(--r-input); border: 1px solid transparent; font-size: 14px; line-height: var(--lh-sm); font-weight: 500; white-space: nowrap;
  transition: color 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.btn .ico { width: 14px; height: 14px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--accent); color: var(--accent-fg); }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn.danger { background: transparent; border-color: color-mix(in oklab, var(--danger) 30%, transparent); color: var(--danger); }
.btn.inverse { background: var(--text); color: var(--bg); }
@media (hover: hover) {
  .btn.primary:not(:disabled):hover { background: var(--accent-hover); }
  .btn.ghost:not(:disabled):hover { background: var(--surface-elev); border-color: var(--text-faint); }
  .btn.danger:not(:disabled):hover { background: color-mix(in oklab, var(--danger) 10%, transparent); border-color: color-mix(in oklab, var(--danger) 60%, transparent); }
  .btn.inverse:not(:disabled):hover { background: color-mix(in oklab, var(--text) 88%, transparent); }
}
.btn.primary:active { background: var(--accent-hover); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12px; line-height: var(--lh-xs); }
.btn.block { width: 100%; }
.btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, transparent); }
.btn[aria-expanded="true"] { border-color: var(--text-faint); background: var(--surface-elev); }

/* -------------------------------------------------------------------------------------------- gauges */
.meters { display: grid; gap: 6px; width: 176px; flex: none; }
.meter { display: grid; grid-template-columns: 36px minmax(0, 1fr) 34px; align-items: center; gap: 8px; font-size: 11px; color: var(--text-faint); }
.meter b { font-family: var(--font-mono); font-weight: 500; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.track { height: 4px; border-radius: 9999px; background: var(--border); overflow: hidden; } .track i { display: block; height: 100%; border-radius: 9999px; background: var(--accent); }
.meter.low .track i { background: var(--warning); } .meter.low b { color: var(--warning); }
.meter.none b { color: var(--text-faint); }

/* A banner: a warning by default, red when it is a failure. */
.banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
  border-radius: var(--r-input); border: 1px solid color-mix(in oklab, var(--warning) 30%, transparent);
  background: color-mix(in oklab, var(--warning) 6%, transparent); font-size: 12px; line-height: var(--lh-xs); color: var(--text);
}
.banner.danger { border-color: color-mix(in oklab, var(--danger) 30%, transparent); background: color-mix(in oklab, var(--danger) 4%, transparent); }
.rowline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rowline.start { justify-content: flex-start; gap: 24px; align-items: flex-end; }

/* ---------------------------------------------------------------------------------------------- fields */
.field { display: grid; gap: 6px; } .field label, .field .label { font-size: 12px; line-height: var(--lh-xs); font-weight: 500; color: var(--text-muted); }
.fields { display: grid; gap: 16px; }
.input {
  height: 36px; padding: 0 12px; border-radius: var(--r-input); border: 1px solid var(--border); background: var(--bg); width: 100%;
  font-size: 14px; line-height: var(--lh-sm); outline: none; transition: border-color 150ms var(--ease);
}
.input::placeholder { color: var(--text-faint); }
.input:focus { border-color: var(--text-muted); }
.input[aria-invalid="true"], .input[aria-invalid="true"]:focus { border-color: var(--danger); }
.input:disabled { opacity: 0.6; cursor: not-allowed; }
.input.num { width: 96px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.input.tag { width: 180px; font-family: var(--font-mono); }
.item .input { width: 248px; flex: none; }
.item .input.num { width: 96px; }
.hint { font-size: 12px; line-height: var(--lh-xs); color: var(--text-faint); }
.hint.bad { color: var(--danger); }
.desc.hint { font-size: 11px; color: var(--text-faint); }
.amount { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.amount .input.num { width: 96px; order: 0; }
.unit { min-width: 30px; font-size: 12px; color: var(--text-muted); }
textarea.input { height: auto; min-height: 84px; padding: 8px 12px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid2 .wide { grid-column: 1 / -1; }
/* The text under a field keeps its line breaks (a theme's text has several lines); a checkbox with its words. */
.about { white-space: pre-line; line-height: 1.5; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check span span { display: block; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 28px; padding: 0 10px; border-radius: var(--r-input); border: 1px solid var(--border); background: var(--bg); font-size: 12px; color: var(--text-muted);
  transition: color 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease);
}
@media (hover: hover) { .chip:not([aria-pressed="true"]):not(:disabled):hover { color: var(--text); border-color: var(--text-faint); } }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, var(--bg)); font-weight: 500; }
.code { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; padding: 12px 14px; border-radius: var(--r-input); background: var(--surface); border: 1px solid var(--border); overflow-wrap: anywhere; }
/* A long text of the Jobs page (a brief, a prompt): wrapped, and folded to its first lines until it is opened. */
.log.wrap { white-space: pre-wrap; overflow-wrap: anywhere; } .log.folded { max-height: 92px; overflow: hidden; }
.stack { display: grid; gap: 8px; min-width: 0; }
.log { margin: 0; font: 11px/1.6 var(--font-mono); padding: 12px 14px; border-radius: var(--r-input); background: var(--surface); border: 1px solid var(--border); max-height: 320px; overflow: auto; white-space: pre; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 16px; }
.stat b { display: block; font-family: var(--font-mono); font-size: 16px; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 11px; color: var(--text-faint); }
/* A panel unfolded inside an opened row (a game's statistics): a card of its own on the row's ground, with small
   headings; it may hold a table wider than itself, which scrolls. */
.panel { display: grid; gap: 14px; min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); }
.panel h3 { margin: 4px 0 0; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.panel h3:first-child { margin-top: 0; }
.lines { display: grid; gap: 6px; font-size: 13px; }
.lines.xs { font-size: 12px; }
.lines li { list-style: none; } ul.lines { margin: 0; padding: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ----------------------------------------------------------------------------------------------- charts */
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font-mono); font-size: 10px; fill: var(--text-faint); }
.chart .axis { stroke: var(--border); }
.chart .floor { stroke: var(--warning); stroke-dasharray: 3 4; }
.chart text.floor-label { fill: var(--warning); }
.chart .area { fill: var(--accent); fill-opacity: 0.12; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.chart .blank { height: 124px; display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--text-faint); border: 1px dashed var(--border); border-radius: var(--r-input); padding: 0 16px; }

/* ----------------------------------------------------------------------------------------------- tables */
.scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--text-muted); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table th.num { text-align: right; }
.table td.num { text-align: right; font-family: var(--font-mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.table td.id { font-family: var(--font-mono); font-size: 12px; }
.table tr:last-child td { border-bottom: 0; }
.table tr.total td { font-weight: 500; }
.table td .input { height: 32px; min-width: 88px; }
.table td .input.num { width: 76px; min-width: 76px; }
.table td .input.mono { min-width: 150px; font-size: 12px; }
.table td.why { white-space: normal; min-width: 220px; color: var(--text-muted); font-size: 12px; }

/* A popup: what an install cannot do without the owner. One at a time, over the page, with one button; the card
   springs in, the ground does not move. */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: color-mix(in oklab, var(--text) 40%, transparent); }
.dialog {
  width: 100%; max-width: 448px; display: grid; gap: 14px; padding: 24px; border-radius: var(--r-card); border: 1px solid var(--border);
  background: var(--bg); box-shadow: var(--shadow-hover); animation: gf-dialog-in 180ms var(--ease-spring);
}
.dialog h2 { font-size: 16px; line-height: var(--lh-base); font-weight: 500; }
.dialog p { font-size: 12px; line-height: 1.625; color: var(--text-muted); }
.dialog .actions { justify-content: flex-end; }

/* -------------------------------------------------------------------------------- the pages of the sign-in */
.signin { max-width: var(--w-auth); margin: 0 auto; width: 100%; }
.auth-card { padding: 28px; display: grid; gap: 24px; text-align: left; }
.auth-head { display: grid; gap: 4px; }
.auth-head h1 { font-size: 16px; line-height: var(--lh-base); font-weight: 500; letter-spacing: -0.025em; }
.pw { position: relative; }
.pw .input { padding-right: 36px; }
.pw-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; padding: 0; border: 0; background: none;
  display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-chip); color: var(--text-faint); transition: color 150ms var(--ease);
}
@media (hover: hover) { .pw-eye:hover { color: var(--text-muted); } }
.pw-eye .ico { width: 14px; height: 14px; }
/* Six cells of a code. */
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp .input { height: 48px; padding: 0; text-align: center; font-family: var(--font-mono); font-size: 20px; font-variant-numeric: tabular-nums; }
.au-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; line-height: var(--lh-xs); }
.au-a { padding: 0; border: 0; background: none; font-size: 12px; line-height: var(--lh-xs); color: var(--text-muted); cursor: pointer; transition: color 150ms var(--ease); }
@media (hover: hover) { .au-a:not(:disabled):hover { color: var(--text); } }
.au-a:disabled { opacity: 0.5; cursor: default; }
a.au-a { justify-self: start; }
.au-owner { display: flex; justify-content: center; margin-top: -8px; }
.au-owner .au-a { font-size: 11px; color: var(--text-faint); }
.au-note { font-size: 11px; line-height: 1.625; color: var(--text-faint); text-align: center; }
.au-note .au-a { font-size: 11px; }
/* The key of a second factor: its QR code, its letters grouped by four with a copy button. */
.qr { display: flex; justify-content: center; }
.qr canvas { width: 176px; height: 176px; image-rendering: pixelated; border-radius: var(--r-input); border: 1px solid var(--border); background: #ffffff; }
.secret {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 14px;
  border: 1px solid var(--border); border-radius: var(--r-input); background: var(--surface);
}
.secret .mono { font-size: 13px; letter-spacing: 0.04em; overflow-wrap: anywhere; }
/* Ten recovery codes, two columns. */
.codes {
  display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 32px; justify-content: center; padding: 14px;
  border: 1px solid var(--border); border-radius: var(--r-input); background: var(--surface); font-size: 13px; font-variant-numeric: tabular-nums;
}
/* An account that waits for access. */
.pending { justify-items: center; text-align: center; }
.pending .auth-head { justify-items: center; }
.pending .actions { justify-content: center; }
.pending-mark { width: 56px; height: 56px; border-radius: var(--r-card); display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 10%, var(--bg)); color: var(--accent); }
.pending-mark .ico { width: 24px; height: 24px; }

/* -------------------------------------------------------------------- a person's Settings (console/me/) */
/* His name and his email beside a large avatar; a switch of 36 by 20 that moves its knob in 150ms. */
.me-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.avatar.big { width: 56px; height: 56px; font-size: 18px; }
.switch {
  position: relative; display: inline-flex; flex: none; align-items: center; width: 36px; height: 20px; padding: 0; border-radius: 9999px;
  border: 1px solid var(--border); background: var(--surface-elev); transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}
.switch > span { display: block; width: 14px; height: 14px; border-radius: 9999px; background: var(--bg); box-shadow: var(--shadow-rest); transform: translateX(2px); transition: transform 150ms var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"] > span { transform: translateX(17px); }
.switch:disabled { opacity: 0.5; cursor: default; }

/* ---------------------------------------------------------------------------------- the footer, the toast */
.foot {
  border-top: 1px solid var(--border); padding: 20px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: 11px; color: var(--text-faint);
}
/* The toast: top right, under the header, 320px; a bar of its tone at its left. */
.toast {
  position: fixed; right: 24px; top: calc(var(--h-header) + 16px + env(safe-area-inset-top, 0px)); z-index: 80; width: 320px; max-width: calc(100% - 32px);
  overflow: hidden; padding: 12px 16px 12px 18px; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--bg); color: var(--text);
  box-shadow: var(--shadow-hover); font-size: 14px; line-height: 1.375; animation: gf-toast-in 200ms var(--ease-spring);
}
.imp-bar:not([hidden]) ~ .toast { top: calc(var(--h-header) + var(--h-bar) + 16px + env(safe-area-inset-top, 0px)); }
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--success); }
.toast.bad::before { background: var(--danger); }

@keyframes gf-toast-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes gf-dialog-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .toast, .dialog { animation: none; } }

/* ------------------------------------------------------------------- narrow screens: the menu above the page */
@media (max-width: 1071px) {
  .hdr { padding: 12px 16px; } .hdr .live { display: none; }
  .shell { flex-direction: column; gap: 16px; padding: 24px 16px 40px; }
  .shell.bare { padding-top: 32px; }
  .side { width: auto; } .side nav { position: static; display: flex; overflow-x: auto; } .eyebrow { display: none; } .side a { white-space: nowrap; flex: none; }
  .foot { padding: 16px; }
  .toast { right: 16px; }
}
@media (max-width: 800px) {
  .item { flex-wrap: wrap; padding: 14px 16px; } .meters, .item .input, .item.linked .meters { width: 100%; order: 3; } .item.linked .actions { order: 4; } .grid2 { grid-template-columns: minmax(0, 1fr); }
  .card-head { padding: 16px 16px 0; } .card-body { padding: 12px 16px 16px; } .sub { padding: 14px 16px 16px; }
  .auth-card { padding: 24px 20px; }
  .logo .tag { display: none; }
  .imp-bar { padding: 0 12px; font-size: 12px; }
}

/* Icons: mask images, so that the script writes no markup for them. */
.i-server { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3.5' width='14' height='5.5' rx='1.5'/%3E%3Crect x='3' y='11' width='14' height='5.5' rx='1.5'/%3E%3Cpath d='M6 6.25h.01M6 13.75h.01'/%3E%3C/svg%3E"); }
.i-key { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='13' r='3.5'/%3E%3Cpath d='M9.5 10.5L16 4M13.5 6.5l2 2'/%3E%3C/svg%3E"); }
.i-cube { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2.5l6.5 3.75v7.5L10 17.5l-6.5-3.75v-7.5z'/%3E%3Cpath d='M3.5 6.25L10 10l6.5-3.75M10 10v7.5'/%3E%3C/svg%3E"); }
.i-disk { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='10' cy='5.5' rx='6.5' ry='2.5'/%3E%3Cpath d='M3.5 5.5v9c0 1.4 2.9 2.5 6.5 2.5s6.5-1.1 6.5-2.5v-9M3.5 10c0 1.4 2.9 2.5 6.5 2.5s6.5-1.1 6.5-2.5'/%3E%3C/svg%3E"); }
.i-up { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 16V5M5.5 9.5L10 5l4.5 4.5'/%3E%3Cpath d='M4 3h12'/%3E%3C/svg%3E"); }
.i-gauge { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 14a6.5 6.5 0 1113 0'/%3E%3Cpath d='M10 14l3.5-4.5'/%3E%3C/svg%3E"); }
.i-lock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='9' width='12' height='8' rx='1.5'/%3E%3Cpath d='M7 9V6.5a3 3 0 016 0V9'/%3E%3C/svg%3E"); }
.i-file { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 2.5h7l3.5 3.5v11.5h-10.5z'/%3E%3Cpath d='M12 2.5V6h3.5'/%3E%3C/svg%3E"); }
.i-box { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6.5L10 3l6.5 3.5v7L10 17l-6.5-3.5z'/%3E%3Cpath d='M3.5 6.5L10 10l6.5-3.5'/%3E%3C/svg%3E"); }
.i-sliders { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6h7M14.5 6h2M3.5 14h2M9.5 14h7'/%3E%3Ccircle cx='12.5' cy='6' r='2'/%3E%3Ccircle cx='7.5' cy='14' r='2'/%3E%3C/svg%3E"); }
.i-shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2.5l6 2.25v4.5c0 3.75-2.5 6.75-6 8.25-3.5-1.5-6-4.5-6-8.25v-4.5z'/%3E%3Cpath d='M7.5 10l2 2 3.5-4'/%3E%3C/svg%3E"); }
.i-arrow { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E"); }
.i-back { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 10H4M9 5l-5 5 5 5'/%3E%3C/svg%3E"); }
/* v1.15.0: the icons of the sign-in, the account's menu and a person's Settings (the mock-up's set). */
.i-eye { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.i-eye-off { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E"); }
.i-grid { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6.5' height='6.5' rx='2'/%3E%3Crect x='13.5' y='4' width='6.5' height='6.5' rx='2'/%3E%3Crect x='4' y='13.5' width='6.5' height='6.5' rx='2'/%3E%3Cpath d='M16.75 13.5v6.5M13.5 16.75h6.5'/%3E%3C/svg%3E"); }
.i-user { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.i-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.i-list { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h12M8 12h12M8 18h12M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E"); }
.i-phone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.i-monitor { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }
.i-bell { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 0 1 12 0c0 6 2.5 7.5 2.5 7.5h-17S6 15 6 9z'/%3E%3Cpath d='M10 20a2 2 0 0 0 4 0'/%3E%3C/svg%3E"); }
.i-plus { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.i-copy { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15V5a1 1 0 0 1 1-1h10'/%3E%3C/svg%3E"); }
