/* ==========================================================================
   The zoom shell and the shared pieces every place is built from.
   Horizon's look on Field's navigation (design round 5). Every value comes
   from tokens.css.

   Shell: one top bar (where you are on the left; search and you on the
   right), Home as a calm map, and each level growing from the point tapped.
   Pieces (hz-*): the sky and sea of a level, the sentence-led header, the
   now line, live rows with a time capsule, the checks bar, the one decision
   with its recommended answer first, plain rows, and sheets.
   ========================================================================== */

/* ---------- Shell ---------- */
.shell.zoom-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--top-h) minmax(0, 1fr);
  background: var(--sky);
}
.zoom-shell > .sidebar, .zoom-shell > .side-scrim { display: none !important; }
.zoom-shell > .hub-top { grid-row: 1; grid-column: 1 / -1; }
.zoom-shell > .main { grid-row: 2; grid-column: 1; }
.zoom-shell > .hub-panel { grid-row: 2; grid-column: 2; }
@media (min-width: 801px) {
  .shell.zoom-shell.has-panel { grid-template-columns: minmax(0, 1fr) var(--panel-w); }
}
/* The places bar: Home, Work, SEAN and Life on every screen but Home. On a
   phone and a small window it sits at the bottom, where a phone app keeps its
   tabs; on a wide screen it sits in the middle of the top bar. */
.shell.zoom-shell:not(.at-home):not(.is-typing) { grid-template-rows: var(--top-h) minmax(0, 1fr) auto; }
.zoom-shell > .hub-places { grid-row: 3; grid-column: 1 / -1; }
.zoom-shell.at-home > .hub-places, .zoom-shell.is-typing > .hub-places { display: none; }
/* Under the bar, bottom bars need no room for the phone's home line: the bar keeps it. */
@media (max-width: 1099px) {
  .zoom-shell:not(.at-home):not(.is-typing) > .main, .zoom-shell:not(.at-home):not(.is-typing) > .hub-panel { --safe-bottom: 0px; }
}
/* Paper tooth: a faint grain over everything, so surfaces feel made, not
   rendered. Never takes a tap. Multiply on linen; screen, inverted, at night. */
.shell.zoom-shell::after {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: var(--grain); mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .24  0 0 0 0 .14  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shell.zoom-shell::after { mix-blend-mode: screen; filter: invert(1); } }
:root[data-theme="dark"] .shell.zoom-shell::after { mix-blend-mode: screen; filter: invert(1); }
/* The old menu buttons have no menu to open any more. */
.zoom-shell #sidebar-toggle, .zoom-shell .panel-header .panel-menu { display: none !important; }
.zoom-shell .main, .zoom-shell .view, .zoom-shell .panel-view, .zoom-shell .topbar { background: var(--sky); }
.zoom-shell .topbar { border-bottom: 0; }
.zoom-shell .panel-header { border-bottom: 0; }

/* ---------- Top bar ---------- */
.hub-top {
  position: relative; z-index: 30; min-width: 0;
  display: flex; align-items: center; gap: 2px;
  padding: 0 10px 0 6px; background: var(--sky-top);
  box-shadow: 0 1px 0 var(--hair2);
}
.hub-where { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.hub-date { padding-left: 14px; font-size: var(--fs-14); color: var(--ink3); }
.hub-back, .hub-search {
  width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center;
  border: 0; border-radius: 22px; background: none; color: var(--ink2); padding: 0;
}
.hub-back svg, .hub-search svg { width: 22px; height: 22px; stroke-width: 1.6; }
.hub-back:active, .hub-search:active { background: var(--hair2); }
/* Where you are: Back names the screen it returns to, the title names this one. */
.hub-back { width: auto; min-width: 44px; max-width: 42%; display: flex; align-items: center; gap: 0; padding: 0 8px 0 4px; justify-content: flex-start; overflow: hidden; }
.hub-back svg { flex: 0 0 auto; }
.hub-back-label { min-width: 0; flex: 0 1 auto; overflow: hidden; white-space: nowrap; text-overflow: clip; font-size: var(--fs-14); color: var(--ink3); }
.hub-back-label[hidden] { display: none; }
.hub-title {
  min-width: 0; flex: 1 1 auto; margin: 0 0 0 10px; padding: 0; font: inherit; font-size: var(--fs-16); font-weight: var(--fw-strong);
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 44px;
}
.hub-places {
  display: flex; justify-content: space-around; align-items: stretch; z-index: 30;
  padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left); background: var(--sky-top); box-shadow: 0 -1px 0 var(--hair2);
}
.hub-place {
  position: relative; flex: 1 1 0; max-width: 120px; min-height: 56px; padding: 6px 4px 7px; border: 0; background: none;
  display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--ink3); font-size: var(--fs-13);
}
.hub-place svg { width: 22px; height: 22px; stroke-width: 1.6; }
.hub-place .sean-mark { width: 20px; height: 20px; border-color: currentColor; }
.hub-place .sean-mark::after { background: currentColor; }
.hub-place[aria-current="page"] { color: var(--ink); font-weight: var(--fw-strong); background: var(--hair2); border-radius: 16px; }
.hub-place[aria-current="page"] svg { stroke-width: 2.2; }
/* One active mark: the pill. A second underline under it reads as a glitch. */
.hub-place:active { background: var(--hair2); }
.hub-place .hub-tab-dot { top: 4px; right: auto; left: calc(50% + 8px); }
@media (min-width: 1100px) {
  /* Wide: the places sit in the middle of the top bar, the title keeps to the left half. */
  .shell.zoom-shell:not(.at-home):not(.is-typing) { grid-template-rows: var(--top-h) minmax(0, 1fr); }
  /* Places sit in the true centre. The back button and title keep the left
     side and are clipped there, so they never paint over Home, Work, SEAN, Life. */
  .zoom-shell > .hub-places { grid-row: 1; grid-column: 1 / -1; justify-self: center; align-self: center; position: relative; z-index: 31; width: max-content; margin-left: 0; padding: 0; background: none; box-shadow: none; }
  .hub-place { min-height: 44px; grid-auto-flow: column; gap: 6px; padding: 0 12px; max-width: none; font-size: var(--fs-15); }
  .hub-place[aria-current="page"] { border-radius: 16px; }
  .hub-place svg { width: 18px; height: 18px; }
  .hub-place .sean-mark { width: 16px; height: 16px; }
  .zoom-shell:not(.at-home) .hub-where { max-width: calc(50% - 210px); overflow: hidden; position: relative; z-index: 32; }
  .zoom-shell:not(.at-home) .hub-search, .zoom-shell:not(.at-home) .hub-avatar { position: relative; z-index: 32; }
  .zoom-shell:not(.at-home) .hub-search { width: 220px; margin-left: auto; }
}
/* The whole app's connection line, hung just under the top bar, above a phone's full-screen panel. */
.hub-connection {
  position: fixed; z-index: 85; top: calc(var(--top-h) + var(--safe-top) + 4px); left: 50%; transform: translateX(-50%); margin: 0;
  max-width: calc(100% - 32px); width: max-content; padding: 8px 14px; border-radius: 16px;
  background: var(--sky-top); color: var(--ink2); font-size: var(--fs-14); line-height: 1.35; text-align: center;
  box-shadow: 0 1px 0 var(--hair2), 0 4px 14px rgba(0, 0, 0, .08);
}
.hub-connection[hidden] { display: none; }
/* One connection message at a time: a page that itself says AI Hub cannot be
   reached (the first load, a chat that could not open) hides this line, and an
   open chat's own "not updating" line gives way to this one. */
.shell:has(#chat-view:not(.hidden) #messages > .hub-unreachable) .hub-connection { display: none; }
.shell.is-unreachable #chat-connection { display: none; }
.shell.is-unreachable .hl-off { display: none; }
/* While AI Hub cannot be reached, Life shows no title over an empty part and no
   "Couldn't check" line: the one connection line above says it all. */
.shell.is-unreachable #life-view section:has(> .hl-off),
.shell.is-unreachable #life-view .hl-purse.is-off,
.shell.is-unreachable #life-view .hl-unread { display: none; }
.hub-tab-dot { position: absolute; top: 9px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.hub-search-label { display: none; }
.hub-avatar[aria-current="page"] { box-shadow: 0 0 0 2px var(--ink); }
.hub-avatar {
  width: 34px; height: 34px; margin: 5px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--fs-14); font-weight: var(--fw-strong); color: var(--ink);
  background: linear-gradient(160deg, var(--sea), var(--hair));
}
@media (min-width: 1100px) {
  .hub-top { padding: 0 22px 0 14px; }
  .hub-search {
    width: 400px; justify-content: flex-start; display: flex; gap: 10px; padding: 0 18px;
    background: var(--raise); box-shadow: var(--shadow); color: var(--ink3); font-size: var(--fs-15); margin-right: 10px;
  }
  .hub-search svg { width: 19px; height: 19px; }
  .hub-search-label { display: inline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Levels: the zoom ---------- */
.zoom-shell .view.lv-in { animation: lv-in var(--t-zoom) var(--ease) both; }
.zoom-shell .view.lv-out { animation: lv-out var(--t-zoom) var(--ease) both; }
.zoom-shell .view.lv-right { animation: lv-right var(--t-fade) var(--ease) both; }
.zoom-shell .view.lv-left { animation: lv-left var(--t-fade) var(--ease) both; }
@keyframes lv-in { from { transform: scale(.45); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lv-out { from { transform: scale(1.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lv-right { from { transform: translateX(36%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lv-left { from { transform: translateX(-36%); opacity: 0; } to { transform: none; opacity: 1; } }
.zoom-shell .hub-panel.lv-in { animation: lv-in var(--t-zoom) var(--ease) both; }

/* The job panel on a phone sits under the top bar, which carries Back. */
@media (max-width: 800px) {
  .zoom-shell .hub-panel { top: calc(var(--top-h) + var(--safe-top)); padding-top: 0; background: var(--sky); animation: none; }
  .zoom-shell .hub-panel:has(.hw-job) { background: var(--sea); }
  .zoom-shell .hub-panel-body:has(.hw-job) { padding-top: 0; }
  /* The panel stops above the places bar, so the places stay one tap away. */
  .zoom-shell:not(.is-typing) .hub-panel { bottom: calc(56px + var(--safe-bottom)); }
  .zoom-shell #hub-panel-back { display: none; }
  /* The top bar names the level and carries Back, so the panel's own head goes. */
  .zoom-shell .hub-panel-head { display: none; }
}
.zoom-shell .hub-panel { background: var(--surface); border-left: 0; box-shadow: var(--shadow); }

/* ---------- Sheets: rise from below, soft, no outlines ---------- */
.zoom-shell ~ dialog, dialog#modal {
  border: 0; background: var(--surface); color: var(--ink);
  border-radius: var(--r-sheet); box-shadow: var(--shadow);
}
@media (max-width: 800px) {
  dialog#modal { border-radius: var(--r-sheet) var(--r-sheet) 0 0; animation: hz-sheet-up var(--t-sheet) var(--ease); }
}
/* Desktop: a sheet is a card in the middle of the screen over the dimmed place
   (owner, 29 Oct: a corner card overlapped the rows it came from). */
@media (min-width: 1100px) {
  dialog#modal:not(.is-wide) { width: 520px; max-height: 82vh; margin: auto; }
}
@keyframes hz-sheet-up { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
.toast { border-radius: var(--r-btn); background: var(--btn); color: var(--btn-ink); padding: 12px 18px; font-size: var(--fs-15); }

/* ---------- Buttons: one dark button, quiet alternatives ---------- */
.zoom-shell .primary, dialog .primary {
  border-color: var(--btn); background: var(--btn); color: var(--btn-ink);
  border-radius: var(--r-btn); padding-inline: 22px; font-weight: var(--fw-strong);
}
.zoom-shell .secondary, dialog .secondary { border-radius: var(--r-btn); border-color: transparent; background: var(--hair2); }
.zoom-shell .quiet, dialog .quiet { border-radius: var(--r-btn); }

/* ==========================================================================
   Shared pieces (Hub.ui builds them; the place builders reuse them)
   ========================================================================== */
.hz-level { min-height: 100%; display: flex; flex-direction: column; color: var(--ink); background: var(--sky); }
.hz-col { width: 100%; max-width: var(--col-max); margin: 0 auto; position: relative; }
.hz-sky { position: relative; padding: 2px 0 26px; background: linear-gradient(var(--sky-top), var(--sky) 92%); }
.hz-sky.is-glow { background: radial-gradient(70% 60% at 50% 120%, var(--sun-soft), transparent 70%), linear-gradient(var(--sky-top), var(--sky) 92%); }
.hz-sea { flex: 1 1 auto; position: relative; padding-bottom: 140px; background: linear-gradient(var(--sea), var(--sea2)); }
.hz-sea.is-flat { padding-bottom: 48px; }
.hz-edge { height: 0; }
.hz-pad { padding: 30px var(--pad) 0; }

/* The folded past: one line that opens a sheet. */
.hz-fold {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 var(--pad) 0 0;
  border: 0; background: none; text-align: left; font-size: var(--fs-14); color: var(--ink3);
}
.hz-fold .hz-t { width: var(--time-g); flex: none; display: flex; justify-content: flex-end; padding-right: 14px; }
.hz-fold svg { width: 15px; height: 15px; stroke-width: 2; }
.hz-fold .hz-x { flex: 1; min-width: 0; }

/* The sentence-led header: one light sentence, a line per thought. */
.hz-kicker { font-size: var(--fs-14); color: var(--ink3); }
.hz-sentence {
  margin: 0; padding: 12px var(--pad) 0 var(--time-g);
  font-size: var(--fs-sentence); line-height: var(--lh-sentence); font-weight: var(--fw-light); letter-spacing: var(--track-tight);
}
.hz-sentence > span { display: block; }
.hz-sentence.is-detail { padding: 10px 0 0; font-size: var(--fs-27); line-height: 1.22; }
.hz-head-flat { padding: 6px var(--pad) 30px; }
.hz-state { margin-top: 6px; font-size: var(--fs-15); color: var(--live); }

/* The now line: time in the gutter, a dot, a slow shimmer. */
.hz-now { position: relative; height: 0; z-index: 2; }
.hz-now::before { content: ""; position: absolute; left: 0; right: 0; top: -.5px; height: 1px; background: var(--ink); opacity: .34; }
.hz-now::after {
  content: ""; position: absolute; left: -30%; top: -1.5px; height: 3px; width: 30%;
  background: linear-gradient(90deg, transparent, var(--live), transparent); opacity: .55;
  animation: hz-shimmer var(--shimmer) var(--ease) infinite;
}
.hz-now-time {
  position: absolute; left: 0; top: -10px; width: var(--time-g); padding-right: 12px; text-align: right;
  font-size: var(--fs-13); font-weight: var(--fw-strong); color: var(--ink); font-variant-numeric: tabular-nums;
}
.hz-now-time::after { content: ""; position: absolute; right: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
@keyframes hz-shimmer { 0% { transform: translateX(0); } 60%, 100% { transform: translateX(450%); } }
/* A running job's own line: done in sea glass, then dotted to about when it ends. */
.hz-now.is-job::before { background: repeating-linear-gradient(90deg, var(--ink3) 0 3px, transparent 3px 7px); opacity: .6; height: 1.5px; }
.hz-now.is-job::after { display: none; }
.hz-jl-done { position: absolute; left: 0; top: -1.5px; height: 3px; border-radius: 0 2px 2px 0; background: var(--live); width: calc(var(--pad) + (100% - 2 * var(--pad)) * var(--p)); }
.hz-jl-now { position: absolute; top: -9px; width: 2px; height: 18px; margin-left: -1px; background: var(--ink); left: calc(var(--pad) + (100% - 2 * var(--pad)) * var(--p)); }
.hz-jl { position: absolute; left: var(--pad); right: var(--pad); top: -30px; height: 20px; font-size: var(--fs-12); color: var(--ink3); font-variant-numeric: tabular-nums; }
.hz-jl span { position: absolute; top: 0; white-space: nowrap; }
.hz-jl .hz-jl-b { right: 0; }
.hz-jl .hz-jl-c { color: var(--ink); font-weight: var(--fw-strong); transform: translateX(-50%); }

/* Lists under the line. */
.hz-list { padding: 28px var(--pad) 8px 0; }
.hz-live {
  display: flex; align-items: flex-start; width: 100%; min-height: 64px; padding: 12px 0;
  border: 0; background: none; text-align: left; color: inherit;
}
.hz-live .hz-x { flex: 1; min-width: 0; }
.hz-live h4 { margin: 0; font-size: var(--fs-17); font-weight: var(--fw-strong); line-height: 1.3; }
.hz-live p { margin: 3px 0 0; font-size: var(--fs-14); color: var(--ink2); }
.hz-cap { width: var(--time-g); flex: none; display: flex; flex-direction: column; align-items: center; padding-top: 3px; position: relative; color: var(--ink2); }
.hz-cap i { display: block; width: 2px; border-radius: 1px; }
.hz-cap .hz-cap-a { height: 24px; background: var(--live); }
.hz-cap .hz-cap-b { height: 22px; background: repeating-linear-gradient(var(--live) 0 2px, transparent 2px 5px); opacity: .6; }
.hz-cap .hz-cap-n { position: absolute; left: calc(50% - 4px); top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--sea); box-shadow: inset 0 0 0 2px var(--live); animation: hz-bob var(--bob) ease-in-out infinite; }
.hz-cap.is-stopped { padding-top: 8px; }
.hz-cap.is-stopped i { width: 8px; height: 8px; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1.6px var(--ink3); }
.hz-cap.is-icon { padding-top: 0; }
.hz-cap.is-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.hz-sunb { width: var(--time-g); flex: none; display: flex; justify-content: center; padding-top: 6px; }
.hz-sunb i { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px var(--sun-soft); }
.hz-row {
  display: flex; align-items: flex-start; width: 100%; min-height: 44px; padding: 9px var(--pad) 9px 0;
  border: 0; background: none; text-align: left; color: inherit;
}
.hz-row .hz-t { width: var(--time-g); flex: none; padding: 2px 14px 0 0; text-align: right; font-size: var(--fs-13); color: var(--ink2); font-variant-numeric: tabular-nums; }
.hz-row .hz-x { flex: 1; min-width: 0; font-size: var(--fs-16); }
.hz-row .hz-x small { display: block; font-size: var(--fs-13); color: var(--ink3); }
.hz-row.is-muted .hz-x { color: var(--ink2); }
.hz-label { padding: 26px var(--pad) 6px var(--time-g); font-size: var(--fs-14); color: var(--ink3); }
.hz-sep { height: 1px; background: var(--hair); margin: 8px 0 8px var(--time-g); opacity: .7; }
.hz-more {
  display: flex; align-items: center; gap: 6px; min-height: 44px; margin: 14px 0 0 var(--time-g); padding: 0;
  border: 0; background: none; color: var(--ink2); font-size: var(--fs-15);
}
.hz-more svg, .hz-chev { width: 16px; height: 16px; color: var(--ink3); }
.hz-foot { padding: 24px var(--pad) 0 var(--time-g); font-size: var(--fs-13); color: var(--ink3); }
.hz-dots { display: flex; gap: 5px; margin-top: 9px; }
.hz-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--live); }
.hz-dots i.is-off { background: none; box-shadow: inset 0 0 0 1.4px var(--ink3); opacity: .7; }

/* The checks bar: how many of the promises are proven. */
.hz-bar { display: block; height: 3px; border-radius: 2px; background: var(--hair); overflow: hidden; flex: none; }
.hz-bar i { display: block; height: 100%; border-radius: 2px; background: var(--live); transform-origin: left; animation: hz-grow 1.2s var(--ease) both; }
@keyframes hz-grow { from { transform: scaleX(0); } }
.hz-checks-mini { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: var(--fs-13); color: var(--ink3); }
.hz-checks {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 62px;
  margin: 22px 0 4px; padding: 16px 0; border: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  background: none; color: inherit; text-align: left; font-size: var(--fs-16);
}
.hz-checks > span:first-child { flex: 1; }
.hz-checks b { font-weight: var(--fw-strong); font-size: var(--fs-17); font-variant-numeric: tabular-nums; }
.hz-checks .hz-bar { height: 5px; border-radius: 3px; }
.hz-checks svg { width: 18px; height: 18px; color: var(--ink3); }

/* The one decision: the sun buoy, the recommended answer first, a quiet alternative. */
.hz-decision { position: relative; padding: 4px 0 8px var(--time-g); }
.hz-decision .hz-buoy { position: absolute; left: calc(var(--time-g) - 30px); top: 31px; }
.hz-decision .hz-proj { font-size: var(--fs-13); color: var(--ink3); }
.hz-decision h3 { margin: 2px 0 6px; font-size: var(--fs-20); line-height: 1.3; font-weight: var(--fw-strong); }
.hz-decision p { margin: 0; font-size: var(--fs-15); color: var(--ink2); max-width: 36ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hz-why > summary { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-14); color: var(--ink3); cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.hz-why > summary::-webkit-details-marker { display: none; }
.hz-why > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hz-decision.is-boxed { margin: 0 0 24px; padding: 18px 18px 14px; border-radius: var(--r-block); background: var(--sun-soft); }
.hz-decision.is-boxed .hz-buoy { display: none; }
.hz-buoy { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 6px var(--sun-soft); animation: hz-bob var(--bob) ease-in-out infinite; }
@keyframes hz-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.hz-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.hz-btn {
  height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-btn); display: inline-flex; align-items: center; gap: 8px;
  background: var(--btn); color: var(--btn-ink); font-size: var(--fs-16); font-weight: var(--fw-strong);
  transition: transform var(--t-quick) var(--ease);
}
.hz-btn:active { transform: scale(.97); }
.hz-btn:disabled { opacity: .5; }
.hz-tbtn { height: 48px; padding: 0 14px; border: 0; border-radius: var(--r-btn); background: none; color: var(--ink2); font-size: var(--fs-16); }
.hz-tbtn:active { background: var(--hair2); }
.hz-rec { margin-top: 8px; font-size: var(--fs-13); color: var(--ink3); }
.hz-ok { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 6px 0 10px var(--time-g); animation: hz-rise .6s var(--ease) both; }
.hz-ok .hz-okm { position: absolute; left: calc(var(--time-g) - 36px); top: 6px; }
.hz-okm { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--live-soft); color: var(--live); }
.hz-okm svg { width: 14px; height: 14px; stroke-width: 2.2; }
.hz-ok b { display: block; font-size: 19px; font-weight: var(--fw-strong); line-height: 1.3; }
.hz-ok small { display: block; margin-top: 4px; font-size: var(--fs-14); color: var(--ink2); }
@keyframes hz-rise { from { opacity: 0; transform: translateY(12px); } }

/* A sum of money with its state underneath (Life). */
.hz-money { display: block; width: 100%; padding: 4px var(--pad) 12px var(--time-g); border: 0; background: none; color: inherit; text-align: left; }
.hz-money .hz-big { font-size: var(--fs-big); font-weight: var(--fw-light); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.hz-money .hz-sub { margin-top: 6px; font-size: var(--fs-15); color: var(--ink2); }
.hz-money .hz-ontrack { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--fs-14); color: var(--live); }
.hz-money .hz-ontrack i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.hz-money .hz-ontrack.is-sun { color: var(--ink2); }
.hz-money .hz-ontrack.is-sun i { background: var(--sun); }

/* Plain list rows (lists, search results, settings). */
.hz-plain {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--hair2); background: none; color: inherit; text-align: left; font-size: var(--fs-16);
}
.hz-plain > svg { width: 20px; height: 20px; color: var(--ink2); }
/* A row's trailing chevron is Home's: 16 px in quiet ink, the same on every row and fold. */
.hz-plain > .hz-chev { width: 16px; height: 16px; color: var(--ink3); }
.hz-plain .hz-x { flex: 1; min-width: 0; overflow-wrap: anywhere; }
/* A chat named by one long link wraps instead of running off the edge. */
.sn-bub { overflow-wrap: anywhere; }
.hz-plain .hz-x small { display: block; font-size: var(--fs-13); color: var(--ink3); }
.hz-plain .hz-meta { color: var(--ink3); font-size: var(--fs-14); white-space: nowrap; }

/* Sheets (Hub.ui.sheet): a light title and plain rows. */
.hz-sheet { padding-bottom: 8px; }
.hz-sheet-title { margin: 6px 0 12px; font-size: var(--fs-24); font-weight: var(--fw-light); letter-spacing: -.01em; }
.hz-me { display: flex; align-items: center; gap: 14px; padding: 6px 0 18px; }
.hz-me .hub-avatar { width: 56px; height: 56px; margin: 0; font-size: 22px; }
.hz-me b { display: block; font-size: var(--fs-20); font-weight: var(--fw-strong); }
.hz-me small { font-size: var(--fs-14); color: var(--ink3); }
.hz-shead { margin: 10px 0 2px; font-size: var(--fs-14); color: var(--ink3); }
.hz-seg { display: flex; gap: 4px; padding: 4px; margin: 6px 0 14px; border-radius: var(--r-btn); background: var(--sea); }
.hz-seg button {
  flex: 1 1 auto; height: 44px; padding: 0 10px; border: 0; border-radius: 20px; background: none; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 6px; font-size: var(--fs-15); color: var(--ink2);
  transition: background .3s, color .3s;
}
.hz-seg button[aria-pressed="true"] { background: var(--raise); color: var(--ink); box-shadow: var(--shadow-soft); }
.hz-seg svg { width: 17px; height: 17px; }

/* Live dots breathe. */
.hz-pulse { animation: hz-breathe var(--breathe) ease-in-out infinite; }
@keyframes hz-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ==========================================================================
   Home: the calm map. SEAN in the middle, Work and Life either side, Server
   and Today as small moons, the ask bar at the bottom.
   ========================================================================== */
.home-view { position: relative; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.home-view::-webkit-scrollbar { display: none; }
.hm-field { position: relative; height: 560px; max-width: 460px; margin: 0 auto 8px; padding-bottom: 8px; }
.hm-tether { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hm-tether path { fill: none; stroke: var(--ink3); stroke-width: 1.2; stroke-dasharray: 1 5; stroke-linecap: round; opacity: .6; vector-effect: non-scaling-stroke; }
/* The sky fades from the dawn mist to linen; when something needs the owner
   the sun is up: a warm glow above the horizon and its reflection below. */
.hm-home .hz-sky { background: linear-gradient(var(--sky-top), var(--sky) 92%); }
.hm-home.is-sunup .hz-sky { background: radial-gradient(64% 58% at 50% 122%, var(--sun-soft), transparent 72%), linear-gradient(var(--sky-top), var(--sky) 92%); }
/* The horizon is a change of tone, not a clock. */
.hm-horizon { position: relative; height: 0; z-index: 2; }
.hm-horizon::before { content: ""; position: absolute; left: 0; right: 0; top: -.5px; height: 1px; background: linear-gradient(90deg, transparent, var(--hair) 16%, var(--hair) 84%, transparent); }
.is-sunup > .hm-horizon::after, .is-sunup .hm-horizon::after {
  content: ""; position: absolute; left: 50%; top: -1px; width: 240px; height: 2px; margin-left: -120px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--sun), transparent); opacity: .6;
}
.hm-sunrise {
  display: none; position: absolute; left: 50%; top: -22px; width: 44px; height: 22px; margin-left: -22px; border-radius: 44px 44px 0 0;
  background: radial-gradient(circle at 50% 100%, var(--sun) 0 58%, transparent 60%); filter: drop-shadow(0 0 14px var(--sun-soft)); opacity: .9;
  animation: hm-rise var(--rise) ease-in-out infinite;
}
.is-sunup .hm-sunrise { display: block; }
@keyframes hm-rise { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
/* The places rest on the water like pebbles, each its own shape and tint. */
.hm-body {
  position: absolute; translate: -50% -50%; border: 0; padding: 0; border-radius: var(--br, 50%);
  display: grid; place-items: center; text-align: center; color: var(--ink); container-type: inline-size;
  background: radial-gradient(circle at 34% 26%, var(--raise), var(--disc) 72%);
  box-shadow: 0 1px 1px var(--hair2), 0 26px 40px -26px var(--shade);
  animation: hm-drift 9s ease-in-out infinite, hm-morph var(--morph) ease-in-out infinite; transition: scale .3s var(--ease);
}
.hm-body.is-work { --br: var(--r-pebble-work); --br2: 49% 51% 45% 55% / 55% 50% 50% 45%; background: radial-gradient(circle at 32% 24%, var(--raise), var(--p-work) 82%); }
.hm-body.is-life { --br: var(--r-pebble-life); --br2: 52% 48% 54% 46% / 47% 53% 47% 53%; background: radial-gradient(circle at 32% 24%, var(--raise), var(--p-life) 82%); }
.hm-body.is-sean { --br: var(--r-pebble-sean); --br2: 48% 52% 53% 47% / 52% 47% 53% 48%; background: radial-gradient(circle at 34% 26%, var(--raise), var(--p-sean) 84%); }
.hm-body.is-moon { --br: var(--r-pebble-moon); --br2: 46% 54% 48% 52% / 54% 46% 54% 46%; }
@keyframes hm-morph { 0%, 100% { border-radius: var(--br, 50%); } 50% { border-radius: var(--br2, 50%); } }
.hm-body:nth-of-type(2) { animation-duration: var(--drift), var(--morph); animation-direction: reverse, normal; }
.hm-body:nth-of-type(3) { animation-duration: 13s, var(--morph); }
.hm-body:active { scale: .97; }
@keyframes hm-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.hm-in { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58%; max-width: 58%; max-height: 62%; line-height: 1.05; overflow: hidden; }
.hm-n { max-width: 100%; font-size: clamp(13px, 26cqi, 40px); font-weight: var(--fw-light); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; overflow-wrap: anywhere; text-wrap: balance; }
.hm-n.is-small { font-size: clamp(12px, 16cqi, 22px); letter-spacing: -.015em; }
.hm-dw { margin-top: 4px; max-width: 100%; font-size: clamp(10px, 10cqi, 13px); color: var(--ink2); overflow-wrap: anywhere; text-wrap: balance; text-align: center; }
.hm-w2 { margin-top: 4px; max-width: 100%; font-size: clamp(10px, 9cqi, 12px); color: var(--ink3); overflow-wrap: anywhere; text-align: center; }
.hm-lab {
  position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; white-space: normal;
  display: flex; flex-direction: column; align-items: center; line-height: 1.2; font-size: 14px; font-weight: var(--fw-strong);
  width: min(132px, 36vw); max-width: 36vw; text-align: center; overflow-wrap: break-word;
}
.hm-lab small { font-size: 12px; font-weight: var(--fw-regular); color: var(--ink3); overflow-wrap: break-word; }
.hm-lab .hm-lt { display: inline-flex; align-items: center; gap: 2px; }
.hm-lab svg { width: 15px; height: 15px; color: var(--ink3); stroke-width: 2; }
.hm-lv { display: flex; gap: 5px; margin-bottom: 6px; }
.hm-lv i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: hz-breathe var(--breathe) ease-in-out infinite; }
.hm-lv i:nth-child(2) { animation-delay: .7s; }
.hm-ok { display: inline-flex; align-items: center; gap: 5px; }
.hm-ok i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.hm-ok.is-sun i { background: var(--sun); }
.hm-body.is-moon > .hm-in svg { width: 24px; height: 24px; color: var(--ink2); stroke-width: 1.6; }
.hm-body.is-life .hm-lab { width: min(124px, 34vw); max-width: 34vw; }
.hm-body.is-sean .hm-lab { width: min(140px, 38vw); max-width: 38vw; }
/* Moon labels stay inside the screen: the left one grows right, the right one left. */
.hm-body.is-moon.is-west .hm-lab { left: 0; translate: 0 0; align-items: flex-start; text-align: left; width: min(148px, 40vw); max-width: 40vw; }
.hm-body.is-moon.is-east .hm-lab { left: auto; right: 0; translate: 0 0; align-items: flex-end; text-align: right; width: min(124px, 34vw); max-width: 34vw; }
.hm-body.is-moon .hm-lab .hm-lt { white-space: normal; }
.hm-body.is-moon .hm-lab svg { width: 15px; height: 15px; stroke-width: 2; }
.hm-n.is-moon-n { font-size: clamp(11px, 30cqi, 20px); letter-spacing: 0; }
.hm-body.is-need { box-shadow: 0 0 0 9px var(--sun-halo), 0 0 46px 14px var(--sun-soft), 0 1px 1px var(--hair2), 0 30px 46px -26px var(--shade); }
.hm-field .hm-body.is-need { box-shadow: 0 0 0 6px var(--sun-halo), 0 1px 1px var(--hair2), 0 16px 24px -16px var(--shade); }
.hm-field .hm-body .hz-buoy { width: 10px; height: 10px; box-shadow: 0 0 0 3px var(--sun-soft); }
.hm-body.is-need .hm-n { font-size: clamp(16px, 32cqi, 44px); }
.hm-body .hz-buoy { position: absolute; right: 16%; top: 9%; width: 12px; height: 12px; box-shadow: 0 0 0 5px var(--sun-soft); }
.hm-glint {
  position: absolute; left: 50%; top: 0; width: 230px; height: 240px; margin-left: -115px; opacity: 0; pointer-events: none; transform-origin: 50% 0;
  background: radial-gradient(50% 100% at 50% 0, var(--sun-soft), transparent 78%);
  transition: opacity 1.2s var(--ease); animation: hm-glint 8s ease-in-out infinite;
}
@keyframes hm-glint { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.88); } }
.hm-field.is-sunup .hm-glint { opacity: 1; }
.hm-desk { display: none; }

/* The notifications offer: one quiet line on the water, above the places. */
.hm-home .hm-push { position: relative; z-index: 3; margin: 12px 14px 0; }
.hm-home .hm-push:not(:empty) + .hm-field { margin-top: 8px; }

/* The ask bar: a real text field, so typing is never lost. */
.hm-ask {
  position: sticky; bottom: 0; z-index: 15; margin-top: 12px; padding: 12px 14px calc(18px + var(--safe-bottom));
  background: var(--sea2); box-shadow: 0 -1px 0 var(--hair2);
}
/* Phone: the ask bar is pinned to the viewport, flush above the places bar
   when that bar is showing, and never floats over the middle of the page. */
@media (max-width: 1099px) {
  .hm-ask {
    position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 28;
    padding: 10px 14px calc(12px + var(--safe-bottom));
  }
  .zoom-shell:not(.at-home):not(.is-typing) .hm-ask { bottom: calc(56px + var(--safe-bottom)); padding-bottom: 10px; }
  #home-view, #sean-view { padding-bottom: 280px; }
}
.hm-askbar {
  display: flex; align-items: center; gap: 8px; width: 100%; max-width: 600px; height: 54px; margin: 0 auto;
  padding: 0 7px 0 22px; border-radius: 27px; background: var(--raise); box-shadow: var(--shadow); color: var(--ink3);
}
.hm-askbar input {
  flex: 1; min-width: 0; height: 100%; border: 0 !important; background: none !important; outline: none; padding: 0 !important;
  font-size: var(--fs-16); color: var(--ink); min-height: 0 !important; box-shadow: none;
}
.hm-askbar input::placeholder { color: var(--ink3); }
.hm-askbar button { width: 40px; height: 40px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 20px; background: none; color: var(--ink2); transition: background .3s, color .3s; }
.hm-askbar button svg { width: 22px; height: 22px; stroke-width: 1.6; }
.hm-askbar.has-text button { background: var(--btn); color: var(--btn-ink); }
.hm-askbar.has-add { padding-left: 7px; }
.hm-askbar .hm-askbar-add, .hm-askbar.has-text .hm-askbar-add { width: 44px; height: 44px; border-radius: 22px; background: none; color: var(--ink2); }

/* Desktop: one sky band with the sentence across, the horizon, then Work |
   SEAN | Life side by side on the water. */
@media (min-width: 1100px) {
  .home-view .hz-level.is-phone { display: none; }
  .hm-desk { display: flex; flex-direction: column; min-height: 100%; }
  .hm-dtop { padding: 0 0 26px; background: linear-gradient(var(--sky-top), var(--sky)); }
  .hm-desk.is-sunup .hm-dtop { background: radial-gradient(34% 90% at 50% 125%, var(--sun-soft), transparent 72%), linear-gradient(var(--sky-top), var(--sky)); }
  .hm-dtop-in { max-width: 1400px; margin: 0 auto; padding: 0 12px; }
  .hm-dtop .hz-fold .hz-t { width: var(--pad); }
  .hm-dtop .hz-sentence { padding-left: var(--pad); font-size: 38px; }
  .hm-dtop .hz-sentence > span { display: inline; }
  .hm-dtop .hz-sentence > span + span::before { content: " "; }
  .hm-dsea-all { flex: 1 1 auto; background: linear-gradient(var(--sea), var(--sea2)); }
  .hm-grid { display: grid; grid-template-columns: 1.1fr 1.15fr 1fr; max-width: 1400px; margin: 0 auto; padding: 22px 12px 150px; }
  .hm-dcol { position: relative; min-width: 0; padding: 0 10px; border-right: 1px solid var(--hair2); }
  .hm-dcol:last-child { border-right: 0; }
  .hm-dhead { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 0 0 var(--pad); border: 0; background: none; font-size: var(--fs-15); font-weight: var(--fw-strong); color: var(--ink2); }
  .hm-dhead svg { width: 16px; height: 16px; color: var(--ink3); }
  .hm-dsky .hz-sentence { padding: 10px var(--pad) 0; font-size: var(--fs-24); }
  .hm-dsea .hz-list { padding-top: 16px; }
  /* SEAN's column is SEAN's place: its deck and Your chats, set in the column. */
  .hm-dcol .sn-deck { margin: 16px 10px 0 var(--pad); }
  .hm-dcol .sn-chats { margin: 26px 10px 0 var(--pad); }
  .hm-ask { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 14px calc(50% - 300px) 24px; background: var(--sea2); box-shadow: 0 -1px 0 var(--hair2); }
  .hm-grid { padding-bottom: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .zoom-shell .view, .zoom-shell .hub-panel, .hm-body, .hm-sunrise, .hm-glint, .hz-buoy, .hz-pulse, .hm-lv i, .hz-cap-n, .hz-bar i, .hz-ok, dialog#modal { animation: none !important; }
  .hm-glint { transition: none; }
  .hz-now::after { display: none; }
}

/* Projects screens (owned here so screens.css stays with Settings).
   The Projects list: one column that may shrink, so each row's status
   stays whole at 390 px instead of being cut ('2 wor'). */
.shell-rows.shell-projects { grid-template-columns: minmax(0, 1fr); }
.shell-projects .shell-group { min-width: 0; }
/* Archived projects: the name keeps the line, its chats and age sit under it. */
.shell-prj.is-archived .shell-prj-two { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.shell-prj.is-archived .shell-prj-two small { white-space: normal; overflow-wrap: anywhere; }
/* Project page: 'Where AI work lives' is a normal row, and changed files
   read in body text, not 12 px code type. */
.project-work-folders.estate-inner-disclosure > summary { font-size: var(--fs-16); text-decoration: none; justify-content: space-between; }
.project-work-folders.estate-inner-disclosure > summary .muted { font-size: var(--fs-14); }
#changes-view .change-file { font: var(--fs-15)/1.45 var(--font-sans); }
#changes-view .change-file .change-file-disclosure { font: var(--fs-14)/1.4 var(--font-sans); }
/* Project notes: a 44 px row per notes file, read as text. */
.project-note > summary { min-height: var(--tap); display: flex; align-items: center; font-size: var(--fs-16); cursor: pointer; }
.project-note-text { max-height: 40vh; overflow: auto; overflow-wrap: anywhere; font-size: var(--fs-16); }
/* Files hidden from the AI: one calm row per file, its reason behind a tap. */
/* Its fold on Saved versions uses the house chevron, not the browser's bare triangle. */
.hidden-files-fold { width: auto; max-width: none; }
.hidden-files-fold > summary { min-height: var(--tap); display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; text-decoration: none; color: var(--text); font-size: var(--fs-16); }
.hidden-files-fold > summary::-webkit-details-marker { display: none; }
.hidden-files-fold > summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; color: var(--muted); transform: rotate(45deg) translateY(-2px); }
.hidden-files-fold[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.hidden-file { border-bottom: 1px solid var(--hair2); overflow-wrap: anywhere; }
.hidden-file > summary { min-height: var(--tap); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-15); cursor: pointer; list-style: none; }
.hidden-file > summary::-webkit-details-marker { display: none; }
.hidden-file > summary small { flex: none; font-size: var(--fs-14); }
.hidden-file > .dialog-form { padding: 0 0 12px; }
.project-repository-boundary .project-note-text :is(p, li, blockquote, td) { font-size: var(--fs-15); line-height: 1.5; }
.project-repository-boundary .project-note-text :is(h1, h2, h3, h4) { margin: 14px 0 4px; font-size: var(--fs-17); }
.project-repository-boundary .hidden-files-lead { color: var(--text); font-size: var(--fs-15); }

/* Ask box in every place (Server, Life, Work): SEAN's composer at the bottom of
   the page, in its flow, so at the end of the page it sits after the content
   and never hides it; above the places bar. The last answer opens above it. */
.ap-dock {
  position: sticky; bottom: 0; z-index: 15; margin-top: 18px; padding: 10px 14px calc(12px + var(--safe-bottom));
  background: var(--sea2); box-shadow: 0 -1px 0 var(--hair2), 0 0 0 100vmax var(--sea2); clip-path: inset(-1px -100vmax 0 -100vmax);
}
.ap-dock .ap-bar { height: auto; min-height: 54px; flex-wrap: wrap; align-items: center; overflow: visible; padding-top: 6px; padding-bottom: 6px; }
.ap-pickchip { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 8px 4px 4px; }
.ap-pickin { flex: none; color: var(--ink3); font-size: var(--fs-14); }
.ap-dock .ap-bar > input { flex: 1 1 160px; min-width: 0; }
.ap-answer { max-width: 600px; margin: 0 auto 8px; }
/* Work on a wide screen: the ask box (and its answer) line up with the column
   of cards above it, not the narrower Home width. Phones keep their layout. */
@media (min-width: 801px) {
  .ap-dock.ap-work { padding-left: var(--pad); padding-right: var(--pad); }
  .ap-work :is(.ap-bar, .ap-answer) { max-width: calc(var(--col-max) - 2 * var(--pad)); }
}
.ap-answer {
  display: grid; gap: 8px; padding: 12px 14px 10px 18px; border-radius: 20px; background: var(--raise); box-shadow: var(--shadow);
  color: var(--ink); font-size: var(--fs-15);
}
.ap-answer[hidden] { display: none; }
.ap-head { display: flex; align-items: flex-start; gap: 8px; }
.ap-q { flex: 1; min-width: 0; margin: 4px 0 0; color: var(--ink3); font-size: var(--fs-14); overflow-wrap: break-word; }
.ap-close { flex: none; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 16px; background: none; color: var(--ink3); }
.ap-close svg { width: 18px; height: 18px; }
.ap-text { max-height: 30vh; overflow-y: auto; overscroll-behavior: contain; line-height: 1.45; overflow-wrap: break-word; scrollbar-width: none; }
.ap-text::-webkit-scrollbar { display: none; }
/* More below: the last lines fade instead of being cut through. */
.ap-text.is-more { -webkit-mask-image: linear-gradient(#000 calc(100% - 44px), transparent); mask-image: linear-gradient(#000 calc(100% - 44px), transparent); }
.ap-fixwrap { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--hair2); }
.ap-fixline { margin: 0; line-height: 1.4; }
.ap-text > :first-child { margin-top: 0; }
.ap-text > :last-child { margin-bottom: 0; }
.ap-text p, .ap-text ul, .ap-text ol { margin: 0 0 8px; }
.ap-text ul, .ap-text ol { padding-left: 20px; }
.ap-text pre { white-space: pre-wrap; font-size: var(--fs-13, 13px); }
.ap-wait, .ap-note { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink2); }
.ap-dots { width: 22px; height: 6px; flex: none; background: radial-gradient(circle 3px, currentColor 95%, transparent) 0 50% / 8px 6px repeat-x; opacity: .6; animation: ap-dots 1.2s ease-in-out infinite; }
@keyframes ap-dots { 50% { opacity: .2; } }
.ap-fix { margin-top: 2px; }
.ap-links { display: flex; justify-content: flex-end; }
.ap-link { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 0 4px 0 8px; border: 0; background: none; color: var(--ink2); font-size: var(--fs-14); font-weight: var(--fw-strong); }
.ap-link svg { width: 16px; height: 16px; }
.ap-pickrow { display: flex; align-items: center; gap: 8px; padding: 0 6px; color: var(--ink3); font-size: var(--fs-14); }
.ap-pickrow { flex-wrap: wrap; }
.ap-dock select.ap-pick { flex: 0 1 auto; flex-shrink: 0; field-sizing: content; width: max-content; min-width: max-content; max-width: 100%; min-height: 40px; padding: 0 32px 0 12px; border-radius: 24px; border: 0; background-color: var(--raise); box-shadow: var(--shadow); color: var(--ink); font-size: var(--fs-15); font-weight: var(--fw-strong); text-overflow: clip; white-space: nowrap; overflow: visible; }
@media (prefers-reduced-motion: reduce) { .ap-dots { animation: none; } }
/* ---- Look pass (owner, 29 Oct) ---------------------------------------------
   One rule for truncation everywhere the owner reads: a label, a name or a line
   is never cut short with "…"; it wraps onto the next line instead. Code, file
   paths and technical screens keep their own rules. */
:is(.hub-title, .hz-decision p, .hw-row-title, .sv-holds > span, .sv-note > span,
    .hl-row-b b, .hl-rseq .hl-rt, .hl-x p, .hl-lately > span, .fold-meta, .settings-subheader h1,
    #settings-view .panel-header h1, .action-thread, .work-card-heading h3,
    #settings-view .settings-row .nav-row-meta, .search-result-title, .search-result-meta,
    .shell-group .hz-plain .hz-meta, .hs-res small, .shell-prj-x, .st-head > span,
    .st-group .hz-plain .hz-meta, .chat-action strong, .chat-action-reason, .sean-notice-name,
    .helper-name, .helper-task, .helper-now, .owes-text, .job-ask-text, .job-details-meta,
    .job-detail-row small, .sn-pk-n, .sn-bub, .sn-rows .hz-plain small, .chat-kicker-text,
    .nav-row-label, .nav-row-meta, .side-row-text, .hz-plain small, .hz-plain .hz-meta, .hz-x) {
  white-space: normal !important; text-overflow: clip !important; -webkit-line-clamp: unset !important;
  line-clamp: unset !important; overflow: visible !important; overflow-wrap: anywhere; max-height: none !important;
}
.hub-title { line-height: 1.2; }
/* Content never sits under a floating bar (the ask bar, a job's steer bar,
   the places bar): every scrolling screen ends with room for one ask box. */
:is(#work-view, #life-view, #sean-view, #home-view, #actions-view, #settings-view, #estate-view) { scroll-padding-bottom: 200px; padding-bottom: 160px; overflow-y: auto; min-height: 0; }
@media (min-width: 1100px) {
  #sean-view, #work-view, #home-view { padding-bottom: 280px; }
  .sn-level .hz-sea { padding-bottom: 280px; }
  .hm-grid { padding-bottom: 220px; }
}
:is(#work-view, #life-view, #sean-view, #home-view, #actions-view, #settings-view, #estate-view) > :last-child { margin-bottom: 0; }
/* The waiting card's one extra tap: a plain text link with a chevron, never a grey box. */
.sn-dig { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); margin: 6px 0 0; padding: 0; border: 0; border-radius: 0;
  background: none !important; box-shadow: none; color: var(--ink2); font: inherit; font-size: var(--fs-15); cursor: pointer; }
.sn-dig svg { width: 14px; height: 14px; }
.hz-decision .hz-acts { margin-top: 14px; }
/* An item opened from Waiting for you leads with its title, larger than its facts. */
dialog#modal .hz-sheet .action-card h4 { margin: 4px 0 6px; font-size: var(--fs-20, 20px); font-weight: var(--fw-strong); line-height: 1.3; }
/* Work lists start at the page edge, like its job rows: no empty time gutter. */
.hw-work .hz-list { padding-left: var(--pad); }
.hw-work .hz-label { padding-left: var(--pad); font-size: var(--fs-17); font-weight: var(--fw-strong); color: var(--ink); }
.hw-work .hz-row { padding-left: 0; }
.hw-work .hz-row .hz-t { width: auto; min-width: 0; padding-right: 12px; text-align: left; }
.hw-work :is(.hz-sunb, .hz-cap) { width: 28px; justify-content: flex-start; }
/* A row that opens something says so with a chevron, everywhere. */
.hz-live > .hz-chev, .hz-live > svg:last-child { align-self: center; flex: none; margin-left: 8px; }
/* Numbers in headings use the font's own spacing ("12", never "1 2"). */
:is(.hz-checks, .hz-checks b, .hm-n, .hz-sky) { font-variant-numeric: proportional-nums; }
/* Desktop: the places bar names the place, so the top bar does not say it again. */
@media (min-width: 1100px) { .hub-title.is-place { visibility: hidden; } }
/* A sheet on desktop has its own close button; the page behind it does not scroll. */
@media (min-width: 1100px) { dialog#modal:has(.hz-sheet-host) .dialog-close { display: inline-flex; } }
:root:has(dialog#modal[open]) :is(#settings-view, #work-view, #life-view, #sean-view, #actions-view, #home-view) { overflow: hidden; }
.st-bin .st-acts { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.st-bin .st-acts .st-act.is-quiet { margin-left: auto; font-weight: var(--fw-regular); }
.st-restore { min-height: 40px; padding: 0 18px; }
/* SEAN's waiting dot sits on its icon, clear of the word, on every screen size. */
@media (min-width: 1100px) { .hub-place { position: relative; } .hub-place .hub-tab-dot { top: 4px; right: auto; left: calc(50% + 10px); } }
/* The Recycle bin: Restore leads, Delete forever sits beside it; the close button sits inside the card. */
.st-bin .st-acts { justify-content: flex-start; }
.st-bin .st-acts .st-act.is-quiet { margin-left: 0; }
dialog#modal .dialog-close { background: none !important; box-shadow: none; }
/* The list heading on Waiting for you has room above it and no line pressed on it. */
#actions-view .sheet-section-title { margin: 22px 0 6px; border: 0; font-size: var(--fs-17); font-weight: var(--fw-strong); color: var(--ink); }
#actions-view .action-later > summary, #actions-view .action-older > summary, #actions-view .action-history > summary { font-size: var(--fs-17); font-weight: var(--fw-strong); color: var(--ink); }
#actions-view .action-later > summary .fold-title, #actions-view .action-older > summary .fold-title, #actions-view .action-history > summary .fold-title { font-size: var(--fs-17); font-weight: var(--fw-strong); color: var(--ink); }
#actions-view .action-push-note, #actions-view > .status-line { margin-left: 0; margin-right: 0; }
#actions-view .action-later, #actions-view .action-older, #actions-view .action-history { margin-top: 28px; padding-top: 0; border-top: 0; }
#actions-view .action-push-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--raise); box-shadow: var(--shadow-soft); width: 100%; }
#actions-view .action-push-note p { flex: 1 1 220px; margin: 0; }
#actions-view .action-push-on { margin: 0 0 0 auto; width: max-content; justify-content: center; }
#actions-view .screen-rows.action-flat { border-top: 0; }
#actions-view .sheet-section-title + .action-list { border-top: 0; }
#home-view { scroll-padding-top: 24px; scroll-padding-bottom: 200px; -webkit-mask-image: linear-gradient(transparent, #000 56px); mask-image: linear-gradient(transparent, #000 56px); }
.home-view .hz-level.is-phone .hz-sentence { padding: 44px 20px 0; }
@media (max-width: 1099px) {
  #home-view { -webkit-mask-image: linear-gradient(transparent, #000 56px, #000 calc(100% - 88px), transparent); mask-image: linear-gradient(transparent, #000 56px, #000 calc(100% - 88px), transparent); }
}
#home-view .hm-dtop .hz-sentence { padding-top: 22px; }
.hub-title-sub { flex: 1 0 100%; margin: 0 0 6px 10px; font-size: var(--fs-12); color: var(--ink3); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-where:has(.hub-title-sub) { flex-wrap: wrap; align-items: flex-end; }
@media (max-width: 1099px) {
  .zoom-shell:has(.hub-title-sub) { --top-h: 78px; }
  .hub-where:has(.hub-title-sub) .hub-title { line-height: 1.2; }
  .hub-where:has(.hub-title-sub) .hub-back { align-self: flex-start; margin-top: 6px; }
}
.hm-home .hm-push, .sn-place .sn-push, .hm-push, .sn-push { position: static; height: auto; flex: none; }
.sn-push .push-offer, .hm-push .push-offer { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; height: auto; min-height: 0; flex: none; padding: 12px 14px; border-radius: 16px; background: var(--raise); box-shadow: var(--shadow-soft); }
.sn-push .push-offer p, .hm-push .push-offer p { flex: 0 0 auto; margin: 0; }
.sn-push .push-offer .push-offer-actions, .hm-push .push-offer .push-offer-actions { flex: 0 0 auto; }
.sn-push .push-offer, .hm-push .push-offer { position: relative; padding-right: 36px; }
.sn-push .push-offer button.secondary, .hm-push .push-offer button.secondary, .sn-push .push-offer .hz-btn, .hm-push .push-offer .hz-btn { background: var(--btn); border: 0; border-radius: var(--r-btn); padding: 0 16px; color: var(--btn-ink); font-weight: var(--fw-strong); min-height: 40px; }
.push-dismiss { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 16px; background: none; color: var(--ink3); font-size: 20px; line-height: 1; }
.sn-push .push-offer button.subtle, .hm-push .push-offer button.subtle { color: var(--ink3); text-decoration: none; }
.hw-chats .hz-more { margin-left: 0; }
.hz-row.has-chev { padding-right: 4px; display: flex; align-items: center; }
.hz-row.has-chev .hz-chev { align-self: center; margin-left: auto; flex: none; }
.sn-peek .sn-pk-n { overflow: hidden !important; white-space: normal !important; }
.sn-title { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sn-title h3 { margin: 0; }
.action-push-on { display: inline-flex; align-items: center; min-height: 40px; margin-left: 8px; padding: 0 14px; }
#settings-view .shell-group { padding: 6px 14px 4px; border-radius: 16px; background: var(--raise); }
#settings-view .hz-plain { flex-wrap: nowrap; align-items: center; }
#settings-view .hz-plain .hz-x { flex: 1 1 auto; min-width: 0; white-space: normal !important; overflow-wrap: break-word; }
#settings-view .hz-plain .hz-meta { flex: 0 0 auto; margin-left: 12px; max-width: 46%; text-align: right; white-space: nowrap !important; }
#settings-view .hz-plain .hz-meta[hidden] { display: none !important; }
#settings-view .hz-plain > .hz-chev { flex: 0 0 auto; align-self: center; margin-left: 4px; }
#settings-view .shell-group .hz-plain { min-height: 48px; }
#settings-view .hz-meta.is-warn { color: var(--nx-ink); }
#settings-view .hz-meta.is-warn::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--nx-red); vertical-align: 1px; }
@media (max-width: 1099px) {
  #settings-view .shell-group { margin: 0 14px 14px; }
}
@media (min-width: 1100px) {
  #settings-view { padding-bottom: 48px; }
}

/* A long fold keeps a Hide under the finger: it rides at the bottom of the
   scroll while the fold is taller than the screen, and rests at the end. */
.fold-hide {
  position: sticky; bottom: 8px; z-index: 4;
  display: flex; align-items: center; min-height: 48px; width: max-content; max-width: 100%;
  margin: 8px 0 4px; padding: 0 16px; border: 0; border-radius: var(--r-btn);
  background: var(--raise); color: var(--ink2); box-shadow: var(--shadow-soft);
  font: inherit; font-size: var(--fs-15); cursor: pointer;
}
.fold-hide:active { transform: scale(.98); }
dialog#modal:has(.hz-sheet-host) .dialog-close { display: grid; }

/* Other screens, in Home's air: one light sentence, room between rows, no empty boxes. */
.hl-leadline { padding: 10px var(--pad) 4px; font-size: var(--fs-27); line-height: 1.22; font-weight: var(--fw-light); letter-spacing: var(--track-tight); color: var(--ink); }
#actions-view > .status-line { margin: 6px 0 18px; font-size: var(--fs-24); font-weight: var(--fw-light); letter-spacing: var(--track-tight); color: var(--ink); line-height: 1.25; }
#actions-view > .status-line :is(button, .quiet) { font-size: var(--fs-15); font-weight: var(--fw-regular); }
#project-view .project-control { padding-bottom: 72px; }
.zoom-shell #project-view .shell-head { display: none; }
.zoom-shell #project-view .project-lead > summary { align-items: flex-start; min-height: 0; padding: 4px 0 18px; }
.zoom-shell #project-view .project-lead > summary .fold-title { font-size: var(--fs-27); font-weight: var(--fw-light); letter-spacing: var(--track-tight); line-height: 1.22; }
#project-view .screen-section { margin-top: 28px; }
#project-view .screen-section-head h2 { margin: 0; font-size: var(--fs-20); font-weight: var(--fw-light); letter-spacing: var(--track-tight); }
#project-view .project-chat-list .nav-row, #settings-view .hz-plain, #actions-view .action-list > * { min-height: 56px; }
#settings-view .shell-head, #project-view .shell-head { padding-bottom: 6px; }
.hw-chats { padding: 4px var(--pad) 8px; }
.hw-chats .hz-label { padding: 8px 0 2px; }
.hw-chats .hz-plain { min-height: 56px; border-bottom-color: var(--hair2); }
.screen-section:empty, .action-list:empty, .project-chat-list:empty, .markdown:empty, .turn-details:empty, .code-block:empty, .code-block:not(:has(pre)), .markdown pre:empty, .code-block:has(> pre > code:empty) { display: none !important; }
.markdown > .md-gap:first-child, .markdown > .md-gap:last-child, .markdown > .md-gap + .md-gap { display: none; }
.action-push-on { margin-left: 6px; }

/* ---- Round 7 look pass (owner, 29 Oct) --------------------------------------
   The foot of a page, once for every screen. A level's own sea keeps the room
   above the bottom bar, so a page ends in its own colour: the view adds no room
   of its own (it showed as a pale band above the bar), and a page whose ask box
   sits in its flow needs only a little air above it. */
:is(#work-view, #life-view, #sean-view, #home-view, #estate-view):has(> .hz-level) { padding-bottom: 0; }
.hz-level:is(.hw-work, .hl-place, .sv-level) > .hz-sea { padding-bottom: 36px; }
@media (min-width: 1100px) { .sn-level .hz-sea { padding-bottom: 150px; } }
/* Every bottom bar fades the page into itself, so a line passing under it
   dissolves instead of being cut through. Its colour reaches the screen's
   edges without painting over the fade. */
.ap-dock { margin-top: 0; box-shadow: none; clip-path: none; border-image: conic-gradient(var(--sea2) 0 0) fill 0 / / 0 100vmax; }
.hm-ask { box-shadow: none; }
.ap-dock::before, .hm-ask::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; pointer-events: none;
  background: linear-gradient(transparent, var(--sea2));
}
@media (max-width: 1099px) {
  /* Home fades in under the top bar only; the ask bar does its own fade. */
  #home-view { -webkit-mask-image: linear-gradient(transparent, #000 56px); mask-image: linear-gradient(transparent, #000 56px); }
  .home-view .hz-level.is-phone .hz-sentence { padding-top: 32px; }
}
/* Home's small moons: each label centred under its moon, like Work and Life. */
.hm-body.is-moon .hm-lab { width: min(150px, 40vw); max-width: 40vw; }
.hm-home .hm-field + .hm-push { margin-top: 0; }

/* The notifications offer: a quiet second choice, never the screen's main
   button. Its close button is a full tap wide, level with the first line. */
.sn-push .push-offer, .hm-push .push-offer { padding-right: 44px; }
.push-dismiss { top: 0; right: 0; width: 44px; height: 44px; border-radius: 22px; }
.sn-push .push-offer .push-offer-actions, .hm-push .push-offer .push-offer-actions { align-self: flex-start; }
.sn-push .push-offer .hz-btn, .hm-push .push-offer .hz-btn, .sn-push .push-offer button.secondary, .hm-push .push-offer button.secondary,
#actions-view .action-push-on { background: none; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); }
#actions-view .action-push-note { flex-direction: column; align-items: flex-start; }
#actions-view .action-push-on { margin: 0; }

/* SEAN: the "Since you last looked" tick sits on the column's edge, like the
   heading and the card; "All 64" sits by its chevron. */
.sn-place .hz-fold { padding-left: var(--pad); }
.sn-ch-h h4 { flex: 1 1 auto; }
.sn-ch-h small { flex: none; }

/* Settings: a row's name stays on one line; its status wraps instead. */
#settings-view .shell-group .hz-plain:has(> .hz-meta:not([hidden])) > .hz-x { flex: 0 0 auto; white-space: nowrap !important; }
#settings-view .shell-group .hz-plain:has(> .hz-meta:not([hidden])) > .hz-meta { flex: 1 1 auto; min-width: 0; max-width: none; white-space: normal !important; text-align: right; }

/* A job: every row that opens something reads the same; the steer bar's
   button looks like a button. */
.hw-lnk { color: var(--ink); }
.hw-steerbar:not(.has-text) button { background: none; box-shadow: inset 0 0 0 1.5px var(--hair3); color: var(--ink); }

/* Work: Old jobs and All projects are two quiet buttons, apart from the rows. */
.hw-work .hw-mores.hw-chips { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 6px var(--pad) 18px; border-top: 0; }
.hw-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 18px; border: 0; border-radius: var(--r-btn); background: var(--raise); box-shadow: var(--shadow-soft); color: var(--ink); font: inherit; font-size: var(--fs-15); cursor: pointer; }
.hw-chip .hw-ic { width: 16px; height: 16px; color: var(--ink3); }

/* Server: the status dot sits on the name's line; everything under the card
   is one list with one line between rows. */
.sv-mrow { align-items: flex-start; }
.sv-mrow > .sv-sun, .sv-mrow > .sv-ok { margin-top: 6px; }
.sv-mrow > svg:last-child { align-self: center; }
.sv-group.sv-rest { padding-top: 0; border-top: 0; }
.sv-rest .sv-fold, .sv-rest .sv-mrow, .sv-rest .sv-mlist .sv-mrow:last-child, .sv-rest .sv-mlist .sv-fold:last-child { border-bottom: 1px solid var(--hair2); }
.sv-rest > :last-child, .sv-rest > .sv-mlist:last-child > :last-child { border-bottom: 0; }

/* Life on a computer: room between the top bar and its first sentence. */
@media (min-width: 1100px) { .hl-place .hz-sky { padding-top: 28px; } }
/* The notice's words take their own height when the card stacks. */
#actions-view .action-push-note p { flex: 0 0 auto; }
/* The fix card ends just under its button. */
.sv-fixgroup .sv-main { margin-bottom: 2px; }
/* On a computer the notifications offer is one row: the words, then its button. */
@media (min-width: 1100px) {
  .sn-push .push-offer, .hm-push .push-offer { flex-direction: row; align-items: center; gap: 16px; }
  .sn-push .push-offer p, .hm-push .push-offer p { flex: 1 1 auto; }
  .sn-push .push-offer .push-offer-actions, .hm-push .push-offer .push-offer-actions { align-self: center; }
  #actions-view .action-push-note { flex-direction: row; align-items: center; }
  #actions-view .action-push-note p { flex: 1 1 auto; }
}
/* SEAN on a computer: the whole place, the notifications line included, sits
   above the ask bar when it opens (nothing under the bar's fade). */
@media (min-width: 1100px) {
  .sn-place .hz-sky { padding-bottom: 0; }
  .sn-place .sn-deck { margin-top: 12px; }
  .sn-place .hz-fold { margin-top: 2px; }
  .sn-place .sn-chats { margin-top: 8px; padding-top: 0; }
  .sn-place .sn-tools { margin-top: 10px; }
  .sn-place .sn-push { margin-top: 10px; }
}
/* Home on a phone: the leaked code's one button, under the sentence that names it. */
.home-view .hz-level.is-phone .hm-lead-act { margin: 12px 0 0; padding: 0 20px; }
.home-view .hz-level.is-phone .hz-sky:has(.hm-lead-act) { padding-bottom: 12px; }
.home-view .hz-level.is-phone .hz-sky:has(.hm-lead-act) .hz-sentence { padding-top: 24px; }
/* SEAN's deck: "Skip to next" is its own clear row under the card, not a tab
   tucked behind it (it read as disabled). */
.sn-peek { width: 100%; margin: 8px 0 0; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--hair); }
.sn-peek .sn-pk-n { color: var(--ink); }

/* ==========================================================================
   The bubble language (owner, 31 Oct: "polish ai hub around bubbles").
   Home's soft round bodies are the reference. Every other place keeps its
   lists as lists, but its groups sit in one soft bubble, its folds are the
   same closed line Home uses ("3 things from your chats still to do ›"),
   its buttons are soft pills, and the sun dot marks only what needs Ben.
   Tokens: --bubble-bg, --bubble-shadow, --bubble-r, --fold-r (tokens.css).
   ========================================================================== */

/* The horizon between the top and the list is Home's soft line, never a hard band. */
.hz-edge { position: relative; height: 0; z-index: 2; }
.hz-edge::before { content: ""; position: absolute; left: 0; right: 0; top: -.5px; height: 1px; background: linear-gradient(90deg, transparent, var(--hair) 16%, var(--hair) 84%, transparent); }
.hz-sky + .hz-edge + .hz-sea { background: linear-gradient(var(--sky), var(--sea) 120px, var(--sea2)); }

/* A group: one soft bubble holding its rows (hairlines only between rows). */
.hw-tide-rows, .hw-chat-rows, .hw-lanes.is-progress, .hw-links,
#actions-view .action-flat > .action-list, #actions-view .fold .action-list,
.sv-rest, #settings-view .st-group:not(.is-single), .hl-block .hl-list,
#project-view .project-selfdev, #project-view .project-chat-list, #project-view .nl-list:not([hidden]),
.shell-group {
  margin-left: 0; margin-right: 0; padding: 4px 18px; border: 0; border-radius: var(--bubble-r);
  background: var(--bubble-bg); box-shadow: var(--bubble-shadow);
}
.hw-tide-rows:empty, .hw-chat-rows:empty, #project-view .nl-list:empty { display: none; }
.hw-tide-rows { margin-top: 22px; padding-top: 2px; padding-bottom: 2px; }
.hw-tide .tj { border-bottom-color: var(--hair2); }
.hw-tide .tj-t { font-size: var(--fs-16); }
.hw-chat-rows .hz-plain:last-child, .hw-links .hw-lnk:first-child { border: 0; }
.hw-chat-rows .hz-plain:last-child { border-bottom: 0; }
.hw-lanes.is-progress { margin-top: 4px; padding-top: 0; padding-bottom: 0; }
.hw-links { margin-top: 12px; padding-top: 0; padding-bottom: 0; }
.hw-lnk.hw-helpers { margin-top: 12px; padding: 0 18px; border: 0; border-radius: var(--fold-r); background: var(--raise); box-shadow: var(--shadow-soft); }

/* A label over a group is quiet, like Home's small words. */
.hw-work .hw-chats .hz-label, .hl-place .hl-seclabel, #project-view .screen-section-head h2 {
  padding: 22px 4px 8px; font-size: var(--fs-14); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--ink3);
}
.hl-place .hl-seclabel { padding-left: calc(var(--pad) + 4px); }

/* A closed line: Home's "3 things from your chats still to do ›" row. */
.hw-fold, #actions-view .fold, #project-view .project-progress > .fold, #project-view details.fold.selfdev-more {
  margin: 12px 0 0; border: 0; border-radius: var(--fold-r); background: var(--raise); box-shadow: var(--shadow-soft);
}
.hw-fold > summary, #actions-view .fold > summary, #project-view .project-progress > .fold > summary {
  min-height: 52px; padding: 0 16px; color: var(--ink2); font-size: var(--fs-15); font-weight: var(--fw-regular);
}
.hw-fold[open], #actions-view .fold[open] { padding-bottom: 6px; }
.hw-fold[open] .hz-list { padding: 0 16px 6px; }
.hw-fold .hz-row { padding-left: 0; }
.hz-more, .hl-more, .sv-fold.is-closed-line {
  min-height: 52px; margin: 12px 0 0; padding: 0 16px; border: 0; border-radius: var(--fold-r);
  background: var(--raise); box-shadow: var(--shadow-soft); color: var(--ink2); font-size: var(--fs-15);
}
.hw-chats .hz-more, .hl-more { width: 100%; justify-content: space-between; }
.hl-more { width: calc(100% - 2 * var(--pad)); margin-left: var(--pad); }

/* Inside a group a fold is just its last row. */
#project-view .project-selfdev details.fold.selfdev-more { margin: 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--hair2); }

/* Soft pill buttons everywhere a bordered or underlined one was. */
.nl-done { border: 0; background: var(--raise); box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--hair2); color: var(--ink); }
.hz-why > summary { min-height: 36px; margin: 2px 0; padding: 0 14px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--raise) 70%, transparent); text-decoration: none; color: var(--ink2); }
.hz-decision.is-boxed { background: var(--bubble-bg); box-shadow: var(--bubble-shadow), inset 0 0 0 1px var(--sun-soft); }
.hz-decision.is-boxed .hz-proj { display: flex; align-items: center; gap: 8px; }
.hz-decision.is-boxed .hz-proj::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--sun-soft); }
/* The notifications card's ×: the glyph stays small and quiet, but the whole
   48 px square in the card's corner takes the tap. A round box let taps near
   its corners fall through to the card. */
.push-offer button.push-dismiss { z-index: 1; top: 0; right: 0; width: 48px; height: 48px; min-width: 48px; min-height: 48px; display: grid; place-items: center; padding: 0; border-radius: 0; background: none; -webkit-tap-highlight-color: transparent; }
.sn-push .push-offer, .hm-push .push-offer { padding-right: 48px; }

/* The sun dot: on each row that needs Ben, as on Home's bubbles. */
.hw-tide .tj.wait { padding-left: 22px; }
.hw-tide .tj.wait::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft); }
#actions-view .action-flat > .action-list > .action-row > .hz-plain { position: relative; padding-left: 22px; }
#actions-view .action-flat > .action-list > .action-row > .hz-plain::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft); }
#actions-view .action-row { border-bottom: 1px solid var(--hair2); }
#actions-view .action-list > .action-row:last-child { border-bottom: 0; }
#actions-view .action-list { border-top: 0; }

/* Chat in the bubble language: the Understood line is a soft bubble under
   Ben's message; More, What it did and the Hub's check lines are small soft
   pills with Home's chevron, never bare triangles or underlined links. */
#chat-view .understood-line { justify-content: flex-start; gap: 4px 10px; margin-left: auto; width: fit-content; max-width: 100%; padding: 8px 8px 8px 14px; border-radius: var(--fold-r); background: var(--raise); box-shadow: var(--shadow-soft); text-align: left; }
#chat-view .understood-fix { min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); background: var(--hair2); text-decoration: none; color: var(--ink2); }
#chat-view .assistant-answer-details > summary, #chat-view .hub-note-details > summary, #chat-view .assistant-hub-note > summary, #chat-view .assistant-answer-status > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--raise); box-shadow: var(--shadow-soft); color: var(--ink2); font-size: var(--fs-14); list-style: none; cursor: pointer;
}
#chat-view :is(.assistant-answer-details, .hub-note-details, .assistant-hub-note, .assistant-answer-status) > summary::-webkit-details-marker { display: none; }
#chat-view :is(.assistant-answer-details, .hub-note-details, .assistant-hub-note, .assistant-answer-status) > summary::after {
  content: ""; order: 9; flex: none; width: 7px; height: 7px; margin: 0 2px 0 2px; border-top: 1.6px solid var(--ink3); border-right: 1.6px solid var(--ink3); transform: rotate(45deg); transition: transform .15s;
}
#chat-view :is(.assistant-answer-details, .hub-note-details, .assistant-hub-note, .assistant-answer-status)[open] > summary::after { transform: rotate(135deg); }
#chat-view .answer-shortened-mark { margin-left: 0; font-size: var(--fs-13); color: var(--ink3); }
#chat-view .answer-shortened-mark::before { margin-right: 8px; }
#chat-view .assistant-answer-note { color: var(--ink3); font-size: var(--fs-14); }
#chat-view .work-details-toggle { min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: var(--raise); box-shadow: var(--shadow-soft); color: var(--ink2); }
#chat-view .work-details-word { color: var(--ink2); }
#chat-view .message.hub-note-tests { margin-top: -4px; padding-left: 0; }

/* Settings and accounts: groups are bubbles; a group's resting rows fold under one line. */
#settings-view .st-group:not(.is-single) { padding: 6px 18px 4px; }
#settings-view .st-group .st-head { padding-top: 8px; }
#settings-view .st-group.is-single { padding: 4px 18px; border-radius: var(--fold-r); background: var(--raise); box-shadow: var(--shadow-soft); }
#settings-view .st-group .hz-plain:last-of-type { border-bottom: 0; }
.st-more { border-top: 1px solid var(--hair2); }
.st-more > summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; color: var(--ink2); font-size: var(--fs-16); list-style: none; cursor: pointer; }
.st-more > summary::-webkit-details-marker { display: none; }
.st-more > summary .hz-chev { transition: transform .15s; }
.st-more[open] > summary .hz-chev { transform: rotate(90deg); }
.st-more[open] > .hz-plain:last-child { border-bottom: 0; }
.st-switch-row small:empty { display: none; }
#settings-view .st-acts { padding-bottom: 6px; border-top: 1px solid var(--hair2); }

/* Waiting: the done items sit inside the old items' line, as one plain row. */
#actions-view .fold .fold { margin: 6px 16px 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--hair2); }
#actions-view .fold .fold > summary { padding: 0; }
#actions-view .fold[open] > .action-list { margin: 0 12px 8px; box-shadow: none; }
#actions-view > .status-line { color: var(--ink2); font-size: var(--fs-16); }

/* Server: what needs fixing stays open; everything else is one closed line. */
.sv-sea > .sv-fold.is-closed-line { width: 100%; margin-top: 4px; border-bottom: 0; }
.sv-sea > .sv-group.sv-rest { margin-top: 10px; }

/* Life: the new-list line is a soft closed line; the group is one bubble. */
.hl-block .hl-list { margin: 0 var(--pad); padding: 2px 8px; }
.hl-block .hl-row + .hl-row::before { background: var(--hair2); }
.hw-work .hz-col > .hw-fold { margin: 12px var(--pad) 0; }
#chat-view .work-details-caret { display: none; }
#chat-view .work-details-toggle::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-top: 1.6px solid var(--ink3); border-right: 1.6px solid var(--ink3); transform: rotate(45deg); transition: transform .15s; }
#chat-view .work-details-toggle[aria-expanded="true"]::after { transform: rotate(135deg); }
#chat-view .message-outcome { margin-top: 8px; }
#chat-view .message.hub-note-tests { margin-top: -12px; }

/* Round 2: the rest of each screen joins the bubble language. */
.st-fold > summary.st-head { list-style: none; cursor: pointer; min-height: 52px; padding: 0; align-items: center; }
.st-fold > summary::-webkit-details-marker { display: none; }
.st-fold > summary .hz-chev { margin-left: 8px; transition: transform .15s; }
.st-fold[open] > summary .hz-chev { transform: rotate(90deg); }
#settings-view .st-fold:not([open]) { padding-top: 0; padding-bottom: 0; }
.hw-fold > summary { justify-content: space-between; }
#project-view .project-overview > .screen-rows { padding: 0 18px; border-radius: var(--bubble-r); background: var(--bubble-bg); box-shadow: var(--bubble-shadow); }
#project-view .project-overview > .screen-rows > :last-child { border-bottom: 0; }
#project-view :is(.project-copies, .project-work-folders-wrap) > .fold { padding: 0 16px; border: 0; border-radius: var(--fold-r); background: var(--raise); box-shadow: var(--shadow-soft); }
#project-view :is(.project-copies, .project-work-folders-wrap) > .fold > summary { min-height: 52px; }
#project-view .nav-row-meta.is-attention { color: var(--ink2); }
.hz-why > summary { background: var(--hair2); color: var(--ink); }
.hw-links .hw-lnk, .hw-links .hw-lnk .hz-chev { color: var(--ink); }
.hl-morefold > summary.hl-more { list-style: none; }
.hl-morefold > summary::-webkit-details-marker { display: none; }
.hl-morefold > summary .hl-chev { transition: transform .15s; }
.hl-morefold[open] > summary .hl-chev { transform: rotate(90deg); }
.hl-morefold[open] > .hl-list { margin-top: 10px; }
.hl-block > .hl-list + .hl-morefold > .hl-more { margin-top: 12px; }
#settings-view .st-others > .st-group { margin: 0 0 8px; padding: 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--hair2); }
#settings-view .st-others > .st-group.is-single { padding: 0; border-radius: 0; background: none; box-shadow: none; }
@media (max-width: 800px) { .hw-steer { padding-top: 30px; background: linear-gradient(transparent, var(--sea2) 45%); } }
.sn-chats-row small { display: none; }

/* Project: the changes waiting for Ben are their own bubble; the other changes
   are a closed line under it, not a row inside "need you". */
#project-view .project-selfdev { padding: 0; border-radius: 0; background: none; box-shadow: none; }
#project-view .project-selfdev > .selfdev-change { padding-left: 18px; padding-right: 18px; border-radius: 0; background: var(--raise); }
#project-view .project-selfdev > .selfdev-change:first-child { border-radius: var(--bubble-r) var(--bubble-r) 0 0; padding-top: 6px; }
#project-view .project-selfdev > .selfdev-change:not(:has(+ .selfdev-change)) { border-radius: 0 0 var(--bubble-r) var(--bubble-r); padding-bottom: 6px; box-shadow: var(--bubble-shadow); }
#project-view .project-selfdev > .selfdev-change:first-child:not(:has(+ .selfdev-change)) { border-radius: var(--bubble-r); }
#project-view .project-selfdev > .selfdev-change + .selfdev-change { border-top: 1px solid var(--hair2); }
#project-view .project-selfdev details.fold.selfdev-more { margin: 12px 0 0; padding: 0 16px; border: 0; border-radius: var(--fold-r); background: var(--raise); box-shadow: var(--shadow-soft); }

/* Project: everything that needs nothing from Ben sits under "More about this project ›". */
#project-view .project-more { margin: 4px 0 0; padding: 0 16px; border: 0; border-radius: var(--fold-r); background: var(--raise); box-shadow: var(--shadow-soft); }
#project-view .project-more > summary { min-height: 52px; color: var(--ink2); }
#project-view .project-more > summary .fold-title { font-size: var(--fs-15); }
#project-view .project-more[open] { padding-bottom: 12px; }
#project-view .project-more :is(.project-progress > .fold, .project-copies > .fold, .project-work-folders-wrap > .fold, .screen-rows) { margin: 8px 0 0; padding: 0; border-radius: 0; background: none; box-shadow: none; border-top: 1px solid var(--hair2); }
#project-view .project-chat-list { padding: 4px 8px; }
/* Accounts: the "Other AIs" closed line carries a quiet count on the right. */
.st-others > summary .st-fold-meta { margin-left: auto; margin-right: 8px; color: var(--ink3); font-size: var(--fs-15); }
.st-acct .st-sun { flex: none; width: 9px; height: 9px; margin-right: -18px; margin-left: 4px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--sun-soft); }
