/* ==========================================================================
   The Nothing look (approved by Ben, 31 Oct 2026; spec in
   design/nothing-look.html). Loaded last, so it wins over the older look.

   Phase 1 of 4: the shell (top line, bottom bar, ask bar), the shared
   pieces every screen can reuse (nx-*), and Home. Work and project pages,
   the chat, and the machine pages follow in their own phases and reuse
   these pieces. Every value comes from tokens.css.

   Red (--nx-red) is used only for the one action on a screen and for
   "needs you" dots.
   ========================================================================== */

/* ---------- Shell ---------- */
.shell.zoom-shell, .zoom-shell .main, .zoom-shell .view, .zoom-shell .panel-view { background: var(--nx-ground); }
.shell.zoom-shell::after { display: none; }

/* The top line: on Home the date, plain sentence case; elsewhere Back and the title. */
.hub-top { background: var(--nx-ground); box-shadow: none; }
.hub-date { padding-left: 16px; font-size: var(--fs-12); letter-spacing: .06em; color: var(--nx-muted); white-space: nowrap; }
.hub-avatar { background: var(--nx-tile); color: var(--nx-ink); }
.hub-avatar[aria-current="page"] { box-shadow: 0 0 0 1.5px var(--nx-ink); }
.hub-back-label { color: var(--nx-muted); }
.hub-title { font-weight: var(--fw-regular); }

/* The bottom bar: HOME WORK SEAN LIFE in small capitals; the place you are
   in is white with a small red dot above it. It shows on Home too. */
.shell.zoom-shell.at-home:not(.is-typing) { grid-template-rows: var(--top-h) minmax(0, 1fr) auto; }
.zoom-shell.at-home:not(.is-typing) > .hub-places { display: grid; }
.hub-places {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch;
  padding: 0 var(--safe-right) env(safe-area-inset-bottom, 0px) var(--safe-left);
  background: var(--nx-ground); box-shadow: none; border-top: 1px solid var(--nx-tile);
}
.hub-place {
  position: relative; max-width: none; min-height: var(--nx-bar-h); padding: 0; border: 0; border-radius: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-sans); font-size: 11px; font-weight: var(--fw-regular); letter-spacing: .08em; line-height: 1;
  /* The spec's #6E6E73 is too faint for 11 px text on black; the muted grey reads. */
  text-transform: uppercase; color: var(--nx-muted);
}
.hub-place::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.hub-place > svg, .hub-place > .sean-mark { display: none; }
.hub-place[aria-current="page"] { color: var(--nx-ink); font-weight: var(--fw-regular); background: none; }
.hub-place[aria-current="page"]::before { background: var(--nx-red); }
.hub-place:active { background: none; color: var(--nx-ink); }
/* SEAN's "waiting for you" dot sits after its name, clear of the red place dot. */
.hub-place .hub-tab-dot { top: calc(50% + 2px); left: calc(50% + 20px); right: auto; width: 5px; height: 5px; background: var(--nx-red); }
@media (max-width: 1099px) {
  .zoom-shell.at-home:not(.is-typing) > .main { --safe-bottom: 0px; }
  .zoom-shell:not(.is-typing) .hub-panel { bottom: calc(var(--nx-bar-h) + env(safe-area-inset-bottom, 0px)); }
}
/* Desktop: the places keep their place in the middle of the top bar, in this look. */
@media (min-width: 1100px) {
  .zoom-shell > .hub-places { display: flex; gap: 6px; border-top: 0; padding: 0; background: none; }
  .hub-place { min-height: 44px; padding: 0 14px; }
  .zoom-shell .hub-where { max-width: calc(50% - 210px); overflow: hidden; position: relative; z-index: 32; }
  .zoom-shell .hub-search, .zoom-shell .hub-avatar { position: relative; z-index: 32; }
  .zoom-shell .hub-search { width: 220px; margin-left: auto; background: var(--nx-tile); box-shadow: none; color: var(--nx-muted); }
}

/* The ask bar: a dark pill with a white round button (the mic; Send when
   there are words). Shared by Home, SEAN and each place's ask box. */
.hm-askbar { height: 54px; padding: 0 7px 0 20px; border-radius: 27px; background: var(--nx-tile); box-shadow: none; color: var(--nx-muted); }
.hm-askbar.has-add { padding-left: 7px; }
.hm-askbar input { font-family: var(--font-sans); color: var(--nx-ink); }
.hm-askbar input::placeholder { color: var(--nx-muted); }
.hm-askbar > button:last-child, .hm-askbar.has-text > button:last-child { width: 40px; height: 40px; border-radius: 50%; background: var(--nx-ink); color: var(--nx-ground); }
.hm-askbar > button:last-child svg { width: 18px; height: 18px; stroke-width: 2; }
.hm-askbar > button:last-child svg:has(use[href="#i-mic-dots"]) { width: 16px; height: 18px; }
.hm-ask { background: var(--nx-ground); }
.hm-ask::before { background: linear-gradient(transparent, var(--nx-ground)); }
@media (max-width: 1099px) {
  .hm-ask { padding: 10px 14px; }
  .zoom-shell:not(.is-typing) .hm-ask { bottom: calc(var(--nx-bar-h) + env(safe-area-inset-bottom, 0px)); }
  .zoom-shell.is-typing .hm-ask { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Shared pieces (nx-*) ---------- */
/* A page title: Newsreader 300. */
.nx-title { margin: 0; font-family: var(--font-title); font-weight: 300; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; color: var(--nx-ink); overflow-wrap: break-word; }
/* A big figure in round dots. */
.nx-figure { font-family: var(--font-dot); font-variation-settings: "ROND" 100; font-weight: 500; font-size: 84px; line-height: .74; letter-spacing: 0; color: var(--nx-ink); font-variant-numeric: tabular-nums; }
/* A tile: its name, one grey line, and a glyph or pill at the foot. */
.nx-tile, .nx-need, .nx-one {
  width: 100%; margin: 0; border: 0; border-radius: var(--nx-r); background: var(--nx-tile); color: var(--nx-ink);
  font: inherit; text-align: left; box-shadow: none; -webkit-tap-highlight-color: transparent;
}
.nx-tile { min-height: 152px; padding: 16px; display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.nx-tile b, .nx-need b { display: block; font-weight: var(--fw-regular); font-size: var(--fs-15); line-height: 1.3; overflow-wrap: break-word; }
.nx-tile small, .nx-need small { display: block; margin-top: 3px; color: var(--nx-muted); font-size: var(--fs-13); line-height: 1.3; overflow-wrap: break-word; }
.nx-tile .nx-glyph { flex: none; width: 24px; height: 24px; margin-top: auto; padding-top: 0; }
.nx-glyph, .nx-chev { stroke: none; overflow: visible; }
.nx-glyph circle { fill: var(--nx-line); stroke: none; }
.nx-glyph circle.on { fill: var(--nx-ink); }
.nx-glyph.is-dim circle.on { fill: var(--nx-muted); }
.nx-chev { flex: none; width: 10px; height: 14px; color: var(--nx-quiet); }
.nx-chev circle { fill: currentColor; stroke: none; }
.nx-pill {
  margin-top: auto; align-self: flex-start; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--nx-line);
  display: grid; place-items: center; font-size: 11px; font-weight: var(--fw-strong); letter-spacing: .1em; color: var(--nx-ink);
}
/* The one thing that needs you, and the screen's one action in red. */
.nx-need { min-height: 68px; padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 12px; }
.nx-need.is-calm { padding-right: 16px; }
.nx-need .nx-x { flex: 1; min-width: 0; }
.nx-act {
  flex: none; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--nx-red); color: #FFFFFF;
  display: grid; place-items: center; font-size: 11px; font-weight: var(--fw-strong); letter-spacing: .1em;
}
/* Tiles sit 4 px apart; a grid of two. */
.nx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nx-gap); }
/* A quiet one-line row ("2 paused", "Lately: 3 jobs finished") with a dot chevron. */
.nx-one { min-height: 52px; padding: 0 14px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--nx-muted); font-size: var(--fs-15); }
/* A red "needs you" dot. */
.nx-rd { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--nx-red); }
:is(.nx-tile, .nx-need, .nx-one):is(button):active { opacity: .82; }
:is(.nx-tile, .nx-need, .nx-one):is(button):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Home ---------- */
.zoom-shell #home-view { -webkit-mask-image: none; mask-image: none; padding-bottom: 100px; }
.nx-home { max-width: 600px; margin: 0 auto; padding: 4px 14px 0; display: flex; flex-direction: column; color: var(--nx-ink); }
.nx-home .nx-title { margin: 14px 8px 0; }
.nx-hero { margin: 26px 8px 0; display: flex; align-items: flex-end; gap: 14px; min-height: 62px; }
.nx-hero p { margin: 0 0 4px; min-width: 0; font-size: var(--fs-15); line-height: 1.35; }
.nx-hero p small { display: block; color: var(--nx-muted); font-size: var(--fs-13); }
.nx-home .nx-need { margin-top: 24px; }
.nx-home .nx-grid { margin-top: var(--nx-gap); }
/* Nothing needs Ben, so no need tile: the tiles keep the spec's 24 px under the figure. */
.nx-home .nx-hero + .nx-grid { margin-top: 24px; }
.nx-notes { display: flex; flex-direction: column; gap: var(--nx-gap); margin-top: var(--nx-gap); }
.nx-notes > :empty { display: none; }
/* Lines under the tiles (the notifications offer, "still to do") sit in the
   grid's own column: same width and edges, 12 px corners, 4 px apart. */
.nx-notes > .sn-push, .nx-notes > .hm-push { width: 100%; margin: 0; }
.nx-notes .push-offer, .nx-notes .nl-home { width: 100%; margin: 0; border: 0; border-radius: var(--nx-r); background: var(--nx-tile); box-shadow: none; padding-left: 16px; }
@media (min-width: 1100px) {
  .zoom-shell #home-view { padding-bottom: 130px; }
  .nx-home { padding-top: 24px; }
  .nx-home .nx-title { font-size: 34px; }
}

/* ==========================================================================
   Phase 2 of 4: Work, a project, and every other Work route (the job,
   computers, map, waiting list and all projects) in the same pieces: a
   title in Newsreader 300, plain sentence-case labels, dark 12 px groups of
   rows with a hairline between, a red dot where something needs you, and
   dot chevrons. The machine page's own layout is phase 4.
   ========================================================================== */

/* ---------- Shared pieces ---------- */
/* An inner page: one column, 14 px from the edge, the title 8 px further in. */
.nx-page { width: 100%; max-width: 600px; margin: 0 auto; padding: 4px 14px 28px; display: flex; flex-direction: column; color: var(--nx-ink); }
.nx-page > .nx-title { margin: 14px 8px 0; }
/* The line under a title: "3 jobs need you", then "80 chats · last change today" in grey. */
.nx-lead { margin: 10px 8px 0; font-size: var(--fs-15); line-height: 1.35; color: var(--nx-ink); }
.nx-lead > span, .nx-lead > small { display: block; }
.nx-lead small { color: var(--nx-muted); font-size: var(--fs-13); }
/* A section label: plain sentence case, white, 13 px. */
.nx-lbl { margin: 24px 8px 8px; font-size: var(--fs-13); font-weight: var(--fw-regular); line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--nx-ink); }
/* A dark group of rows with a hairline between each. */
.nx-group { width: 100%; background: var(--nx-tile); border-radius: var(--nx-r); overflow: hidden; }
.nx-row {
  width: 100%; min-height: 60px; margin: 0; padding: 10px 14px 10px 16px; border: 0; border-radius: 0; background: none; box-shadow: none;
  display: flex; align-items: center; gap: 12px; color: var(--nx-ink); font: inherit; text-align: left; -webkit-tap-highlight-color: transparent;
}
.nx-row + .nx-row { border-top: 1px solid var(--nx-line); }
.nx-row .nx-x { flex: 1; min-width: 0; }
.nx-row b { display: block; font-weight: var(--fw-regular); font-size: var(--fs-15); line-height: 1.3; overflow-wrap: break-word; }
.nx-row small { display: block; margin-top: 2px; color: var(--nx-muted); font-size: var(--fs-13); line-height: 1.3; overflow-wrap: break-word; }
.nx-row small:empty { display: none; }
button.nx-row:active { background: var(--nx-line); }
button.nx-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
/* A closed line sits 4 px under what it follows; it turns its dots down when open. */
.nx-page .nx-one { margin-top: var(--nx-gap); }
.nx-one[aria-expanded="true"] .nx-chev { transform: rotate(90deg); }
.nx-stack { display: flex; flex-direction: column; gap: var(--nx-gap); margin-top: var(--nx-gap); }
.nx-stack > .nx-one, .nx-stack > div > .nx-one { margin-top: 0; }
.nx-empty { margin: 0 8px; color: var(--nx-muted); font-size: var(--fs-15); line-height: 1.4; }
/* Every row chevron is five dots (ui.chev), at the dot chevron's own size. */
.nx-chev.hz-chev, .nx-chev.sv-i { width: 10px; height: 14px; color: var(--nx-quiet); stroke: none; }
@media (min-width: 1100px) {
  .nx-page { padding-top: 24px; }
  .nx-page > .nx-title { font-size: 34px; }
}

/* ---------- The top bar on inner pages: a bare arrow and where it goes back to ---------- */
.hub-back { gap: 10px; color: var(--nx-ink); background: none; box-shadow: none; }
.hub-back > svg.nx-back { flex: none; width: 16px; height: 16px; }
.hub-back-label { font-size: var(--fs-13); }
/* A place's own name in the bar (Work, SEAN, Life) is the spec's small grey word on a phone. */
@media (max-width: 1099px) { .hub-title.is-place { font-size: var(--fs-13); font-weight: var(--fw-regular); color: var(--nx-muted); } }

/* ---------- A project page has no bottom bar (phone) ---------- */
@media (max-width: 1099px) {
  .shell.zoom-shell.no-places:not(.is-typing) { grid-template-rows: var(--top-h) minmax(0, 1fr); }
  .zoom-shell.no-places > .hub-places { display: none; }
  .zoom-shell.no-places .hub-panel { bottom: 0; }
}

/* ---------- Work ---------- */
.zoom-shell #work-view:has(> .nx-page), .zoom-shell #project-view:has(> .nx-page), .zoom-shell #projects-view:has(> .nx-page) { padding: 0; background: var(--nx-ground); }
/* The ask bar sits at the foot of the screen, as in the spec: above the bottom
   bar on Work, at the very bottom on a project page (it has no bottom bar).
   The page fills the screen's height, so on a short list the bar stays at the
   foot; on a long list it stays pinned while the list scrolls under it, and
   the list ends clear above it. */
.zoom-shell #work-view:has(> .nx-page), .zoom-shell #project-view:has(> .nx-page) { display: flex; flex-direction: column; }
.zoom-shell #work-view:has(> .nx-page) > .nx-page, .zoom-shell #project-view > .nx-page { flex: 1 0 auto; }
.zoom-shell :is(#work-view, #project-view) .ap-dock { position: sticky; bottom: 0; margin-top: auto; padding-top: 10px; padding-bottom: calc(10px + var(--safe-bottom)); }
.zoom-shell #project-view > .nx-page.project-control { padding-bottom: 0; }
.zoom-shell #project-view .nx-page > .ap-dock { margin: auto -14px 0; }
.zoom-shell #project-view .nx-page.nx-project > :nth-last-child(2) { margin-bottom: 28px; }
/* The ask bar: "New job in AI Hub" and the dotted mic; the project chooser opens while typing. */
.ap-dock { background: var(--nx-ground); border-image: conic-gradient(var(--nx-ground) 0 0) fill 0 / / 0 100vmax; }
.ap-dock::before { background: linear-gradient(transparent, var(--nx-ground)); }
.ap-dock.ap-work .ap-bar:not(:focus-within):not(.has-text) .ap-pickchip { display: none; }
.ap-dock .ap-bar { padding-left: 20px; }
.ap-dock.ap-work .ap-bar:is(:focus-within, .has-text) { padding-left: 12px; }
.ap-dock select.ap-pick { background-color: var(--nx-line); box-shadow: none; min-height: 36px; font-weight: var(--fw-regular); }
.ap-answer { background: var(--nx-tile); box-shadow: none; border-radius: var(--nx-r); }
@media (min-width: 801px) {
  .ap-dock:is(.ap-work, .ap-project) { padding-left: 14px; padding-right: 14px; }
  .ap-dock:is(.ap-work, .ap-project) :is(.ap-bar, .ap-answer) { max-width: calc(600px - 28px); margin-left: auto; margin-right: auto; }
}

/* ---------- A project page ---------- */
/* Its chats are a plain dark group (no older bubble padding round the rows). */
.zoom-shell #project-view .nx-group.project-chat-list { display: block; margin: 0; padding: 0; border-radius: var(--nx-r); background: var(--nx-tile); }
.zoom-shell #project-view .project-control-loading .screen-loading { margin: 10px 8px 0; }
/* Everything else on the page sits behind closed lines, 4 px apart, like "N older chats". */
.zoom-shell #project-view .nx-page > :is(.screen-section, section, details.fold) { margin: 0; padding: 0; border: 0; }
.zoom-shell #project-view .nx-page > .project-selfdev:not([hidden]), .zoom-shell #project-view .nx-page > .nl-section:not([hidden]) { margin-top: var(--nx-gap); }
.zoom-shell #project-view .nx-page > .project-now { margin-top: var(--nx-gap); }
.zoom-shell :is(#project-view, #actions-view, #work-view) details.fold, .zoom-shell #project-view .project-lead {
  margin: var(--nx-gap) 0 0; padding: 0; border: 0; border-radius: var(--nx-r); background: var(--nx-tile); box-shadow: none;
}
.zoom-shell :is(#project-view, #actions-view, #work-view) details.fold > summary, .zoom-shell #project-view .project-lead > summary {
  min-height: 52px; padding: 0 14px 0 16px; gap: 12px; align-items: center; color: var(--nx-muted); font-size: var(--fs-15); font-weight: var(--fw-regular);
}
.zoom-shell :is(#project-view, #actions-view, #work-view) details.fold > summary .fold-title, .zoom-shell #project-view .project-lead > summary .fold-title {
  font-family: var(--font-sans); font-size: var(--fs-15); font-weight: var(--fw-regular); letter-spacing: 0; line-height: 1.3; color: var(--nx-muted);
}
.zoom-shell :is(#project-view, #actions-view, #work-view) details.fold > summary > svg { width: 14px; height: 14px; color: var(--nx-quiet); }
.zoom-shell :is(#project-view, #actions-view, #work-view) details.fold[open] { padding-bottom: 8px; }
.zoom-shell :is(#project-view, #actions-view, #work-view) details.fold[open] > :not(summary) { margin-left: 16px; margin-right: 16px; }
/* A fold inside a fold is a plain line, not a second tile. */
.zoom-shell :is(#project-view, #actions-view) details.fold details.fold { margin: 0; border-radius: 0; background: none; border-top: 1px solid var(--nx-line); }
.zoom-shell :is(#project-view, #actions-view) details.fold details.fold > summary { padding: 0; }
.zoom-shell :is(#project-view, #actions-view) details.fold details.fold[open] > :not(summary) { margin-left: 0; margin-right: 0; }

/* ---------- The job, the computers, the map and the waiting list ---------- */
/* Their opening line is a page title in Newsreader 300, with no hairline under it. */
.zoom-shell :is(#work-view, #actions-view) .hz-sentence, .zoom-shell #work-view .hw-pin, .hw-job-panel .hw-pin {
  font-family: var(--font-title); font-weight: 300; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; color: var(--nx-ink);
}
.zoom-shell #work-view .hz-edge::before { display: none; }
.zoom-shell #work-view .hz-sky { padding-bottom: 12px; }
.zoom-shell #work-view .hz-kicker { font-size: var(--fs-13); color: var(--nx-muted); }
@media (min-width: 1100px) {
  .zoom-shell :is(#work-view, #actions-view) .hz-sentence, .zoom-shell #work-view .hw-pin { font-size: 34px; }
}
/* "Needs you" is a small red dot, never a halo; working is a small white one. */
.sv-sun, .hw-nowline > i, .hw-nowline.tone-need > i, .hw-lane .st i, .hw-lane.s-paused .st i { width: 6px; height: 6px; box-shadow: none; }
.hw-nowline > i { margin-top: 8px; }
.sv-mrow > .sv-sun, .sv-mrow > .sv-ok { margin-top: 8px; }
/* The job: its state line, steps and "why it stopped" sit in dark tiles; links are closed lines. */
:is(.zoom-shell #work-view, .hw-job-panel) .hw-nowline { margin: 0; min-height: 52px; padding: 14px 16px; align-items: flex-start; border-radius: var(--nx-r); background: var(--nx-tile); font-size: var(--fs-15); }
:is(.zoom-shell #work-view, .hw-job-panel) .hw-nowline b { font-weight: var(--fw-regular); }
:is(.zoom-shell #work-view, .hw-job-panel) .hw-lanes.is-progress { margin-top: var(--nx-gap); padding: 0 16px; border-radius: var(--nx-r); background: var(--nx-tile); }
:is(.zoom-shell #work-view, .hw-job-panel) .hw-lane + .hw-lane { border-top-color: var(--nx-line); }
:is(.zoom-shell #work-view, .hw-job-panel) .hw-said { margin: var(--nx-gap) 0 0; padding: 14px 16px; border-radius: var(--nx-r); background: var(--nx-tile); }
:is(.zoom-shell #work-view, .hw-job-panel) .hw-said h3 { font-size: var(--fs-13); color: var(--nx-ink); }
:is(.zoom-shell #work-view, .hw-job-panel) .hw-said p { color: var(--nx-muted); }
:is(.zoom-shell #work-view, .hw-job-panel) .hw-muted.hw-helpers { margin: 14px 8px 0; font-size: var(--fs-13); color: var(--nx-muted); }
:is(.zoom-shell #work-view, .hw-job-panel) .hz-acts { margin-top: 14px; }
:is(.zoom-shell #work-view, .hw-job-panel) .hw-links { display: flex; flex-direction: column; gap: var(--nx-gap); margin-top: var(--nx-gap); padding: 0; background: none; }
:is(.zoom-shell #work-view, .hw-job-panel) :is(.hw-links .hw-lnk, .hw-lnk.hw-helpers) {
  min-height: 52px; margin: 0; padding: 0 14px 0 16px; border: 0; border-radius: var(--nx-r); background: var(--nx-tile); box-shadow: none;
  color: var(--nx-muted); font-size: var(--fs-15); font-weight: var(--fw-regular);
}
:is(.zoom-shell #work-view, .hw-job-panel) .hz-decision.is-boxed { background: var(--nx-tile); border-radius: var(--nx-r); }
:is(.zoom-shell #work-view, .hw-job-panel) .hz-decision .hz-proj { color: var(--nx-red); }
/* The steer bar is the ask bar: a dark pill with the white round button. */
.hw-steerbar { height: 54px; padding: 0 7px 0 20px; border-radius: 27px; background: var(--nx-tile); box-shadow: none; }
.hw-steerbar button, .hw-steerbar:not(.has-text) button { width: 40px; height: 40px; border-radius: 50%; background: var(--nx-ink); color: var(--nx-ground); box-shadow: none; }
.hw-steerbar button .hw-ic { width: 18px; height: 18px; }
/* Computers and the map: the machine rows and closed lines take the tile and hairline. */
.zoom-shell #work-view :is(.sv-group, .sv-rest) { border-radius: var(--nx-r); background: var(--nx-tile); box-shadow: none; }
.zoom-shell #work-view .sv-level .sv-group:not(.sv-fixgroup) { padding: 4px 16px; }
.zoom-shell #work-view .sv-level .sv-group:not(.sv-fixgroup) > .sv-mlist:last-child > :last-child { border-bottom: 0; }
.zoom-shell #work-view .sv-level .sv-group + .sv-group { margin-top: var(--nx-gap); }
.zoom-shell #work-view .hz-level.hw-job .hz-pad { padding-top: 12px; }
.zoom-shell #work-view .hz-level.hw-job .hz-sky { padding-bottom: 0; }
.zoom-shell #work-view .sv-rest :is(.sv-fold, .sv-mrow) { border-bottom-color: var(--nx-line); }
.zoom-shell #work-view .sv-fold.is-closed-line { margin-top: var(--nx-gap); border-radius: var(--nx-r); background: var(--nx-tile); box-shadow: none; color: var(--nx-muted); }

/* ---------- The waiting list and all projects ---------- */
/* Rows in a dark group with hairlines; section words in plain sentence case. */
.zoom-shell #actions-view .action-list { padding: 0 16px; border-radius: var(--nx-r); background: var(--nx-tile); box-shadow: none; }
.zoom-shell #actions-view .action-list > * + * { border-top: 1px solid var(--nx-line); }
.zoom-shell #actions-view .action-row .hz-plain { min-height: 60px; padding-left: 0; padding-right: 0; border: 0; font-size: var(--fs-15); }
.zoom-shell #actions-view .sheet-section-title { margin: 24px 8px 8px; font-size: var(--fs-13); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--nx-ink); }
.zoom-shell #actions-view .status-line { margin: 14px 8px 0; font-family: var(--font-title); font-weight: 300; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; color: var(--nx-ink); }
.zoom-shell #actions-view .status-line :is(button, span[aria-hidden]) { font-family: var(--font-sans); font-size: var(--fs-15); }
.zoom-shell #projects-view .nx-after { margin-top: 24px; }

/* ==========================================================================
   Phase 3 of 4: a chat (a project's chats and SEAN's), as "A chat" in the
   spec: the bare arrow and the project's name in grey, the chat's title in
   Newsreader 300, Ben's words in a dark bubble on the right with the
   Understood line under it, the answer as plain white 17 px text with small
   dark chips under it, ONE dark working tile above the reply bar, and the
   reply bar as the ask bar. No bottom bar inside a chat (phone).
   ========================================================================== */

/* ---------- The top bar: the arrow, then the project's name in grey ---------- */
.hub-where .hub-title-sub { flex: 0 1 auto; min-width: 0; margin: 0; font-size: var(--fs-13); line-height: 1.3; color: var(--nx-muted); }
.hub-where:has(.hub-title-sub) { flex-wrap: nowrap; align-items: center; }
.hub-where:has(.hub-title-sub) .hub-back { align-self: center; margin-top: 0; }
.zoom-shell:has(.hub-title-sub) { --top-h: inherit; }
.hub-where.is-bare .hub-back + .hub-title-sub { margin-left: 2px; }
.hub-where.is-bare #thread-menu { margin-left: auto; color: var(--nx-muted); }
/* A chat's and a project's bar has no title beside Back, so Back may take the
   room its name needs (the older 42% cap hid "Garden planner" on a phone). */
.hub-where.is-bare .hub-back { flex: 0 1 auto; max-width: none; }

/* ---------- The chat's title: the page's heading, in the title face ---------- */
.zoom-shell #messages > .chat-context > .chat-heading { margin: 10px 4px 0; font-size: 24px; }
.zoom-shell #messages > .chat-context > .chat-heading[hidden] { display: none; }
/* The date line is not in the spec: the title stands alone. Its tools (the usage warning) stay. */
.zoom-shell #messages > .chat-context .chat-kicker-text { display: none; }
.zoom-shell #messages > .chat-context .chat-kicker:not(:has(.chat-kicker-tools > :not(.hidden))) { display: none; }
@media (min-width: 1100px) { .zoom-shell #messages > .chat-context > .chat-heading { margin-top: 18px; font-size: 30px; } }

/* ---------- Ben's words: a #2C2C2E bubble on the right ---------- */
.zoom-shell .message.user { margin: 18px 0 0; }
.zoom-shell .message.user .message-content { max-width: 82%; }
.zoom-shell .message.user .message-body { padding: 12px 14px; border-radius: 18px 18px 6px 18px; background: var(--nx-line); color: var(--nx-ink); font-size: var(--fs-15); line-height: 1.4; }
.zoom-shell .message.user .message-tag { color: var(--nx-muted); }
/* The Understood line: right-aligned, grey; the meaning in white with a dotted underline. A tap on it opens Not quite. */
/* The line wraps: the meaning sits in its own column beside "Understood:" and wraps inside
   its own box, so its tap area never lies over other text. */
#chat-view .understood { margin: 0; color: var(--nx-muted); font-size: var(--fs-13); line-height: 1.4; text-align: right; }
#chat-view .understood-line { display: grid; grid-template-columns: auto minmax(0, max-content); justify-content: end; align-items: baseline; column-gap: 4px; width: auto; margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; text-align: right; }
#chat-view .understood-fix {
  min-width: 0; min-height: 0; margin: 0; padding: 6px 0; border: 0; border-radius: 0; background: none; color: var(--nx-ink); text-align: left;
  font: inherit; text-decoration: underline dotted var(--nx-muted); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; cursor: pointer;
}
#chat-view .understood-fix[aria-expanded="true"] { text-decoration-style: solid; }
/* Not quite: the field across the bubble's width, Cancel and Send under it on the right. */
#chat-view .understood-box { flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 8px; }
#chat-view .understood-box textarea { flex: 1 0 100%; border: 0; border-radius: var(--nx-r); background: var(--nx-tile); color: var(--nx-ink); font-family: var(--font-sans); font-size: var(--fs-16); }
#chat-view .understood-box textarea::placeholder { color: var(--nx-muted); }
#chat-view .understood-box button { min-height: 36px; padding: 0 14px; border: 1px solid var(--nx-off); border-radius: 18px; background: none; color: var(--nx-ink); font-size: var(--fs-13); }

/* ---------- The answer: plain white 17 px text on black, no bubble ---------- */
.zoom-shell .message.assistant { margin: 22px 0 20px; }
.zoom-shell .messages .message.assistant :is(.assistant-answer-body, .assistant-draft-body),
.zoom-shell #chat-view.is-sean .message.assistant :is(.assistant-answer-body, .assistant-draft-body) { margin: 0 4px; font-family: var(--font-sans); font-size: 17px; font-weight: var(--fw-regular); line-height: 1.45; color: var(--nx-ink); }
.zoom-shell #chat-view.is-sean .message.assistant :is(.assistant-answer-body, .assistant-draft-body) :is(ul, ol, pre, table) { font-size: var(--fs-15); }
.zoom-shell .message.assistant .message-meta, .zoom-shell .message.assistant .message-status { color: var(--nx-muted); }
.zoom-shell .message.assistant .message-status:is(.streaming, .assistant-draft-label) { color: var(--nx-muted); }
.zoom-shell .message.assistant .markdown pre { background: var(--nx-tile); }
#chat-view .assistant-answer-note { margin-inline: 4px; color: var(--nx-muted); font-size: var(--fs-13); }

/* ---------- Under the answer: small dark pill chips ----------
   The Hub's checks (a white dot when they passed, red when they failed, a grey
   ring when nothing was checked), "What it did ›", and "More" when the answer
   was shortened. Each still opens its own fold. */
#chat-view .message-outcome { margin: 14px 4px 0; gap: 6px; }
#chat-view :is(.check-chip, .message-outcome .work-details-toggle, .answer-more-chip),
#chat-view :is(.assistant-hub-note, .assistant-answer-status, .hub-note-details) > summary {
  position: relative; min-height: 32px; height: auto; padding: 6px 12px; border: 0; border-radius: 16px; background: var(--nx-tile); box-shadow: none;
  display: inline-flex; align-items: center; gap: 8px; color: var(--nx-ink); font-family: var(--font-sans); font-size: var(--fs-13); font-weight: var(--fw-regular); line-height: 1.3; text-align: left; cursor: pointer;
}
/* Each chip keeps a 44 px tall tap area round its 32 px pill. */
#chat-view :is(.check-chip, .message-outcome .work-details-toggle, .answer-more-chip)::before { content: ""; position: absolute; inset: -6px 0; }
#chat-view span.check-chip { cursor: default; }
#chat-view :is(.check-chip, .work-details-toggle, .answer-more-chip):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#chat-view :is(.check-chip, .work-details-toggle, .answer-more-chip):active { opacity: .82; }
#chat-view .answer-more-chip[hidden], #chat-view .message-outcome .work-details-toggle[hidden] { display: none; }
.check-chip-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--nx-ink); }
.check-chip.is-bad .check-chip-dot { background: var(--nx-red); }
.check-chip.is-quiet .check-chip-dot { background: none; box-shadow: inset 0 0 0 1px var(--nx-muted); }
#chat-view .message-outcome .work-details-toggle::after { content: none; }
#chat-view .message-outcome .work-details-word { color: var(--nx-ink); }
#chat-view .message-outcome .work-details-caret { display: inline; margin-left: -4px; color: var(--nx-ink); transform: none; }
/* "What it did ›": the step count stays for screen readers, out of the small pill. */
#chat-view .message-outcome .work-details-meta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* "Not self-checked" is read on screen when it is the answer's one status line (app.js applyAnswerStatus). */
#chat-view .message-outcome .work-details-self-check:not(.status-behind) { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
#chat-view .answer-more-chip .answer-shortened-mark { color: var(--nx-muted); }
#chat-view .answer-more-chip .answer-shortened-mark::before { content: "·"; margin-right: 8px; }
#chat-view .answer-more-chip[aria-expanded="true"], #chat-view .work-details-toggle[aria-expanded="true"], #chat-view .check-chip[aria-expanded="true"] { background: var(--nx-line); }
/* The chip is More's one control; the fold opens in place, in the answer. */
#chat-view .assistant-answer-details.is-chipped { margin-top: 0; }
#chat-view .assistant-answer-details.is-chipped > summary { display: none; }
#chat-view .assistant-answer-details.is-chipped[open] { margin-top: 10px; }
/* The other folds under an answer (AI Hub's notes, Work status) are the same small chips. */
#chat-view :is(.assistant-hub-note, .assistant-answer-status, .hub-note-details) > summary::after { border-color: var(--nx-muted); }
#chat-view .answer-shortened-mark { color: var(--nx-muted); }
/* What is behind a check chip opens under the row, in a dark tile. */
#chat-view .check-detail { margin: 8px 4px 0; padding: 12px 16px; border-radius: var(--nx-r); background: var(--nx-tile); color: var(--nx-muted); font-size: var(--fs-13); line-height: 1.45; }
#chat-view .check-detail[hidden] { display: none; }
#chat-view .check-detail .hub-note-detail { margin: 0; white-space: pre-line; }
#chat-view .check-detail .hub-note-output { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--nx-ground); color: var(--nx-ink); font-size: 12px; white-space: pre-wrap; overflow-x: auto; }
/* A check with no answer in view keeps its own line, as one chip. */
#chat-view .message.hub-note-tests { margin: 8px 0 16px; padding: 0 4px; background: none; }
#chat-view .message.hub-note-tests[hidden] { display: none; }

/* ---------- While working: ONE dark tile above the reply bar ---------- */
/* Three fading dots, what it is doing now, under it the time, and an outlined STOP. */
.zoom-shell .run-strip, .zoom-shell .run-strip:has(.run-now:not([hidden])) { min-height: 0; margin: 0 0 8px; padding: 12px 12px 12px 16px; border-radius: var(--nx-r); background: var(--nx-tile); }
.zoom-shell .run-strip.hidden { display: none; }
.zoom-shell .run-strip-row { min-height: 34px; padding: 0; gap: 12px; }
.zoom-shell .run-pulse {
  flex: none; width: 18px; height: 4px; border-radius: 0; box-shadow: none; animation: nx-fade 1.6s ease-in-out infinite alternate;
  background:
    radial-gradient(closest-side, var(--nx-ink) 96%, transparent) 0 0 / 4px 4px no-repeat,
    radial-gradient(closest-side, rgba(255, 255, 255, .5) 96%, transparent) 7px 0 / 4px 4px no-repeat,
    radial-gradient(closest-side, rgba(255, 255, 255, .25) 96%, transparent) 14px 0 / 4px 4px no-repeat;
}
@keyframes nx-fade { from { opacity: 1; } to { opacity: .5; } }
.zoom-shell .run-text { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; }
.zoom-shell .run-meta-line { display: contents; }
.zoom-shell .run-strip .run-now { flex: 1 0 100%; min-width: 0; margin: 0; padding: 0; color: var(--nx-ink); font-size: var(--fs-15); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zoom-shell .run-strip .run-now[hidden] { display: none; }
.zoom-shell .run-strip :is(.thread-state, .run-meta) { min-height: 0; max-width: none; margin: 2px 0 0; padding: 0; border: 0; background: none; color: var(--nx-muted); font-size: var(--fs-13); font-weight: var(--fw-regular); line-height: 1.3; }
.zoom-shell .run-strip .thread-state.hidden, .zoom-shell .run-strip .run-meta:empty { display: none; }
.zoom-shell .run-strip .thread-state:is(:hover, :focus-visible) { background: none; color: var(--nx-ink); }
.zoom-shell .run-strip .run-meta-line > :not(.hidden):not(:empty) ~ :not(.hidden):not(:empty)::before { content: "·"; margin: 0 6px; }
/* Nothing to name yet: the state word ("Working") is the tile's one line, said once. */
.zoom-shell .run-strip.is-state-line .run-text:has(.thread-state:not(.hidden)) .run-now { display: none; }
.zoom-shell .run-strip.is-state-line .thread-state { flex: 1 0 100%; margin: 0; color: var(--nx-ink); font-size: var(--fs-15); text-align: left; }
.zoom-shell .run-strip.is-state-line .run-meta-line > .thread-state:not(.hidden) ~ :not(:empty)::before { content: none; }
.zoom-shell .run-strip.is-state-line .run-meta-line > .thread-state:not(.hidden) ~ :not(:empty) ~ :not(:empty)::before { content: "·"; }
.zoom-shell .run-strip .interrupt {
  position: relative; flex: none; min-height: 34px; height: 34px; margin-left: 0; padding: 0 14px; gap: 0; border: 1px solid var(--nx-off); border-radius: 17px; background: none;
  color: var(--nx-ink); font-size: 11px; font-weight: var(--fw-strong); letter-spacing: .1em; text-transform: uppercase;
}
.zoom-shell .run-strip .interrupt::before { content: ""; position: absolute; inset: -5px 0; }
.zoom-shell .run-strip .interrupt.hidden { display: none; }
.zoom-shell .run-strip .interrupt svg { display: none; }
.zoom-shell .run-strip .interrupt b { font-weight: inherit; }
.zoom-shell .run-strip .interrupt:hover { background: var(--nx-line); }
@media (prefers-reduced-motion: reduce) { .zoom-shell .run-pulse { animation: none; } }
/* The tile is the one status while it shows: the reply being worked on says no second "Working". */
#chat-view:has(#run-strip:not(.hidden)) .message.assistant.streaming :is(.message-meta, .answer-pending) { display: none; }

/* ---------- The reply bar is the ask bar ---------- */
.zoom-shell .composer, .zoom-shell .composer:focus-within { border: 0; border-radius: 27px; background: var(--nx-tile); box-shadow: none; }
.zoom-shell .composer-row { min-height: 54px; padding: 5px 7px 5px 5px; }
.zoom-shell #composer { font-family: var(--font-sans); color: var(--nx-ink); }
.zoom-shell #composer::placeholder { color: var(--nx-muted); }
.zoom-shell .composer #attach-button { color: var(--nx-muted); }
/* One white round button: the dotted mic while empty, Send once there are words. */
.zoom-shell .send, .zoom-shell .composer #mic-button { position: relative; background: none; color: var(--nx-ground); }
.zoom-shell .send::before, .zoom-shell .composer #mic-button::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--nx-ink); }
.zoom-shell .composer #mic-button svg { position: relative; width: 16px; height: 18px; }
.zoom-shell .composer #mic-button.recording { background: none; color: #FFFFFF; }
.zoom-shell .composer #mic-button.recording::before { background: var(--nx-red); }
.zoom-shell .send:disabled { color: var(--nx-ground); }
.zoom-shell .composer-attachment { border: 0; border-radius: var(--nx-r); background: var(--nx-line); }
.zoom-shell .composer-attachment img, .zoom-shell .composer-file-icon { background: var(--nx-off); }
/* Above it: the model chip, or while working where the next message goes. */
.zoom-shell .runtime-menu > summary { min-height: 32px; margin: -6px 0; padding: 0 12px; border-radius: 16px; background: var(--nx-tile); box-shadow: none; color: var(--nx-muted); font-size: var(--fs-13); font-weight: var(--fw-regular); }
.zoom-shell .runtime-menu > summary:hover, .zoom-shell .runtime-menu[open] > summary { background: var(--nx-line); color: var(--nx-ink); }
.zoom-shell :is(.delivery-toggle, .composer-model-note) { color: var(--nx-muted); font-size: var(--fs-13); }
.zoom-shell .delivery-toggle-value { color: var(--nx-ink); }
.zoom-shell .delivery-toggle-value::before { color: var(--nx-muted); }

/* ---------- Home: the ask bar lines up with the cards (desktop) ---------- */
/* The cards sit in Home's 600 px column, 14 px in from each side. */
@media (min-width: 1100px) {
  .zoom-shell .hm-ask { padding-left: calc(50% - 300px + 14px); padding-right: calc(50% - 300px + 14px); }
}

/* ==========================================================================
   Phase 4 of 4: a machine and the main server ("A machine" in the spec):
   the bare arrow and "Computers", the name in Newsreader 300, one status
   line, three gauges, "On this machine" as one dark group whose rows open
   in place as dark rows, then the ask bar. No bottom bar under it (phone).
   ========================================================================== */
.zoom-shell #work-view.hw-sv-root:has(> .nx-page) { padding: 0; background: var(--nx-ground); display: flex; flex-direction: column; }
.zoom-shell #work-view.hw-sv-root > .nx-page { flex: 1 0 auto; }
/* The status line: a 6 px dot (white; red when it needs you; a grey ring when off), the words, a grey line under. */
.nx-status { margin-top: 10px; }
.nx-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--nx-ink); vertical-align: 2px; }
.nx-dot.is-need { background: var(--nx-red); }
.nx-dot.is-off { background: none; box-shadow: inset 0 0 0 1px var(--nx-muted); }
/* Three gauges: the name, a round-dot figure with a small unit, a 10-dot meter. */
.nx-gauges { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--nx-gap); }
.nx-gauge { min-width: 0; padding: 14px 14px 12px; border-radius: var(--nx-r); background: var(--nx-tile); display: flex; flex-direction: column; gap: 10px; }
.nx-gauge > small { color: var(--nx-muted); font-size: var(--fs-12); line-height: 1.2; }
.nx-gauge-fig { font-family: var(--font-dot); font-variation-settings: "ROND" 100; font-weight: 800; font-size: 34px; line-height: .8; color: var(--nx-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nx-gauge-fig sup { margin-left: 2px; font-family: var(--font-sans); font-size: var(--fs-12); font-weight: var(--fw-regular); line-height: 1; color: var(--nx-muted); vertical-align: top; }
.nx-meter { display: flex; gap: 3px; }
.nx-meter i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--nx-off); }
.nx-meter i.on { background: var(--nx-ink); }
.nx-meter.is-hot i.on { background: var(--nx-red); }
/* A row that opens in place turns its dots down; what it opens follows the group. */
.nx-row[aria-expanded="true"] .nx-chev { transform: rotate(90deg); }
.nx-open { display: flex; flex-direction: column; }
.nx-open > .nx-one { margin-top: var(--nx-gap); }
.nx-note { margin: 8px 8px 0; color: var(--nx-muted); font-size: var(--fs-13); line-height: 1.4; }
.nx-machine .nx-added-again { margin-top: 12px; }
/* What fills the disk: one row under the gauges; open, a folder tree with tick boxes. */
.nx-machine .nx-fills { margin-top: var(--nx-gap); display: flex; flex-direction: column; }
.nx-fill-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 8px 4px; }
.nx-fill-pick { min-height: 44px; padding: 0 16px; border: 1px solid var(--nx-line); border-radius: 22px; background: none; color: var(--nx-muted); font: inherit; font-size: var(--fs-13); }
.nx-fill-pick[aria-pressed="true"] { border-color: var(--nx-ink); background: var(--nx-tile); color: var(--nx-ink); }
.nx-fill-here { align-self: center; color: var(--nx-ink); font-size: var(--fs-13); overflow-wrap: anywhere; }
.nx-fills .nx-group { margin-top: 8px; }
.nx-row.nx-fill, .nx-row.nx-fill-rest, .nx-row.nx-fill-more { padding-left: calc(16px + var(--lvl, 0) * 16px); }
.nx-row.nx-fill-rest, .nx-row.nx-fill-more { min-height: 48px; }
.nx-row.nx-fill-rest b, .nx-row.nx-fill-more b { color: var(--nx-muted); }
.nx-fill-lab { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
label.nx-fill-lab { cursor: pointer; }
.nx-fill-tick { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--nx-ink); }
.nx-fill-tag { flex: none; padding: 2px 8px; border-radius: 10px; background: var(--nx-line); color: var(--nx-ink); font-size: var(--fs-12); line-height: 1.4; white-space: nowrap; }
.nx-row.nx-fill b { display: flex; justify-content: space-between; gap: 10px; }
.nx-row.nx-fill b > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.nx-fill-size { flex: none; font-variant-numeric: tabular-nums; }
.nx-fill-open, .nx-fill-deeper { flex: none; min-width: 44px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--nx-muted); font: inherit; font-size: var(--fs-13); }
.nx-fill-open[aria-expanded="true"] .nx-chev { transform: rotate(90deg); }
.nx-machine .nx-page > :last-child, .nx-machine > :last-child { margin-bottom: 28px; }
/* What needs fixing: its rows in the dark group, the one action under it in red. */
.nx-group.nx-watch .sv-watches { margin: 0; padding: 0; }
.nx-group.nx-watch .sv-watch + .sv-watch { border-top: 1px solid var(--nx-line); }
.nx-group.nx-watch .sv-watch-head { width: 100%; min-height: 60px; padding: 10px 14px 10px 16px; border: 0; background: none; display: flex; align-items: center; gap: 12px; color: var(--nx-ink); font: inherit; font-size: var(--fs-15); text-align: left; }
.nx-group.nx-watch .sv-watch-t { flex: 1; min-width: 0; }
.nx-group.nx-watch .sv-watch-body { padding: 0 16px 12px; color: var(--nx-muted); font-size: var(--fs-13); }
.nx-group.nx-watch .sv-act.sv-more { min-height: 52px; padding: 0 16px; border: 0; border-top: 1px solid var(--nx-line); background: none; color: var(--nx-muted); font-size: var(--fs-15); width: 100%; text-align: left; }
.nx-machine .sv-acts.sv-main { margin: var(--nx-gap) 0 0; }
.nx-machine .sv-acts.sv-main .hz-btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 22px; background: var(--nx-red); color: #FFFFFF; font-size: var(--fs-15); font-weight: var(--fw-regular); box-shadow: none; }
@media (max-width: 380px) { .nx-gauge { padding: 12px 10px 10px; } .nx-gauge-fig { font-size: 28px; } }

/* ==========================================================================
   Phase 4, the rest: every screen not redrawn in its own phase (SEAN, Life,
   Settings and its pages, sheets and dialogs, search, the map and server
   lists, toasts and empty states) takes the same pieces: a title in
   Newsreader 300 with no hairline under it, plain 13 px labels, dark 12 px
   groups of rows with a hairline between, grey second lines, dot chevrons,
   no row icons, and red only for the one action and "needs you".
   ========================================================================== */

/* ---------- Titles ---------- */
.zoom-shell .hz-sentence, .zoom-shell .hz-sentence.is-detail, .zoom-shell .hl-leadline {
  font-family: var(--font-title); font-weight: 300; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; color: var(--nx-ink);
}
.zoom-shell .hl-leadline { padding-top: 14px; }
.zoom-shell .hz-edge::before, .zoom-shell .hz-now:not(.is-job)::before, .zoom-shell .hz-now:not(.is-job)::after { display: none; }
.zoom-shell .hz-sky, .zoom-shell .hz-sea, .zoom-shell .hz-sky + .hz-edge + .hz-sea { background: var(--nx-ground); }
.zoom-shell .hz-kicker { font-size: var(--fs-13); color: var(--nx-muted); }
.zoom-shell .hz-state { font-size: var(--fs-13); color: var(--nx-muted); }
@media (min-width: 1100px) { .zoom-shell .hz-sentence, .zoom-shell .hz-sentence.is-detail, .zoom-shell .hl-leadline { font-size: 34px; } }

/* ---------- Labels over groups: plain sentence case, white, 13 px ---------- */
.zoom-shell :is(.hz-label, .hl-place .hl-seclabel, .hz-shead), .zoom-shell ~ dialog#modal .hz-shead {
  font-size: var(--fs-13); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--nx-ink);
}

/* ---------- Groups: dark 12 px tiles, rows with a hairline between ---------- */
.zoom-shell :is(.shell-group, .st-group:not(.is-single), .st-group.is-single, .sv-rest, .hl-block .hl-list, .sn-deckcard, .push-offer),
#settings-view .shell-group { border-radius: var(--nx-r); background: var(--nx-tile); box-shadow: none; border: 0; }
.zoom-shell :is(.shell-group, .st-group) .hz-plain, .zoom-shell :is(.shell-group, .st-group) .st-switch-row {
  min-height: 60px; padding-top: 10px; padding-bottom: 10px; border: 0; font-size: var(--fs-15); line-height: 1.3;
}
.zoom-shell :is(.shell-group, .st-group) > :is(.hz-plain, .st-switch-row, .st-acts, .st-more, details) + :is(.hz-plain, .st-switch-row, .st-acts, .st-more, details) { border-top: 1px solid var(--nx-line); }
.zoom-shell .hz-plain .hz-x small, .zoom-shell .st-switch-row .hz-x small { margin-top: 2px; font-size: var(--fs-13); color: var(--nx-muted); }
.zoom-shell .hz-plain .hz-meta { font-size: var(--fs-13); color: var(--nx-muted); }
/* Rows carry no icon in this look: the words, a grey line, a dot chevron. */
.zoom-shell :is(.shell-group, .st-group, .sn-chats) :is(.hz-plain, .sn-tools) > svg:first-child:not(.hz-chev):not(.nx-chev), .zoom-shell .sn-tools > svg:first-child:not(.hz-chev) { display: none; }
/* Settings: a group's name sits over it, as on Work; its rows are the dark tile. */
/* (#settings-view and .zoom-shell in one :is() so these win over the older #settings-view rules.) */
:is(#settings-view, .zoom-shell) .shell-rows { gap: 20px; }
:is(#settings-view, .zoom-shell) .shell-group { padding: 0 14px 0 16px; overflow: hidden; border-radius: var(--nx-r); }
:is(#settings-view, .zoom-shell) .shell-group:has(> .hz-shead) { padding: 0; overflow: visible; background: none; border-radius: 0; }
:is(#settings-view, .zoom-shell) .shell-group > .hz-shead { margin: 0 8px 8px; }
:is(#settings-view, .zoom-shell) .shell-group:has(> .hz-shead) > :not(.hz-shead) { padding-left: 16px; padding-right: 14px; background: var(--nx-tile); }
:is(#settings-view, .zoom-shell) .shell-group > .hz-shead + * { border-top-left-radius: var(--nx-r); border-top-right-radius: var(--nx-r); }
:is(#settings-view, .zoom-shell) .shell-group:has(> .hz-shead) > :last-child { border-bottom-left-radius: var(--nx-r); border-bottom-right-radius: var(--nx-r); }
:is(#settings-view, .zoom-shell) .shell-group > .hz-shead + * + * { border-top: 1px solid var(--nx-line); }
:is(#settings-view, .zoom-shell) :is(.shell-group, .st-group) .st-switch-row > svg:first-child { display: none; }
#settings-view .hz-plain .hz-meta.is-warn { color: var(--nx-ink); }
/* AI accounts and the other Settings pages: each group's name is its small white head. */
#settings-view .st-group:not(.is-single), #settings-view .st-group.is-single { padding: 0 14px 0 16px; }
#settings-view .st-group .st-head { min-height: 44px; padding: 12px 0 4px; }
#settings-view .st-group .st-head h2 { font-size: var(--fs-13); font-weight: var(--fw-regular); color: var(--nx-ink); }
#settings-view .st-group .st-head > span { font-size: var(--fs-13); color: var(--nx-muted); }
#settings-view .st-fold > summary.st-head { min-height: 52px; padding: 0; }
#settings-view .st-fold > summary.st-head h2 { font-size: var(--fs-15); color: var(--nx-muted); }
#settings-view .st-fold > summary .st-fold-meta { font-size: var(--fs-13); color: var(--nx-muted); }
#settings-view .st-group + .st-group, #settings-view .st-page > * + * { margin-top: var(--nx-gap); }
#settings-view .settings-subpage .shell-head .hz-sentence { padding: 14px 8px 18px; }
/* An on/off switch: a dark track; on, the track is white with a black knob. */
.zoom-shell input.st-switch, .zoom-shell ~ dialog#modal input.st-switch { background-color: var(--nx-off); border-color: transparent; }
.zoom-shell input.st-switch:checked, .zoom-shell ~ dialog#modal input.st-switch:checked { background-color: var(--nx-ink); }

/* ---------- SEAN ---------- */
.zoom-shell .sn-level .hz-sentence { padding-left: var(--pad); }
.zoom-shell .sn-deck { margin-top: 18px; }
.zoom-shell .sn-deck::before { display: none; }
.zoom-shell .sn-deckcard { padding: 14px 16px; }
.zoom-shell .sn-deckcard .hz-ok { padding: 2px 0 2px 22px; }
.zoom-shell .sn-deckcard .hz-ok .hz-okm { top: 7px; width: 6px; height: 6px; background: var(--nx-ink); }
.zoom-shell .sn-deckcard .hz-ok .hz-okm svg { display: none; }
.zoom-shell .hz-ok b { font-size: var(--fs-15); font-weight: var(--fw-regular); }
.zoom-shell .hz-ok small { font-size: var(--fs-13); color: var(--nx-muted); }
/* Your chats, Notes: quiet closed lines, 4 px apart. */
.zoom-shell .sn-chats { margin-top: var(--nx-gap); padding: 0; }
.zoom-shell .sn-tools, .zoom-shell .sn-place .sn-tools {
  min-height: 52px; margin-top: var(--nx-gap); padding: 0 14px 0 16px; border-radius: var(--nx-r); background: var(--nx-tile); box-shadow: none;
  color: var(--nx-muted); font-size: var(--fs-15); font-weight: var(--fw-regular);
}
.zoom-shell .sn-chats .sn-tools { margin-top: 0; }
.zoom-shell .sn-tools .hz-chev { width: 10px; height: 14px; color: var(--nx-quiet); }
.zoom-shell :is(.sn-push, .sn-place .sn-push) { margin-top: var(--nx-gap); }
.zoom-shell :is(.sn-push, .hm-push) .push-offer { padding: 14px 48px 14px 16px; border-radius: var(--nx-r); background: var(--nx-tile); box-shadow: none; }
.zoom-shell :is(.sn-push, .hm-push) .push-offer p { font-size: var(--fs-15); color: var(--nx-ink); }
.zoom-shell :is(.sn-push, .hm-push) .push-offer :is(.hz-btn, button.secondary) {
  min-height: 34px; height: 34px; padding: 0 14px; border: 1px solid var(--nx-off); border-radius: 17px; background: none; color: var(--nx-ink);
  font-size: 11px; font-weight: var(--fw-strong); letter-spacing: .1em; text-transform: uppercase;
}
.zoom-shell .push-offer button.push-dismiss { color: var(--nx-muted); }

/* ---------- Life ---------- */
.zoom-shell .hl-place .hl-seclabel { padding: 24px 8px 8px calc(var(--pad) + 8px); }
.zoom-shell .hl-block .hl-list, .zoom-shell .hl-place .hl-list { padding: 0 14px 0 16px; }
.zoom-shell .hl-place .hl-row { min-height: 60px; padding: 10px 0; border-radius: 0; }
.zoom-shell .hl-place .hl-row + .hl-row::before, .zoom-shell .hl-block .hl-row + .hl-row::before { left: 0; right: 0; background: var(--nx-line); }
.zoom-shell .hl-place .hl-row-b b { font-size: var(--fs-15); font-weight: var(--fw-regular); }
.zoom-shell .hl-place .hl-row-b > span { font-size: var(--fs-13); color: var(--nx-muted); }
.zoom-shell .hl-row-ic { display: none; }
.zoom-shell .hl-place .hl-tap:hover, .zoom-shell .hl-place .hl-tap:focus-visible { background: none; }
.zoom-shell .hl-chev.nx-chev, .zoom-shell .hl-more .hl-chev.nx-chev { width: 10px; height: 14px; color: var(--nx-quiet); stroke: none; }
/* "New list", "More", "Lately: …": closed lines, as Work's "2 paused". */
.zoom-shell .hl-more, .zoom-shell .hl-lately {
  min-height: 52px; margin-top: var(--nx-gap); padding: 0 14px 0 16px; border-radius: var(--nx-r); background: var(--nx-tile); box-shadow: none; color: var(--nx-muted); font-size: var(--fs-15);
}
.zoom-shell .hl-lately { width: calc(100% - 2 * var(--pad)); margin-left: var(--pad); }
.zoom-shell .hl-lately > svg:first-child { display: none; }
.zoom-shell .hl-actions :is(button, a) { border-radius: 18px; }
.zoom-shell .hl-empty { margin: 4px 8px 6px; color: var(--nx-muted); font-size: var(--fs-15); }

/* ---------- The map and the server lists ---------- */
.zoom-shell #work-view .sv-mrow { min-height: 60px; border-bottom-color: var(--nx-line); }
.zoom-shell #work-view .sv-mrow b { font-size: var(--fs-15); font-weight: var(--fw-regular); }
.zoom-shell #work-view .sv-mrow small, .zoom-shell #work-view .sv-legend { font-size: var(--fs-13); color: var(--nx-muted); }
.zoom-shell #work-view .sv-fold { font-size: var(--fs-15); color: var(--nx-muted); }
.zoom-shell #work-view :is(.sv-mrow, .sv-fold) { border-bottom-color: var(--nx-line); }
.zoom-shell #work-view .sv-group > :last-child, .zoom-shell #work-view .sv-group > .sv-mlist:last-child > :last-child { border-bottom: 0; }
.zoom-shell .estate-map { background: var(--nx-ground); }

/* ---------- Sheets and dialogs: a dark sheet, the title in the title face ---------- */
.zoom-shell ~ dialog#modal, dialog#modal { background: var(--nx-tile); color: var(--nx-ink); border: 0; box-shadow: none; }
dialog#modal::backdrop { background: rgba(0, 0, 0, .72); }
dialog#modal .sheet-bar, .zoom-shell ~ dialog#modal .sheet-bar { background: var(--nx-tile); box-shadow: none; }
dialog#modal .sheet-handle { background: var(--nx-off); }
.zoom-shell ~ dialog#modal .sheet-bar-title > h2, dialog#modal .hz-sheet-title {
  font-family: var(--font-title); font-weight: 300; font-size: 26px; line-height: 1.15; letter-spacing: -.015em; color: var(--nx-ink);
}
dialog#modal .sheet-footer { background: var(--nx-tile); border-top: 1px solid var(--nx-line); }
dialog#modal :is(.muted, .st-note, .st-line) { color: var(--nx-muted); }
dialog#modal .hz-plain { border-bottom-color: var(--nx-line); font-size: var(--fs-15); }
/* Buttons in a sheet: Cancel is an outline pill; the one action is red (Delete) or white. */
dialog#modal .secondary, .zoom-shell .secondary { border: 1px solid var(--nx-off); background: none; color: var(--nx-ink); border-radius: 22px; }
dialog#modal :is(.danger-fill, button.danger), .zoom-shell :is(.danger-fill, button.danger:not(.text-button)) { min-height: 44px; padding: 0 18px; border: 1px solid var(--nx-red); background: var(--nx-red); color: #FFFFFF; border-radius: 22px; }
dialog#modal .primary { border-radius: 22px; }
dialog#modal input:not([type="checkbox"]):not([type="radio"]):not(.hs-input), dialog#modal textarea, dialog#modal select {
  border-color: var(--nx-line); background-color: var(--nx-ground); color: var(--nx-ink);
}

/* ---------- Search: a dark field, results as rows with a hairline ---------- */
.zoom-shell ~ dialog#modal .hs-field { border: 0; border-radius: 27px; background: var(--nx-ground); box-shadow: none; color: var(--nx-muted); }
.zoom-shell ~ dialog#modal .hs-field .hs-input { color: var(--nx-ink); font-family: var(--font-sans); }
.zoom-shell ~ dialog#modal .hs-res { border-bottom: 1px solid var(--nx-line); }
.zoom-shell ~ dialog#modal .hs-res > svg { display: none; }
.zoom-shell ~ dialog#modal .hs-res b { font-size: var(--fs-15); }
.zoom-shell ~ dialog#modal .hs-res small { font-size: var(--fs-13); color: var(--nx-muted); }
.zoom-shell ~ dialog#modal .hs-status { font-size: var(--fs-13); color: var(--nx-muted); }

/* ---------- Toasts: a dark tile with white words ---------- */
.toast { border: 1px solid var(--nx-line); border-radius: var(--nx-r); background: var(--nx-tile); color: var(--nx-ink); box-shadow: none; font-size: var(--fs-15); }
.toast-action { color: var(--nx-ink); font-weight: var(--fw-strong); text-decoration: none; letter-spacing: .02em; }

/* ---------- Empty states: plain grey words; a heading in the title face ---------- */
:is(.empty-state, .empty-panel, .browser-empty) :is(h1, h2, h3) { font-family: var(--font-title); font-weight: 300; letter-spacing: -.015em; color: var(--nx-ink); }
:is(.empty-state, .empty-panel, .browser-empty, .hw-empty, .side-empty, .nav-empty) { color: var(--nx-muted); }
/* A scrolling screen with more below fades its bottom edge (app.js watchPanelFades), like the chat. */
.panel-view.has-more-below{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 32px),transparent)}
