/* The live tree (treelive.js, task_1b22dd428748). It reuses the New tree
   demo's .td- rules in style.css as they are; these are only what's new. */

/* Old profile | Live tree, under the demo's switch on the old Profile. */
.td-toggle + .tl-switch { margin-top: 8px; }
.tl-switch .tl-tag { background: var(--sky-wash, #EEF3FF); color: var(--ink); }

/* Buttons that would change data show, but stay off for now. */
.tl .tl-off, .tl .tl-off:hover, .tl .tl-off:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.tl .tl-off-row { opacity: 0.6; }
.tl .tl-off-row input { cursor: not-allowed; background: transparent; }
.tl .tl-note { margin: 4px 0 0; color: var(--muted); }

/* Each space page's tiles, one column each (the demo sets this inline; the
   live tree keeps to the stylesheet). */
.td.tl .td-spacetiles.tl-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.td.tl .td-spacetiles.tl-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.td.tl .td-spacetiles.tl-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.td.tl .td-spacetiles.tl-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Contacts' search keeps its own height when the list is short. */
.td.tl .tp-contacts > .tp-search { flex: none; }

/* Add it, Not right and Read my website (task_36fcbb603211). A short note
   when something didn't save, on its own line under the buttons. */
.td.tl .td-row-acts { flex-wrap: wrap; }
.td.tl .tl-err { flex-basis: 100%; margin: 4px 0 0; color: var(--ink); }
.td.tl .td-row-acts button:disabled { opacity: 0.6; cursor: progress; }
.td.tl .tl-site-in { width: 100%; margin: 8px 0 0; }
.td.tl .tl-pages { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.td.tl .tl-pages li { margin: 2px 0; overflow-wrap: anywhere; }

/* Home's tiles aren't buttons here. */
.td.tl .tl-knows .pf-k, .td.tl .tl-knows .pf-k:hover { cursor: default; border-color: var(--line); }
.td.tl .tl-knows .pf-k:active { transform: none; }

/* Ticking a task done (tasktick.js, task_4df4a728cc6f). Undo sits where the
   date was; a save that didn't work says so under the row. */
.td.tl .tp-check:disabled { opacity: 0.6; cursor: progress; }
.td.tl .tp-undo { flex: none; padding: 0 4px; min-height: 0; font-size: 13px; }
.td.tl .tp-tick-err { margin: 0 16px 8px 50px; }
.td.tl .tp-tick-err.sub { margin-left: 86px; }
@media (max-width: 760px) { .td.tl .tp-tick-err { margin-left: 16px; } .td.tl .tp-tick-err.sub { margin-left: 44px; } }

/* Passive capture (change 81, 2026-11-06). Added by your AI on Home: calm,
   no count, an Undo per row. Watches on a space page. */
.td.tl .tl-added { display: block; padding: 20px 0 8px; }
.td.tl .tl-added .td-sec-top { padding: 0 24px; margin: 0 0 6px; }
.td.tl .tl-added .td-list { padding: 0 24px; border: 0; background: none; box-shadow: none; gap: 0; }
.td.tl .tl-added .td-list > * + * { border-top: 1px solid var(--line); }
.td.tl .tl-added .tl-added-scroll { max-height: 480px; overflow-y: auto; }
.td.tl .tl-added .td-row-acts .link-btn { color: var(--muted); font-weight: 500; }
.td.tl .td-ok.tl-ai { font-weight: 500; font-size: 12px; color: var(--muted); }
.td.tl .tl-watches .tl-watch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.td.tl .tl-watches .tl-watch + .tl-watch { border-top: 1px solid var(--line); }
.td.tl .tl-watches .tl-watch-t { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.td.tl .tl-watches .tl-watch .link-btn { flex: none; font-size: 13px; color: var(--muted); }
.td.tl .tl-watch-add { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0 16px 16px; flex-wrap: wrap; }
.td.tl .tl-watch-add .tl-watch-l { font-size: 13px; color: var(--muted); }
.td.tl .tl-watch-add .tl-watch-in { flex: 1 1 180px; min-width: 0; }
@media (max-width: 760px) { .td.tl .tl-added .td-sec-top, .td.tl .tl-added .td-list { padding: 0 16px; } .td.tl .tl-watch-add .td-b { min-height: 44px; } }

/* ---- Contacts: A-Z / Recent / Circles (Conner, 2026-11-08) ---- */
.tp-contacts .cx-top { display: flex; align-items: center; gap: 10px; }
.tp-contacts .cx-top .tp-search { flex: 1; min-width: 0; margin: 0; }
.cx-lays { flex: none; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.cx-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; font: 600 13px var(--sans); color: var(--soft, var(--body)); cursor: pointer; }
.cx-chip i { font-style: normal; font-weight: 500; color: var(--lab, var(--muted)); }
.cx-chip:hover { background: var(--hover, rgba(127, 127, 127, 0.08)); }
.cx-chip.on { background: var(--ink); border-color: var(--ink); color: var(--pilltx, var(--on-ink)); }
.cx-chip.on i { color: inherit; opacity: 0.6; }
.cx-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 8px; font: 600 15px var(--tight, var(--sans)); letter-spacing: -0.01em; color: var(--ink); }
.cx-h span { font: 500 12.5px var(--sans); color: var(--lab, var(--muted)); }
.cx-recent { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.cx-rc { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 14px 8px 12px; border: 0; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); text-align: center; cursor: pointer; }
.cx-rc:hover { background: var(--active, var(--card)); }
.cx-rc b { max-width: 100%; font: 600 13px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-rc span:last-child { font: 500 12px var(--sans); color: var(--lab, var(--muted)); }
.tp-letter-h.cx-sub { font: 600 11px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--lab, var(--muted)); }
.tp-prow.cx-row { position: relative; cursor: pointer; }
.cx-open { position: absolute; inset: 0; z-index: 0; border: 0; background: none; cursor: pointer; border-radius: inherit; }
.cx-open:focus-visible { outline: 2px solid var(--sky, #1570EF); outline-offset: -2px; }
.tp-prow.cx-row > :not(.cx-open) { position: relative; z-index: 1; pointer-events: none; }
.tp-prow.cx-row .cx-end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.tp-prow.cx-row .cx-end > a, .tp-prow.cx-row .cx-end > button { pointer-events: auto; }
.cx-when { flex: none; min-width: 64px; text-align: right; font: 500 13px var(--sans); color: var(--lab, var(--muted)); }
.cx-when.late { color: var(--late, #FF5C00); }
.cx-act { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--soft, var(--body)); font: 600 13px var(--sans); text-decoration: none; opacity: 0; }
.tp-prow.cx-row:hover .cx-act, .cx-act:focus-visible { opacity: 1; }
.cx-btn { width: auto !important; min-width: 0 !important; box-sizing: border-box; flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; font: 600 13px var(--sans); color: var(--ink); white-space: nowrap; cursor: pointer; }
.cx-btn:hover:not(:disabled) { background: var(--hover, rgba(127, 127, 127, 0.08)); }
.cx-btn:disabled { color: var(--lab, var(--muted)); cursor: default; }
/* Circles */
.cr-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.tl-shell .cr-board, .cr-board { position: relative; height: 640px; padding: 0; overflow: hidden; }
.cr-in { position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; transform: translate(-50%, -50%); }
.cr-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed var(--line-strong); transform: translate(-50%, -50%); pointer-events: none; }
.cr-ring.r1 { width: 230px; height: 230px; background: color-mix(in srgb, var(--day, #1570EF) 5%, transparent); }
.cr-ring.r2 { width: 410px; height: 410px; }
.cr-ring.r3 { width: 590px; height: 590px; }
.cr-rl { position: absolute; left: 50%; transform: translateX(-50%); padding: 0 8px; background: var(--card); font: 600 10.5px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--lab, var(--muted)); white-space: nowrap; pointer-events: none; }
.cr-rl1 { top: calc(50% - 122px); } .cr-rl2 { top: calc(50% - 212px); } .cr-rl3 { top: calc(50% - 302px); }
.cr-me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: var(--pill, var(--ink)); color: var(--pilltx, var(--on-ink)); display: grid; place-items: center; font: 600 15px var(--tight, var(--sans)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--day, #1570EF) 18%, transparent); }
.cr-h-week { --heat: #12B76A; } .cr-h-two { --heat: var(--day, #1570EF); } .cr-h-month { --heat: #F79009; } .cr-h-long { --heat: var(--late, #FF5C00); }
.cr-p { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 1; }
.cr-p .tp-av { width: 38px; height: 38px; font-size: 14px; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--heat); }
.cr-p.work .tp-av { border-radius: 11px; }
.cr-p small { font: 600 11.5px var(--sans); color: var(--soft, var(--body)); white-space: nowrap; }
.cr-p.sel .tp-av, .cr-p:hover .tp-av { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--heat), 0 0 0 9px color-mix(in srgb, var(--heat) 22%, transparent); }
.cr-tip { position: absolute; z-index: 3; width: 220px; padding: 12px 14px; border-radius: 14px; background: var(--active, var(--card)); box-shadow: var(--shadow); }
.cr-tip b { font: 600 14px var(--tight, var(--sans)); color: var(--ink); }
.cr-tip p { margin: 3px 0 10px; font: 500 12.5px/1.4 var(--sans); color: var(--soft, var(--body)); }
.cr-tip-b { display: flex; gap: 6px; }
.cr-key { position: absolute; left: 16px; top: 14px; display: flex; flex-direction: column; gap: 6px; font: 500 12px var(--sans); color: var(--lab, var(--muted)); }
.cr-key i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; background: var(--heat); }
.cr-key i.sq { width: 8px; height: 8px; border-radius: 3px; background: none; border: 1.5px solid var(--lab, var(--muted)); }
.cr-empty { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; white-space: nowrap; }
.cr-side .cx-gh { padding: 14px 16px 2px; font: 600 15px var(--tight, var(--sans)); color: var(--ink); }
.cr-s { margin: 0 16px 6px; font: 500 12.5px/1.4 var(--sans); color: var(--lab, var(--muted)); }
.cr-side .tp-prow { gap: 10px; }
.cr-side .tp-av { width: 34px; height: 34px; font-size: 13px; }
.cr-side .cx-when { min-width: 0; text-align: left; white-space: nowrap; font-size: 12.5px; }
@media (max-width: 1100px) { .cr-wrap { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .tp-contacts .cx-top { flex-wrap: wrap; }
  .tp-contacts .cx-top .tp-search { flex-basis: 100%; }
  .cx-recent { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-act { display: none; }
  .tl-shell .cr-board, .cr-board { height: 400px; }
  .cr-in { transform: translate(-50%, -50%) scale(0.56); }
  .cr-key { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; right: 16px; }
}

/* A space's path and name stay at the top while it scrolls, and More below
   shows at the bottom edge while there's more (spacecue.js, Conner,
   2026-11-10). Both sit under the top bar (z 3), the sidebar (4), the phone
   bar (30), pop-ups (40 up) and the tour (9000). The cue never takes a tap. */
.td-space > .tl-spacehead { position: sticky; top: 0; z-index: 2; display: flex; flex-direction: column; gap: 12px; margin: -8px 0; padding: 8px 0; }
.td-space > .tl-spacehead.pinned { background: var(--frame, var(--page)); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 1px 0 var(--frameline, var(--line)); }
@media (max-width: 760px) { .td-space > .tl-spacehead { top: 56px; } }
/* No height of its own: it rides the bottom edge and draws upward. */
.td-space > .tl-more { position: sticky; bottom: 0; z-index: 2; height: 0; margin-top: -12px; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s linear 160ms; }
.td-space > .tl-more.on { opacity: 1; visibility: visible; transition: opacity 160ms ease; }
.td-space > .tl-more::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(to bottom, transparent, var(--page)); }
.td-space .tl-more-t { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap; padding: 5px 12px; border-radius: 999px; background: var(--card); color: var(--soft, var(--muted)); box-shadow: var(--shadow, 0 2px 8px rgba(0, 0, 0, 0.08)); font: 500 12.5px/1.3 var(--sans); }
/* Phones: above the tab bar, and clear of Ask Nimbus in its notch. */
@media (max-width: 767px) {
  .frame:has(.td-tabwrap) .td-space > .tl-more { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .frame:has(.td-tabwrap) .td-space > .tl-more::before { height: 72px; }
  .frame:has(.td-tabwrap) .td-space .tl-more-t { bottom: 40px; }
  html.kb-open .frame:has(.td-tabwrap) .td-space > .tl-more { bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .td-space > .tl-more, .td-space > .tl-more.on { transition: none; } }

/* Two-way links between spaces, people and jobs (task_75599d8a1893, links.js).
   One look on the space page, the contact page and the job page. */
.tl-links .td-topic { display: flex; align-items: baseline; gap: 8px; }
.tl-links-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 12px; }
.tl-link-list { display: flex; flex-direction: column; }
.tl-link { width: 100%; display: flex; align-items: baseline; gap: 10px; padding: 8px 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  box-shadow: none; margin: 0; text-align: left; font: inherit; font-size: 14px; color: var(--body); cursor: pointer; min-width: 0; }
.tl-link-list .tl-link:first-child { border-top: 0; }
.tl-link-t { flex: 1 1 auto; min-width: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.tl-link-s { flex: 0 1 auto; min-width: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; text-align: right; }
.tl-link-go { flex: none; color: var(--muted); }
.tl-link:hover .tl-link-t, .tl-link:focus-visible .tl-link-t { text-decoration: underline; }
.tl-link-none { margin: 6px 0 0; }
.wj-box.tl-links { padding-top: 4px; padding-bottom: 4px; }
/* Relationships: typed links on a card and the list under Contacts (relationships.js). */
.rl-card-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; border-top: 1px solid var(--line); min-width: 0; }
.rl-card-list .rl-card-row:first-child { border-top: 0; }
.rl-type { color: var(--muted); font-size: 13px; }
.rl-end { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.rl-sure, .rl-remove { margin-left: auto; display: inline-flex; gap: 10px; }
.rl-form { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; }
.rl-label { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.rl-types { flex-wrap: wrap; }
.rl-who-wrap { max-width: 380px; width: 100%; }
.rl-who { width: 100%; }
.pm-list.rl-who-list, .pm-list.rl-space-list { position: static; margin-top: 6px; max-height: 260px; }
.rl-space-list { max-width: 380px; }
.rl-picked { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.rl-picked b { font-weight: 600; color: var(--ink); }
.rl-saved { margin: 6px 0 0; }
.rl-none { margin: 4px 8px; }
.rl-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.rl-err { margin: 0; color: var(--bad, #b42318); }
@media (max-width: 760px) {
  .tl-links-row { grid-template-columns: 1fr; }
  .tl-link { flex-wrap: wrap; }
  .tl-link-s { text-align: left; flex-basis: 100%; order: 3; }
}

/* SPACE PAGE BESIDE ITS TREE (Conner, 2026-11-16: "Yes, this layout").
   On a space page the sidebar's own spaces tree is a column on the left,
   280px like the open sidebar (wider on big screens), and the page fills
   the rest. The rail is left as it is, minus its copy of the tree while
   the column shows it. Narrow screens keep the page alone. */
@media (min-width: 1101px) {
  .td.tl-shell > .td-grid.tl-spacegrid { display: grid !important; grid-column: 1 / -1 !important; grid-template-columns: 260px minmax(0, 1fr) !important; gap: 24px; align-items: start; }
  .td.tl-shell > .td-grid.tl-spacegrid > .tl-spacecol { grid-column: 1 !important; grid-row: 1 !important; }
  .td.tl-shell > .td-grid.tl-spacegrid > .td-mid { grid-column: 2 !important; grid-row: 1 !important; }
  .tl-spacecol { position: sticky; top: 8px; max-height: calc(100vh - 96px); overflow-y: auto; padding: 0 4px 16px 0; scrollbar-width: none; }
  .tl-spacecol::-webkit-scrollbar { display: none; }
  .rail.shell .sh-spaces-narrow { display: none; }
}
@media (min-width: 1600px) { .td.tl-shell > .td-grid.tl-spacegrid { grid-template-columns: 280px minmax(0, 1fr) !important; } }
@media (min-width: 1920px) { .td.tl-shell > .td-grid.tl-spacegrid { grid-template-columns: 300px minmax(0, 1fr) !important; } }
@media (max-width: 1100px) { .tl-spacecol { display: none; } }

/* The space page's one line of counts, in place of the four tiles. */
.tl-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 4px; color: var(--muted); font-size: 13px; }
.tl-meta .tl-meta-b { color: var(--muted); font-size: 13px; text-decoration: none; }
.tl-meta .tl-meta-b:hover { color: var(--ink); text-decoration: underline; }
.tl-nodesc { color: var(--muted); }
/* Coming up: date, what, and a tag (task, date, or N days late). */
.tl-up { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.tl-up:first-child { border-top: 0; }
.tl-up-d { color: var(--muted); font-size: 12.5px; }
.tl-up-k { color: var(--muted); font-size: 11.5px; padding: 1px 7px; border-radius: 5px; background: var(--chip, rgba(127, 127, 127, 0.12)); white-space: nowrap; }
.tl-up.late .tl-up-d, .tl-up.late .tl-up-k { color: #F04438; }
.tl-copies { color: var(--muted); margin: -4px 0 8px 2px; }
/* On a space page beside its tree, the space's name and its one line show
   (the strip still names the path, so the crumbs stay hidden). */
.tl-shell .tl-spacegrid .td-space > .tl-spacehead { display: block; }
/* The title scrolls away with the page, not pinned (Conner, 2026-11-16):
   the top bar already says where you are. */
.tl-shell .tl-spacegrid .td-space > .tl-spacehead { position: static !important; background: none !important; box-shadow: none !important; margin: 0; padding: 0; }
.tl-shell .tl-spacegrid .td-space > .tl-spacehead > .td-crumbs { display: none; }
.tl-shell .tl-spacegrid .td-space > .tl-spaceline { display: block; margin: 4px 0 0; }
.tl-shell .tl-spacegrid .td-space .td-title { margin: 0; }
/* The tree blends with the page (Conner, 2026-11-16): no card, border or
   shadow around it, and no scroll bar showing. */
.tl-spacecol .td-tree, .tl-spacecol .tl-sidetree { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; backdrop-filter: none !important; }
/* In the tree column, Every account and Your businesses read bigger than
   the spaces under them, not smaller (Conner, 2026-11-16: "I'd rather
   switch it around"). */
.tl-spacecol .tl-ghead, html.dark .tl-spacecol .tl-ghead, .tl-sheet .tl-ghead, html.dark .tl-sheet .tl-ghead { font: 600 15px var(--sans) !important; color: var(--ink) !important; }
.tl-spacecol .tl-gbody .td-name { font-size: 13px; }
.tl-spacecol .tl-gbody .td-row { min-height: 32px; }
/* The space page scrolls (Conner, 2026-11-16: "I cant scroll"). The page
   frame clips anything taller than the screen, so the tree and the page
   each scroll inside their own box, filling the height under the header. */
@media (min-width: 1101px) {
  .td.tl-shell > .td-grid.tl-spacegrid { grid-row: 1 / -1 !important; height: 100%; min-height: 0; align-items: stretch; }
  .td.tl-shell > .td-grid.tl-spacegrid > .td-mid { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 48px; box-sizing: border-box; scrollbar-width: none; }
  .td.tl-shell > .td-grid.tl-spacegrid > .td-mid::-webkit-scrollbar { display: none; }
  /* More below sits on the column's real bottom edge, not 48px up on top of
     its bottom padding, where the page showed under the fade's hard edge
     (Conner, 2026-11-20: "why is there a shadow line"). */
  .td.tl-shell > .td-grid.tl-spacegrid > .td-mid > .tl-more { bottom: -48px; }
  .td.tl-shell > .td-grid.tl-spacegrid > .tl-spacecol { position: static; height: 100%; max-height: none; min-height: 0; overscroll-behavior: contain; box-sizing: border-box; }
  /* The tree scrolls too, scroll bar hidden (Conner, 2026-11-16: "the scroll
     bar needs to be hidden, not off"). The grid's one row is held to the
     grid's height, so a long tree scrolls inside its column instead of
     stretching the row past the screen and being cut off. */
  .td.tl-shell > .td-grid.tl-spacegrid { grid-template-rows: minmax(0, 1fr) !important; }
  .td.tl-shell > .td-grid.tl-spacegrid > .tl-spacecol { overflow-y: auto !important; scrollbar-width: none; }
  .td.tl-shell > .td-grid.tl-spacegrid > .tl-spacecol::-webkit-scrollbar { display: none; }
  /* The tree inside doesn't scroll on its own (the sidebar's styles gave it
     its own scroll area and bar): the column does, with no bar showing. */
  .tl-spacecol .td-tree, .tl-spacecol .tl-sidetree { overflow: visible !important; max-height: none !important; height: auto !important; }
}

/* A NARROWER SIDEBAR (Conner, 2026-11-16: "since we dont need the side task
   bar to be so wide for the space tree, I vote we make it more narrow").
   The tree lives beside the space page now, so the sidebar only holds the
   page list: 224px on a laptop, a little wider on big screens. A phone's
   drawer keeps its own width. */
@media (min-width: 761px) { .rail.shell.open { width: 224px; } }
@media (min-width: 1600px) { .rail.shell.open { width: 240px; } }
@media (min-width: 1920px) { .rail.shell.open { width: 256px; } }
/* The page panel starts where the sidebar ends: --rw (brand-app.css) is
   the open sidebar's width, so it moves with it. */
@media (min-width: 761px) { html .frame:has(> .rail.shell.open) { --rw: 224px; } }
@media (min-width: 1600px) { html .frame:has(> .rail.shell.open) { --rw: 240px; } }
@media (min-width: 1920px) { html .frame:has(> .rail.shell.open) { --rw: 256px; } }


/* A SPACE AT A GLANCE (Conner, 2026-11-16). Four small cards under the
   title (what's inside, coming up, rules, what's new), then the full lists
   folded below, one row each. */
.tl-glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 6px; }
.tl-glance.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .tl-glance { grid-template-columns: minmax(0, 1fr); } }
.tl-gl-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 10px; min-width: 0; }
.tl-gl-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; }
.tl-gl-h h4 { margin: 0; font: 600 14px var(--sans); color: var(--ink); }
.tl-gl-sum { color: var(--muted); font-size: 12px; }
.tl-gl-link, .tl-gl-more { margin-left: auto; color: var(--muted); font-size: 12px; }
.tl-gl-more { display: block; margin: 6px 0 0; }
.tl-gl-row { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 7px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: 400 13.5px var(--sans); text-align: left; }
.tl-gl-row:first-of-type { border-top: 0; }
button.tl-gl-row { cursor: pointer; }
button.tl-gl-row:hover .tl-gl-t { text-decoration: underline; }
.tl-gl-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-gl-s { color: var(--muted); font-size: 12px; white-space: nowrap; }
.tl-gl-d { color: var(--muted); font-size: 12.5px; width: 52px; flex: none; }
.tl-gl-up.late .tl-gl-d, .tl-gl-up.late .tl-gl-s { color: #F04438; }
.tl-gl-big { margin: 4px 0 8px; color: var(--muted); font-size: 14px; }
.tl-gl-big b { color: var(--ink); font: 600 22px var(--sans); }
.tl-gl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tl-gl-chip { border: 0; border-radius: 999px; padding: 3px 10px; background: var(--chip, rgba(127, 127, 127, 0.12)); color: var(--ink); font: 400 12px var(--sans); cursor: pointer; }
.tl-gl-chip.quiet { color: var(--muted); cursor: default; }
.tl-gl-none { margin: 2px 0 6px; color: var(--muted); font-size: 13px; }
.tl-fold { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.tl-fold-h { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 13px 16px; border: 0; background: none; color: var(--ink); font: 500 14px var(--sans); text-align: left; cursor: pointer; }
.tl-fold-c { color: var(--muted); transition: transform .15s; }
.tl-fold.open .tl-fold-c { transform: rotate(90deg); }
.tl-fold-b { padding: 0 12px 12px; }

/* SWITCH SPACES FROM THE TITLE (Conner, 2026-11-16, option B). On a phone or
   tablet the space's name has a ▾ and opens the tree as a sheet from the
   bottom. Wide screens have the column, so no ▾ and no sheet. */
.tl-switch-i { color: var(--muted); font-size: 20px; line-height: 1; margin-left: 4px; }
.tl-sheet-back { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.5); }
.tl-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 72vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  padding: 6px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: var(--card, var(--page)); box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35); }
.tl-sheet::-webkit-scrollbar { display: none; }
.tl-sheet-grab { display: block; width: 44px; height: 5px; min-height: 0; margin: 4px auto 10px; padding: 0; border: 0; border-radius: 3px; background: var(--line); cursor: pointer; }
.tl-sheet .td-tree, .tl-sheet .tl-sidetree { display: block !important; visibility: visible !important; opacity: 1 !important; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; overflow: visible !important; max-height: none !important; height: auto !important; position: static !important; transform: none !important; width: auto !important; }
@media (max-width: 1100px) { .tl-switch { cursor: pointer; } }
@media (min-width: 1101px) { .tl-switch-i, .tl-sheet, .tl-sheet-back { display: none !important; } }
/* The page behind the sheet holds still (Conner, 2026-11-16: "that should
   be fixed in place and the space tree is scrollable only"). */
html.tl-sheet-lock, html.tl-sheet-lock body, html.tl-sheet-lock .stage, html.tl-sheet-lock .stage > main, html.tl-sheet-lock .td-mid { overflow: hidden !important; overscroll-behavior: none !important; }
.tl-sheet-back { touch-action: none; }
.tl-sheet { touch-action: pan-y; -webkit-overflow-scrolling: touch; }

/* SWITCH SPACES FROM THE TOP BAR (Conner, 2026-11-17). On a phone the top
   bar shows the space you're in where the logo was; tapping it opens your
   spaces. The ▾ by the title steps aside there (tablets keep it). */
.phone-space { justify-self: center; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 36px; padding: 4px 14px 4px 10px; border: 0; border-radius: 999px; background: var(--hover, rgba(127, 127, 127, 0.14)); color: var(--ink); font: 600 16px var(--sans); cursor: pointer; }
.phone-space-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-space-c { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { .tl-switch-i { display: none !important; } }

/* The floating Show pop-ups button is gone (Conner, 2026-11-17): it opens
   from Settings now. The button stays in the page, hidden, as the walk's
   handle. */
body .pp-open, html body .pp-open, body:has(.rail.shell) .pp-open { display: none !important; }
