/* Styles of the panel: look 1 "Console" (Kevin, 2026-12-03). Colours from brand kit v2.
   Geist is not shipped yet (the font files come with their licence through the workshop's
   deps/); until then the system font is used. Lessons in the workshop: knowledge/panel-ui.md. */

:root {
  /* brand kit v2 */
  --ink: #0E1424;
  --teal: #0F9D94;
  --teal-text: #0A7A73;
  --paper: #F7F5F1;
  --slate: #5B6478;
  --line: #E4E1DA;
  --good: #16804F;
  --warn: #8A5A00;
  --bad: #B0164F;
  /* derived from the kit, not kit colours */
  --line-soft: #EEECE7;
  --field: #848A95;      /* borders of fields: 3:1 contrast */
  --text-2: #3A4254;
  --warn-tint: #FAF1DC;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 14px/1.45 var(--sans); }
h1, h2, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sprite { display: none; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dim { color: var(--slate); }
.warn { color: var(--warn); }

/* ---- frame: top bar, menu, main ---- */
.frame { display: grid; grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: 52px minmax(0, 1fr); grid-template-areas: "top top" "side main"; height: 100vh; }
.top { grid-area: top; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; width: 200px; }
.search { display: flex; align-items: center; gap: 8px; width: 400px; height: 32px; padding: 0 10px; border-radius: 6px; background: var(--paper); color: var(--slate); }
.search .ic { width: 14px; height: 14px; }
.search input { flex: 1; border: 0; background: transparent; font: inherit; color: inherit; }
.side { grid-area: side; display: flex; flex-direction: column; padding: 12px 10px 0; border-right: 1px solid var(--line); overflow-y: auto; }
.group { margin-bottom: 14px; }
.group-title { padding: 6px 10px 4px; font-size: 12px; font-weight: 500; color: var(--slate); }
.item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 6px; color: var(--text-2); }
.item .ic { color: var(--slate); }
.item:hover { background: #FBFAF8; }
.item.on { background: var(--paper); color: var(--ink); font-weight: 600; }
.item.on .ic { color: var(--ink); }
.side-foot { margin-top: auto; padding: 12px 10px; font-size: 12px; color: var(--slate); border-top: 1px solid var(--line); }
.main { grid-area: main; min-width: 0; padding: 24px 28px 48px; overflow-y: auto; }
.main:has(.split) { padding: 0; overflow: hidden; }

/* ---- screen parts ---- */
.head { margin-bottom: 20px; }
.head h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.sub { margin-top: 4px; color: var(--slate); }
.section { padding-top: 14px; border-top: 1px solid var(--line); margin-bottom: 28px; min-width: 0; }
.section h2 { margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0 32px; align-items: start; }
.col-rail { padding-left: 24px; border-left: 1px solid var(--line); }
.empty { padding: 20px 24px; border-radius: 6px; background: var(--paper); color: var(--slate); }
.empty b { color: var(--ink); font-weight: 600; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--slate); }
.facts dd { font-weight: 500; text-align: right; }

/* things that need the admin: what, why, one action */
.att li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.att li:first-child { border-top: 0; }
.att .ic { width: 14px; height: 14px; align-self: flex-start; margin-top: 3px; color: var(--warn); }
.att p { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.att b { font-weight: 600; }
.att span { color: var(--slate); }

/* buttons: ink is the primary, an outline the secondary; 32 px in bars, 40 px in forms */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px; font-weight: 500; white-space: nowrap; flex: none; }
.btn.pri { background: var(--ink); color: #fff; }
.btn.sec { background: #fff; border: 1px solid var(--field); }

/* sites: the list on the left, the chosen site on the right */
.split { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: 100%; }
.list { padding: 18px 12px; background: var(--paper); border-right: 1px solid var(--line); overflow-y: auto; }
.list-head { padding: 0 4px 12px; }
.list-head h1 { font-size: 20px; font-weight: 600; }
.list .empty { background: #fff; }
.pane { padding: 24px 32px; overflow-y: auto; }

/* narrow windows: the menu goes above the screen */
@media (max-width: 900px) {
  .frame { grid-template-columns: minmax(0, 1fr); grid-template-rows: 52px auto minmax(0, 1fr); grid-template-areas: "top" "side" "main"; height: auto; min-height: 100vh; }
  .side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .group { margin: 0; display: flex; }
  .group-title, .side-foot { display: none; }
  .search { display: none; }
  .cols, .split { grid-template-columns: minmax(0, 1fr); }
  .col-rail { padding-left: 0; border-left: 0; }
}
