/* Harbor's administration console. The suite's look as kit docs/kit.md section 6 states it: one
   navigator in a deep tone of the accent beside a light work surface, Segoe UI, one accent, no
   cards, no pills, no tiles, no banded rows, 3 px corners on controls only (8 on dialogs). The
   accent is Harbor's bronze (OKLCH h53, PonamusSite brand/colour_v3/palette.json "harbor", the lead's
   interim pick of 2026-11-28, Charlie's to refine): #714222 light, #D9A073 dark. Links and the focus
   ring take the palette's text tone on light, #87502C (the accent itself reads as body ink there), and
   the accent on dark. Every tinted tone below is the kit's family tone turned to that hue, as the
   kit's look_from_accent does (ui/theme_look.cpp: the HSL hue moved by the accent's, lightness and
   saturation kept); state inks are not turned. This file is the one place the accent is defined; ask.css and the server's own pages use these tokens. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
:root {
  --font: "Segoe UI", system-ui, sans-serif;
  --ink: #261D19; --muted: #6A5A53; --faint: #8A7B74; --surface: #FFFFFF; --border: #E3DCD7; --hair: #F0EBE7;
  --accent: #714222; --accent-ink: #FFFFFF; --link: #87502C; --field: #FFFFFF; --soft: #F8F4F2; --veil: rgba(38,29,25,.38);
  --warn: #9A5300; --bad: #A4262C; --good: #2F6B3A;
  --side-bg: #3B281E; --side-ink: #F6EFEB; --side-muted: #C2ADA2; --side-sel: rgba(255,255,255,.14); --side-mark: #F3C5B0;
}
:root[data-theme=dark] {
  --ink: #F4EEEA; --muted: #C2B2A9; --faint: #A08E85; --surface: #261E1A; --border: #4A3931; --hair: #392D27;
  --accent: #D9A073; --accent-ink: #261E1A; --link: #D9A073; --field: #2F2721; --soft: #402F27; --veil: rgba(0,0,0,.55);
  --warn: #F0A63C; --bad: #F4808A; --good: #86C792;
  --side-bg: #20140E; --side-ink: #F4E9E3; --side-muted: #B49D92; --side-sel: rgba(255,255,255,.12);
}
/* the system's preference decides, unless the address says ?theme= (the renders) */
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) {
  --ink: #F4EEEA; --muted: #C2B2A9; --faint: #A08E85; --surface: #261E1A; --border: #4A3931; --hair: #392D27;
  --accent: #D9A073; --accent-ink: #261E1A; --link: #D9A073; --field: #2F2721; --soft: #402F27; --veil: rgba(0,0,0,.55);
  --warn: #F0A63C; --bad: #F4808A; --good: #86C792;
  --side-bg: #20140E; --side-ink: #F4E9E3; --side-muted: #B49D92; --side-sel: rgba(255,255,255,.12);
} }
body { font: 14px/1.45 var(--font); color: var(--ink); background: var(--surface); font-variant-numeric: tabular-nums lining-nums; }
a { color: var(--link); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }

.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100%; }

/* the one navigator */
.side { background: var(--side-bg); color: var(--side-ink); padding: 0 10px 14px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 9px; height: 56px; padding: 0 8px; font-size: 17px; font-weight: 600; color: #fff; }
.brand svg { width: 24px; height: 24px; flex: none; }  /* the mark at the site header's proportion (26 px beside 19 px type) */
.org { padding: 10px 8px 12px; border-top: 1px solid rgba(255,255,255,.10); border-bottom: 1px solid rgba(255,255,255,.10); line-height: 1.35; }
.org b { display: block; font-weight: 600; }
.org span { color: var(--side-muted); font-size: 13px; }
.nav { margin-top: 12px; display: flex; flex-direction: column; }
.nav a { display: flex; align-items: center; height: 32px; padding: 0 10px; color: var(--side-ink); border-radius: 0 3px 3px 0; }
.nav a:hover { text-decoration: none; background: rgba(255,255,255,.06); }
.nav a.sel { font-weight: 600; background: var(--side-sel); box-shadow: inset 2px 0 0 var(--side-mark); }
.nav a i { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; }
/* amber ring: something waits for you; red disc: something is wrong (shape as well as colour) */
.nav a i.warn { box-shadow: inset 0 0 0 2px #F0A63C; width: 9px; height: 9px; } .nav a i.bad { background: #F4808A; width: 9px; height: 9px; }
.side .who { margin-top: auto; padding: 10px 8px 0; border-top: 1px solid rgba(255,255,255,.10); color: var(--side-muted); font-size: 13px; line-height: 1.5; }
.side .who b { color: var(--side-ink); font-weight: 600; display: block; }
.side .who a { color: var(--side-ink); text-decoration: underline; }

/* the work surface: a measure, not the window's width */
.main { padding: 30px 44px 72px; min-width: 0; }
.col { max-width: 1280px; }
.h3 { font-size: 15px; font-weight: 600; margin: 6px 0 8px; }
@media (max-width: 1699px) { .h3 { margin-top: 22px; } }
.blk.use .h3 { margin-top: 22px; }  /* the AI page's Use tables, at every width */
.demo { margin: -30px -44px 24px; padding: 8px 44px; background: var(--soft); color: var(--warn); border-bottom: 1px solid var(--border); }
.pagehead { display: flex; align-items: center; gap: 16px; }
.pagehead h1 { font-size: 28px; font-weight: 600; letter-spacing: 0; line-height: 1.2; }
.pagehead .fill { flex: 1; }
/* the one sentence a page leads with: what is true now */
.status { margin-top: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--border); font-size: 18px; line-height: 1.45; }
.status > span.say { display: block; max-width: 74ch; }
.blk { margin-top: 34px; }
.blk > h2 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.blk > h2 + .rule { margin: -4px 0 10px; color: var(--muted); max-width: 74ch; }
.rule { color: var(--muted); max-width: 74ch; }
.after { margin-top: 12px; }

/* wide windows use the width: two columns of sections, never one stretched table */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 56px; }
@media (min-width: 1700px) {
  .col { max-width: 1560px; }
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split.aside { grid-template-columns: minmax(0, 1fr) 420px; }
}
/* below that width a chosen person's detail comes before the list, not under it */
@media (max-width: 1699px) { .split .first-when-narrow { order: -1; } }
.engines table.t { table-layout: fixed; }
.engines th:nth-child(1) { width: 34%; } .engines th:nth-child(2) { width: 13%; } .engines th:nth-child(3) { width: 21%; } .engines th:nth-child(4) { width: 13%; }
/* why an engine did not start: a full line under its row, so the columns stay where they are */
.t tr.has-more td { border-bottom: 0; padding-bottom: 4px; }
.t tr.more td { padding-top: 0; max-width: none; }
.t .links { display: block; margin-top: 6px; }
.t .links a { margin-right: 16px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
.t td.path { overflow-wrap: normal; word-break: normal; }
.seg { white-space: nowrap; }
.w150 { width: 150px; } .w260 { width: 260px; }
.gap { margin-top: 12px; }
.cmd { font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px; padding: 10px 12px; background: var(--soft); border-radius: 3px; overflow-wrap: anywhere; max-width: 74ch; }
.failed { margin-top: 16px; padding: 10px 12px; border-left: 3px solid var(--bad); background: var(--soft); }

/* controls: 3 px corners, here only */
.btn { height: 32px; padding: 0 14px; border: 1px solid var(--border); border-radius: 3px; background: var(--field); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn[disabled] { color: var(--faint); cursor: default; border-color: var(--hair); }
.field { height: 32px; padding: 0 9px; border: 1px solid var(--border); border-radius: 3px; background: var(--field); min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters { margin-top: 22px; }

/* tables: ruled, never banded */
table.t { border-collapse: collapse; width: 100%; }
.t th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 6px 18px 7px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.t td { padding: 9px 18px 9px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.t td.n, .t th.n { text-align: right; }
.t td.name { white-space: nowrap; font-weight: 600; }
.t td.when { white-space: nowrap; }
.t td.act { white-space: nowrap; padding-right: 0; }
.t td.act a { margin-right: 16px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
.t td.act a:last-child { margin-right: 0; }
.t td.act a.danger { color: var(--bad); text-decoration-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.t tr.sel td { background: var(--soft); }
.t tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
.t tr.pick { cursor: pointer; }
.t tr.gone td { color: var(--muted); }
.t .sub { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.t td.long { overflow-wrap: anywhere; }
.t td.state { min-width: 8em; max-width: 16em; }  /* Harbor's label, then the engine's own sentence on the version */
.muted { color: var(--muted); }
.mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px; overflow-wrap: anywhere; }
.key { font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px; line-height: 1.6; word-break: break-all; max-width: calc(64ch + 24px); padding: 10px 12px; background: var(--soft); border-radius: 3px; }

/* state: a dot or ink, never a filled chip */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 0; background: var(--faint); }
.dot.good { background: var(--good); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.ink-warn { color: var(--warn); } .ink-bad { color: var(--bad); }
/* Harbor's own words on a version's sign-off statements (step F, F.5; look.js signoffSays): beside the file's line */
.signoff .cue { color: var(--muted); }
.signoff-fact, .signoff-note, .signoff-line, .signoff-gone { display: block; }
.sub.signoff .signoff-fact { font-size: 13px; }
.signoff.full > * + .signoff-line, .signoff.full > * + .signoff-gone { margin-top: 4px; }
.signoff-line.gone { color: var(--muted); }
.signoff-act { display: none; }  /* the narrow page's place for a line's action (ask.css) */
.signoff-note { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.signoff.full .signoff-fact { font-size: 13px; }

/* a short ruled list of facts */
dl.facts { display: grid; grid-template-columns: 200px minmax(0, 1fr); margin: 0; }
/* parted by space, not by a rule under every row */
.facts dt, .facts dd { margin: 0; padding: 6px 0 8px; }
.facts dt { color: var(--muted); padding-right: 16px; }
.facts .sub { display: block; color: var(--muted); font-size: 13px; }
.facts dt .sub { font-size: 12.5px; }

/* numbered steps, for the few things done outside this console */
ol.steps { margin: 0; padding: 0 0 0 20px; max-width: 74ch; }
.steps li { padding: 4px 0 4px 4px; }

/* a dialog: the one place with a border all round (8 px, as the suite's dialogs) */
.veil { position: fixed; inset: 0; background: var(--veil); display: flex; align-items: flex-start; justify-content: center; padding-top: 9vh; }
.dialog { width: 600px; max-width: calc(100vw - 48px); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 22px 26px 22px; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.dialog h2 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.dialog .lead { color: var(--muted); margin-bottom: 14px; }
.dialog .line { display: grid; grid-template-columns: 170px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 6px 0; }
.dialog .ticks { display: grid; gap: 4px; }
.dialog .tick { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.dialog .line label { color: var(--muted); }
.dialog .line label .sub { display: block; font-size: 12.5px; }
.dialog .line .field { width: 100%; }
.dialog .line .pair { display: flex; gap: 8px; }
.dialog .say { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); }
.dialog .say p + p { margin-top: 8px; }
.dialog .say.first { border-top: 0; padding-top: 0; margin-top: 0; margin-bottom: 8px; }
.dialog .t { margin-top: 4px; } .dialog .t .field { width: 100%; }
.dialog { max-height: 86vh; overflow-y: auto; }
.dialog .buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.check { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; }
.check span.box { width: 16px; height: 16px; border: 1px solid var(--faint); border-radius: 3px; flex: none; margin-top: 2px; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
a.btn { display: inline-flex; align-items: center; color: inherit; } a.btn:hover { text-decoration: none; }
a.btn.primary { color: var(--accent-ink); } a.btn.wide { justify-content: center; width: 100%; }
[hidden] { display: none !important; }

/* the sign-in page: one narrow column on the work surface, in the same look */
.signin-page { min-height: 100%; }
.signin { width: 440px; max-width: calc(100vw - 48px); margin: 0 auto; padding: 11vh 0 48px; }
.signin .brand { color: var(--ink); padding: 0; height: 40px; }
.signin h1 { font-size: 28px; font-weight: 600; line-height: 1.2; margin: 26px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.signin .line { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; padding: 6px 0; }
.signin .line label { color: var(--muted); } .signin .line .field { width: 100%; }
.signin .buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.signin .note { margin-bottom: 14px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--soft); }
.signin-page .demo { margin: 0; }
/* the demonstration directory: one button a person, the name first, the account name after it */
.signin .people { display: grid; gap: 8px; margin-top: 14px; }
.signin .btn.person { display: flex; justify-content: space-between; align-items: center; height: 38px; width: 100%; text-align: left; }
.signin .btn.person .sub { color: var(--muted); font-size: 13px; font-weight: 400; }
.signin .btn.person:hover { border-color: var(--accent); }
/* the pages the server draws itself (a product's sign-in in a browser): paragraphs, and the code a person types */
.signin > p + p { margin-top: 12px; }
.signin .code-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.signin code.ticket { display: inline-block; font: 600 24px/1.3 Consolas, "Cascadia Mono", monospace; letter-spacing: 1px; padding: 10px 14px;
  background: var(--soft); border-radius: 3px; user-select: all; }

/* Published Versions: a long model name wraps, so the right-hand columns stay in the window */
.t.published td.name.wrap { white-space: normal; overflow-wrap: anywhere; min-width: 10em; }
.t.published td.long { min-width: 12em; }
.t.published tr.more td { padding-left: 0; }
/* a narrow window: each version a block, its cells under one another, each named */
@media (max-width: 900px) {
  .t.stack, .t.stack tbody, .t.stack tr, .t.stack td { display: block; width: auto; }
  .t.stack thead { display: none; }
  .t.stack td { border-bottom: 0; padding: 2px 0; text-align: left; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
  .t.stack td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12.5px; }
  .t.stack td.n { text-align: left; }
  .t.stack tr { padding: 10px 0; border-bottom: 1px solid var(--hair); }
  .t.stack tr.has-more { border-bottom: 0; padding-bottom: 0; }
  .t.stack tr.more { padding-top: 4px; }
  .t.stack td.act a { display: inline-flex; align-items: center; min-height: 36px; }
}

@media (max-width: 1100px) {
  .main { padding: 24px 24px 48px; }
  .demo { margin: -24px -24px 18px; padding: 8px 24px; }
}

