/*
  Noa Studio's frame. Noa's palette and type (apps/extension/static/ui.css: the same tokens, so the frame and the chat
  panel read as one product), light and dark following the OS.

  The page itself is transparent: the window's own background is the frame colour (--chrome, from palette.ts, which
  the window paints with too), and Noa's panel and the page are native views laid over their slots (#hero-slot or
  #panel-slot: noa-place.ts; #page-slot). While a menu, tooltip or dialog is open the shell is raised
  over those views, so nothing here may paint over a slot that has a view (data-view="true"); the slots' ring and
  shadow are drawn outside them.
*/
:root {
  --chrome: var(--palette-light-chrome);
  --bg: #f6f6f8;
  --surface: #ffffff;
  --text: #1d1d24;
  --muted: var(--palette-light-muted);
  --faint: #9a9aa6;
  --border: #dedee6;
  --field: #ffffff;
  --accent: #4f46e5;
  --accent-soft: #eeedfd;
  --on-accent: #ffffff;
  --ok: #15803d;
  --on-ok: #ffffff;
  --amber: #f5a524;
  --on-amber: #2b1c00;
  --bad: #b91c1c;
  --bad-soft: #fcebeb;
  --on-bad: #ffffff;
  --hover: rgb(29 29 36 / 0.065);
  --press: rgb(29 29 36 / 0.1);
  --well: rgb(29 29 36 / 0.055);
  --card-ring: rgb(24 24 40 / 0.085);
  --card-shadow: 0 1px 2px rgb(24 24 40 / 0.05), 0 2px 8px -2px rgb(24 24 40 / 0.06);
  --pop-shadow: 0 12px 32px -8px rgb(16 16 32 / 0.22), 0 2px 6px rgb(16 16 32 / 0.06);
  --tip-bg: #1f1f27;
  --tip-text: #f3f3f7;
  --focus: color-mix(in srgb, var(--accent) 60%, transparent);
  --scrim: var(--palette-light-scrim);

  --top: env(titlebar-area-height, 40px);
  /* The left column (the jobs, or one job's Noa panel): the width the user chose (--column-w, set by
     sidebar.ts), kept between its narrowest and its share of the window; collapsed, the strip (--rail). The second
     row's height is the toolbar's, which is the height of Noa's own first row (a job's header) so the two line up. */
  --column: max(var(--column-min, 280px), min(var(--column-w, 380px), var(--column-max, 45vw)));
  --gap: 8px;
  /* How far the column's contents sit in from its card's edges: the views, the search, the rows, the collapse button,
     and over them in the title bar, back and New chat, all on these two lines. */
  --inset: 6px;
  --bar: 44px;
  --radius: 8px;
  --card-radius: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --chrome: var(--palette-dark-chrome);
    --bg: #141418;
    --surface: #1c1c22;
    --text: #e9e9ef;
    --muted: var(--palette-dark-muted);
    --faint: #6f6f7d;
    --border: #2e2e37;
    --field: #17171c;
    --accent: #8b8cf6;
    --accent-soft: #26264a;
    --on-accent: #111118;
    --ok: #4ade80;
    --on-ok: #052e12;
    --amber: #f5b03a;
    --bad: #f87171;
    --bad-soft: #3a1a1a;
    --on-bad: #1c0606;
    --hover: rgb(233 233 239 / 0.07);
    --press: rgb(233 233 239 / 0.11);
    --well: rgb(233 233 239 / 0.06);
    --card-ring: rgb(255 255 255 / 0.075);
    --card-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 12px -4px rgb(0 0 0 / 0.4);
    --pop-shadow: 0 16px 40px -8px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.06);
    --tip-bg: #2b2b34;
    --tip-text: #f0f0f5;
    --scrim: var(--palette-dark-scrim);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: transparent; }
/* The frame colour behind everything, clear only where the window's native views are (backdrop.ts sets the clip): on
   macOS nothing of the transparent page may be left unpainted, or what was drawn there stays (ticket 6ca175ec). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--chrome); clip-path: var(--backdrop-clip, none);
}
body {
  display: grid;
  grid-template-columns: var(--column) minmax(0, 1fr);
  grid-template-rows: var(--top) minmax(0, 1fr);
  color: var(--text);
  font: 13px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  cursor: default;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
svg { display: block; flex: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* --- Buttons --------------------------------------------------------------------------------------------------- */
.icon-btn {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border: 0; border-radius: var(--radius); background: none; color: var(--muted); padding: 0;
  transition: background-color 120ms, color 120ms;
}
.icon-btn:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.icon-btn:active:not(:disabled) { background: var(--press); }
.icon-btn:disabled { color: var(--faint); opacity: 0.55; }

.btn {
  height: 30px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 500; white-space: nowrap; transition: background-color 120ms, border-color 120ms, filter 120ms;
}
.btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--text) 22%, var(--border)); }
.btn:disabled { opacity: 0.55; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.07); border-color: var(--accent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover:not(:disabled) { background: var(--hover); color: var(--text); border-color: transparent; }

/* --- Title bar: the app's name; over the browser, the update (the tabs are the browser's own row, below) ---------- */
.title-col, .title-browser { -webkit-app-region: drag; display: flex; align-items: center; min-width: 0; }
/*
  Painted in the frame colour, over the transparent page: on macOS, what is drawn where the page is transparent is not
  cleared before it is drawn again, so a translucent fill (a chip's hover, --well, --hover) builds up toward white and
  text that moved stays behind (ticket 2bc69a52: the Theme chip's old "Office" showed through Support, the user bar
  went grey with a white tokens badge). An opaque base under every part of the frame outside the cards fixes that; it
  is the window's own colour, so it looks the same. Never on a slot (see the top of this file).
*/
.title-col, .title-browser, .offer { background: var(--chrome); }
.title-col button, .title-browser button { -webkit-app-region: no-drag; }
.title-col { gap: 9px; padding: 0 var(--inset) 0 calc(var(--gap) + var(--inset)); }
:root[data-platform="darwin"] .title-col { padding-left: 84px; }
/* Back and forward through the views (title-bar.ts), first in the title bar as in Discord. */
.view-nav { flex: none; display: flex; align-items: center; gap: 2px; margin-right: 2px; }
.view-nav .icon-btn { width: 26px; height: 26px; }
/* No logo in the title bar (it is in the sidebar's header): on a Mac the window's own buttons come first. */
:root[data-platform="darwin"] .title-col .view-nav { margin-left: -6px; }
/* New chat: first in the sidebar's header (the logo is at the top of the workspace rail), one click away from the Home and from a job alike; as tall as the collapse button. */
.new-chat { flex: none; height: 28px; padding: 0 12px 0 9px; gap: 5px; white-space: nowrap; }
.collapse, .workspace-home { width: 28px; height: 28px; }
.workspace-home { flex: none; }
.workspace-home[hidden] { display: none; }
/* A running chat waits for the user's OK (title-bar.ts): in words, amber as the list's Needs you; a click opens it. */
.needs-chip {
  min-width: 0; height: 26px; padding: 0 10px; border: 0; border-radius: 13px; cursor: pointer;
  font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--amber) 20%, transparent); color: color-mix(in srgb, var(--amber) 60%, var(--text));
  transition: background-color 120ms;
}
.needs-chip[hidden] { display: none; }
.needs-chip:hover { background: color-mix(in srgb, var(--amber) 32%, transparent); }

.title-browser {
  gap: 6px; padding: 0 0 0 var(--gap);
  /* Leaves the caption buttons' place free (Windows, Linux: env() is their area's complement; macOS: nothing). */
  padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) + 10px);
}
/*
  Whose browser is on screen (tab-owner.ts), in the middle of the title bar over the browser: a click lists every open
  tab. Three columns, the name in the middle one, so the name never runs under the chips at the end (ticket 01f83c0a:
  centered over the whole bar, a long chat name went under "Update ready · Restart" on a Mac, where the bar has no
  caption buttons' room at its right). The end column is never narrower than its chips; while both sides have room the
  name stays in the middle, else it moves left of the chips and, out of room, shortens with an ellipsis.
*/
.title-browser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(max-content, 1fr); }
/* The column is as wide as the name (up to 420px) or what is left; the button fills it, so a long name shortens in it. */
.tab-owner, .tab-owner-rename { grid-column: 2; grid-row: 1; }
.tab-owner { justify-self: stretch; }
.tab-owner-rename { justify-self: center; }
.tab-owner {
  min-width: 0; max-width: 420px; height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 10px;
  border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 13px; font-weight: 600;
  transition: background-color 120ms;
}
.tab-owner:hover:not(:disabled), .tab-owner[aria-expanded="true"] { background: var(--hover); }
.tab-owner svg { flex: none; color: var(--muted); }
.tab-owner-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The job renamed in place (rename-in-place.ts): the box stands where its name was, typed into, never a drag handle. */
.in-place-rename {
  -webkit-app-region: no-drag; min-width: 0; padding: 0 8px; border: 1px solid var(--accent); border-radius: 8px;
  background: var(--well); color: var(--text); font: inherit;
}
.in-place-rename:focus { outline: none; }
.tab-owner-rename {
  width: 420px; max-width: 100%; height: 28px; font-size: 13px; font-weight: 600;
}
.bot-tab-rename { flex: none; width: 120px; height: 24px; font-size: 13px; }
.dash-rename { flex: none; width: min(560px, 50vw); height: 30px; font-size: 18px; font-weight: 650; }
/* No browser on screen (a new chat, the first view): nobody's to name. */
:root[data-noa="hero"] .tab-owner { display: none; }
.title-end { grid-column: 3; grid-row: 1; justify-self: end; padding-left: 8px; display: flex; align-items: center; }

/* The app's update: a quiet progress chip while it downloads, a button once it is ready. */
.update-chip {
  --progress: 0%;
  height: 26px; margin-right: 10px; padding: 0 11px 0 9px; display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 13px; font-size: 12px; font-weight: 550; white-space: nowrap;
  background: var(--well); color: var(--muted); animation: fade-in 200ms var(--ease);
}
.update-chip[data-look="ready"] { background: var(--accent-soft); color: var(--accent); cursor: pointer; transition: filter 120ms, background-color 120ms; }
.update-chip[data-look="ready"]:hover { background: color-mix(in srgb, var(--accent) 18%, var(--accent-soft)); }
.update-chip[data-look="ready"] .update-action { font-weight: 650; }
.update-chip .update-sep { opacity: 0.55; }
.update-chip:disabled { cursor: default; }
.update-ring {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--accent) var(--progress), color-mix(in srgb, var(--muted) 28%, transparent) 0);
  -webkit-mask: radial-gradient(circle, transparent 3.2px, #000 3.6px); mask: radial-gradient(circle, transparent 3.2px, #000 3.6px);
}

/* Chips at the end of the title bar: Theme, and Support (the support chat's button, its icon in the accent color). */
.support-chip {
  height: 26px; margin-right: 10px; padding: 0 11px 0 9px; display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 13px; font-size: 12px; font-weight: 550; white-space: nowrap; cursor: pointer;
  background: transparent; color: var(--muted); transition: background-color 120ms, color 120ms;
}
.support-chip[hidden] { display: none; }
.support-chip:hover, .support-chip[aria-pressed="true"] { background: var(--well); color: var(--text); }
.support-chip[data-opening="true"] { cursor: progress; opacity: 0.6; }
.support-open { color: var(--text); }
.support-open svg { color: var(--accent); }
/* Support updates waiting for the user (title-bar.ts SupportButton): a count after the label, in the accent color. */
.support-count {
  min-width: 16px; height: 16px; padding: 0 5px; box-sizing: border-box; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-size: 10.5px; font-weight: 650; line-height: 16px;
  text-align: center; font-variant-numeric: tabular-nums;
}
.support-count[hidden] { display: none; }

/* What a click could not do, for a few seconds over the right end of the toolbar (never over a view). */
.notice {
  position: absolute; right: calc(var(--gap) + 6px); top: calc(var(--bar) * 1.5); transform: translateY(-50%) scale(0.98); z-index: 1;
  max-width: min(520px, 60%); padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--card-ring), var(--card-shadow);
  opacity: 0; pointer-events: none; transition: opacity 160ms, transform 160ms var(--ease);
}
.notice[data-tone="bad"] { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.notice[data-shown] { opacity: 1; transform: translateY(-50%); }

/* --- The cards: the jobs and the page --------------------------------------------------------------------------- */
.slot { position: relative; min-height: 0; border-radius: var(--card-radius); box-shadow: 0 0 0 1px var(--card-ring), var(--card-shadow); }
/*
  The cards' colour, never under a slot that has a view (the shell is raised over the views while a menu is open or the
  column's edge is dragged): the jobs card paints its header, and its slot only with no view in it (Noa's panel over
  it on a job: the card once painted over the panel while the edge was dragged, ticket 016b8215); the hero paints it
  around its slot (the slot's spread shadow, clipped by the hero).
*/
.column-head { background: var(--bg); }
.panel-slot:not([data-view="true"]) { background: var(--bg); }
.hero-slot[data-view="false"] { background: var(--bg); }
.page-slot[data-view="false"] { background: var(--surface); }
.slot-state {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 24px; text-align: center; animation: fade-in 200ms var(--ease);
}
.state-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px;
  background: var(--well); color: var(--muted);
}
.state-icon svg { width: 20px; height: 20px; }
.state-icon.bad { background: var(--bad-soft); color: var(--bad); }
.state-title { margin: 0; font-size: 14px; font-weight: 600; }
.state-text { margin: 0 0 10px; max-width: 300px; color: var(--muted); font-size: 12.5px; line-height: 1.5; user-select: text; }

/* --- The column: the jobs list (the Home), or one job (Noa's panel over the card); the user ------------------------ */
.column { position: relative; grid-row: 2; display: flex; flex-direction: column; gap: 6px; padding: 0 0 var(--gap) var(--gap); min-width: 0; min-height: 0; }
/* Its right edge, in the gap before the browser: dragged, it sets the width (sidebar.ts); a line shows where. */
.column-handle {
  position: absolute; z-index: 2; top: 0; bottom: var(--gap); right: calc(-1 * var(--gap)); width: var(--gap);
  cursor: col-resize; -webkit-app-region: no-drag; touch-action: none;
}
.column-handle::after {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: 50%; width: 2px; margin-left: -1px; border-radius: 1px;
  background: var(--accent); opacity: 0; transition: opacity 120ms 150ms;
}
.column-handle:hover::after, :root[data-resizing] .column-handle::after { opacity: 0.5; transition-delay: 0ms; }
:root[data-resizing], :root[data-resizing] * { cursor: col-resize !important; user-select: none; }
/* While the edge is dragged no frame takes the pointer: the office's world is another origin's frame in the browser's
   place, and moves over it went to it, not to the shell (raising the shell ends the handle's capture: sidebar.ts), so
   the edge stopped as soon as the pointer crossed into the café (ticket 6ca175ec). */
:root[data-resizing] iframe { pointer-events: none; }
.rail-top { display: none; }
/* The sidebar's card: its header, then the jobs list or Noa's panel (a native view over #panel-slot, under the header). */
.column-card { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
/* The header (ticket 298575ce): the logo, New chat and at its end the collapse button, the same on the Home and on a
   job, in the browser's tab row beside it; the logo as tall as New chat. */
.column-head { flex: none; display: flex; align-items: center; gap: 8px; height: var(--bar); padding: 0 var(--inset); }
.column-head .collapse { margin-left: auto; }
.panel-slot { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
/* Hands-free voice is on (voice-bar.ts): red, at the top of the column on every page; a click goes to its job. */
.voice-bar {
  flex: none; display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 6px; padding: 8px 12px; border: 0;
  border-radius: var(--radius, 10px); background: #c8233f; color: #fff; font: inherit; text-align: start; cursor: pointer;
  -webkit-app-region: no-drag;
}
.voice-bar[hidden] { display: none; }
.voice-bar:hover:not([aria-disabled]) { background: #b01d36; }
.voice-bar[aria-disabled] { cursor: default; }
.voice-bar[data-muted] { background: color-mix(in srgb, #c8233f 55%, var(--bg)); }
.voice-bar-mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgb(255 255 255 / 0.18); animation: voice-bar-pulse 1.6s ease-in-out infinite; }
.voice-bar[data-muted] .voice-bar-mark { animation: none; }
@keyframes voice-bar-pulse { 50% { box-shadow: 0 0 0 5px rgb(255 255 255 / 0.12); } }
.voice-bar-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.voice-bar-words { font-size: 13px; font-weight: 600; }
.voice-bar-where { font-size: 12px; opacity: 0.9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-collapsed] .voice-bar { justify-content: center; padding: 6px 0; }
:root[data-collapsed] .voice-bar-text { display: none; }
@media (prefers-reduced-motion: reduce) { .voice-bar-mark { animation: none; } }
/* Why Noa could not start, under the jobs list: the Home has no box to say it in (noa-place.ts). */
.noa-trouble { position: relative; flex: none; height: 60px; }
.noa-trouble:empty { display: none; }
:root[data-noa="column"] .job-list, :root[data-noa="column"] .noa-trouble { display: none; }
.job-list { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* The search bar, under the sidebar's header on the Home (it stays while the rows scroll), its filter button at its end:
   in the browser's toolbar row beside it, its glass over the rows' glyphs (a row's 10px padding and its 30px mark, centred:
   17px for a 16px icon). */
.list-search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 3px 0 17px;
  border-radius: var(--radius); background: var(--well); color: var(--muted);
}
.list-search:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.list-search > svg { flex: none; }
.list-search-input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; }
.list-search-input::placeholder { color: var(--muted); }
.list-search-input:focus-visible { outline: none; }
.list-search-clear { flex: none; width: 24px; height: 24px; }
.list-search-clear[hidden] { display: none; }
/* Under the sidebar's header on the Home (job-list.ts): which agents and how they are grouped, two dropdowns, and the
   magnifying glass at the row's end; searching, the field in their place. In the browser's toolbar row beside it. */
.list-bar { flex: none; display: flex; align-items: center; gap: 6px; height: var(--bar); padding: 0 var(--inset) 2px; }
.list-picks { flex: 1; min-width: 0; display: flex; gap: 6px; }
.list-pick {
  flex: 0 1 auto; min-width: 0; height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 11px;
  border: 0; border-radius: var(--radius); background: var(--well); color: var(--text); font-size: 12.5px; font-weight: 550;
  white-space: nowrap; position: relative; transition: background-color 120ms;
}
.list-pick:hover, .list-pick[aria-expanded="true"] { background: var(--hover); }
.list-pick > svg { color: var(--muted); flex: none; }
.list-pick.group-pick { padding-left: 9px; }
.list-pick-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.list-search-open { width: 30px; height: 30px; }
.list-bar .list-search { display: none; }
.list-bar[data-search] .list-picks, .list-bar[data-search] .list-search-open { display: none; }
.list-bar[data-search] .list-search { display: flex; }
.pick-menu { min-width: 180px; }
.pick-menu .menu-header { padding: 6px 10px 2px; }
.menu-note { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.menu-section { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.list-scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; padding: 0 var(--inset) 12px; scrollbar-width: thin; }
.list-rows { flex: none; }
/* Room enough under the bar for "Nothing found" or the empty view's words, centred. */
.list-rows:has(> .list-empty) { flex: 1 0 auto; display: flex; flex-direction: column; }
.list-rows > .list-empty { flex: 1; height: auto; }
.list-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px 28px 64px; text-align: center; }
.list-group { margin-top: 8px; }
.group-label { margin: 0; padding: 6px 10px 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.list-group[data-group="needs"] .group-label { color: color-mix(in srgb, var(--amber) 60%, var(--text)); }
.group-jobs { list-style: none; margin: 0; padding: 0; }
.job {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 4px 10px; min-height: 32px;
  border: 0; border-radius: var(--radius); background: none; color: var(--text); text-align: start;
  transition: background-color 100ms;
}
.job:hover { background: var(--hover); }
.job:active { background: var(--press); }
/* The job whose browser is on screen. */
.job[aria-current="true"] { background: var(--well); }
.job:focus-visible { outline-offset: -2px; }
/* A row's menu: its "⋯" over its right end on hover; what is there moves over for it. */
.job-item { position: relative; }
.job-more { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 24px; height: 24px; display: none; }
.job-item:hover .job-more:not([hidden]), .job-more[aria-expanded="true"]:not([hidden]) { display: grid; place-items: center; }
.job-item:hover:has(.job-more:not([hidden])) .job, .job-item:has(.job-more[aria-expanded="true"]) .job { padding-right: 32px; }
:root[data-collapsed] .job-more { display: none !important; }
.job-item[data-renaming] .job { visibility: hidden; }
.job-item[data-renaming] .job-more { display: none; }
/* Rename (job-list.ts renameRow): the bot's name, then the job's, each in its own box over the row. */
.job-rename-row { position: absolute; inset: 2px 4px; display: flex; gap: 4px; }
.job-rename { flex: 1; min-width: 0; padding: 0 8px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--well); color: var(--text); font: inherit; font-size: 13px; }
.job-rename:focus { outline: none; }
.job-rename-bot { flex: 0 1 38%; }
.list-undo { flex: none; display: flex; align-items: center; gap: 10px; margin: 4px 8px; padding: 6px 10px; border-radius: var(--radius); background: var(--well); font-size: 12.5px; }
.list-undo[hidden] { display: none; }
.list-undo-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-undo-action { flex: none; border: 0; padding: 2px 6px; border-radius: var(--radius); background: none; color: var(--accent); font-weight: 600; }
.list-undo-action:hover { background: var(--hover); }
.job-mark { width: 30px; flex: none; display: grid; place-items: center; color: var(--faint); }
.job-mark[data-state="needs"] { color: var(--amber); }
.job-mark[data-state="blocked"] { color: var(--amber); }
.job-mark[data-state="running"] { color: var(--accent); }
.job-mark[data-state="running"] > svg { animation: spin 1.1s linear infinite; }
.job-mark[data-state="done"] { color: var(--ok); }
.job-mark[data-state="failed"] { color: var(--bad); }
.job-mark[data-state="due"], .job-mark[data-state="retry"], .job-mark[data-state="waiting"] { color: var(--accent); }
/* A job in progress: its bot's face (bots/faces.ts), moving a little by its state, smoothly (eased, never stepped):
   at work it bobs as it types; waiting it leans back and a "z" drifts up; needing the user it
   has a hand up, ringed in the attention colour. With reduced motion: a still face and the state's glyph on its corner. */
.job-mark[data-face] { position: relative; }
.job-face-box { position: relative; display: block; }
.job-face { display: block; width: 26px; height: 26px; border-radius: 7px; background: var(--well); -webkit-user-drag: none; }
.job-face[data-state="running"] { animation: face-type 0.45s ease-in-out infinite alternate; }
.job-face[data-state="waiting"] { transform: rotate(-8deg); }
.job-mark[data-face][data-state="waiting"]:not([data-watching])::after {
  content: "z"; position: absolute; top: -3px; right: 0; font-size: 9px; font-weight: 700; line-height: 1; color: var(--accent);
  opacity: 0; animation: face-z 3s ease-out infinite;
}
.job-face[data-state="needs"], .overview-ws[data-state="needs"] { background: color-mix(in srgb, var(--amber) 18%, var(--well)); box-shadow: 0 0 0 1.5px var(--amber); }
/* What the agent is up to, on its face's corner, always (job-list.ts FACE_BADGES): at work a play mark in green, its face
   ringed in green too so who is working stands out (ticket c3bbaefb); waiting on something Noa watches now an eye, ringed
   in the same green (ticket a25e49d8: still at work, only waiting for the result); coming back later a clock, needing the user an
   exclamation mark in the attention colour, done a check in the accent colour (no ring), failed a cross. */
.job-face-badge {
  position: absolute; right: -4px; bottom: -3px; width: 14px; height: 14px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface); color: var(--muted); box-shadow: 0 0 0 1.5px var(--surface);
}
.job-face-badge[data-badge="working"] { background: var(--ok); color: var(--on-ok); }
.job-face-badge[data-badge="watching"] { background: var(--ok); color: var(--on-ok); }
.job-face-box:has(> .job-face-badge:is([data-badge="working"], [data-badge="watching"])) > :is(.job-face, .overview-ws) { box-shadow: 0 0 0 2px var(--ok); }
.job-face-badge[data-badge="needs"] { background: var(--amber); color: var(--on-amber); animation: badge-call 1.6s ease-in-out infinite; }
/* Blocked (ticket 8fa729c8): amber, still: it waits on the user, but is not asking this moment. */
.job-face-badge[data-badge="blocked"] { background: var(--amber); color: var(--on-amber); }
.job-face-badge[data-badge="later"] { color: var(--accent); box-shadow: 0 0 0 1px var(--border), 0 0 0 2px var(--surface); }
.job-face-badge[data-badge="done"] { background: var(--accent); color: var(--on-accent); }
.job-face-badge[data-badge="failed"] { background: var(--bad); color: var(--on-bad); }
.job-face-badge:is([data-badge="paused"], [data-badge="stopped"]) { box-shadow: 0 0 0 1px var(--border), 0 0 0 2px var(--surface); }
/* On a phone call right now (ticket 9964485d): a red ring round the face and the phone as its badge, ringing; no face: the phone in a red ring. */
.job-face-badge[data-badge="call"] { background: var(--bad); color: var(--on-bad); animation: badge-call 1.6s ease-in-out infinite; }
.job-face-box:has(> .job-face-badge[data-badge="call"]) > :is(.job-face, .overview-ws) { box-shadow: 0 0 0 2px var(--bad); }
[data-call] .job-mark[data-face]::after { content: none; }
/* A repeating task's agent (ticket 4fcc62cd): a circular arrow on the face's top-right corner, in every state; its
   waiting "z" drifts up from the top-left corner instead, so the two never sit on each other. */
.job-face-repeat {
  position: absolute; right: -4px; top: -3px; width: 14px; height: 14px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface); color: var(--accent); box-shadow: 0 0 0 1px var(--border), 0 0 0 2px var(--surface);
}
.job-mark[data-face][data-repeat]::after { right: auto; left: 0; }
.job-call-mark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: var(--bad); box-shadow: inset 0 0 0 2px var(--bad); }
@keyframes badge-call { 50% { transform: scale(1.18); } }
@keyframes face-type { to { transform: translateY(-2px); } }
@keyframes face-z { from { opacity: 0; transform: translate(0, 4px); } 30% { opacity: 1; } 70%, to { opacity: 0; transform: translate(3px, -6px); } }
@media (prefers-reduced-motion: reduce) {
  .job-face[data-state] { animation: none; }
  .job-mark[data-face]::after { content: none; }
  .job-face-badge { animation: none; }
}
/* A waiting job: its next run's time in place of the glyph, wider than one. The rows line up; a wider font takes more room, never the title's. */
.job-mark:has(> .clock) { width: auto; min-width: 52px; }
.clock { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.clock-time { font-size: 11px; font-weight: 650; color: var(--text); white-space: nowrap; }
.clock-day { font-size: 10.5px; color: var(--muted); }
.job-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* The first line: the bot's name (the one it wears in the office), then its role, else the job's title; the name keeps
   its room, what follows it is cut. */
.job-line { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 13px; line-height: 1.35; white-space: nowrap; }
.job-line > [hidden] { display: none; }
.job-name { flex: none; font-weight: 650; }
.job-role { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.job-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.job[data-state="needs"] .job-title, .job[data-state="running"] .job-title { font-weight: 550; }
.job-meta { min-width: 0; font-size: 11.5px; line-height: 1.3; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Where it runs ("JN-Desktop · Local Claude"): a third line, quieter than the meta. */
.job-when { flex: none; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.job-when:empty { display: none; }
/* How many browser tabs the job has open; in the accent colour while Noa works in one. */
.job-tabs { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 550; font-variant-numeric: tabular-nums; color: var(--muted); }
.job-tabs[hidden] { display: none; }
.job-tabs[data-working] { color: var(--accent); }
.job-tabs svg { flex: none; }
:root[data-collapsed] .job-tabs { display: none; }
/* When the agent does something next (a clock and "14 h"): where its schedule or wait used to take a line of its own. */
.job-next { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.job-next[hidden] { display: none; }
.job-next svg { flex: none; }
:root[data-collapsed] .job-next { display: none; }
.job[data-state="running"] .job-when { color: var(--accent); font-weight: 550; }
.job[data-state="needs"] .job-when { color: color-mix(in srgb, var(--amber) 60%, var(--text)); }
/* The job hands-free voice talks into: "Voice" in the voice strip's red (not the Studio's green), the row tinted;
   on the collapsed strip the tint and a red glyph are what is left of it. */
.job[data-voice] { background: color-mix(in srgb, #c8233f 14%, transparent); }
.job[data-voice]:hover { background: color-mix(in srgb, #c8233f 22%, transparent); }
.job-voice { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 7px; border-radius: 999px; background: #c8233f; color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.job-voice[hidden] { display: none; }
.job-voice svg { flex: none; }
:root[data-collapsed] .job-voice { display: none; }
:root[data-collapsed] .job[data-voice] .job-mark { color: #c8233f; }
.job-pill { padding: 1px 8px; border-radius: 999px; background: var(--well); font-size: 11px; font-weight: 550; }

/* --- The Agents view (job-list.ts, job-drag.ts): the user's groups of agents, made and changed by dragging ----------
   A group is its name over its agents, no box around it: a chevron that turns, the name, how many, a dot that says
   what is going on inside (amber: one needs you; the accent, breathing: one works). Folded, its agents' faces sit
   stacked at the heading's end. Dragged, a row lifts off as a card; what a drop would do lights up before the drop:
   an agent to group with rings, a group to join or the rest to go back to washes in the accent. Moves glide (FLIP). */
.agent-group { margin-top: 10px; border-radius: 12px; transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease); animation: group-in 240ms var(--ease); }
.list-group[data-kind="rest"] { border-radius: 12px; transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease); }
/* Agents standing on their own between groups (ticket 7075177f): a group has no box, so a hairline above them says they
   are not the last of the group over them. */
.list-group[data-kind="loose"] { margin-top: 10px; }
.list-group[data-kind="loose"]:not(:first-child) { padding-top: 6px; border-top: 1px solid var(--border); }
@keyframes group-in { from { opacity: 0; transform: translateY(-3px); } }
.group-head { position: relative; display: flex; align-items: center; }
.group-fold {
  flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 4px;
  border: 0; border-radius: var(--radius); background: none; color: var(--text); text-align: start;
  transition: background-color 100ms;
}
.group-fold:hover { background: var(--hover); }
.group-fold:focus-visible { outline-offset: -2px; }
.group-chevron { flex: none; width: 16px; display: grid; place-items: center; color: var(--faint); transition: transform 220ms var(--ease), color 120ms; }
.group-fold:hover .group-chevron { color: var(--muted); }
.agent-group[data-collapsed] .group-chevron { transform: rotate(-90deg); }
.group-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 650; letter-spacing: 0.005em; }
.group-count { flex: none; font-size: 11px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.group-pulse { flex: none; width: 6px; height: 6px; border-radius: 50%; display: none; }
.group-pulse[data-state="needs"] { display: block; background: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 22%, transparent); }
.group-pulse[data-state="running"] { display: block; background: var(--accent); animation: group-breathe 1.8s ease-in-out infinite; }
@keyframes group-breathe { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); } }
.group-faces { flex: none; margin-left: auto; display: flex; align-items: center; padding-left: 8px; opacity: 0; transform: translateX(6px); transition: opacity 180ms var(--ease), transform 240ms var(--ease); pointer-events: none; }
.agent-group[data-collapsed] .group-faces { opacity: 1; transform: none; }
.group-face { width: 18px; height: 18px; margin-left: -5px; border-radius: 5px; background: var(--well); box-shadow: 0 0 0 1.5px var(--chrome); object-fit: cover; }
.group-face:first-child { margin-left: 0; }
img.group-face[data-state="needs"] { box-shadow: 0 0 0 1.5px var(--chrome), 0 0 0 3px var(--amber); }
.group-face-more { display: grid; place-items: center; width: auto; min-width: 18px; padding: 0 4px; font-size: 9.5px; font-weight: 700; color: var(--muted); }
.group-more { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); width: 24px; height: 24px; display: none; }
.group-head:hover .group-more, .group-more[aria-expanded="true"] { display: grid; place-items: center; }
.group-head:hover .group-fold, .group-head:has(.group-more[aria-expanded="true"]) .group-fold { padding-right: 30px; }
.agent-group[data-renaming] .group-fold { visibility: hidden; }
.agent-group[data-renaming] .group-more { display: none; }
.group-rename {
  position: absolute; inset: 0 2px; padding: 0 8px 0 26px; border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--well); color: var(--text); font: inherit; font-size: 12px; font-weight: 650;
}
.group-rename:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.group-rename::placeholder { font-weight: 450; color: var(--faint); }
/* Folding: the agents fold up under the name (rows clip only while they fold, so a row gliding in is never cut). */
/* One column no wider than the list: an auto column would grow to a long row's one-line text and scroll the list
   sideways (ticket 299d631e). */
.group-body { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; transition: grid-template-rows 260ms var(--ease), opacity 200ms var(--ease); }
.group-body > .group-jobs { min-height: 0; min-width: 0; }
.agent-group:is([data-collapsed], [data-opening]) .group-body > .group-jobs { overflow: hidden; }
.agent-group[data-collapsed] .group-body { grid-template-rows: 0fr; opacity: 0; }
/* Dragging. */
:root[data-dragging] { cursor: grabbing; }
:root[data-dragging] * { cursor: grabbing !important; }
:root[data-dragging] .job:hover, :root[data-dragging] .group-fold:hover { background: none; }
:root[data-dragging] .job-more, :root[data-dragging] .group-more { display: none !important; }
:root[data-dragging] .job-item:hover .job { padding-right: 10px; }
.job-item[data-dragging] { opacity: 0.3; transition: opacity 140ms; }
.job-item[data-drop="merge"] > .job { background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent); }
/* An agent dragged above or below another: a line where it would go (ticket 19ae9bea). */
.job-item[data-drop="before"], .job-item[data-drop="after"] { position: relative; }
.job-item[data-drop="before"]::before, .job-item[data-drop="after"]::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 1px; background: var(--accent); pointer-events: none; z-index: 1;
}
.job-item[data-drop="before"]::before { top: -1px; }
.job-item[data-drop="after"]::after { bottom: -1px; }
.job-face, .job-mark > svg { transition: transform 200ms cubic-bezier(0.3, 1.5, 0.5, 1); }
.job-item[data-drop="merge"] .job-face { transform: scale(1.14); }
.agent-group[data-drop="join"], .list-group[data-kind="rest"][data-drop="out"] {
  background: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent);
}
.agent-group[data-drop="join"] .group-chevron { color: var(--accent); }
.list-group[data-kind="rest"][data-drop="out"] { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 30%, transparent); }
.drag-ghost { position: fixed; z-index: 1000; pointer-events: none; will-change: transform; }
.drag-card {
  height: 100%; border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 0 0 1px var(--card-ring), 0 2px 6px rgb(0 0 0 / 0.08);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.drag-card > .job { height: 100%; pointer-events: none; background: none !important; }
.drag-card[data-lifted] { transform: scale(1.025) rotate(-0.8deg); box-shadow: 0 0 0 1px var(--card-ring), var(--pop-shadow); }
/* Over an agent to group with: the card draws in around the pointer, so the agent's ring shows all round it. */
.drag-card[data-merge] { transform: scale(0.84) rotate(0deg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent), var(--pop-shadow); }
/* A group's heading dragged: its group fades in place, a line shows where it would go (above a group, or below the last). */
.agent-group[data-dragging] { opacity: 0.35; transition: opacity 140ms; }
.agent-group[data-drop="before"], .agent-group[data-drop="after"] { position: relative; }
.agent-group[data-drop="before"]::before, .agent-group[data-drop="after"]::after {
  content: ""; position: absolute; left: 4px; right: 4px; height: 2px; border-radius: 1px; background: var(--accent); pointer-events: none;
}
.agent-group[data-drop="before"]::before { top: -6px; }
.agent-group[data-drop="after"]::after { bottom: -6px; }
.drag-card.drag-group > .group-head { height: 100%; pointer-events: none; }
.drag-card.drag-group .group-fold { background: none !important; }
.drag-out {
  flex: none; margin: 10px 0 0; padding: 14px 10px; border: 1.5px dashed var(--border); border-radius: 12px;
  text-align: center; font-size: 12px; color: var(--muted); animation: group-in 200ms var(--ease);
  transition: border-color 140ms, background-color 140ms, color 140ms;
}
.drag-out[data-drop] { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--text); }
/* With no group yet: how to make one, quietly, under the agents. */
.agents-hint { flex: none; display: flex; align-items: center; gap: 8px; margin: 14px 10px 2px; font-size: 11.5px; color: var(--faint); }
.agents-hint[hidden] { display: none; }
.agents-hint-mark { position: relative; flex: none; width: 16px; height: 12px; }
.agents-hint-mark > i { position: absolute; top: 2px; width: 9px; height: 9px; border-radius: 3px; border: 1.25px solid currentColor; }
.agents-hint-mark > i:first-child { left: 0; animation: hint-meet 3.2s var(--ease) infinite; }
.agents-hint-mark > i:last-child { right: 0; }
@keyframes hint-meet { 0%, 20% { transform: none; } 45%, 70% { transform: translate(4px, -2px); } 95%, 100% { transform: none; } }
/* On the strip: no headings, every agent shown (a fold is the open column's). */
:root[data-collapsed] .group-head, :root[data-collapsed] .agents-hint { display: none; }
:root[data-collapsed] .agent-group { margin: 0 8px; padding: 4px 0; }
:root[data-collapsed] .agent-group .group-body { grid-template-rows: 1fr; opacity: 1; }
:root[data-collapsed] .agent-group .group-body > .group-jobs { overflow: visible; }
@media (prefers-reduced-motion: reduce) {
  .agent-group, .drag-out { animation: none; }
  .group-body, .group-chevron, .group-faces, .drag-card, .job-face { transition: none; }
  .group-pulse[data-state="running"], .agents-hint-mark > i { animation: none; }
}

/* While Noa starts, or when it could not: a field that is not ready yet (or why, with Try again). */
.field-stand {
  position: absolute; inset: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 12px 0 16px; border-radius: 14px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--card-ring), var(--card-shadow); animation: fade-in 200ms var(--ease);
}
.field-stand-text { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 14px; }
.field-stand[data-bad] .field-stand-text { color: var(--bad); font-size: 13px; font-weight: 550; }

/* The user, as in Discord: their picture or initials, name and plan; a click opens their menu. */
.user-card { flex: none; display: flex; align-items: center; min-width: 0; border-radius: var(--card-radius); background: var(--chrome); }
.user-card > .user { flex: 1 1 auto; min-width: 0; }
.user-card { container-type: inline-size; }
.user {
  flex: none; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 var(--inset);
  border: 0; border-radius: var(--card-radius); background: var(--chrome); color: var(--text); text-align: start;
  -webkit-app-region: no-drag; transition: background-color 120ms;
}
/* Its hover over the frame colour, never over the transparent page (the title bar's note on macOS; it also flickered
   grey to lighter while the Office's café drew, ticket 6ca175ec). */
.user:hover, .user[aria-expanded="true"] { background: linear-gradient(var(--hover), var(--hover)), var(--chrome); }
.user > svg { margin-left: auto; color: var(--faint); }
.user:hover > svg, .user[aria-expanded="true"] > svg { color: var(--muted); }
.user-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.user-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The Noa tokens left, a badge between the name and the menu's chevron. */
.user-tokens {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px;
  border-radius: 11px; background: var(--well); color: var(--text); font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.user-tokens > svg { color: var(--accent); }
.user-tokens[data-empty] { color: var(--muted); }
.user-tokens[data-empty] > svg { color: var(--faint); }
.user > .user-tokens + svg { margin-left: 0; }
.avatar {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden;
  background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 650; letter-spacing: 0.02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.large { width: 38px; height: 38px; font-size: 14px; }
.avatar.signed-out { background: var(--well); color: var(--muted); }

/* Recent, at the list's top (ticket 267b5d2d): a section like a group, without its "⋯"; under it a hairline before the
   rest of the list. On the strip it is not shown: its rows are copies of those below. */
.list-group[data-kind="recent"] { margin-top: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
:root[data-collapsed] .list-group[data-kind="recent"] { display: none; }
/* Its rows (ticket b67cef4d): one line each, no face, only the state's badge in front (job-list.ts fillRow `compact`), so
   they do not look like the agents below them, the ones to drag. What the agent is doing, its tabs and its next time
   are on its own row below. */
.list-group[data-kind="recent"] .job { min-height: 26px; padding-block: 2px; gap: 8px; }
.list-group[data-kind="recent"] .job-mark { width: 16px; }
.list-group[data-kind="recent"] .job-dot { position: static; box-shadow: none; }
.list-group[data-kind="recent"] .job-line { font-size: 12.5px; }
.list-group[data-kind="recent"] :is(.job-meta, .job-tabs, .job-next) { display: none; }
/* On its right, how long ago it last did something (ticket 168dad31), quiet whatever its state: its badge says that. */
.list-group[data-kind="recent"] .job .job-when { color: var(--muted); font-weight: 400; }
/* --- The column collapsed to its strip: open it, a new job, each job's glyph (its title in a tooltip), the user --- */
:root[data-collapsed] { --column: var(--rail, 56px); }
:root[data-collapsed] .title-col { justify-content: center; padding: 0 0 0 var(--gap); }
:root[data-collapsed] .title-col > * { display: none; }
:root[data-collapsed] .column-head { display: none; }
/* Collapsed, the strip's top keeps the arrows (New chat is the strip's own); on a Mac the window's own buttons are there. */
:root[data-collapsed]:not([data-platform="darwin"]) .title-col > .view-nav { display: flex; margin: 0; gap: 0; }
:root[data-collapsed] .view-nav .icon-btn { width: 22px; height: 26px; }
:root[data-collapsed] .rail-top { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 6px; border-bottom: 1px solid var(--border); }
:root[data-collapsed] .rail-top .icon-btn { width: 34px; height: 34px; }
.rail-new { color: var(--accent) !important; }
:root[data-collapsed] .list-bar, :root[data-collapsed] .group-label, :root[data-collapsed] .list-empty,
:root[data-collapsed] .job-text, :root[data-collapsed] .job-when { display: none; }
:root[data-collapsed] .list-scroll { padding: 2px 0 8px; scrollbar-width: none; }
:root[data-collapsed] .list-group { margin: 0 8px; padding: 4px 0; }
:root[data-collapsed] .list-group + .list-group { border-top: 1px solid var(--border); }
:root[data-collapsed] .job { justify-content: center; min-height: 36px; height: 36px; padding: 0; gap: 0; }
:root[data-collapsed] .job-mark { width: auto; }
:root[data-collapsed] .user { justify-content: center; padding: 0; }
:root[data-collapsed] .user > :not(.avatar) { display: none; }
/* The strip: the picture alone. */
:root[data-collapsed] .user-card > .user { width: 100%; padding: 0; }

/* --- Browser ---------------------------------------------------------------------------------------------------- */
/* Its rows, as in a browser: its tabs, its toolbar (address bar and all), its bookmarks bar, its page. The tab row is as
   tall as Noa's own first row (a job's header), so the two line up. */
.browser { position: relative; grid-row: 2; grid-column: 3; display: grid; grid-template-rows: var(--bar) var(--bar) auto minmax(0, 1fr); padding: 0 var(--gap) var(--gap); min-width: 0; min-height: 0; }
.browser > * { grid-column: 1; }
.browser > .tabbar { grid-row: 1; }
.browser > .toolbar { grid-row: 2; }
.browser > .bookmark-bar { grid-row: 3; }
.browser > .page-slot { grid-row: 4; }

.tabbar { display: flex; align-items: center; gap: 6px; min-width: 0; }

.tabs-menu { min-width: 260px; max-width: 380px; max-height: min(70vh, 560px); overflow-y: auto; }
.tabs-menu .menu-item { flex: none; }
.tabs-menu .menu-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* A row's "Move to…" (ticket 390e3a7f): every group, scrolling past the screen's room. */
.move-menu { min-width: 220px; max-width: 340px; max-height: min(60vh, 480px); overflow-y: auto; }
.move-menu .menu-item { flex: none; }
.move-menu .menu-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs-menu .menu-header { padding: 6px 10px 4px; }
.tabs-menu-title { font-size: 13px; font-weight: 650; }
.tabs-group { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.tabs-group-name { min-width: 0; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs-group[data-on-screen="true"] .tabs-group-name { color: var(--text); }
.tabs-group-meta { flex: none; font-size: 11.5px; color: var(--muted); }

.tabstrip { display: flex; align-items: center; gap: 4px; min-width: 0; height: 100%; }
.tabs {
  display: flex; align-items: center; gap: 4px; min-width: 0; flex: 0 1 auto; height: 100%;
  /* Room for the tab in front's 1px ring, which overflow would cut; the first tab still starts on the page's edge. */
  padding: 0 1px; margin-left: -1px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  /* Faded where more tabs are out of sight (tab-strip.ts marks the edges). */
  --before: 0px; --after: 0px;
  mask-image: linear-gradient(to right, transparent, #000 var(--before), #000 calc(100% - var(--after)), transparent);
}
.tabs[data-more-before="true"] { --before: 28px; }
.tabs[data-more-after="true"] { --after: 28px; }
.tab {
  position: relative; flex: 0 1 200px; min-width: 44px; height: 30px; display: flex; align-items: center; gap: 7px; overflow: hidden;
  padding: 0 4px 0 10px; border-radius: var(--radius); color: var(--muted); font-size: 12.5px;
  transition: background-color 120ms, color 120ms;
}
.tab:hover { background: var(--hover); color: var(--text); }
.tab[data-active="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--card-ring), 0 1px 2px rgb(24 24 40 / 0.06); }
.tab-icon { width: 16px; height: 16px; flex: none; display: grid; place-items: center; color: var(--faint); }
.tab-icon img { width: 16px; height: 16px; border-radius: 3px; }
.tab[data-crashed="true"] .tab-icon { color: var(--bad); }
/* Noa acts on this tab now: a badge on the tab's icon, which even the narrowest tab keeps. */
.tab-agent {
  position: absolute; left: 19px; top: 3px; width: 13px; height: 13px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; box-shadow: 0 0 0 1.5px var(--surface); animation: tab-agent-pulse 1.6s ease-in-out infinite;
}
.tab-agent[hidden] { display: none; }
.tab-agent svg { width: 9px; height: 9px; }
.tab-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); }
.tab-close {
  width: 20px; height: 20px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px;
  background: none; color: var(--muted); opacity: 0; transition: opacity 100ms, background-color 100ms;
}
.tab:hover .tab-close, .tab[data-active="true"] .tab-close, .tab:focus-visible .tab-close { opacity: 1; }
.tab-close:hover { background: var(--press); color: var(--text); }
/* Narrow tabs keep their icon; the active one is wide enough for its close button too (padding, icon, gaps, close). */
.tab[data-active="true"] { flex-shrink: 0; min-width: 68px; }
.tab:not([data-active="true"]) .tab-close { margin-left: -2px; }
.tab-audible {
  width: 20px; height: 20px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px;
  background: none; color: var(--muted); transition: background-color 100ms;
}
.tab-audible[hidden] { display: none; }
.tab-audible:hover { background: var(--press); color: var(--text); }
.tab-audible[data-muted="true"] { color: var(--text); }
/* Captured (agent/capture.ts): Noa listens to it, or it shares or is shared. Chrome marks such a tab too. */
.tab-capture { flex: none; display: flex; align-items: center; gap: 2px; color: var(--accent); }
.tab-capture[hidden] { display: none; }
.tab-capture svg { width: 13px; height: 13px; }
/* A website asks to share (share-picker.ts): the tabs, windows and screens it may be given. */
.dialog:has(> .share-picker) { width: min(560px, calc(100vw - 48px)); }
.share-groups { display: flex; flex-direction: column; gap: 14px; max-height: min(52vh, 460px); overflow: hidden auto; margin: 0 -6px; padding: 0 6px; }
.share-group { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; border: 0; min-width: 0; }
.share-group legend { padding: 0 0 6px; }
.share-choice { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius); cursor: pointer; min-width: 0; }
.share-choice:hover { background: var(--hover); }
.share-choice:has(input:checked) { background: var(--well); box-shadow: 0 0 0 1px var(--card-ring); }
.share-choice input { flex: none; margin: 0; }
.share-favicon { width: 16px; height: 16px; flex: none; display: grid; place-items: center; color: var(--faint); border-radius: 3px; }
.share-thumb { width: 96px; height: 54px; flex: none; object-fit: contain; border-radius: 4px; background: var(--well); }
.share-choice-text { display: flex; flex-direction: column; min-width: 0; }
.share-choice-name, .share-choice-detail { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-choice-detail { color: var(--muted); font-size: 12px; }
.share-empty { margin: 0; padding: 2px 8px; color: var(--muted); font-size: 12.5px; }
.share-access { margin: 0; padding: 8px 10px; border-radius: var(--radius); background: var(--well); font-size: 12.5px; line-height: 1.45; }
.share-audio[hidden] { display: none; }
.tab[data-group]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--group);
}
.tab[data-group="grey"] { --group: #8b8b98; }
.tab[data-group="blue"] { --group: #3b7cf5; }
.tab[data-group="red"] { --group: #e5484d; }
.tab[data-group="yellow"] { --group: #e8b600; }
.tab[data-group="green"] { --group: #30a46c; }
.tab[data-group="pink"] { --group: #e93d82; }
.tab[data-group="purple"] { --group: #8e4ec6; }
.tab[data-group="cyan"] { --group: #05a2c2; }
.tab[data-group="orange"] { --group: #f76b15; }
.new-tab { width: 28px; height: 28px; }
/* The new-tab page of a browser with no tab yet, as its tab in front (tab-strip.ts): nothing to close. */
.blank-tab { flex: 0 1 200px; padding-right: 10px; }

.toolbar { position: relative; display: flex; align-items: center; gap: 2px; min-width: 0; padding-bottom: 2px; }
.address {
  position: relative; flex: 1; min-width: 0; height: 30px; margin-left: 6px; border-radius: var(--radius);
  background: var(--well); transition: background-color 120ms, box-shadow 120ms;
}
.address:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.address[data-focused] { background: var(--field); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.address-icon {
  position: absolute; left: 5px; top: 50%; transform: translateY(-50%); z-index: 1; width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: calc(var(--radius) - 2px); background: none; color: var(--faint); display: grid; place-items: center;
}
.address-icon:hover { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--muted); }
.address[data-empty="true"] .address-icon { pointer-events: none; }
.address-input {
  width: 100%; height: 100%; border: 0; background: none; padding: 0 38px 0 30px; color: var(--text);
  font: inherit; font-size: 13px; user-select: text;
}
.address-input::placeholder { color: var(--muted); }
.address-input:disabled { cursor: default; }
.address-input:focus-visible { outline: none; }
.address:not([data-empty="true"]):not([data-focused]) .address-input::placeholder { color: transparent; }
.address-display {
  position: absolute; inset: 0 38px 0 30px; display: flex; align-items: center; white-space: pre; overflow: hidden;
  font-size: 13px; cursor: text; mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
}
.address[data-focused] .address-display { display: none; }
.address-scheme, .address-rest { color: var(--muted); }
.address-host { color: var(--text); }

/* --- Floating: menus, tooltips, dialogs ------------------------------------------------------------------------- */
.layer { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.layer > * { pointer-events: auto; }
.menu {
  position: fixed; min-width: 210px; max-width: 320px; padding: 5px; border-radius: 11px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--card-ring), var(--pop-shadow);
  display: flex; flex-direction: column; animation: pop-in 130ms var(--ease);
  transform-origin: top right;
}
/* It grows out of its button: from the corner it is aligned with, above or below. */
/* A menu over a modal dialog is a popover (menu.ts): none of the popover's own box, placed like any other menu. */
.menu[popover] { inset: auto; margin: 0; border: 0; overflow: visible; color: var(--text); }
.menu[data-align="start"] { transform-origin: top left; }
.menu[data-from="above"] { transform-origin: bottom right; }
.menu[data-align="start"][data-from="above"] { transform-origin: bottom left; }
.menu-item {
  height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 7px;
  background: none; color: var(--text); text-align: start; white-space: nowrap;
}
.menu-item svg { color: var(--muted); }
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); outline: none; }
.menu-item[data-tone="danger"], .menu-item[data-tone="danger"] svg { color: var(--bad); }
.menu-sep { height: 1px; margin: 5px 6px; background: var(--border); }
.menu-header { padding: 8px 10px 6px; }
.user-menu { min-width: 248px; }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who-text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.who-name { font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-email { color: var(--muted); font-size: 12.5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-footer { padding: 6px 10px 3px; color: var(--muted); font-size: 11.5px; }

.tooltip {
  position: fixed; max-width: 280px; padding: 6px 10px; border-radius: 8px; pointer-events: none !important;
  background: var(--tip-bg); color: var(--tip-text); font-size: 12px; line-height: 1.4;
  box-shadow: 0 6px 18px -4px rgb(0 0 0 / 0.28); animation: fade-in 110ms var(--ease);
}
.tooltip-title { font-weight: 600; }
.tooltip-detail { color: color-mix(in srgb, var(--tip-text) 68%, transparent); margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.dialog {
  width: 460px; max-width: calc(100vw - 48px); padding: 0; border: 0; border-radius: 14px;
  background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--card-ring), 0 28px 70px -16px rgb(0 0 0 / 0.4);
  animation: dialog-in 180ms var(--ease);
}
/* No fade: the caption buttons (window/theme.ts) dim at once, and the scrim must match them. */
.dialog::backdrop { background: var(--scrim); }
.dialog-body { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px 20px; user-select: text; }
.dialog-title { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.dialog-lead { margin: -8px 0 0; color: var(--muted); line-height: 1.5; }
/* What runs in a terminal the user is about to close (dialogs.ts confirmCloseTerminal). */
.dialog-code {
  margin: 0; padding: 8px 10px; max-height: 120px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  border-radius: 6px; background: var(--well); font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dialog-error { margin: -6px 0 0; color: var(--bad); font-size: 12.5px; }
.dialog-error:empty { display: none; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }

/* --- Motion ----------------------------------------------------------------------------------------------------- */
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.spinner.small { width: 12px; height: 12px; border-width: 1.5px; }
.slot-state .spinner { margin-bottom: 6px; }
@keyframes tab-agent-pulse { 50% { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.97) translateY(-2px); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(6px) scale(0.985); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .spinner { animation: spin 1.6s linear infinite !important; }
}

/* --- A new tab's page ------------------------------------------------------------------------------------------- */
.slot-state[data-kind="new"] { justify-content: flex-start; padding-top: clamp(48px, 16vh, 140px); }
.ntp { width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; }
.ntp-box {
  width: 100%; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  border: 0; border-radius: 23px; background: var(--well); color: var(--muted); font-size: 14px; text-align: start; cursor: text;
  transition: background-color 120ms, box-shadow 120ms;
}
.ntp-box:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.ntp-sites { margin-top: 28px; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ntp-site {
  min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 10px;
  border: 0; border-radius: 12px; background: none; color: var(--text); transition: background-color 100ms;
}
.ntp-site:hover, .ntp-site-item:hover .ntp-site, .ntp-site-item:has(.ntp-site-more[aria-expanded="true"]) .ntp-site { background: var(--hover); }
.ntp-site-item { position: relative; min-width: 0; display: flex; flex-direction: column; }
/* A site's ⋯ (its menu: Remove): top right, shown on hover or focus without moving anything. */
.ntp-site-more {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 12px; background: none; color: var(--muted); opacity: 0; transition: opacity 100ms, background-color 100ms;
}
.ntp-site-item:hover .ntp-site-more, .ntp-site-more:focus-visible, .ntp-site-more[aria-expanded="true"] { opacity: 1; }
.ntp-site-more:hover, .ntp-site-more[aria-expanded="true"] { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
.ntp-tile {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: var(--well); color: var(--muted); font-size: 15px; font-weight: 650;
}
.ntp-tile img { width: 20px; height: 20px; border-radius: 4px; }
.ntp-site-name { max-width: 100%; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntp-hint { margin: 20px 0 0; max-width: 340px; color: var(--muted); font-size: 12.5px; line-height: 1.5; text-align: center; }

/* --- A new chat, or no browser to show: the browser's blank page, Noa's box in the middle ------------------------- */
/*
  The browser's tabs (a "New chat" tab in front: tab-strip.ts), toolbar and bookmarks as ever; in the page's place, the
  blank page: Noa's box over the picked theme's background (themes/). A page of Noa's own (Before you start, a sign-in)
  is no blank page: it has the browser's whole room, no tabs or toolbar.
*/
.hero { display: none; }
:root[data-noa="hero"] .browser > .page-slot { display: none; }
:root[data-noa="hero"][data-gate] .browser > .tabbar,
:root[data-noa="hero"][data-gate] .browser > .toolbar,
:root[data-noa="hero"][data-gate] .browser > .bookmark-bar { display: none; }
:root[data-noa="hero"] .hero {
  position: relative; grid-row: 4; display: grid; place-items: center; padding: 24px 48px 8vh; overflow: hidden;
  border-radius: var(--card-radius); box-shadow: 0 0 0 1px var(--card-ring), var(--card-shadow);
}
:root[data-noa="hero"][data-gate] .hero { grid-row: 1 / -1; }
.hero-slot { position: relative; width: min(680px, 100%); height: var(--field-h, 76px); border-radius: var(--card-radius); box-shadow: 0 0 0 100vmax var(--bg); }
/* The box's model menu open under it (--field-below of --field-h): the slot reaches down for it, laid out (centred) as
   the box alone, so the box never moves under the pointer. */
:root:not([data-gate]) .hero-slot { margin-bottom: calc(-1 * var(--field-below, 0px)); }
/* A page of Noa's own (Before you start, a sign-in) needs room: the hero grows for it, a card of its own. */
:root[data-gate] .hero-slot { width: min(560px, 100%); height: min(720px, 100%); box-shadow: 0 0 0 1px var(--card-ring), 0 0 0 100vmax var(--bg); }
:root[data-gate][data-noa="hero"] .hero { padding: 24px; }
:root[data-gate][data-noa="hero"] .notice { top: calc(var(--bar) / 2); }

/* The title bar's Theme (themes/host.ts): "Theme:", the picked theme's icon and name, and its menu's arrow. */
.theme-chip .theme-label { opacity: 0.7; font-weight: 500; }
.theme-chip .theme-icon { display: grid; }
.theme-chip > svg { margin-left: -2px; opacity: 0.7; }
.menu-item[role="menuitemradio"] .menu-label { flex: 1; }
.menu-check { width: 16px; display: grid; place-items: center; margin-left: 8px; }
.menu-check svg { color: var(--accent); }

/* --- What Noa did for you (office-stats.ts) ------------------------------------------------------------------- */
.dialog-close { width: 28px; height: 28px; }


/* Today / 7 days / 30 days (stats-chart.ts periodControl): a well with the picked one raised on it. */
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: calc(var(--radius) + 2px); background: var(--well); }
.seg button {
  height: 26px; padding: 0 12px; border: 0; border-radius: var(--radius); background: none; color: var(--muted);
  font: inherit; font-size: 12.5px; font-weight: 550; white-space: nowrap; cursor: pointer; transition: background-color 120ms, color 120ms;
}
.seg button:hover { color: var(--text); background: var(--hover); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--card-ring), 0 1px 2px rgb(0 0 0 / 0.12); }

/* Each day's time given back (stats-chart.ts dayChart): a line read out above, one column a day, the days under. */
.day-chart { --bar: var(--accent); --bar-dim: color-mix(in srgb, var(--accent) 55%, transparent); --stub: var(--card-ring); --read: var(--muted); display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.day-chart-read { min-height: 16px; color: var(--read); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.day-chart-read[data-hover] { color: inherit; font-weight: 600; }
.day-plot { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); align-items: end; height: 72px; border-bottom: 1px solid var(--stub); }
.day-col { height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; cursor: default; }
.day-bar { width: 100%; max-width: 28px; border-radius: 4px 4px 0 0; background: var(--bar-dim); transition: background-color 80ms; }
.day-col[data-today] .day-bar, .day-col:hover .day-bar { background: var(--bar); }
.day-col[data-empty]::after { content: ""; width: 100%; max-width: 28px; height: 2px; border-radius: 1px; background: var(--stub); }
.day-col[data-empty] .day-bar { display: none; }
.day-col:hover { background: color-mix(in srgb, var(--bar) 10%, transparent); border-radius: 4px 4px 0 0; }
.day-axis { display: flex; justify-content: space-between; color: var(--read); font-size: 11px; }
/* --- Forms in dialogs and popovers ------------------------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12.5px; font-weight: 600; }
.field-input {
  width: 100%; height: 32px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--field); color: var(--text); font: inherit; font-size: 13px; user-select: text;
  transition: border-color 120ms, box-shadow 120ms;
}
.field-input::placeholder { color: var(--muted); }
.field-input:focus { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); outline: none; }
/* A select draws its own arrow, inside its box with room around it: the platform's (appearance: auto) sat on the right
   edge, half out of the box on macOS. */
.field-select {
  appearance: none; padding-top: 0; padding-bottom: 0; padding-right: 30px; line-height: 30px; text-overflow: ellipsis; cursor: pointer;
  /* A chevron of two 1.5 px strokes, in the muted colour of the theme. */
  --chev: transparent calc(50% - 0.75px), var(--muted) calc(50% - 0.75px), var(--muted) calc(50% + 0.75px), transparent calc(50% + 0.75px);
  background-image: linear-gradient(45deg, var(--chev)), linear-gradient(135deg, var(--chev));
  background-position: right 16px top calc(50% + 1px), right 12px top calc(50% + 1px); background-size: 4px 4px; background-repeat: no-repeat;
}
.field-select:disabled { cursor: default; }
.btn.small { height: 28px; padding: 0 11px; gap: 6px; font-size: 12.5px; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: var(--on-bad); }
.btn.danger:hover:not(:disabled) { filter: brightness(1.07); border-color: var(--bad); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); white-space: nowrap; }
.check input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.state-icon.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }

/* A site's icon: the kept one, else its initial on a quiet tile. */
.site-icon { --size: 16px; width: var(--size); height: var(--size); flex: none; display: grid; place-items: center; color: var(--muted); }
.site-icon img { width: var(--size); height: var(--size); border-radius: 3px; object-fit: contain; }
.site-initial {
  width: var(--size); height: var(--size); display: grid; place-items: center; border-radius: 4px;
  background: var(--well); color: var(--muted); font-size: calc(var(--size) * 0.62); font-weight: 650;
}

/* --- The star in the address bar, and its popover ----------------------------------------------------------------- */
.star {
  position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 26px; height: 24px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--muted);
  -webkit-app-region: no-drag; transition: background-color 120ms, color 120ms;
}
.star:hover { background: var(--hover); color: var(--text); }
.star[data-on="true"] { color: var(--accent); }
.popover {
  position: fixed; width: 320px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 12px;
  border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--card-ring), var(--pop-shadow);
  animation: pop-in 130ms var(--ease); user-select: text;
}
.popover-title { margin: 0; font-size: 14px; font-weight: 650; }
.popover-actions { display: flex; align-items: center; gap: 8px; margin-top: 2px; }

/* --- The bookmarks bar, under the address bar --------------------------------------------------------------------- */
.bookmark-bar { display: flex; align-items: center; gap: 2px; height: 30px; margin: -2px 0 4px; padding: 0 2px 0 4px; min-width: 0; }
.bm-items { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.bm-item {
  flex: none; max-width: 180px; height: 26px; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px 0 7px;
  border: 0; border-radius: 13px; background: none; color: var(--text); font-size: 12.5px; white-space: nowrap;
  transition: background-color 100ms;
}
.bm-item:hover, .bm-item[aria-expanded="true"] { background: var(--hover); }
.bm-item:active { background: var(--press); }
.bm-item svg { color: var(--muted); }
.bm-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bm-more { padding: 0 7px; }
.bm-sep { flex: none; width: 1px; height: 16px; margin: 0 4px; background: var(--border); }
.bm-empty { padding-left: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-empty kbd { font: inherit; font-weight: 600; }
.bm-item[data-drop="before"] { box-shadow: inset 2px 0 0 var(--accent); }
.bm-item[data-drop="after"] { box-shadow: inset -2px 0 0 var(--accent); }
.bm-item[data-drop="into"] { background: var(--accent-soft); }
.bookmark-menu { min-width: 220px; max-width: 340px; max-height: min(560px, calc(100vh - 80px)); overflow-y: auto; }
.bookmark-menu .menu-item { height: 30px; }
.bookmark-menu .menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bookmark-menu .menu-item[data-open="true"] { background: var(--hover); }
.menu-empty { padding: 8px 12px; color: var(--muted); font-size: 12.5px; }

/* --- The address bar's suggestions ------------------------------------------------------------------------------- */
.suggest {
  position: fixed; padding: 5px; border-radius: 11px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--card-ring), var(--pop-shadow); animation: fade-in 90ms var(--ease);
}
.suggest-row {
  height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 7px;
  font-size: 13px; white-space: nowrap; overflow: hidden; cursor: default;
}
.suggest-row:hover { background: var(--hover); }
.suggest-row[aria-selected="true"] { background: var(--accent-soft); }
.suggest-title { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.suggest-url { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 12px; }
.suggest-kind { color: var(--accent); display: grid; }
.suggest-kind svg { width: 12px; height: 12px; }

/* --- The shell's own pages: the bookmark manager, the history, Bring over your Chrome ------------------------------ */
.dialog.sheet-dialog { width: min(980px, calc(100vw - 80px)); height: min(720px, calc(100vh - 80px)); max-width: none; max-height: none; }
.sheet { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.sheet-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 22px; border-bottom: 1px solid var(--border); }
.sheet-head .dialog-title { flex: none; }
.sheet-tools { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.sheet-search { width: 240px; height: 30px; }
.sheet-status { margin: 0; color: var(--muted); font-size: 12.5px; }
.sheet-status:empty { display: none; }
.sheet-empty { margin: 48px auto; max-width: 360px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.sheet-end { margin: 16px 0 8px; display: flex; justify-content: center; color: var(--faint); font-size: 12px; }

.bm-manager { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.bm-tree { overflow-y: auto; padding: 10px 8px; border-right: 1px solid var(--border); background: var(--bg); }
.bm-tree-row {
  --depth: 0; width: 100%; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 calc(4px + var(--depth) * 14px);
  border: 0; border-radius: 7px; background: none; color: var(--text); font-size: 12.5px; text-align: start;
}
.bm-tree-row:hover { background: var(--hover); }
.bm-tree-row[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.bm-tree-row[data-drop="into"] { box-shadow: inset 0 0 0 2px var(--accent); }
.bm-tree-row svg { color: var(--muted); }
.bm-tree-row[aria-current="true"] svg { color: var(--accent); }
.bm-twisty { width: 14px; display: grid; place-items: center; transition: transform 120ms; }
.bm-twisty[data-open="true"] { transform: rotate(90deg); }
.bm-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.bm-pane-head { flex: none; display: flex; align-items: baseline; gap: 12px; padding: 14px 22px 6px; }
.bm-list-title { margin: 0; font-size: 13px; font-weight: 650; }
.bm-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 16px; }
.bm-row {
  height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 6px 0 10px; border-radius: 8px; cursor: default;
}
.bm-row:hover, .bm-row:focus-visible { background: var(--hover); outline: none; }
.bm-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.bm-row .bm-title { font-size: 13px; white-space: nowrap; }
.bm-url { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-row-more { opacity: 0; }
.bm-row:hover .bm-row-more, .bm-row:focus-within .bm-row-more, .bm-row-more[aria-expanded="true"] { opacity: 1; }

.dialog.sheet-dialog.hist-sheet { width: min(820px, calc(100vw - 80px)); }
.hist { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hist .sheet-status { padding: 8px 22px 0; }
.hist-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 12px 12px; }
.hist-day { margin-top: 10px; }
.hist-day-title { position: sticky; top: 0; margin: 0; padding: 8px 10px 6px; background: var(--surface); font-size: 12px; font-weight: 650; color: var(--muted); z-index: 1; }
.hist-row { height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 6px 0 10px; border-radius: 8px; cursor: default; }
.hist-row:hover, .hist-row:focus-visible { background: var(--hover); outline: none; }
.hist-time { width: 62px; flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.hist-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; overflow: hidden; }
.hist-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.hist-host { flex: none; color: var(--muted); font-size: 12px; }
.hist-noa { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--well); color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; }
.hist-remove { width: 26px; height: 26px; opacity: 0; }
.hist-row:hover .hist-remove, .hist-row:focus-within .hist-remove { opacity: 1; }

.dialog.sheet-dialog.imp-sheet { width: min(640px, calc(100vw - 80px)); height: auto; max-height: calc(100vh - 80px); }
.imp-wrap { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.imp { display: flex; flex-direction: column; gap: 16px; }
.imp-lead { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.imp-profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.imp-profile {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); text-align: start; transition: border-color 120ms, box-shadow 120ms;
}
.imp-profile:hover { border-color: color-mix(in srgb, var(--text) 22%, var(--border)); }
.imp-profile[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.imp-avatar { width: 34px; height: 34px; font-size: 13px; }
.imp-profile-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.imp-profile-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-profile-sub { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-whats { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--bg); }
.imp-what { align-items: flex-start; white-space: normal; }
.imp-what input { margin-top: 2px; }
.imp-what > span { display: flex; flex-direction: column; gap: 1px; }
.imp-what strong { font-weight: 600; }
.imp-detail { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.imp-note { margin: 0; display: flex; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.imp-note svg { margin-top: 2px; color: var(--faint); }
.imp-note strong { color: var(--text); font-weight: 600; }
.imp-actions { display: flex; align-items: center; gap: 8px; }
.imp-progress { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 8px; }
.imp-bar { height: 6px; border-radius: 3px; background: var(--well); overflow: hidden; }
.imp-bar-fill { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width 200ms var(--ease); }
.imp-done { display: flex; align-items: center; gap: 14px; }
.imp-done .state-icon { margin: 0; }
.imp-done-title { margin: 0 0 2px; font-size: 14px; font-weight: 650; }
.imp-sub { margin: 0; font-size: 13px; font-weight: 650; }
.imp-exts { display: flex; flex-direction: column; gap: 8px; }
.imp-ext-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.imp-ext { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.imp-ext-icon { width: 24px; height: 24px; flex: none; display: grid; place-items: center; color: var(--muted); }
.imp-ext-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.imp-ext-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The first run's offer: one quiet line above the user. */
.offer { flex: none; display: flex; align-items: center; gap: 2px; margin-top: -2px; }
.offer-open {
  flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; gap: 9px; padding: 0 10px;
  border: 0; border-radius: var(--radius); background: none; color: var(--muted); font-size: 12.5px; text-align: start;
  transition: background-color 120ms, color 120ms;
}
.offer-open:hover { background: var(--hover); color: var(--text); }
.offer-open svg { color: var(--accent); }
.offer-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-close { width: 26px; height: 26px; color: var(--faint); }

/* --- Downloads: the toolbar's button (a ring while files come in) and its list (downloads.ts) ---------------------- */
.browser-menu-btn { margin-left: 2px; }
.downloads-btn { position: relative; margin-left: 2px; animation: fade-in 200ms var(--ease); }
.downloads-btn[hidden] { display: none; }
.downloads-btn[data-fresh="true"], .downloads-btn[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
.downloads-ring { display: none; position: absolute; inset: 3px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--accent) calc(var(--progress, 0) * 360deg), color-mix(in srgb, var(--muted) 24%, transparent) 0);
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 1.8px), #000 calc(50% - 1.2px)); mask: radial-gradient(circle, transparent calc(50% - 1.8px), #000 calc(50% - 1.2px));
}
.downloads-btn[data-active="true"] .downloads-ring { display: block; }
.downloads-btn[data-unknown="true"] .downloads-ring { animation: spin 1s linear infinite; }
.downloads-panel { width: 340px; max-width: 340px; }
.downloads-title { margin: 0; padding: 6px 10px 4px; font-size: 13px; font-weight: 650; }
.downloads-rows { display: flex; flex-direction: column; max-height: min(420px, 60vh); overflow-y: auto; }
.downloads-empty { margin: 0; padding: 8px 10px; color: var(--muted); font-size: 12.5px; }
.downloads-row { position: relative; display: flex; align-items: center; gap: 2px; border-radius: 7px; }
.downloads-row:hover { background: var(--hover); }
.downloads-open {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 10px; border: 0; border-radius: 7px;
  background: none; color: var(--text); text-align: start;
}
.downloads-open:not(:disabled) { cursor: pointer; }
.downloads-open:disabled { color: var(--text); opacity: 1; }
.downloads-open svg { flex: none; color: var(--muted); }
.downloads-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.downloads-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.downloads-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--muted); }
.downloads-row[data-state="interrupted"] .downloads-name { color: var(--muted); text-decoration: line-through; }
.downloads-tool { width: 28px; height: 28px; flex: none; color: var(--faint); }
.downloads-bar { position: absolute; left: 36px; right: 66px; bottom: 3px; height: 2px; border-radius: 1px; background: color-mix(in srgb, var(--muted) 22%, transparent); overflow: hidden; }
.downloads-bar::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--progress, 0)); background: var(--accent); }
.downloads-bar[data-unknown="true"]::after { animation: downloads-unknown 1.2s ease-in-out infinite alternate; }
@keyframes downloads-unknown { from { opacity: 0.35; } }
.downloads-panel .menu-item:disabled { color: var(--faint); }
.downloads-panel .menu-item:disabled svg { color: var(--faint); }

/* --- Extensions: the toolbar's buttons and menu, their questions, their page -------------------------------------- */
.ext-actions { flex: none; display: flex; align-items: center; gap: 1px; margin-left: 4px; }
.ext-action { position: relative; }
.ext-icon { width: 16px; height: 16px; display: grid; place-items: center; }
.ext-icon img { width: 16px; height: 16px; }
.ext-badge {
  position: absolute; right: 1px; bottom: 2px; min-width: 14px; height: 13px; padding: 0 3px; border-radius: 4px;
  color: #fff; font-size: 9px; font-weight: 700; line-height: 13px; text-align: center; box-shadow: 0 0 0 1.5px var(--chrome);
}
.ext-action[aria-disabled="true"] .ext-icon, .ext-menu-row[aria-disabled="true"] .ext-icon { filter: grayscale(1); opacity: 0.6; }
.ext-menu { margin-left: 2px; }
.ext-menu-panel { width: 300px; }
.ext-menu-item { display: flex; align-items: center; gap: 2px; }
.ext-menu-row { flex: 1; min-width: 0; }
.ext-menu-row .menu-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ext-pin { width: 28px; height: 28px; color: var(--faint); }
.ext-pin[aria-pressed="true"] { color: var(--accent); }
.ext-menu-empty, .ext-menu-note { margin: 0; padding: 8px 10px; color: var(--muted); font-size: 12.5px; line-height: 1.45; white-space: normal; }

.ext-prompt { width: 100%; }
.ext-prompt-head { display: flex; align-items: center; gap: 12px; }
.ext-prompt-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
span.ext-prompt-icon { background: var(--well); }
.ext-warnings { display: flex; flex-direction: column; gap: 8px; margin-top: -6px; }
.ext-warnings .dialog-lead { margin: 0; }
.ext-warning-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; }
.ext-warning-details { margin: 4px 0 0; padding-left: 16px; color: var(--muted); font-size: 12px; }

.dialog.sheet-dialog.ext-sheet { width: min(760px, calc(100vw - 80px)); }
.ext-page { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.ext-list { display: flex; flex-direction: column; gap: 10px; }
.ext-row { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 10px; border-radius: 12px; box-shadow: 0 0 0 1px var(--card-ring); }
.ext-row[data-status="disabled"] .ext-row-main { opacity: 0.6; }
.ext-row-main { display: flex; align-items: center; gap: 14px; }
.ext-row-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; }
span.ext-row-icon { background: var(--well); color: var(--muted); }
.ext-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ext-row-name { font-size: 13.5px; font-weight: 600; }
.ext-row-version { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.ext-row-desc { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ext-row-actions { display: flex; align-items: center; gap: 4px; margin: 0 -6px; }
.ext-note { margin: 0; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; background: var(--accent-soft); font-size: 12.5px; }
.ext-note span { flex: 1; }
.ext-note.bad { background: var(--bad-soft); color: var(--bad); }
.ext-details { padding: 10px 12px; border-radius: 8px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.ext-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ext-empty .state-icon { margin: 0; }
.btn.danger-text { color: var(--bad); }
.btn.danger-text:hover:not(:disabled) { background: var(--bad-soft); color: var(--bad); }

/* An on/off switch. */
.switch {
  appearance: none; flex: none; width: 34px; height: 20px; margin: 0; border-radius: 10px; position: relative;
  background: color-mix(in srgb, var(--muted) 40%, transparent); transition: background-color 140ms; cursor: pointer;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); transition: transform 140ms var(--ease);
}
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(14px); }
.switch:disabled { opacity: 0.45; cursor: default; }

/* --- The office (office-view.ts): the jobs in progress as people in the world (Rooftop's Coworking floor), in the browser's place */
/*
  A card in the browser's place. While a bot is talked to (its job's page in the column), its face fills the card
  (#talk-face) under the job's tab row, whose first tab is the bot, with the job's Triggers card on the right; a page's
  tab lays the browser (its toolbar and page) over the face.
  Otherwise the browser has no room: its page view leaves the window.
*/
.office { display: none; }
:root[data-office] .office {
  position: relative; grid-row: 2; grid-column: 3; display: block; margin: 0 var(--gap) var(--gap); min-width: 0; min-height: 0;
  overflow: hidden; border-radius: var(--card-radius); background: #e8d9c4; box-shadow: 0 0 0 1px var(--card-ring), var(--card-shadow);
}
.office-scene { position: absolute; inset: 0; }
/* The office's world (world/frame.ts): Rooftop's client in a frame filling the scene, the shell's DOM over it. */
.office-scene > .world-frame { position: absolute; inset: 0; background: #e8d9c4; }
/* Its first opening loads the world: a moment's note instead of a bare card. */
.office-opening { display: none; }
.office[data-opening] .office-opening, .office[data-world="loading"] .office-opening {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #6b5a44; font-size: 13px; animation: fade-in 200ms var(--ease);
}
.office-opening p { margin: 0; }
/*
  A workspace's office (world/office.ts data-room="shared") says "connecting…" itself, from its first page on (the
  roof's office.html, then the room's own line, and why when it cannot get in): the note above over it was the same
  thing said twice (ticket c29ff819). Its frame is the room's night colour until the page draws, not the card's sand.
*/
.office[data-room="shared"] .office-opening { display: none; }
.office[data-room="shared"] .office-scene > .world-frame { background: #05070c; }
:root[data-office]:not([data-talk]) .browser { pointer-events: none; }
/* Whose browser is on screen: none in the office, the job's while a bot is talked to. */
:root[data-office]:not([data-talk]) .tab-owner { visibility: hidden; }
:root[data-office]:not([data-talk]) .browser > :not(.notice) { display: none; }
/* Talking to a bot: the job's tab row at the top, the bot's own tab first; on it, the face and no toolbar or page. */
:root[data-office][data-talk] .browser { padding-top: 0; background: var(--chrome); }
/* A page's tab over the face: while a menu or dialog has the shell raised over the window's views (layers.ts data-raised),
   the page must still show through, so neither this card's colour nor the office's world under it is painted; the
   backdrop (body::before, backdrop.ts) is the same colour everywhere but where the views are (ticket 891b63ae: the
   page went black while the Theme menu was open). */
:root[data-raised][data-office][data-talk-browser] .browser { background: none; }
:root[data-raised][data-office][data-talk-browser] .office { visibility: hidden; }
:root[data-office][data-talk]:not([data-talk-browser]) .browser { align-self: start; height: var(--bar); padding-bottom: 0; }
:root[data-office][data-talk]:not([data-talk-browser]) .browser > :not(.notice, .tabbar),
:root[data-office][data-talk]:not([data-talk-browser]) .blank-tab { display: none; }
:root[data-office][data-talk]:not([data-talk-browser]) .tabs .tab[data-active="true"] { background: none; color: var(--muted); box-shadow: none; }
:root[data-office][data-talk]:not([data-talk-browser]) .tabs .tab[data-active="true"]:hover { background: var(--hover); color: var(--text); }
.bot-tab { flex: 0 0 auto; max-width: 160px; padding-right: 12px; cursor: default; }
.bot-tab[hidden] { display: none; }
.bot-tab .tab-icon { color: var(--accent); }
.bot-tab .tab-title { flex: none; max-width: 120px; text-overflow: ellipsis; mask-image: none; }
.talk-face { display: none; }
:root[data-talk] .talk-face { position: absolute; inset: 0; display: block; pointer-events: none; }

/* The face's left column (world/talk.ts), next to the chat, where the eye starts: the job's cards (talk/cards.ts) at
   the top, with their triggers' buttons, and the pages the bot is on (talk/pages.ts) at the bottom.
   Cards come in one at a time as each appears; one written over in place does not come in again. None while a page's
   browser covers the face. */
.talk-side {
  position: absolute; top: calc(var(--bar) + 12px); left: 12px; bottom: 12px; width: min(280px, 38%);
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
:root[data-talk-browser] .talk-side { display: none; }
/* The job's data (its report's panels, its table: talk/cards.ts `data`) on the face's right, a column of its own that
   scrolls when it is taller than the face (ticket 09e634fe); what the job is doing stays on the left. */
.talk-side-data { left: auto; right: 12px; }
.talk-cards { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: none; }
.talk-cards[hidden] { display: none; }
/* Too many cards for the column's height: they go on in columns to its right, each a column wide (world/talk.ts spread()
   sets the count, the width and the cards' height), and the pages stay one column wide under the first. */
.talk-side[data-cols] .talk-cards { flex-flow: column wrap; align-content: flex-start; flex: none; overflow: auto; }
.talk-side[data-cols] .talk-card { width: var(--col); }
.talk-side[data-cols] .talk-pages { width: var(--col); }
.talk-card {
  flex: none; padding: 10px 12px; border-radius: 12px; pointer-events: auto;
  background: rgb(14 15 23 / 0.78); color: #f4f4f8; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 4px 14px rgb(0 0 0 / 0.25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: talk-card-in 260ms var(--ease) both;
}
.talk-card[data-seen] { animation: none; }
@keyframes talk-card-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.talk-card-head { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 650; letter-spacing: 0.02em; text-transform: uppercase; color: #c2c2ce; }
.talk-card-title { flex: 1; min-width: 0; }
.talk-card-mark, .talk-step-mark { flex: none; display: grid; place-items: center; color: #a4a4b2; }
.talk-card-mark[data-state="running"], .talk-step-mark[data-state="running"] { color: #a9adff; }
.talk-card-mark[data-state="running"] > svg, .talk-step-mark[data-state="running"] > svg { animation: spin 1.1s linear infinite; }
.talk-card-mark[data-state="done"], .talk-step-mark[data-state="done"] { color: var(--ok); }
.talk-card-mark[data-state="failed"], .talk-step-mark[data-state="failed"] { color: var(--bad); }
.talk-card-mark[data-state="needs"] { color: var(--amber); }
.talk-card-mark[data-state="blocked"] { color: var(--amber); }
.talk-card-mark[data-state="waiting"], .talk-card-mark[data-state="scheduled"], .talk-card-mark[data-state="repeat"] { color: #9fb6ff; }
.talk-card-detail { margin: 6px 0 0; font-size: 13px; line-height: 1.35; font-weight: 550; overflow-wrap: anywhere; }
/* The gist (what it's doing): plain words, up to three lines; its whole text on hover when cut. */
.talk-card[data-kind="gist"] .talk-card-detail { font-weight: 450; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.talk-card-note { margin: 3px 0 0; font-size: 12px; line-height: 1.35; color: #a4a4b2; }
.talk-card-actions { display: flex; gap: 12px; margin-top: 6px; font-size: 12.5px; }
.talk-card-actions button.link { padding: 0; border: 0; background: none; font: inherit; font-weight: 550; color: #a8b4ff; cursor: pointer; }
.talk-card-actions button.link:hover:not(:disabled) { color: #c8d0ff; }
.talk-card-actions button.link:disabled { opacity: 0.5; cursor: default; }
.talk-items { list-style: none; margin: 0; padding: 0; }
.talk-item + .talk-item { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgb(255 255 255 / 0.1); }
.dashboard .talk-item + .talk-item { border-top-color: var(--border); }
.talk-steps { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.talk-step { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 17px; }
.talk-step-mark { height: 17px; }
.talk-step-title { min-width: 0; overflow-wrap: anywhere; }
.talk-step[data-status="done"] .talk-step-title { color: #a4a4b2; }
.talk-step[data-status="in_progress"] .talk-step-title { font-weight: 600; }
/* The table card (job-cards.ts): bars for a chartable column, then the table, which scrolls inside the card. */
.talk-card[data-kind="table"] .talk-card-detail { font-weight: 550; }
.talk-card-mark[data-state="table"] { color: #a9adff; }
.talk-chart { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.talk-chart-name { font-size: 11.5px; color: #a4a4b2; }
.talk-bar { display: grid; grid-template-columns: minmax(0, 34%) 1fr auto; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; }
.talk-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c2c2ce; }
.talk-bar-track { height: 8px; }
.talk-bar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: #8f95ff; }
.talk-bar:hover .talk-bar-fill { background: #b3b7ff; }
.talk-bar-value { font-variant-numeric: tabular-nums; color: #f4f4f8; }
.talk-table-wrap { margin-top: 8px; max-height: 240px; overflow: auto; scrollbar-width: thin; border-radius: 6px; }
.talk-table { border-collapse: collapse; font-size: 12px; line-height: 16px; min-width: 100%; }
.talk-table th, .talk-table td { padding: 4px 8px 4px 0; text-align: start; vertical-align: top; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.talk-table thead th { color: #a4a4b2; font-weight: 600; }
.talk-table tbody th { font-weight: 500; color: #c2c2ce; }
/* As the report's tables: cells of words wrap past 200 px, the row's label past 160 px (ticket c6f172b6). */
.talk-table :is(td, tbody th) { min-width: 56px; max-width: 200px; }
.talk-table tbody th { max-width: 160px; }
.talk-table thead th { vertical-align: bottom; }
.talk-table td { font-variant-numeric: tabular-nums; }
.talk-table tr:last-child > * { border-bottom: 0; }
/* A job's report (job-cards.ts reportCards, drawn by the panel's sidepanel/report-view.ts): a card per panel, last in the
   stack, and its large view (cards.ts) over the scene or the dashboard. Its colours are custom properties: the office's
   dark cards here, the dashboard's light (or the OS's dark) ones below. Series hues: a fixed order of four, checked with
   the dataviz palette validator on these surfaces (light #f6f6f8, dark #16171f). The rules of its drawing are the
   panel's own (extension static/sidepanel.css: keep them alike). */
.report {
  --report-ink: #f4f4f8; --report-muted: #a4a4b2; --report-grid: rgb(255 255 255 / 0.08); --report-base: rgb(255 255 255 / 0.24);
  --report-surface: #16171f; --report-tile: rgb(255 255 255 / 0.05); --report-tile-ring: rgb(255 255 255 / 0.07);
  --report-tip-bg: #2b2c38; --report-tip-ink: #f4f4f8; --report-good: #4ade80; --report-bad: #f87171;
  --report-s1: #7c7cf0; --report-s2: #d95926; --report-s3: #199e70; --report-s4: #c98500;
}
.dashboard .report, .browser > .report-view .report {
  --report-ink: var(--text); --report-muted: var(--muted); --report-grid: color-mix(in srgb, var(--text) 9%, transparent); --report-base: color-mix(in srgb, var(--text) 24%, transparent);
  --report-surface: var(--bg); --report-tile: var(--surface); --report-tile-ring: var(--card-ring);
  --report-tip-bg: var(--tip-bg); --report-tip-ink: var(--tip-text); --report-good: var(--ok); --report-bad: var(--bad);
  --report-s1: #4f46e5; --report-s2: #eb6834; --report-s3: #1baf7a; --report-s4: #eda100;
}
@media (prefers-color-scheme: dark) {
  .dashboard .report, .browser > .report-view .report { --report-s1: #7c7cf0; --report-s2: #d95926; --report-s3: #199e70; --report-s4: #c98500; }
}
.report { color: var(--report-ink); min-width: 0; }
.report [data-s="0"] { --c: var(--report-s1); }
.report [data-s="1"] { --c: var(--report-s2); }
.report [data-s="2"] { --c: var(--report-s3); }
.report [data-s="3"] { --c: var(--report-s4); }
.report-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.report[data-large] .report-stats { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.report-stat { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 6px; border-radius: 8px; background: var(--report-tile); box-shadow: 0 0 0 1px var(--report-tile-ring); }
.report[data-large] .report-stat { padding: 12px 14px 10px; }
.report-stat-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; line-height: 1.35; color: var(--report-muted); }
.report-stat-value { font-size: 20px; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.report[data-large] .report-stat-value { font-size: 28px; }
.report-stat-change { font-size: 11.5px; line-height: 1.35; color: var(--report-muted); }
.report-since { white-space: nowrap; }
.report-stat-change[data-tone="good"] { color: var(--report-good); }
.report-stat-change[data-tone="bad"] { color: var(--report-bad); }
.report-spark-box { margin-top: 4px; }
.report-spark { display: block; width: 100%; height: 24px; overflow: visible; }
.report-spark-line { fill: none; stroke: var(--report-s1); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.report-chart { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.report-legend { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 11.5px; line-height: 1.35; color: var(--report-muted); }
.report-key { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.report-swatch { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.report-swatch-line { width: 12px; height: 3px; border-radius: 2px; }
.report-plot { position: relative; min-width: 0; }
.report-svg { display: block; overflow: visible; }
.report-tick, .report-label, .report-value { font-size: 11px; font-family: inherit; }
.report[data-large] :is(.report-tick, .report-label, .report-value) { font-size: 12px; }
.report-tick { fill: var(--report-muted); font-variant-numeric: tabular-nums; }
.report-label { fill: var(--report-muted); }
.report-value { fill: var(--report-ink); font-weight: 550; font-variant-numeric: tabular-nums; }
.report-grid { stroke: var(--report-grid); stroke-width: 1; shape-rendering: crispEdges; }
.report-base { stroke: var(--report-base); stroke-width: 1; shape-rendering: crispEdges; }
.report-guide { stroke: var(--report-base); stroke-width: 1; shape-rendering: crispEdges; pointer-events: none; }
.report-bar { fill: var(--c); transition: opacity 120ms; }
.report-plot[data-hover] .report-bar:not(.report-hot) { opacity: 0.45; }
.report-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.report-area { fill: var(--c); opacity: 0.1; }
.report-dot { fill: var(--c); stroke: var(--report-surface); stroke-width: 2; pointer-events: none; }
.report-hit { fill: transparent; pointer-events: all; }
.report-tip {
  position: absolute; left: 0; top: 0; z-index: 2; max-width: 240px; padding: 6px 9px; border-radius: 7px; pointer-events: none;
  background: var(--report-tip-bg); color: var(--report-tip-ink); font-size: 12px; line-height: 1.4; box-shadow: 0 4px 14px rgb(0 0 0 / 0.25);
}
.report-tip[hidden] { display: none; }
.report-tip-title { font-weight: 600; overflow-wrap: anywhere; }
.report-tip-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.report-tip-name { overflow: hidden; text-overflow: ellipsis; opacity: 0.85; }
.report-tip-row b { margin-left: auto; padding-left: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.report-empty { margin: 0; font-size: 12px; color: var(--report-muted); }
.report-table-wrap { max-height: 240px; overflow: auto; scrollbar-width: thin; border-radius: 6px; }
.report[data-large] .report-table-wrap { max-height: none; }
.report-table { border-collapse: collapse; min-width: 100%; font-size: 12px; line-height: 16px; }
.report[data-large] .report-table { font-size: 13px; line-height: 18px; }
.report-table th, .report-table td { padding: 4px 10px 4px 0; text-align: start; vertical-align: top; border-bottom: 1px solid var(--report-grid); }
.report-table :is(th, td):last-child { padding-right: 0; }
/* Words keep a readable width and no cell takes the table over (ticket c6f172b6): a cell of words grows to 200 px at
   most and the row's label (the first column) to 160 px, wrapping past that, so the label column cannot crowd the rest
   out or push the table into scrolling sideways; numbers stay on one line. A narrow card still scrolls a table whose
   words cannot wrap narrower. */
.report-table :is(td, tbody th) { min-width: 64px; max-width: 200px; }
.report-table tbody th { max-width: 160px; }
.report[data-large] .report-table :is(td, tbody th) { max-width: 320px; }
.report[data-large] .report-table tbody th { max-width: 240px; }
.report-table [data-num] { min-width: 0; text-align: right; white-space: nowrap; }
.report-table [data-num] + :not([data-num]) { padding-left: 14px; }
.report[data-large] .report-table :is(th, td) { padding-right: 24px; }
/* Headings wrap between words (one long heading made a column wide); numbers' headings over their right edge. */
.report-table thead th { position: sticky; top: 0; background: var(--report-surface); color: var(--report-muted); font-weight: 600; vertical-align: bottom; }
.report-table thead th[data-num] { white-space: normal; }
.report-table tbody th { font-weight: 500; }
.report-table td { font-variant-numeric: tabular-nums; }
.report-table tr:last-child > * { border-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .report-bar { transition: none; } }
/* The report's cards: a click opens it large (the card says so with its cursor and the button in its head). */
.talk-card[data-kind="report"] { cursor: zoom-in; }
.talk-card[data-kind="report"] .report-table-wrap { cursor: auto; }
.talk-card > .report { margin-top: 8px; }
.talk-card-mark[data-state="report"] { color: #a9adff; }
.dashboard .talk-card-mark[data-state="report"] { color: var(--accent); }
.talk-card-open {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin: -4px -6px -4px 0; padding: 0; border: 0; border-radius: 6px;
  background: none; color: #a4a4b2; cursor: pointer;
}
.talk-card-open:hover { background: rgb(255 255 255 / 0.1); color: #f4f4f8; }
.dashboard .talk-card-open { color: var(--muted); }
.dashboard .talk-card-open:hover { background: var(--hover); color: var(--text); }
.talk-card-open:focus-visible, .report-view-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dashboard .talk-card > .report { --report-surface: var(--bg); --report-tile: var(--surface); }

/* The report large (cards.ts): over the face beside the tab row as a terminal opens (the office), or over the
   dashboard's place (the browser's grid); its panels in a grid, stats and tables across it, charts side by side. */
.report-view {
  position: absolute; top: calc(var(--bar) + 12px); right: 12px; bottom: 12px; left: 12px; z-index: 1;
  display: flex; flex-direction: column; min-width: 0; border-radius: 12px; overflow: hidden; pointer-events: auto;
  background: rgb(14 15 23 / 0.92); color: #f4f4f8; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 12px 32px rgb(0 0 0 / 0.45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: pop-in 160ms var(--ease);
}
.report-view[hidden], :root[data-talk-browser] .talk-face > .report-view { display: none; }
.report-view:focus { outline: none; }
.browser > .report-view {
  grid-row: 2 / -1; inset: 0; z-index: 2; background: var(--surface); color: var(--text);
  box-shadow: 0 0 0 1px var(--card-ring), var(--pop-shadow); -webkit-backdrop-filter: none; backdrop-filter: none;
}
:root:not([data-dash]) .browser > .report-view { display: none; }
.report-view-head { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 16px; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.browser > .report-view .report-view-head { border-bottom-color: var(--card-ring); }
.browser > .report-view .talk-card-mark[data-state="report"] { color: var(--accent); }
.report-view-title { flex: 1; min-width: 0; margin: 0; font-size: 14px; font-weight: 650; }
.report-view-close { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: #c2c2ce; cursor: pointer; }
.report-view-close:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
.browser > .report-view .report-view-close { color: var(--muted); }
.browser > .report-view .report-view-close:hover { background: var(--hover); color: var(--text); }
.report-view-body { flex: 1; min-height: 0; overflow: auto; padding: 16px 20px 24px; scrollbar-width: thin; }
.report-view-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; max-width: 1240px; margin: 0 auto; }
.report-view-grid > .report-panel { min-width: 0; padding: 14px 16px 16px; border-radius: 10px; background: rgb(255 255 255 / 0.04); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07); }
.report-view-grid > .report-panel:is([data-kind="stats"], [data-kind="table"]) { grid-column: 1 / -1; }
.browser > .report-view .report-panel { background: var(--bg); box-shadow: 0 0 0 1px var(--card-ring); }
.report-view .report { --report-surface: #14151d; }
.browser > .report-view .report { --report-surface: var(--bg); }
.report-view .report-stat { background: rgb(255 255 255 / 0.05); }
.browser > .report-view .report-stat { background: var(--surface); }
.report-title { margin: 0; font-size: 14px; font-weight: 650; }
.report-note { margin: 2px 0 0; font-size: 12.5px; line-height: 1.4; color: #a4a4b2; }
.browser > .report-view .report-note { color: var(--muted); }
.report-panel > .report { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .talk-card { animation: none; }
  .talk-card-mark > svg, .talk-step-mark > svg { animation: none !important; }
}

/* The pages the bot is on (talk/pages.ts): at the bottom of the face's left column (ticket f42723a6: held over the bot's laptop,
   they covered what it said) or in its dashboard, the page it acts on now as a card with its picture, each other one a window's
   title strip over it, the newest nearest the card. Five strips in sight at most, and in the column no taller than the room the
   job's cards leave; past that they scroll, the oldest at the top. Nothing
   moves on hover (ticket 2bbb4120: fanned-out cards went off the screen and jumped from under the pointer). */
.talk-pages { --strip: 30px; --strip-gap: 3px; position: relative; flex: none; margin-top: auto; display: flex; flex-direction: column; gap: var(--strip-gap); }
.talk-pages[hidden] { display: none; }
.talk-side .talk-pages { flex: 0 1 auto; min-height: 0; }
.talk-side .talk-stack { flex: none; }
.talk-stack { position: relative; display: grid; }
.talk-pages-list {
  display: none; flex-direction: column-reverse; gap: var(--strip-gap); min-height: 0; overflow-y: auto; overscroll-behavior: contain; pointer-events: auto;
  max-height: calc(5 * var(--strip) + 4 * var(--strip-gap)); border-radius: 8px;
  scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.3) transparent;
}
.talk-pages[data-list] .talk-pages-list { display: flex; }
.talk-row {
  flex: none; display: flex; align-items: center; gap: 7px; min-width: 0; height: var(--strip); padding: 0 10px; border: 0; border-radius: 8px;
  text-align: start; font: inherit; color: #e4e4ec; cursor: pointer; background: rgb(14 15 23 / 0.82);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); transition: background 100ms var(--ease), box-shadow 100ms var(--ease);
}
.talk-row:hover { background: rgb(36 38 52 / 0.95); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3); }
.talk-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.talk-row-icon { width: 14px; height: 14px; flex: none; border-radius: 3px; }
.talk-row-blank { background: rgb(255 255 255 / 0.18); }
.talk-row-term { display: grid; place-items: center; font: 650 7.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #8be28b; background: #0b0c10; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.15); }
.talk-row-words { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; }
.talk-row-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 600; }
.talk-row[data-kind="term"] .talk-row-title { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 550; }
.talk-row-site { flex: none; font-size: 11.5px; color: #a4a4b2; }
.talk-row[data-now="true"] .talk-page-dots > i:nth-child(1) { background: #ff5f57; }
.talk-row[data-now="true"] .talk-page-dots > i:nth-child(2) { background: #febc2e; }
.talk-row[data-now="true"] .talk-page-dots > i:nth-child(3) { background: #28c840; }
.talk-page {
  grid-area: 1 / 1; align-self: end; display: flex; flex-direction: column; min-width: 0; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  text-align: start; font: inherit; cursor: pointer; pointer-events: auto; color: #f4f4f8; background: rgb(14 15 23 / 0.86);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 4px 14px rgb(0 0 0 / 0.3);
  transition: box-shadow 120ms var(--ease); animation: fade-in 240ms var(--ease);
}
.talk-page:hover { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.3), 0 6px 18px rgb(0 0 0 / 0.35); }
.talk-page:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.talk-page-head { height: var(--strip); flex: none; display: flex; align-items: center; gap: 7px; padding: 0 10px; min-width: 0; }
.talk-page-icon { width: 14px; height: 14px; flex: none; border-radius: 3px; }
.talk-page-words { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; }
.talk-page-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 600; }
.talk-page-site { flex: none; font-size: 11.5px; color: #a4a4b2; }
.talk-page-frame { position: relative; display: block; aspect-ratio: 16 / 10; background: rgb(255 255 255 / 0.06); }
.talk-page-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.talk-page-now {
  position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 9px; font-size: 11px; font-weight: 650;
  background: var(--accent); color: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
}
.talk-page[data-now="false"] .talk-page-now { display: none; }
@media (prefers-reduced-motion: reduce) {
  .talk-page, .talk-row { transition: none; animation: none; }
}

.talk-page-dots { display: none; }

/* A terminal of the bot's chat, as a terminal window in the stack (talk/pages.ts): a dark card, the window's title strip
   ("Terminal · folder"), a pulsing dot while a command runs or how the last one ended at its end (red when it failed),
   then the command running (else the folder) and its last lines as the terminal shows them, in a monospace face. */
.talk-term { background: rgb(10 11 16 / 0.94); }
.talk-term-body {
  display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; overflow: hidden;
  background: #0b0c10; font: 10.5px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #d6d8e0;
}
.talk-term-cmd { flex: none; color: #8be28b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk-term-cmd[data-kind="folder"] { color: #8d8f9c; direction: rtl; text-align: start; }
/* Lines past its height are cut at the top: the last ones show. */
.talk-term-out { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; white-space: pre; overflow: hidden; color: #b9bcc8; }
.talk-term-mark { flex: none; font-size: 10.5px; font-weight: 650; color: #a4a4b2; font-variant-numeric: tabular-nums; }
.talk-term-mark[data-state="running"] {
  width: 7px; height: 7px; border-radius: 50%; background: #28c840; box-shadow: 0 0 0 0 rgb(40 200 64 / 0.6);
  animation: term-pulse 1.4s ease-out infinite;
}
.talk-term-mark[data-bad] { color: #ff6b6b; }
@keyframes term-pulse { 70% { box-shadow: 0 0 0 5px rgb(40 200 64 / 0); } 100% { box-shadow: 0 0 0 0 rgb(40 200 64 / 0); } }
.talk-term .talk-page-title { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 550; }

/* A terminal opened large over the scene (talk/terminal-view.ts), right of the job's cards: its title strip with what
   runs and Close terminal, then the terminal itself (an xterm: .term-view-host). None while a page's browser covers the
   face. */
.term-view {
  position: absolute; top: calc(var(--bar) + 12px); right: 12px; bottom: 12px; left: calc(min(280px, 38%) + 24px);
  display: flex; flex-direction: column; min-width: 0; border-radius: 10px; overflow: hidden; pointer-events: auto;
  background: #0b0c10; color: #e6e7ee; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 12px 32px rgb(0 0 0 / 0.45);
  animation: pop-in 160ms var(--ease);
}
.term-view[hidden], :root[data-talk-browser] .term-view { display: none; }
.term-view-head { flex: none; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 12px; background: rgb(255 255 255 / 0.05); }
.term-view-head .talk-page-dots { display: flex; gap: 4px; flex: none; margin-right: 4px; }
.term-view-head .talk-page-dots > i { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / 0.22); }
.term-view[data-now="true"] .talk-page-dots > i:nth-child(1) { background: #ff5f57; }
.term-view[data-now="true"] .talk-page-dots > i:nth-child(2) { background: #febc2e; }
.term-view[data-now="true"] .talk-page-dots > i:nth-child(3) { background: #28c840; }
.term-view-title { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.term-view .talk-term-mark { font-size: 12px; }
.term-view-time { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: #a4a4b2; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.term-view-stop {
  flex: none; height: 24px; padding: 0 12px; border: 0; border-radius: 6px; font: inherit; font-size: 12px; font-weight: 650;
  background: rgb(255 255 255 / 0.08); color: #f2b8b5; cursor: pointer;
}
.term-view-stop:hover:not(:disabled) { background: #c7372f; color: #fff; }
.term-view-stop[hidden] { display: none; }
.term-view-close { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: #c2c2ce; cursor: pointer; }
.term-view-close:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
.term-view-stop:focus-visible, .term-view-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.term-view-body { position: relative; flex: 1; min-height: 0; display: flex; padding: 6px 4px 4px 10px; }
.term-view-trouble { flex: none; margin: 0; padding: 8px 12px; font-size: 12px; color: #ff9b9b; }
.term-view-trouble[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .talk-term-mark[data-state="running"], .term-view, .report-view { animation: none; }
}

/* A job's terminal in front (terminal/tabs.ts): its tab in the row (after the bot's), the toolbar and page aside, the
   terminal in their place on the frame's card. The page's slot is not drawn, so its view leaves the window. */
.term-tabs { flex: none; display: flex; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.term-tabs[hidden] { display: none; }
.term-tab { flex: 0 0 auto; max-width: 220px; padding-right: 4px; }
.term-tab .tab-title { flex: 0 1 auto; max-width: 170px; text-overflow: ellipsis; mask-image: none; }
.term-tab-icon { color: var(--muted); }
.term-tab[data-active="true"] .term-tab-icon { color: var(--accent); }
.term-tab[data-failed] .term-tab-icon { color: var(--bad); }
.term-tab-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.term-tab-dot[hidden] { display: none; }
.term-pane { display: none; }
:root[data-term] .browser > :not(.notice, .tabbar, .term-pane) { display: none; }
:root[data-term] .tabs .tab[data-active="true"], :root[data-term] .blank-tab { background: none; color: var(--muted); box-shadow: none; }
:root[data-term] .tabs .tab[data-active="true"]:hover, :root[data-term] .blank-tab:hover { background: var(--hover); color: var(--text); }
:root[data-term] .tabs .tab[data-active="true"]:not(:hover, :focus-visible) .tab-close { opacity: 0; }
:root[data-term] .term-pane {
  grid-row: 2 / -1; display: flex; min-width: 0; min-height: 0; padding: 8px 4px 4px 12px; overflow: hidden;
  border-radius: var(--card-radius); background: var(--surface); box-shadow: 0 0 0 1px var(--card-ring), var(--card-shadow);
  animation: fade-in 160ms var(--ease);
}

/* The terminal itself (terminal/view.ts): xterm.js fills it; find in its top right corner; a bell flashes its edge. */
.term-view-host { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; border-radius: 6px; }
.term-screen { flex: 1; min-width: 0; min-height: 0; }
.term-screen .xterm { height: 100%; }
/* xterm 6 draws its own scrollbar (VS Code's) over the viewport: the viewport's native one (with arrow buttons on Windows
   and Linux) is not shown under it. */
.term-screen .xterm-viewport { background-color: transparent; scrollbar-width: none; }
.term-view-host[data-bell] { animation: term-bell 180ms ease-out; }
@keyframes term-bell { from { box-shadow: inset 0 0 0 2px var(--amber); } to { box-shadow: inset 0 0 0 2px transparent; } }
.term-find {
  position: absolute; top: 4px; right: 18px; z-index: 10; display: flex; align-items: center; gap: 2px; height: 32px; padding: 0 4px 0 10px;
  border-radius: 8px; background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--card-ring), var(--pop-shadow);
}
.term-find[hidden] { display: none; }
.term-find > svg { flex: none; color: var(--muted); }
.term-find-input { width: 180px; height: 26px; padding: 0 6px; border: 0; outline: none; background: none; color: inherit; font: inherit; font-size: 12.5px; }
.term-find-count { flex: none; min-width: 64px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.term-find-btn { width: 26px; height: 26px; }
.term-view-host[data-look="dark"] .term-find { background: #1c1c22; color: #e9e9ef; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 8px 24px rgb(0 0 0 / 0.5); }
@media (prefers-reduced-motion: reduce) {
  .term-view-host[data-bell] { animation: none; outline: 2px solid var(--amber); outline-offset: -2px; }
  :root[data-term] .term-pane { animation: none; }
}


/* A job's dashboard (dashboard.ts): over the toolbar's and the page's place while its Dashboard tab is in front, the
   tab row above it as ever. The bot at the top, then the job's cards and the pages it is on, in the theme's own light
   colours (the same cards are dark over the office's scene). */
.dashboard { display: none; }
:root[data-dash] .browser > :not(.notice, .tabbar, .dashboard, .report-view) { display: none; }
:root[data-dash] .tabs .tab[data-active="true"]:not(.bot-tab), :root[data-dash] .blank-tab { background: none; color: var(--muted); box-shadow: none; }
:root[data-dash] .dashboard {
  grid-row: 2 / -1; display: flex; flex-direction: column; gap: 20px; min-height: 0; overflow-y: auto; padding: 24px 28px;
  border-radius: var(--card-radius); background: var(--surface); box-shadow: 0 0 0 1px var(--card-ring), var(--card-shadow);
  animation: fade-in 200ms var(--ease);
}
.dash-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dash-face { width: 72px; height: 72px; flex: none; border-radius: 18px; background: var(--well); object-fit: cover; }
.dash-who { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dash-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dash-name { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-why { flex: none; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11.5px; font-weight: 650; line-height: 20px; background: var(--amber); color: #3a2a00; }
.dash-why[hidden] { display: none; }
.dash-doing { margin: 0; color: var(--muted); font-size: 13.5px; }
.dash-body { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.dash-col { flex: 1 1 260px; max-width: 520px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
/* No cards (or no pages): that column takes no room, the other starts at the left. */
.dash-col:has(> .talk-cards):not(:has(> .talk-cards:not([hidden]))), .dash-col:has(> .talk-pages[hidden]) { display: none; }
.dashboard .talk-cards { overflow: visible; pointer-events: auto; }
.dashboard .talk-card, .dashboard .talk-page {
  background: var(--bg); color: var(--text); box-shadow: 0 0 0 1px var(--card-ring); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.dashboard .talk-card-head, .dashboard .talk-card-note, .dashboard .talk-page-site, .dashboard .talk-step[data-status="done"] .talk-step-title { color: var(--muted); }
.dashboard .talk-card-mark[data-state="running"], .dashboard .talk-step-mark[data-state="running"] { color: var(--accent); }
.dashboard .talk-card-mark[data-state="waiting"], .dashboard .talk-card-mark[data-state="scheduled"], .dashboard .talk-card-mark[data-state="repeat"] { color: var(--accent); }
.dashboard .talk-pages { margin-top: 0; pointer-events: auto; }
.dashboard .talk-row { color: var(--text); background: var(--bg); box-shadow: 0 0 0 1px var(--card-ring); }
.dashboard .talk-row:hover { background: var(--well); box-shadow: 0 0 0 1px var(--card-ring); }
.dashboard .talk-row-site { color: var(--muted); }
.dashboard .talk-chart-name, .dashboard .talk-table thead th { color: var(--muted); }
.dashboard .talk-bar-label, .dashboard .talk-table tbody th, .dashboard .talk-bar-value { color: var(--text); }
.dashboard .talk-bar-fill { background: var(--accent); }
.dashboard .talk-card-mark[data-state="table"] { color: var(--accent); }
.dashboard .talk-table th, .dashboard .talk-table td { border-bottom-color: var(--card-ring); }

/* The office's own controls (world/office.ts): the shop, the world's own cards (cosmetics, keys, settings) and how the world is seen, over its top right corner. None while
   a bot is talked to. */
.office-controls { position: absolute; top: 12px; right: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: calc(100% - 24px); }
.office-chip {
  height: 30px; padding: 0 12px 0 9px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 15px;
  font-size: 12px; font-weight: 550; white-space: nowrap; cursor: pointer; background: rgb(28 24 20 / 0.62); color: #fbf6ee;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color 120ms;
}
.office-chip:hover:not(:disabled) { background: rgb(28 24 20 / 0.8); }
.office-chip:disabled { opacity: 0.5; cursor: default; }
.office-chip-icon { display: grid; }
:root[data-talk] .office-controls { display: none; }
.office[data-camera="walk"] .office-scene { cursor: grab; }
/* The ride up (world/lift.ts): the office's fade to the sky while the lift rises (data-lift). */
.office-fade { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(to bottom, #9fc4e6, #dbe8f2 55%, #f3e6cf); }
.office[data-lift="rise"] .office-fade { animation: lift-up 2s ease-in forwards; }
.office[data-lift="roof"] .office-fade { opacity: 1; }
@keyframes lift-up { to { opacity: 1; } }

/*
  Up the lift (roof-place.ts): the roof stands in the office's card, a frame like the office's (world/roof.ts: Noa's own
  copy of Rooftop) with the same row of chips over its top right (world/controls.ts). The card's office is out of sight
  (and not drawn: office-view.ts). Over the frame, only while the roof is not yet in its room: "Going up…", or why it
  could not open with Try again and the way down.
*/
.roof { display: none; }
:root[data-roof] .office { background: transparent; }
:root[data-roof] .office > :not(.roof) { visibility: hidden; }
:root[data-roof] .roof { position: absolute; inset: 0; display: flex; flex-direction: column; color: #e8edf5; }
.roof > .office-controls { z-index: 2; }
.office-controls[hidden], .office-chip[hidden] { display: none; }
.roof-down {
  flex: none; height: 28px; padding: 0 12px 0 9px; display: inline-flex; align-items: center; gap: 6px; border: 0;
  border-radius: 14px; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; color: #2a1d0c;
  background: #ffd38a; transition: background-color 120ms;
}
.roof-down:hover { background: #ffe2a8; }
.roof-down[hidden], .roof-retry[hidden] { display: none; }
/* As the office's scene is (.office-scene): the office's card rounds and clips both. */
.roof-slot { position: relative; flex: 1; min-height: 0; background: #0b0d14; }
.roof-slot > .roof-frame { position: absolute; inset: 0; }
.roof-note {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 16px; text-align: center; font-size: 13px; background: #0b0d14;
}
.roof-note[hidden] { display: none; }
.roof-status { margin: 0; color: #b7c0cf; }
.roof-status:empty { display: none; }
.roof-status[data-bad="true"] { color: #ffb4a8; font-weight: 600; }
.roof-actions { display: flex; gap: 10px; }
.roof-retry { flex: none; height: 28px; padding: 0 12px; }
.roof[data-state="failed"] .roof-note { background: #2a3242; }

/*
  The Office theme's background (office-view.ts behind(): a new chat, the first view), the office itself not on screen:
  the office card in the blank page's place (the browser's tabs, toolbar and bookmarks over it: --blank-top, from
  themes/host.ts), under the hero, clear around the box. Only a picture: no clicks, no controls, no lift sign, no
  "Opening the office…" (the office card's colour until it is drawn).
*/
:root[data-office-behind] .office {
  position: relative; grid-row: 2; grid-column: 3; display: block; margin: var(--blank-top, 0px) var(--gap) var(--gap); min-width: 0; min-height: 0;
  overflow: hidden; border-radius: var(--card-radius); background: #e8d9c4; pointer-events: none;
}
:root[data-office-behind] .office-controls, :root[data-office-behind] .office-opening { display: none; }
:root[data-office-behind] .hero-slot { box-shadow: 0 0 0 1px var(--card-ring), 0 8px 32px rgb(28 24 20 / 0.28); }

/* The Shop chip, over the world's top right corner (world/office.ts, world/roof.ts): it opens Rooftop's own shop card. */
.office-shop .office-chip-icon { color: #ffd38a; }


/*
  A workspace's team (world/team.ts), a line of its own under the chips over the office's top right corner: everybody on
  the team, a dot by each name, green while they are online, grey while not. Only from above, nobody talked to.
*/
.office-team { flex-basis: 100%; display: flex; justify-content: flex-end; pointer-events: none; }
.office-team[hidden] { display: none; }
.office-team-card {
  pointer-events: auto; min-width: 150px; max-width: 220px; max-height: min(420px, calc(100vh - 160px)); overflow-y: auto; padding: 8px 10px 9px;
  border-radius: 12px; background: rgb(28 24 20 / 0.62); color: #fbf6ee; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 12px;
}
.office-team-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-weight: 650; }
.office-team-count { font-weight: 500; color: rgb(251 246 238 / 0.6); }
.office-team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.office-team-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.office-team-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #8b8f96; }
.office-team-row[data-online="true"] .office-team-dot { background: #3ccf6e; box-shadow: 0 0 0 2px rgb(60 207 110 / 0.22); }
.office-team-row[data-online="false"] .office-team-name { color: rgb(251 246 238 / 0.62); }
.office-team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A row's name and dot: a button for a member with a body or unit in the office (team.ts: a click follows them). */
.office-team-pick { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; margin: -2px -5px; padding: 2px 5px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; text-align: left; }
button.office-team-pick { cursor: pointer; }
button.office-team-pick:hover { background: rgb(251 246 238 / 0.12); }
button.office-team-pick:focus-visible { outline: 2px solid rgb(251 246 238 / 0.7); outline-offset: 0; }
button.office-team-pick[aria-pressed="true"] { background: rgb(251 246 238 / 0.2); }

/*
  What Noa did for you (office-stats.ts), over the office's bottom right corner, in the chips' dark glass; folded, one
  chip with the time. Not while a bot is talked to, on the roof (.office > :not(.roof) hidden), or behind Noa's box.
*/
.office-stats {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 300px; max-width: calc(100% - 24px); max-height: calc(100% - 64px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 10px; border-radius: 14px;
  background: rgb(28 24 20 / 0.72); color: #fbf6ee; box-shadow: 0 2px 12px rgb(0 0 0 / 0.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  --muted: rgb(251 246 238 / 0.66); --text: #fbf6ee; --hover: rgb(255 255 255 / 0.08); --well: rgb(255 255 255 / 0.08); --surface: rgb(255 255 255 / 0.18); --card-ring: rgb(255 255 255 / 0.1);
}
.office-stats[hidden], .office-stats-chip[hidden] { display: none; }
.office-stats-chip { position: absolute; right: 12px; bottom: 12px; z-index: 1; }
:root[data-talk] :is(.office-stats, .office-stats-chip), :root[data-office-behind] :is(.office-stats, .office-stats-chip) { display: none; }
.office-stats-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -2px -6px -2px 0; }
.office-stats-title { margin: 0; font-size: 13px; font-weight: 650; }
.office-stats-fold { width: 26px; height: 26px; }
.office-stats-period { align-self: flex-start; }
.office-stats-body { display: flex; flex-direction: column; gap: 10px; }
.office-stats-body .day-chart { --bar: #a5a6ff; --bar-dim: rgb(165 166 255 / 0.5); --stub: rgb(255 255 255 / 0.16); --read: rgb(251 246 238 / 0.66); margin-top: 0; }
.office-stats-body .day-plot { height: 56px; }
.office-stats-hero { display: flex; align-items: baseline; gap: 6px; }
.office-stats-time { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: #c4c5ff; font-variant-numeric: tabular-nums; }
.office-stats-sub { color: var(--muted); font-size: 12px; }
/* No account report yet, or signed out (ticket 089ed1f3): a quiet bar where the time goes, no number. */
.office-stats-pending { display: inline-block; width: 4.5ch; height: 0.8em; border-radius: 6px; background: rgb(255 255 255 / 0.1); align-self: center; }
.office-stats-empty { margin: 0; color: var(--muted); font-size: 12.5px; }
.office-stats-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.office-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.office-stat { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 8px; background: rgb(255 255 255 / 0.06); min-width: 0; }
.office-stat-value { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.office-stat-label { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.office-stats-foot { display: flex; justify-content: flex-end; }
.office-stats-all { height: 26px; padding: 0 10px; border: 0; border-radius: 13px; background: rgb(255 255 255 / 0.1); color: #fbf6ee; font: inherit; font-size: 12px; font-weight: 550; cursor: pointer; }
.office-stats-all:hover { background: rgb(255 255 255 / 0.18); }

/*
  Voice with people (voice-controls.ts, ticket e6499fc0): the mic, the headphones and the voice settings over the
  world's bottom left, in the chips' dark glass, only while the user walks about in a room of people (the roof, a
  workspace's office). Not while a bot is talked to, or behind Noa's box.
*/
.world-voice {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: 12px; background: rgb(28 24 20 / 0.62); box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  --muted: rgb(251 246 238 / 0.78); --faint: rgb(251 246 238 / 0.5); --text: #fbf6ee; --hover: rgb(255 255 255 / 0.12); --bad: #ff8a80;
}
.voice-pair { display: inline-flex; align-items: center; border-radius: 8px; }
.voice-pair:hover { background: var(--hover); }
.voice-btn, .voice-more {
  display: grid; place-items: center; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  cursor: pointer; transition: background-color 120ms, color 120ms, box-shadow 120ms;
}
.voice-btn { width: 32px; }
.voice-more { width: 16px; margin-left: -4px; color: var(--faint); }
.voice-btn:hover, .voice-more:hover, .voice-more[aria-expanded="true"] { color: var(--text); }
.voice-gear:hover { background: var(--hover); }
.voice-btn[data-off] { color: var(--bad); }
.voice-btn[data-asking] { animation: voice-asking 1.2s var(--ease) infinite; }
.voice-btn:disabled, .voice-more:disabled { opacity: 0.4; pointer-events: none; }
@keyframes voice-asking { 50% { opacity: 0.45; } }
/* The user's voice leaving now: a green ring round the mic, as Discord rings the picture. */
.world-voice[data-talking] .voice-mic { box-shadow: inset 0 0 0 2px var(--ok, #3ccf6e); }
.voice-menu-head { font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
:root[data-talk] .world-voice, :root[data-office-behind] .world-voice { display: none; }
@media (prefers-reduced-motion: reduce) { .voice-btn[data-asking] { animation: none; } }
/* Noa's Settings in front (app-page.ts): a page of the app, not a browser's tab. Its own header (an icon, "Settings",
   close) in the tab row's place; no toolbar or bookmarks bar; the page has the rest. Over a job's dashboard too: after its rules, which it overrides. */
.app-page-bar { display: none; }
:root[data-app-page] .browser > :is(.tabbar, .toolbar, .bookmark-bar, .dashboard, .hero) { display: none; }
:root[data-app-page] .browser > .app-page-bar { grid-row: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 2px 0 6px; }
:root[data-app-page] .browser > .page-slot { display: block; grid-row: 2 / -1; }
.app-page-icon { display: grid; color: var(--muted); }
.app-page-title { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--text); }

/* --- Delete browsing data (browsing-data.ts) ---------------------------------------------------------------------- */
.bd-kinds { display: flex; flex-direction: column; gap: 4px; }
.bd-kind { display: grid; grid-template-columns: 16px 1fr auto; align-items: start; gap: 4px 10px; padding: 8px 10px; border-radius: 8px; cursor: default; }
.bd-kind:hover { background: var(--well); }
.bd-kind input[type="checkbox"] { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--accent); }
.bd-kind-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bd-kind-title { font-size: 13px; font-weight: 600; }
.bd-kind-sub { color: var(--muted); font-size: 12px; line-height: 1.45; }
.bd-range { width: auto; align-self: center; font-size: 12.5px; padding-top: 4px; padding-bottom: 4px; }
.bd-range:disabled { opacity: 0.5; }
.bd-sites { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; border: 0; }
.bd-sites legend { width: 100%; margin-bottom: 6px; padding: 0; }
.bd-sites .check input { accent-color: var(--accent); }
.bd-note { margin: -6px 0 0; color: var(--muted); font-size: 12px; }
/* --- Workspaces (workspaces/): the rail at the far left, the workspace's name over the column, Workspace settings ------------- */
/* The window's columns: the rail (always: Rooftop is on it, workspaces or not), the column, the browser. */
body { grid-template-columns: var(--workspaces-w) var(--column) minmax(0, 1fr); }
:root { --workspaces-w: 56px; }
.title-col { grid-column: 1 / 3; }
.title-browser { grid-column: 3; }
.column { grid-column: 2; padding-left: 0; }
/* Up on the roof (data-roof: office-view.ts, the same test as the rail's pill on Rooftop's square) the left column is
   a workspace's (its name, its agents, its New task) and Rooftop is no workspace: the column is not there and Rooftop
   fills the window beside the rail, the room's own chips its controls (ticket 7920eb10). Down again, it is back. */
:root[data-roof] { --column: 0px; }
:root[data-roof] .column { display: none; }
:root[data-roof] .title-col { padding: 0; }
:root[data-roof] .title-col > * { display: none; }

/* Painted in the frame colour (see 02-title-bar.css: nothing translucent straight on the transparent page). */
.workspace-rail {
  grid-row: 2; grid-column: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 0;
  padding: 2px 0 var(--gap); background: var(--chrome); overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
}
.workspace-list { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.workspace-item { position: relative; width: 100%; display: flex; justify-content: center; }
.workspace-icon {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px;
  background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--card-ring); font-weight: 650; letter-spacing: -0.01em;
  transition: border-radius 140ms var(--ease), background 140ms, color 140ms; -webkit-app-region: no-drag; touch-action: none;
}
.workspace-icon[data-glyph="emoji"] { font-size: 20px; font-weight: 400; }
.workspace-icon[data-glyph="letter"] { font-size: 16px; }
.workspace-icon[data-glyph="letters"] { font-size: 13.5px; }
.workspace-icon:hover { border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.workspace-item[data-active] .workspace-icon { border-radius: 10px; background: var(--accent); color: var(--on-accent); box-shadow: none; }
.workspace-item[data-active] .workspace-icon[data-glyph="emoji"] { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
/* A workspace's picture (WorkspaceInfo.image) fills its square, rounded as the square is; shown, it has the emoji's ring. */
.workspace-glyph:has(> .workspace-image) { display: block; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.workspace-image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; pointer-events: none; user-select: none; }
.workspace-item[data-active] .workspace-icon[data-glyph="image"] { background: var(--surface); box-shadow: 0 0 0 2px var(--accent); }
/* Others' jobs running on this computer for the workspace (a lent computer): a count on the icon's corner. */
.workspace-icon { position: relative; }
.workspace-lent {
  position: absolute; right: -4px; bottom: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 2px var(--chrome);
  font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0; pointer-events: none;
}
.workspace-lent[hidden] { display: none; }
.workspace-item[data-active] .workspace-lent { background: var(--surface); color: var(--accent); }
/* News since it was last shown (WorkspacesState.unread): a dot on the icon's top corner. */
.workspace-unread {
  position: absolute; right: -2px; top: -2px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--chrome); pointer-events: none;
}
.workspace-unread[hidden] { display: none; }
/* Muted (rail.ts right-click menu): dimmed until hovered or shown. */
.workspace-item[data-muted]:not([data-active]) .workspace-icon:not(:hover) { opacity: 0.45; }
/* The pill on the left edge: tall for the workspace shown, a nub on hover. */
.workspace-pill {
  position: absolute; left: 0; top: 50%; width: 4px; height: 0; margin-top: 0; border-radius: 0 4px 4px 0; background: var(--text);
  transition: height 140ms var(--ease), margin-top 140ms var(--ease);
}
.workspace-item:hover .workspace-pill { height: 10px; margin-top: -5px; }
.workspace-item[data-active] .workspace-pill { height: 32px; margin-top: -16px; }
/* Dragged: it lifts; a line shows where it goes. */
.workspace-item[data-dragging] .workspace-icon { opacity: 0.5; }
.workspace-item[data-drop-before]::before, .workspace-list[data-drop-end]::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: -5px; height: 2px; border-radius: 1px; background: var(--accent);
}
.workspace-list[data-drop-end] { position: relative; }
.workspace-list[data-drop-end]::after { top: auto; bottom: -5px; }
/* Rooftop, the last square over the divider and + (themes' places): its icon a little larger than the 16px line icons. */
.rail-places { flex: none; }
.rail-place svg { width: 20px; height: 20px; }
.workspace-sep[hidden], .workspace-list[hidden], .workspace-add[hidden] { display: none; }
.workspace-sep { flex: none; width: 28px; height: 2px; border-radius: 1px; background: var(--border); }
/* An invite waiting for the user (rail.ts): its workspace's icon in a dashed square, a dot on its corner. */
.workspace-invite { background: transparent; box-shadow: none; outline: 1.5px dashed var(--accent); outline-offset: -1.5px; color: var(--muted); }
.workspace-invite:hover { outline-style: solid; }
.workspace-add { color: var(--ok); background: var(--surface); }
.workspace-add:hover { background: var(--ok); color: var(--surface); }

/* The workspace shown, over the column's header. */
.workspace-head {
  flex: none; display: flex; align-items: center; gap: 6px; width: 100%; height: 38px; padding: 0 12px; border: 0;
  border-bottom: 1px solid var(--border); background: none; color: var(--text); font-weight: 650; font-size: 13.5px; text-align: start;
}
.workspace-head:hover, .workspace-head[aria-expanded="true"] { background: var(--hover); }
.workspace-head-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.workspace-head svg { color: var(--muted); }
:root[data-collapsed] .workspace-head { display: none; }

/* Create a workspace, Join, Invite. */
.workspace-fields { display: flex; flex-direction: column; gap: 14px; }
.workspace-icon-row { display: flex; align-items: center; gap: 10px; }
.workspace-icon-input { width: 64px; flex: none; text-align: center; font-size: 16px; }
/* The icon as the rail will draw it (dialogs.ts nameAndIcon), then Upload picture and Remove picture under it. */
.workspace-icon-preview { pointer-events: none; }
.workspace-picture-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.workspace-picture-row [hidden] { display: none; }
.workspace-picture-note:empty { display: none; }
.workspace-icon-picks { display: flex; flex-wrap: wrap; gap: 4px; }
.workspace-icon-pick { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: var(--well); font-size: 16px; }
.workspace-icon-pick:hover:not(:disabled) { background: var(--hover); }
.workspace-preview { margin: -6px 0 0; color: var(--muted); font-size: 12.5px; }
.workspace-preview:empty { display: none; }
/* Invites for you (dialogs.ts openInvitesForYou): each workspace that invited the user, with Decline and Join. */
.invite-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; padding: 2px; }
.invite-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border); }
.invite-glyph { pointer-events: none; }
.invite-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.invite-name { font-size: 13.5px; font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.invite-sub { color: var(--muted); font-size: 12px; }
.invite-actions { display: flex; gap: 6px; flex: none; }
/* Sharing the own workspace (dialogs.ts confirmShareOwn): what the people invited will see and use, then what stays yours. */
.workspace-shares { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }
.workspace-keeps { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* Workspace settings: its tabs down the left, the tab's pane. */
.dialog.sheet-dialog.ws-sheet { width: min(860px, calc(100vw - 80px)); }
.ws-settings { flex: 1; min-height: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.ws-nav { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; border-right: 1px solid var(--border); background: var(--bg); }
.ws-nav-row { height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font-size: 12.5px; text-align: start; }
.ws-nav-row:hover { background: var(--hover); }
.ws-nav-row[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ws-pane { min-width: 0; min-height: 0; overflow-y: auto; padding: 16px 22px 20px; user-select: text; }
.ws-status { margin: 0 0 10px; }
.ws-section { display: flex; flex-direction: column; gap: 12px; }
.ws-head { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.ws-title { margin: 0; font-size: 14px; font-weight: 650; }
.ws-subtitle { margin: 0; font-size: 13px; font-weight: 650; }
.ws-tools { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.ws-note { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ws-sessions-options { display: flex; flex-direction: column; gap: 4px; }
.ws-sessions-option { display: grid; grid-template-columns: 16px 1fr; align-items: start; gap: 4px 10px; padding: 8px 10px; border-radius: 8px; }
.ws-sessions-option:hover:has(input:not(:disabled)) { background: var(--well); }
.ws-sessions-option input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--accent); }
.ws-sessions-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ws-sessions-title { font-size: 13px; font-weight: 600; }
.ws-sessions-sub { color: var(--muted); font-size: 12px; line-height: 1.45; }
.ws-note.ws-tokens[data-tone="warn"] { color: var(--amber); font-weight: 600; }
.ws-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ws-count { color: var(--muted); font-size: 12.5px; }
.ws-list { display: flex; flex-direction: column; gap: 2px; }
.ws-row {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border: 0; border-radius: 8px;
  background: none; color: var(--text); font: inherit; text-align: start;
}
.ws-row:hover, .ws-row[aria-current="true"] { background: var(--hover); }
.ws-row .avatar { width: 30px; height: 30px; font-size: 11.5px; }
.ws-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.ws-role-row .ws-row-name { flex: 1; }
.ws-row-name { font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ws-row-sub { color: var(--muted); font-size: 11.5px; }
.ws-row-tools { display: flex; align-items: center; gap: 6px; }
.ws-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.ws-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.ws-badge { padding: 1px 7px; border-radius: 999px; background: var(--well); color: var(--muted); font-size: 11px; }
.ws-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ws-chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border-radius: 999px; background: var(--well); font-size: 11.5px; }
.ws-chip .ws-dot { width: 8px; height: 8px; }
.btn.ws-danger, .ws-danger { color: var(--bad); }
.ws-rules { gap: 8px; }
.ws-rule { display: flex; align-items: flex-start; gap: 8px; }
.ws-rule-n { flex: none; min-width: 22px; padding-top: 8px; color: var(--muted); font-size: 12.5px; text-align: right; }
.ws-rule-text { flex: 1; min-width: 0; resize: vertical; line-height: 1.45; }
.ws-rule .btn { margin-top: 4px; }
.ws-rules-read { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; }
.ws-card { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border); }
.ws-role-top, .ws-lend-fields { display: flex; gap: 12px; align-items: flex-end; }
.ws-grow { flex: 1; }
.ws-color { width: 44px; height: 32px; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--field); }
.ws-perms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.ws-perms .check { white-space: normal; }
.ws-perms label:has(input:disabled) { color: var(--muted); }
.ws-role-select { width: auto; height: 28px; }
/* Invite member in Members: the email and the role, side by side; the invites not answered yet under the members. */
.ws-invite[hidden], .ws-invited:empty { display: none; }
.ws-invite-row { display: flex; gap: 12px; align-items: flex-end; }
/* Ownership (Overview): handing the workspace to another member, or the offer the user answers (settings.ts ownershipCard). */
.ws-ownership { margin-top: 12px; }
.ws-ownership .ws-note { margin: 0; }
.ws-ownership[data-transfer="offered"] { box-shadow: 0 0 0 1px var(--accent, var(--border)); }
.ws-invite .ws-role-select { height: 32px; }
.ws-invited { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.ws-invited-face { background: var(--well); color: var(--muted); }
.ws-jobs { width: 90px; }
.ws-grid-wrap { overflow-x: auto; }
/* A disabled select takes no hover, so its cell shows the tooltip saying why. */
.ws-grid .ws-level:disabled { opacity: 0.55; pointer-events: none; }
.ws-grid td:has(.ws-level:disabled) { cursor: not-allowed; }
.ws-grid { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.ws-grid th, .ws-grid td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: start; font-weight: 500; white-space: nowrap; }
.ws-grid thead th { color: var(--muted); font-weight: 600; }
.ws-grid thead .ws-dot { width: 8px; height: 8px; margin-right: 6px; }
.ws-level { height: 28px; min-width: 112px; }
.ws-device { display: flex; align-items: center; gap: 8px; }
.ws-online { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.ws-online[data-online="true"] { background: var(--ok); }

/* Noa's mark at the top of the rail (rail.ts, ticket 8892978a), over a divider, as Discord's Home over its servers: its
   square is the mark itself; its pill while All workspaces is open; on its corner how many need the user anywhere. */
.rail-home-row { flex: none; }
.workspace-icon.rail-home { background: none; box-shadow: none; overflow: visible; }
.rail-home > svg { width: 40px; height: 40px; border-radius: 12px; transition: border-radius 140ms var(--ease), filter 120ms; }
.rail-home:hover { background: none; }
.rail-home:hover > svg { border-radius: 10px; filter: brightness(1.12); }
.rail-home:active > svg { transform: scale(0.96); }
.rail-home-row[data-active] .workspace-icon.rail-home { background: none; }
.rail-home-row[data-active] .rail-home > svg { border-radius: 10px; }
.rail-home-needs { background: var(--bad); color: #fff; }
.rail-home-row[data-active] .rail-home-needs { background: var(--bad); color: #fff; }
/* With no column header logo the header starts with New task. */
.workspace-head[data-overview] svg { display: none; }
.workspace-head[data-overview]:hover { background: none; cursor: default; }

/* All workspaces (overview.ts), in the column in place of the jobs list while it is open. */
.overview { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 6px 12px; }
.overview[hidden], :root[data-collapsed] .overview, :root[data-noa="column"] .overview { display: none; }
:root[data-overview]:not([data-collapsed]):not([data-noa="column"]) .job-list { display: none; }
/* Its header (ticket e8d72185): no Home nor New task, the search over every workspace's tasks in their place. */
.column-head .overview-search { display: none; }
:root[data-overview]:not([data-collapsed]):not([data-noa="column"]) .column-head :is(.workspace-home, .new-chat) { display: none; }
:root[data-overview]:not([data-collapsed]):not([data-noa="column"]) .column-head .overview-search { display: flex; }
.overview-loading { display: grid; place-items: center; padding: 28px 0; }
.overview-loading[hidden], .overview-empty[hidden] { display: none; }
.overview-empty { padding: 28px 16px; text-align: center; }
.overview-empty-title { margin: 0 0 6px; font-weight: 650; font-size: 13.5px; }
.overview-empty-text { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.overview-group + .overview-group { margin-top: 10px; }
.overview-head {
  display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 8px 4px; color: var(--muted);
  font-size: 11.5px; font-weight: 650; letter-spacing: 0.02em; text-transform: uppercase;
}
.overview-group[data-group="needs"] .overview-head { color: var(--amber); }
.overview-count { padding: 0 6px; border-radius: 999px; background: var(--well); color: var(--muted); font-size: 10.5px; line-height: 16px; letter-spacing: 0; }
.overview-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.overview-row {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 8px;
  background: none; color: var(--text); font: inherit; text-align: start;
}
.overview-row:hover { background: var(--hover); }
.workspace-icon.overview-ws { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; pointer-events: auto; }
.workspace-icon.overview-ws[data-glyph="emoji"] { font-size: 14px; }
.workspace-icon.overview-ws[data-glyph="letters"] { font-size: 10px; }
.overview-ws:hover { border-radius: 8px; background: var(--surface); color: var(--text); }
.overview-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.overview-title { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 13px; }
.overview-glyph { flex: none; display: grid; place-items: center; color: var(--muted); }
.overview-group[data-group="needs"] .overview-glyph { color: var(--amber); }
.overview-group[data-group="running"] .overview-glyph { color: var(--ok); }
.overview-row[data-failed] .overview-glyph, .overview-row[data-failed] .overview-line { color: var(--bad); }
.overview-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.overview-line { color: var(--muted); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.overview-line:empty { display: none; }
.overview-ago { flex: none; align-self: flex-start; padding-top: 1px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.overview-group[data-group="running"] .overview-glyph svg { animation: spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .overview-group[data-group="running"] .overview-glyph svg { animation: none; } }
.workspace-icon.overview-ws[hidden], .overview-mark[hidden] { display: none; }
/* The square ringed and badged as a bot's face in the jobs list (04-column.css .job-face-box, ticket 1b77c046). */
.overview-mark { flex: none; }
.overview-mark > .overview-ws { display: grid; }

/* The peek (peek.ts, ticket a88e475e): a job of My dashboard in a second sidebar right of the column, Noa's second panel
   over its slot. Its column is 0 wide while none is open; the browser (or the office) keeps the rest. */
body { grid-template-columns: var(--workspaces-w) var(--column) var(--peek) minmax(0, 1fr); }
:root { --peek: 0px; --peek-w: 400px; }
:root[data-peek]:not([data-collapsed]):not([data-roof]) { --peek: calc(var(--peek-w) + var(--gap)); }
.title-browser { grid-column: 3 / 5; }
:root .browser, :root[data-office] .office, :root[data-office-behind] .office { grid-column: 4; }
.peek { grid-row: 2; grid-column: 3; display: flex; min-width: 0; min-height: 0; padding: 0 0 var(--gap) var(--gap); }
.peek[hidden], :root[data-collapsed] .peek, :root[data-roof] .peek { display: none; }
.peek-card { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
.peek-head { flex: none; display: flex; align-items: center; gap: 8px; height: var(--bar); padding: 0 6px 0 var(--inset); border-bottom: 1px solid var(--card-ring); }
.workspace-icon.peek-ws { width: 22px; height: 22px; border-radius: 7px; font-size: 10px; }
.workspace-icon.peek-ws[data-glyph="emoji"] { font-size: 13px; }
.workspace-icon.peek-ws[data-glyph="letters"] { font-size: 9px; }
.workspace-icon.peek-ws[hidden] { display: none; }
.peek-where { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 12.5px; }
.peek-go { flex: none; }
.peek-slot { position: relative; flex: 1; min-height: 0; }
/* The row open beside the column. */
.overview-row[data-peeked], .overview-row[data-peeked]:hover { background: var(--selected, var(--hover)); }
/* Interrupted (ticket a88e475e): its tasks were cut off by Noa or the computer stopping; Resume all on its header. */
.overview-group[data-group="interrupted"] .overview-head { color: var(--amber); }
.overview-group[data-group="interrupted"] .overview-glyph { color: var(--amber); }
.overview-resume-all { margin-left: auto; height: 22px; padding: 0 10px; font-size: 11.5px; letter-spacing: 0; text-transform: none; }
.overview-resume-all[hidden] { display: none; }
/* Rows picked (Ctrl or ⌘ click, Shift click) for Resume on the right-click menu. */
.overview-row[data-picked], .overview-row[data-picked]:hover { background: color-mix(in srgb, var(--accent, #6c63ff) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, #6c63ff) 45%, transparent); }
.overview[data-resuming] .overview-row { cursor: progress; }
/* Check again (ticket 5bd2e45a): a Waiting row's button, in its time's place while the pointer is on the row (or a key
   is on it); the row keeps its size, the button lies over the time's corner. */
.overview-item { position: relative; }
.btn.small.overview-check { position: absolute; top: 5px; right: 8px; height: 22px; padding: 0 10px; font-size: 11.5px; white-space: nowrap; visibility: hidden; }
.overview-check[hidden] { display: none; }
.overview-item[data-checkable]:hover .overview-check, .overview-item[data-checkable]:has(:focus-visible) .overview-check { visibility: visible; }
.overview-item[data-checkable]:hover .overview-ago, .overview-item[data-checkable]:has(:focus-visible) .overview-ago { visibility: hidden; }
.overview-check:disabled { cursor: progress; }
/* --- Right to left (Arabic: <html dir="rtl">, i18n/dom.ts markDocumentLanguage) -------------------------------------
  The frame mirrors as a whole: the window's grid follows the writing direction (the rail on the right, the browser on
  the left) and the views follow their slots (regions.ts measures them). What is tied to the physical window is put
  back: the caption buttons' place (Windows, Linux: env(titlebar-area-*); macOS: its buttons on the left), and the
  parts placed by left/right. Back and forward point the way the page reads.
*/
:root[dir="rtl"] .title-col {
  padding-left: var(--inset);
  /* Now at the window's right edge: the caption buttons' place there (env(): their area's complement), as .title-browser keeps it in left-to-right. */
  padding-right: calc(100vw - env(titlebar-area-x, 0px) - env(titlebar-area-width, 100vw) + var(--gap) + var(--inset));
}
:root[dir="rtl"] .title-browser { padding-right: var(--gap); padding-left: calc(env(titlebar-area-x, 0px) + 10px); }
:root[dir="rtl"][data-platform="darwin"] .title-col { padding-right: calc(var(--gap) + var(--inset)); }
/* macOS's window buttons stay on the left: over the browser's title bar now. */
:root[dir="rtl"][data-platform="darwin"] .title-browser { padding-left: 84px; }
:root[dir="rtl"][data-platform="darwin"] .title-col .view-nav { margin-left: 2px; margin-right: -6px; }
:root[dir="rtl"] .view-nav { margin-right: 0; margin-left: 2px; }
:root[dir="rtl"] :is(#back, #forward, #view-back, #view-forward) svg { transform: scaleX(-1); }

/* The column's edge handle, toward the browser (on its left now). */
:root[dir="rtl"] .column-handle { right: auto; left: calc(-1 * var(--gap)); }
/* A job row's ⋯ button, at the row's end; the row's words leave it room there. */
:root[dir="rtl"] .job-more { right: auto; left: 4px; }
:root[dir="rtl"] .job-item:hover:has(.job-more:not([hidden])) .job, :root[dir="rtl"] .job-item:has(.job-more[aria-expanded="true"]) .job { padding-right: 10px; padding-left: 32px; }

/* The rail, at the window's right edge: the pill on its outer edge, the badges on the icons' outer corners. */
:root[dir="rtl"] .workspace-pill { left: auto; right: 0; border-radius: 4px 0 0 4px; }
:root[dir="rtl"] .workspace-lent { right: auto; left: -4px; }
:root[dir="rtl"] .workspace-unread { right: auto; left: -2px; }
/* Workspace settings: its tabs' column on the right, its line toward the pane. */
:root[dir="rtl"] .ws-nav { border-right: 0; border-left: 1px solid var(--border); }
/* A select's arrow (13-forms.css .field-select) on its left, the room for it there. */
:root[dir="rtl"] .field-select { padding-right: 11px; padding-left: 30px; background-position: left 12px top calc(50% + 1px), left 16px top calc(50% + 1px); }
/* --- The page laid out as on the full screen (page-fit.ts, ticket bcaa81c1) -------------------------------------------
   With the sidebars out the page is drawn smaller, in the full screen's proportions: its place is the top of its room
   (#page-room, measured), and under it a quiet line says what it is drawn at, with Full screen. Full screen
   (data-full-browser) puts the workspace rail, the sidebar and the peek away: the browser has the window. */
.browser > .page-room { grid-row: 4; visibility: hidden; pointer-events: none; min-width: 0; min-height: 0; }
.browser > .page-slot[data-fit] { align-self: start; height: var(--page-h); }
.browser > .page-scaled {
  grid-row: 4; align-self: end; height: var(--page-rest); min-height: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px;
  color: var(--muted); font-size: 12px; white-space: nowrap;
}
.page-scaled-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.page-scaled .btn { flex: none; display: inline-flex; align-items: center; gap: 6px; }
/* Only under a page: not under the new-tab page, an app page or Noa's box on the blank page. */
:root[data-app-page] .page-scaled, :root[data-noa="hero"] .page-scaled, .page-slot:not([data-view="true"]) ~ .page-scaled { display: none; }

:root[data-full-browser] { --workspaces-w: 0px; --column: 0px; --peek: 0px; }
:root[data-full-browser] .workspace-rail,
:root[data-full-browser] .column,
:root[data-full-browser] .peek { display: none !important; }
:root[data-full-browser] .title-col { padding: 0; }
:root[data-full-browser] .title-col > * { display: none; }
.full-browser[aria-pressed="true"] { color: var(--accent); }
