/* ===================================================================
   Brand refresh (Conner, 2026-11-02): the app, on the Live tree's merged
   sidebar. Values copied from the mockups in nimbus-brand-refresh
   (source/app-live-tree, source/mobile-profile). Light and dark share one
   layout; only the tokens change. Everything is scoped to the shell, so
   the older views look as they did.
   =================================================================== */

/* ---- Tokens ---- */
html:has(.rail.shell) {
  --ground: #EEF1F4; --card: #fff; --ink: #0F1115; --soft: #3B4049; --lab: #5E6570;
  --line: rgba(15, 17, 21, 0.07); --frame: rgba(255, 255, 255, 0.62); --frameline: rgba(15, 17, 21, 0.08);
  --pill: #0F1115; --pilltx: #fff; --chip: rgba(255, 255, 255, 0.7); --active: #fff; --hover: rgba(15, 17, 21, 0.05);
  --shadow: 0 0 0 1px rgba(15, 17, 21, 0.05), 0 2px 4px rgba(15, 17, 21, 0.03), 0 14px 34px rgba(20, 32, 56, 0.08);
  --tight: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --day: #1570EF; --late: #FF5C00;
  /* The app's own names read the new ones. */
  --page: var(--ground); --body: var(--soft); --muted: var(--lab); --line-strong: rgba(15, 17, 21, 0.14); --on-ink: var(--pilltx);
  background: var(--ground);
}
html.dark:has(.rail.shell) {
  --ground: #17181B; --card: #1E2024; --ink: #F4F5F7; --soft: #B3B8C1; --lab: #8A909A;
  --line: rgba(255, 255, 255, 0.07); --frame: #121316; --frameline: rgba(255, 255, 255, 0.06);
  --pill: #F4F5F7; --pilltx: #0F1115; --chip: rgba(255, 255, 255, 0.06); --active: #24262B; --hover: rgba(255, 255, 255, 0.05);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.35);
  --day: #6EA6FF; --late: #FF7A45;
  --line-strong: rgba(255, 255, 255, 0.14); --night: #121316;
}
html:has(.rail.shell) body, html.dark:has(.rail.shell) body { background: transparent; color: var(--ink); -webkit-font-smoothing: antialiased; }
.frame:has(> .rail.shell), .frame:has(> .rail.shell) > .stage, .frame:has(> .rail.shell) .stage > main { background: transparent; }

/* ---- Glows: a 520px layer at the top, behind everything ---- */
.frame:has(> .rail.shell) { position: relative; }
.frame:has(> .rail.shell)::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 520px; pointer-events: none;
  background:
    radial-gradient(30% 62% at 88% 14%, rgba(255, 165, 110, 0.80), rgba(255, 199, 154, 0.45) 45%, transparent 75%),
    radial-gradient(30% 66% at 26% 2%, rgba(141, 184, 255, 0.88), rgba(185, 211, 255, 0.48) 45%, transparent 75%),
    radial-gradient(26% 50% at 58% 50%, rgba(130, 218, 175, 0.60), rgba(155, 227, 191, 0.3) 45%, transparent 75%);
  -webkit-mask: linear-gradient(180deg, #000 45%, transparent); mask: linear-gradient(180deg, #000 45%, transparent);
}
html.dark .frame:has(> .rail.shell)::before { opacity: 0.16; }
/* Grain over the glows. */
.frame:has(> .rail.shell) > .stage::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 520px; pointer-events: none;
  background: url(/grain.svg) 0 0 / 260px; mix-blend-mode: overlay; opacity: 0.42;
  -webkit-mask: linear-gradient(180deg, #000 45%, transparent); mask: linear-gradient(180deg, #000 45%, transparent);
}
html.dark .frame:has(> .rail.shell) > .stage::before { opacity: 0.16; }

/* ---- One joined frame: the sidebar and a 52px top bar, with a 24px
   curve where they meet. The frame is a fixed layer cut to an L by three
   mask pieces (the sidebar strip, the top strip, the corner fillet), so
   it follows the sidebar's width at every size. ---- */
@media (min-width: 768px) {
  .frame:has(> .rail.shell) { --rw: 280px; --tb: 52px; }
  .frame:has(> .rail.shell:not(.open)) { --rw: 76px; }
  .frame:has(> .rail.shell) > .stage { padding-top: var(--tb); }
  .frame:has(> .rail.shell)::after {
    content: ""; position: fixed; z-index: 3; inset: 0; pointer-events: none; background: var(--frame);
    -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
    -webkit-mask:
      linear-gradient(#000, #000) 0 0 / var(--rw) 100% no-repeat,
      linear-gradient(#000, #000) 0 0 / 100% var(--tb) no-repeat,
      radial-gradient(circle at 100% 100%, transparent 23.5px, #000 24px) var(--rw) var(--tb) / 24px 24px no-repeat;
    mask:
      linear-gradient(#000, #000) 0 0 / var(--rw) 100% no-repeat,
      linear-gradient(#000, #000) 0 0 / 100% var(--tb) no-repeat,
      radial-gradient(circle at 100% 100%, transparent 23.5px, #000 24px) var(--rw) var(--tb) / 24px 24px no-repeat;
  }
  /* The hairline along the inner edge. */
  .frame:has(> .rail.shell) > .stage::after {
    content: ""; position: fixed; z-index: 3; left: var(--rw); top: var(--tb); right: 0; bottom: 0; pointer-events: none;
    border-top: 1px solid var(--frameline); border-left: 1px solid var(--frameline); border-top-left-radius: 24px;
  }
  html.dark .frame:has(> .rail.shell)::after { -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* The sidebar sits on the frame. */
  .rail.shell, html.dark .rail.shell { position: sticky; z-index: 4; background: transparent; border-right: 0; color: var(--ink); }
}
@media (min-width: 1600px) { .frame:has(> .rail.shell.open) { --rw: 320px; } }
@media (min-width: 1920px) { .frame:has(> .rail.shell.open) { --rw: 360px; } }

/* ---- Top bar: the page's switches and the sample note sit in it ---- */
@media (min-width: 768px) {
  .frame:has(> .rail.shell) .td-pagehead-r { position: fixed; z-index: 5; top: 11px; right: 14px; gap: 6px; }
  /* No room kept for Show pop-ups: it moved to Settings (2026-11-17). */
  .frame:has(> .rail.shell) ~ .pp-open, body:has(.rail.shell) .pp-open { position: fixed; z-index: 6; top: 11px; right: 14px; bottom: auto; left: auto; }
  .frame:has(> .rail.shell) .sample-bar, html.dark .frame:has(> .rail.shell) .sample-bar {
    position: fixed; z-index: 5; top: 0; left: calc(var(--rw) + 8px); height: var(--tb); padding: 0 8px; gap: 10px;
    background: transparent; color: var(--soft); border: 0; font: 400 12.5px var(--sans);
  }
  .frame:has(> .rail.shell) .sample-bar b, .frame:has(> .rail.shell) .sample-bar a { color: var(--ink); }
  .frame:has(> .rail.shell) .sample-bar .sample-go { height: 30px; min-height: 0; padding: 0 13px; border-radius: 999px; font: 600 12.5px var(--sans); }
}
/* Pills: 30px, fully round. */
.frame:has(> .rail.shell) .tl-setup-pill, .frame:has(> .rail.shell) .td-pagehead-r .td-toggle button, body:has(.rail.shell) .pp-open,
html.dark .frame:has(> .rail.shell) .tl-setup-pill, html.dark .frame:has(> .rail.shell) .td-pagehead-r .td-toggle button {
  height: 30px; min-height: 0; padding: 0 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px;
  font: 600 12.5px var(--sans); color: var(--ink); background: var(--chip); border: 0; box-shadow: inset 0 0 0 1px var(--line);
}
.frame:has(> .rail.shell) .td-pagehead-r .td-toggle { gap: 6px; }
.frame:has(> .rail.shell) .tl-setup-dot { width: 7px; height: 7px; background: #12B76A; }
.frame:has(> .rail.shell) .td-pagehead-r .td-tag, html.dark .frame:has(> .rail.shell) .td-pagehead-r .td-tag {
  font: 700 9px var(--sans); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 5px; border-radius: 5px;
  background: rgba(21, 112, 239, 0.12); color: #1570EF;
}
.frame:has(> .rail.shell) .td-pagehead-r .td-toggle button.on, html.dark .frame:has(> .rail.shell) .td-pagehead-r .td-toggle button.on {
  background: var(--pill); color: var(--pilltx); box-shadow: 0 6px 16px rgba(15, 17, 21, 0.16);
}
.frame:has(> .rail.shell) .td-pagehead-r .td-toggle button.on .td-tag, html.dark .frame:has(> .rail.shell) .td-pagehead-r .td-toggle button.on .td-tag { background: var(--pilltx); color: var(--pill); }

/* ---- Sidebar ---- */
.rail.shell.open { padding: 10px 12px; gap: 0; }
.rail.shell .sh-acct, html.dark .rail.shell .sh-acct { height: 44px; padding: 0 10px; gap: 10px; border-radius: 12px; border: 0; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.rail.shell .sh-acct:hover, html.dark .rail.shell .sh-acct:hover { background: var(--card); }
.rail.shell .sh-av { width: 28px; height: 28px; font: 700 11px var(--sans); }
.rail.shell .sh-who b { font: 600 13.5px var(--sans); color: var(--ink); }
.rail.shell .sh-who span, .rail.shell .sh-chev { font-size: 11.5px; color: var(--soft); }
.rail.shell .sh-row { margin: 10px 0 0; gap: 6px; }
.rail.shell .sh-search, html.dark .rail.shell .sh-search { height: 34px; border-radius: 10px; border: 0; padding: 0 8px 0 11px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); }
.rail.shell .sh-search input, html.dark .rail.shell .sh-search input { color: var(--ink) !important; font: 400 13px var(--sans); }
.rail.shell .sh-search input::placeholder { color: var(--soft); }
.rail.shell .sh-search input::-webkit-search-cancel-button { filter: none; }
.rail.shell .sh-search kbd { font: 500 11px var(--sans); padding: 1px 6px; border-radius: 5px; border: 0; box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); }
.rail.shell .sh-collapse, html.dark .rail.shell .sh-collapse { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.rail.shell .sh-collapse:hover, html.dark .rail.shell .sh-collapse:hover { background: var(--active); color: var(--ink); }
.rail.shell .sh-collapse .ico, .rail.shell .sh-collapse .ico svg { width: 16px; height: 16px; }
.rail.shell .rail-group, html.dark .rail.shell .rail-group { margin: 0; padding: 18px 8px 7px; font: 600 10.5px var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--lab); background: none; }
.rail.shell .sh-tabs { gap: 0; }
.rail.shell.open .rail-btn, html.dark .rail.shell.open .rail-btn { height: 31px; min-height: 0; padding: 0 10px; gap: 10px; border-radius: 9px; border: 0; background: transparent; color: var(--ink); box-shadow: none; }
.rail.shell.open .rail-btn:hover, html.dark .rail.shell.open .rail-btn:hover { background: var(--hover); color: var(--ink); }
.rail.shell.open .rail-btn .rail-label, html.dark .rail.shell.open .rail-btn .rail-label { font: 500 13.5px var(--sans); color: inherit; background: none; }
.rail.shell.open .rail-btn.on, html.dark .rail.shell.open .rail-btn.on { background: var(--active); color: var(--ink); box-shadow: var(--shadow); }
.rail.shell.open .rail-btn.on .rail-label { font-weight: 600; }
.rail.shell .rail-btn .ico, .rail.shell .rail-btn .ico svg { width: 16px; height: 16px; color: inherit; }
.rail.shell .rail-btn:disabled, .rail.shell .rail-btn.locked { color: var(--lab); }
.rail.shell .tl-ghead, html.dark .rail.shell .tl-ghead { height: auto; margin: 0; padding: 6px 6px 4px; gap: 6px; font: 500 12px var(--sans); color: var(--soft); }
/* The first group sits right under the Spaces label, no extra gap (Conner, 2026-11-05). */
.rail.shell .sh-spaces > .rail-group, html.dark .rail.shell .sh-spaces > .rail-group { padding-bottom: 2px; }
/* The page's wide-screen layout (1880px+) gives .td-tree a top margin; the sidebar's copy doesn't take it (Conner, 2026-11-05). */
.rail.shell .sh-spaces .tl-sidetree, html.dark .rail.shell .sh-spaces .tl-sidetree { margin-top: 0; }
.rail.shell .sh-spaces .tl-sidetree > .tl-ghead:first-child, html.dark .rail.shell .sh-spaces .tl-sidetree > .tl-ghead:first-child { padding-top: 2px; }
@media (min-width: 768px) { .rail.shell .sh-spaces .tl-sidetree > .tl-ghead:first-child, html.dark .rail.shell .sh-spaces .tl-sidetree > .tl-ghead:first-child { padding-top: 4px; } }
.rail.shell .tl-ghead:hover, html.dark .rail.shell .tl-ghead:hover { background: none; color: var(--ink); }
.rail.shell .tl-ghead .td-chev { width: 14px; color: var(--lab); }
.rail.shell .td-row, html.dark .rail.shell .td-row { height: 26.5px; min-height: 0; padding: 0 6px; gap: 8px; border-radius: 8px; color: var(--ink); }
.rail.shell .td-row:hover, html.dark .rail.shell .td-row:hover { background: var(--hover); color: var(--ink); }
.rail.shell .td-row.sel, html.dark .rail.shell .td-row.sel { background: var(--active); color: var(--ink); box-shadow: var(--shadow); }
.rail.shell .td-row .td-name { font: 400 13px var(--sans); }
.rail.shell .td-n { font: 400 11.5px var(--sans); color: var(--lab); }
.rail.shell .td-chev, html.dark .rail.shell .td-chev { color: var(--lab); }
.rail.shell .td-group, .rail.shell .td-group span, .rail.shell .td-more { color: var(--lab); }
.rail.shell .rail-sample { color: var(--soft); }
.sh-spaces:hover { scrollbar-color: var(--line-strong) transparent; }
.sh-spaces:hover::-webkit-scrollbar-thumb { background: var(--line-strong); }
.rail.shell .sh-menu { box-shadow: var(--shadow); border: 0; border-radius: 12px; }

/* ---- Profile ---- */
@media (min-width: 768px) {
  /* The page keeps the width it had before the refresh (Conner, 2026-11-02):
     only the space above the title changes. */
  .frame:has(> .rail.shell) .stage > main { padding-top: 26px; }
  .tl-shell > .td-pagehead { margin: 0; }
}
.tl-shell .page-title, .tl-shell .td-pagehead .page-title { font: 600 34px/1.08 var(--tight); letter-spacing: -0.025em; color: var(--ink); margin: 0; }
.tl-shell .td-pagesub { margin-top: 6px; font: 400 15px var(--sans); color: var(--soft); }
.tl-shell .td-pagehead .pf-head > .cl, .tl-shell .td-pagehead .pf-head-cloud { display: none; }

/* Stat tiles. */
.tl-shell .tl-knows { gap: 9px; margin-top: 18px; }
.tl-shell .tl-knows .pf-k, html.dark .tl-shell .tl-knows .pf-k, .tl-shell .tl-knows .pf-k:hover {
  padding: 12px 12px 10px; border-radius: 14px; border: 0; background: var(--card); box-shadow: var(--shadow);
}
.tl-shell .tl-knows .pf-k b { display: block; margin-top: 7px; font: 600 22px var(--tight); letter-spacing: -0.025em; color: var(--ink); }
.tl-shell .tl-knows .pf-k > span:not(.cl) { font: 400 12px var(--sans); color: var(--soft); }
.tl-shell .td-quiet { margin: 10px 0 12px; font: 400 12px var(--sans); color: var(--soft); }

/* Every section is one card. */
.tl-shell .td-card-s, html.dark .tl-shell .td-card-s, .tl-shell .td-learned {
  background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--shadow);
}
.tl-shell .tl-pair { grid-template-columns: minmax(0, 1fr) 344px; gap: 12px; margin-top: 0; }
.tl-shell .tl-pair + .tl-pair { margin-top: 12px; }
/* Below 1200px the right column would squeeze the greeting, so the pairs stack. */
@media (max-width: 1199px) { .tl-shell .tl-pair { grid-template-columns: minmax(0, 1fr); } }

.tl-shell .td-greet { min-height: 96px; padding: 18px 22px; display: flex; align-items: center; }
.tl-shell .td-greet-row { gap: 18px; width: 100%; }
.tl-shell .td-greet h3 { font: 600 21px var(--tight); letter-spacing: -0.025em; color: var(--ink); margin: 0; }
.tl-shell .td-greet p { margin: 5px 0 0; font: 400 13.5px var(--sans); color: var(--soft); }
.tl-shell .td-win { min-height: 96px; padding: 0 20px; gap: 12px; align-items: center; }
.tl-shell .td-win p, .tl-shell .td-win p b { font: 600 13.5px var(--sans); color: var(--ink); }
.tl-shell .td-win-go { font: 600 13.5px var(--sans); color: var(--ink); }

/* Ink pills. */
.tl-shell .td-b.primary, html.dark .tl-shell .td-b.primary {
  height: 36px; min-height: 0; padding: 0 18px; border-radius: 999px; border: 0; background: var(--pill); color: var(--pilltx);
  font: 600 13px var(--sans); box-shadow: 0 6px 16px rgba(15, 17, 21, 0.16);
}

/* Recently learned and This week: the same card, header, rows and lines. */
.tl-shell .td-learned, .tl-shell .tl-week { padding: 16px 18px 6px; align-self: start; display: block; }
.tl-shell .td-learned .td-sec-top, .tl-shell .tl-week .td-sec-top { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; padding: 0; }
.tl-shell .td-learned .td-sec-top h4, .tl-shell .tl-week .td-sec-top h4 { margin: 0; font: 600 16px var(--tight); letter-spacing: -0.02em; color: var(--ink); text-transform: none; }
.tl-shell .td-learned .td-sec-top .link-btn, .tl-shell .tl-week .td-sec-top .link-btn { font: 500 12.5px var(--sans); color: var(--soft); }
.tl-shell .td-learned .td-list, html.dark .tl-shell .td-learned .td-list { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; gap: 0; }
.tl-shell .td-learned .td-fr { position: relative; display: block; min-height: 46.5px; padding: 8px 0 8px 16px; border-top: 0; }
.tl-shell .td-learned .td-fr + .td-fr, .tl-shell .tl-week .tl-week-row + .tl-week-row { border-top: 1px solid var(--line); }
.tl-shell .td-learned .td-fr-dot { position: absolute; left: 1px; top: 14px; width: 6px; height: 6px; margin: 0; border-radius: 50%; background: #1570EF; }
.tl-shell .td-learned .td-fr-head { display: flex; align-items: baseline; gap: 12px; width: 100%; min-height: 0; padding: 0; }
.tl-shell .td-learned .td-fr-main { font: 500 13px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tl-shell .td-learned .td-fr-date { flex: none; margin-left: auto; font: 400 11.5px var(--sans); color: var(--soft); }
.tl-shell .td-learned .td-fr-c { display: none; }
.tl-shell .td-learned .td-fr-meta { display: flex; gap: 6px; margin-top: 3px; font: 400 11.5px var(--sans); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-shell .td-learned .td-fr-meta > * { font: inherit; color: inherit; }
.tl-shell .td-learned .td-fr-meta > * + *::before { content: "·"; margin: 0 6px 0 0; }
.tl-shell .tl-week-row, html.dark .tl-shell .tl-week-row { display: flex; gap: 12px; width: 100%; height: 46.5px; min-height: 0; padding: 8px 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; }
.tl-shell .tl-week-d, html.dark .tl-shell .tl-week-d { width: 46px; flex: none; font: 700 9.5px/18px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--day); }
.tl-shell .tl-week-d.late { color: var(--late); }
.tl-shell .tl-week-t b { font: 500 13px var(--sans); color: var(--ink); }
.tl-shell .tl-week-t span { font: 400 11.5px var(--sans); color: var(--soft); }

/* ---- Phones: the same ground, glows, cards; an ink tab button ---- */
@media (max-width: 767px) {
  .frame:has(> .rail.shell)::before {
    background:
      radial-gradient(60% 46% at 88% 30%, rgba(255, 170, 118, 0.70), rgba(255, 199, 154, 0.38) 45%, transparent 75%),
      radial-gradient(58% 42% at 4% 8%, rgba(141, 184, 255, 0.75), rgba(185, 211, 255, 0.38) 45%, transparent 75%),
      radial-gradient(50% 34% at 18% 62%, rgba(130, 218, 175, 0.50), rgba(155, 227, 191, 0.25) 45%, transparent 75%);
    -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent);
  }
  .frame:has(> .rail.shell) .phone-bar, html.dark .frame:has(> .rail.shell) .phone-bar { background: transparent; color: var(--ink); border: 0; }
  .frame:has(> .rail.shell) .phone-brand { font: 600 19px var(--tight); letter-spacing: -0.02em; color: var(--ink); }
  .frame:has(> .rail.shell) .phone-menu { color: var(--ink); }
  .frame:has(> .rail.shell) .sample-bar, html.dark .frame:has(> .rail.shell) .sample-bar { background: transparent; color: var(--soft); border: 0; }
  .frame:has(> .rail.shell) .sample-bar b, .frame:has(> .rail.shell) .sample-bar a { color: var(--ink); }
  .frame:has(> .rail.shell) .stage > main { padding: 14px 16px 120px; }
  .tl-shell .page-title { font-size: 30px; line-height: 1.1; }
  .tl-shell .td-pagesub { font-size: 15px; line-height: 1.4; }
  .tl-shell .tl-knows { gap: 5px; margin-top: 16px; }
  .tl-shell .tl-knows .pf-k, html.dark .tl-shell .tl-knows .pf-k { padding: 9px 0 7px; border-radius: 12px; text-align: center; }
  .tl-shell .tl-knows .pf-k b { margin-top: 4px; font-size: 14.5px; letter-spacing: -0.02em; }
  .tl-shell .tl-knows .pf-k > span:not(.cl) { font-size: 9.5px; }
  .tl-shell .td-quiet { margin: 13px 0 12px; }
  .tl-shell .td-card-s, .tl-shell .td-learned { border-radius: 18px; }
  .tl-shell .td-greet { padding: 20px 18px; }
  .tl-shell .td-greet h3 { font-size: 21px; line-height: 1.2; }
  .tl-shell .td-greet p { margin-top: 6px; font-size: 14px; line-height: 1.4; }
  .tl-shell .td-greet .td-b.primary { height: 42px; padding: 0 24px; font-size: 14.5px; box-shadow: 0 8px 20px rgba(15, 17, 21, 0.16); }
  .tl-shell .td-win { min-height: 0; padding: 14px 16px; }
  .tl-shell .td-win p, .tl-shell .td-win p b { font: 500 14.5px/1.35 var(--sans); }
  .tl-shell .td-win-go { font-size: 14px; }
  /* On a phone the list's header sits above its card, as in the mockup. */
  .tl-shell .td-learned, html.dark .tl-shell .td-learned { padding: 0; background: none; box-shadow: none; }
  .tl-shell .td-learned .td-sec-top { margin: 26px 0 12px; padding: 0 4px; }
  .tl-shell .td-learned .td-sec-top h4 { font-size: 18px; }
  .tl-shell .td-learned .td-sec-top .link-btn { font-size: 14px; }
  .tl-shell .td-learned .td-list, html.dark .tl-shell .td-learned .td-list { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
  .tl-shell .td-learned .td-fr { height: auto; padding: 14px 30px; }
  .tl-shell .td-learned .td-fr-dot { left: 14px; top: 22px; }
  .tl-shell .td-learned .td-fr-main { white-space: normal; font: 500 14px/1.38 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tl-shell .td-learned .td-fr-date { font-size: 12.5px; }
  .tl-shell .td-learned .td-fr-c { display: inline; color: #9AA1AB; }
  .tl-shell .td-learned .td-fr-meta { margin-top: 5px; font-size: 12px; }
  .tl-shell .tl-week { margin-top: 12px; }
  /* Tab bar: frosted, the picked tab an ink circle with an orange count. */
  .frame:has(> .rail.shell) ~ * .pb-bar, .frame:has(> .rail.shell) .pb-bar, html.dark .frame:has(> .rail.shell) .pb-bar {
    height: calc(84px + env(safe-area-inset-bottom)); padding-top: 10px; border-top: 0; -webkit-mask: none; mask: none;
    background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 -1px 0 rgba(15, 17, 21, 0.05), 0 -10px 30px rgba(20, 32, 56, 0.06);
  }
  html.dark .frame:has(> .rail.shell) .pb-bar { background: rgba(30, 32, 36, 0.78); box-shadow: 0 -1px 0 var(--line); }
  .frame:has(> .rail.shell) .pb-tab { color: var(--soft); padding-top: 0; }
  .frame:has(> .rail.shell) .pb-tab.on .pb-label, html.dark .frame:has(> .rail.shell) .pb-tab.on .pb-label { color: var(--ink); font-weight: 600; }
  .frame:has(> .rail.shell) .pb-bubble, html.dark .frame:has(> .rail.shell) .pb-bubble {
    width: 54px; height: 54px; bottom: calc(52px + env(safe-area-inset-bottom)); background: #0F1115; color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 10px 24px rgba(15, 17, 21, 0.22);
  }
  html.dark .frame:has(> .rail.shell) .pb-bubble { box-shadow: 0 0 0 4px var(--ground), 0 10px 24px rgba(0, 0, 0, 0.4); }
  .frame:has(> .rail.shell) .pb-badge { min-width: 20px; height: 20px; border-radius: 10px; background: #FF5C00; font: 700 11px/20px var(--sans); box-shadow: 0 0 0 2px #fff; }
  .frame:has(> .rail.shell) .pb-bubble .pb-badge { top: -3px; right: -5px; }
}

/* ---- Sizes the mockup sets (icons, rows, nav type) ---- */
.rail.shell.open .rail-btn, html.dark .rail.shell.open .rail-btn { font: 500 13.5px var(--sans); }
.rail.shell.open .rail-btn .rail-label, html.dark .rail.shell.open .rail-btn .rail-label { font-weight: 500; }
.rail.shell.open .rail-btn.on, .rail.shell.open .rail-btn.on .rail-label { font-weight: 600; }
.tl-shell .tl-knows .pf-k { gap: 0; }
.tl-shell .tl-knows .pf-k .cl { --cl: 20px !important; }
.tl-shell .td-greet .td-greet-cloud .cl { --cl: 50px !important; }
.tl-shell .td-win .cl { --cl: 28px !important; }
.tl-shell .td-learned .td-fr-head, .tl-shell .td-learned .td-fr-main, .tl-shell .td-learned .td-fr-meta,
.tl-shell .tl-week-t b, .tl-shell .tl-week-t span { line-height: normal; }
.tl-shell .td-learned .td-fr:not(:has(.td-ok)) { height: 46.5px; }
.tl-shell .td-learned .td-fr-meta { margin-top: 2px; }
@media (max-width: 767px) { .tl-shell .td-learned .td-fr:not(:has(.td-ok)) { height: auto; } }
@media (min-width: 768px) { .tl-shell .td-greet { padding-top: 14px; padding-bottom: 14px; } }
/* The page's own scroll bar shows only on hover, as the sidebar's does. */
.tl-shell .td-mid { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.tl-shell .td-mid:hover { scrollbar-color: var(--line-strong) transparent; }
.tl-shell .td-mid::-webkit-scrollbar { width: 6px; }
.tl-shell .td-mid::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.tl-shell .td-mid:hover::-webkit-scrollbar-thumb { background: var(--line-strong); }
.tl-shell .td-learned .td-fr-body { display: block; min-width: 0; }
@media (max-width: 767px) {
  .tl-shell .td-learned .td-fr-head { align-items: flex-start; }
  .tl-shell .td-learned .td-fr-txt { display: block; min-width: 0; }
  .tl-shell .tl-pair-b { margin-top: 0; }
  .tl-shell .td-learned .td-sec-top { margin-top: 14px; }
  /* The phone's top bar: the ink tile and the name, on the glow. */
  /* The same mark as the sidebar's (2026-11-04): the cloud and its line, no tile. */
  .frame:has(> .rail.shell) .phone-bar .rail-mark, html.dark .frame:has(> .rail.shell) .phone-bar .rail-mark { width: auto; height: auto; border-radius: 0; background: none; }
  .frame:has(> .rail.shell) .phone-bar .rail-mark .cl-body, .frame:has(> .rail.shell) .phone-bar .rail-mark .cl-shadow { fill: var(--ink); }
  .frame:has(> .rail.shell) .phone-bar .rail-mark .cl-eyes rect { fill: var(--ground); }
  .frame:has(> .rail.shell) .phone-name, html.dark .frame:has(> .rail.shell) .phone-name { font: 600 19px var(--tight); letter-spacing: -0.02em; color: var(--ink); }
}
.tl-shell .td-learned .td-fr-head { margin: 0; }
.tl-shell .td-sec-top .link-btn { min-height: 0; padding: 0; }
@media (max-width: 767px) {
  .frame .tl-shell .td-learned .td-fr { padding: 14px 30px; }
  .frame .tl-shell .tl-pair + .tl-pair-b { margin-top: 0; }
}
.tl-shell .td-statrow { gap: 0; }
@media (max-width: 767px) {
  /* In dark the ink circle is the light pill, its cloud dark. */
  html.dark .frame:has(> .rail.shell) .pb-bubble { background: var(--pill); color: var(--pilltx); }
  html.dark .frame:has(> .rail.shell) .pb-bubble .cl-body { fill: var(--pilltx); }
  html.dark .frame:has(> .rail.shell) .pb-bubble .cl-eyes rect { fill: var(--pill); }
}
/* Collapsed sidebar: the same ink icons on the frame. */
.rail.shell:not(.open) .rail-btn, html.dark .rail.shell:not(.open) .rail-btn { color: var(--ink); background: transparent; border: 0; box-shadow: none; border-radius: 9px; }
.rail.shell:not(.open) .rail-btn:hover, html.dark .rail.shell:not(.open) .rail-btn:hover { background: var(--hover); color: var(--ink); }
.rail.shell:not(.open) .rail-btn.on, html.dark .rail.shell:not(.open) .rail-btn.on { background: var(--active); color: var(--ink); box-shadow: var(--shadow); }
.rail.shell:not(.open) .sh-acct { width: 44px; justify-content: center; padding: 0; }

/* ---- No purple on the Live tree. Purple (#7A5AF8) is still the skills
   color Datum keeps, so here it shows amber in CSS: the token, cloud fills
   the JS writes as attributes, and colors it sets inline. Amber, not blue,
   so Skills never look like Facts (round 4, Conner, 2026-11-03). The week
   color stays blue. ---- */
html:has(.rail.shell) { --purple: #F59E0B; }
html:has(.rail.shell) .td { --c-week: #1570EF; }
html:has(.rail.shell) [fill="#7A5AF8" i] { fill: #F59E0B; }
html:has(.rail.shell) [style*="rgb(122, 90, 248)"] { color: #F59E0B !important; border-color: #F59E0B !important; }
html:has(.rail.shell) [style*="background: rgb(122, 90, 248)"], html:has(.rail.shell) [style*="background-color: rgb(122, 90, 248)"] { background: #F59E0B !important; }
/* Nimbus's own color is near-black: in dark mode its dot and swatch get a
   light ring so they're still seen. */
html.dark .colors-box .st-dot, html.dark .colors-box .sw button { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55); }

/* ---- Phones: the menu that slides in takes the new surface too. It kept
   the old black, so the new ink text vanished in dark (Conner,
   2026-11-02). ---- */
@media (max-width: 767px) {
  html:has(.rail.shell) .rail.shell, html.dark:has(.rail.shell) .rail.shell { background: var(--ground); color: var(--ink); border-right: 1px solid var(--frameline); }
  html.dark:has(.rail.shell) .rail.shell { background: var(--frame); }
  .rail.shell .rail-close, html.dark .rail.shell .rail-close { color: var(--ink); background: transparent; border: 0; box-shadow: none; }
  /* The Show pop-ups pill steps aside while the menu is open. */
  body:has(.rail.shell.drawer) .pp-open { display: none; }
}
/* The view switch in the phone menu, in the top bar's pill style. */
.rail.shell .td-toggle { gap: 6px; }
.rail.shell .td-toggle button, html.dark .rail.shell .td-toggle button {
  height: 30px; min-height: 0; padding: 0 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px;
  font: 600 12.5px var(--sans); color: var(--ink); background: var(--chip); border: 0; box-shadow: inset 0 0 0 1px var(--line);
}
.rail.shell .td-toggle button.on, html.dark .rail.shell .td-toggle button.on { background: var(--pill); color: var(--pilltx); box-shadow: 0 6px 16px rgba(15, 17, 21, 0.16); }
.rail.shell .td-toggle .td-tag { font: 700 9px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 5px; border-radius: 5px; background: rgba(21, 112, 239, 0.12); color: #1570EF; }
.rail.shell .td-toggle button.on .td-tag { background: var(--pilltx); color: var(--pill); }

/* ===================================================================
   Headers match across pages (Conner, 2026-11-02), with Profile as the
   reference: one page header, section titles inside their cards, and the
   same top bar everywhere.
   =================================================================== */
/* The breadcrumb line: a space page shows it above its name; Profile keeps
   the same room empty, so the title, its line and the tiles start at the
   same height on every page. */
.tl-shell.td-at-home > .td-pagehead { padding-top: 22px; }
.tl-shell .td-space > .tl-spacehead > .td-crumbs { display: flex; align-items: center; height: 16px; margin: 0 0 6px; padding: 0; font: 400 12px/16px var(--sans); color: var(--lab); }
.tl-shell .td-space > .tl-spacehead > .td-crumbs .td-crumb, .tl-shell .td-space > .tl-spacehead > .td-crumbs b, .tl-shell .td-space > .tl-spacehead > .td-crumbs span { font: inherit; color: inherit; min-height: 0; padding: 0; }
.tl-shell .td-space > .tl-spacehead > .td-crumbs .td-crumb:hover { color: var(--ink); text-decoration: underline; }
.tl-shell .td-space > .tl-spacehead > .td-crumbs b { font-weight: 500; }
.tl-shell .td-space > .tl-spacehead > .td-crumbs .td-crumb-open { display: none; }
.tl-shell .td-space > .tl-spacehead > .td-title-row, .tl-shell .tp-contact > .tp-hero { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; }
.tl-shell .td-space .td-title { margin: 0; font: 600 34px/1.08 var(--tight); letter-spacing: -0.025em; color: var(--ink); }
.tl-shell .td-title-i { display: inline-flex; flex: none; }
.tl-shell .td-title-i .cl { --cl: 22px !important; }
.tl-shell .td-title-row .td-title-act { margin-left: auto; }
.tl-shell .tl-spaceline { margin: 6px 0 0; }
/* A space's count tiles: Profile's tiles, from the same height. */
.tl-shell .td-spacetiles { gap: 9px; margin: 18px 0 0; }
.tl-shell .td-spacetiles .pf-k, html.dark .tl-shell .td-spacetiles .pf-k, .tl-shell .td-spacetiles .pf-k:hover {
  padding: 12px 12px 10px; border-radius: 14px; border: 0; background: var(--card); box-shadow: var(--shadow); gap: 0;
}
.tl-shell .td-spacetiles .pf-k .cl { --cl: 20px !important; }
.tl-shell .td-spacetiles .pf-k b { display: block; margin-top: 7px; font: 600 22px var(--tight); letter-spacing: -0.025em; color: var(--ink); }
.tl-shell .td-spacetiles .pf-k > span:not(.cl) { font: 400 12px var(--sans); color: var(--soft); }

/* Facts, Rules and Material: each one card, This week's header and rows. */
.tl-shell .td-topicsec, html.dark .tl-shell .td-topicsec {
  display: block; margin: 12px 0 0; padding: 16px 18px 6px; background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--shadow);
}
.tl-shell .td-topicsec .td-sec-top { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; padding: 0; }
.tl-shell .td-topicsec .td-sec-top h4 { margin: 0; font: 600 16px var(--tight); letter-spacing: -0.02em; color: var(--ink); text-transform: none; }
.tl-shell .td-topicsec .td-sec-n { margin-left: 6px; font: 500 12.5px var(--sans); letter-spacing: 0; color: var(--lab); }
.tl-shell .td-topicsec .td-sec-top .link-btn { min-height: 0; padding: 0; font: 500 12.5px var(--sans); color: var(--soft); }
.tl-shell .td-topicsec .td-list, html.dark .tl-shell .td-topicsec .td-list { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; gap: 0; }
.tl-shell .td-topicsec .td-fr { position: relative; display: block; min-height: 46.5px; padding: 8px 0 8px 16px; border-top: 0; }
.tl-shell .td-topicsec .td-fr + .td-fr { border-top: 1px solid var(--line); }
.tl-shell .td-topicsec .td-fr-dot { position: absolute; left: 1px; top: 14px; width: 6px; height: 6px; margin: 0; }
.tl-shell .td-topicsec .td-fr-body { display: block; min-width: 0; }
.tl-shell .td-topicsec .td-fr-head { display: flex; align-items: baseline; gap: 12px; width: 100%; min-height: 0; margin: 0; padding: 0; }
.tl-shell .td-topicsec .td-fr-txt { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.tl-shell .td-topicsec .td-fr-main, .tl-shell .td-topicsec .td-fr-t { font: 500 13px/normal var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tl-shell .td-topicsec .td-fr-s { display: block; font: 400 11.5px/normal var(--sans); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.tl-shell .td-topicsec .td-fr-date { flex: none; margin-left: auto; font: 400 11.5px var(--sans); color: var(--soft); }
.tl-shell .td-topicsec .td-fr-c { display: none; }
.tl-shell .td-topicsec .td-fr-meta { display: flex; gap: 6px; margin-top: 2px; font: 400 11.5px/normal var(--sans); color: var(--soft); white-space: nowrap; overflow: hidden; }
.tl-shell .td-topicsec .td-fr-meta > * { font: inherit; color: inherit; }
.tl-shell .td-topicsec .td-fr-meta > * + *::before { content: "·"; margin: 0 6px 0 0; }

/* The top bar on pages outside Profile: no room taken in the page. */
@media (min-width: 768px) { .frame:has(> .rail.shell) .tl-topbar { margin: 0; } }
@media (max-width: 767px) {
  .frame:has(> .rail.shell) .tl-topbar { display: flex; justify-content: flex-end; margin: 0 0 8px; }
  .tl-shell .td-space .td-title { font-size: 30px; line-height: 1.1; }
  .tl-shell .td-topicsec { border-radius: 18px; }
}
/* The space column already puts 12px between its parts; these take that
   into account so the header lands where Profile's does. */
.tl-shell .td-space > .tl-spacehead > .td-crumbs { margin-bottom: -6px; }
.tl-shell .td-space > .tl-spaceline { margin-top: -6px; }
.tl-shell .td-space > .td-spacetiles { margin-top: 6px; }
.tl-shell .td-space .td-topicsec, html.dark .tl-shell .td-space .td-topicsec { margin-top: 0; }
.tl-shell .td-space > .tl-spacehead > .td-crumbs { gap: 4px; white-space: pre; }
/* Phones: the pinned header's backing runs to the screen's edges (the page
   has 16px each side). Computers name the space in the top strip. */
@media (max-width: 767px) { .tl-shell .td-space > .tl-spacehead { margin: -8px -16px; padding: 8px 16px; } }
/* Space tiles keep Profile's tile width (seven across), however many. */
@media (min-width: 768px) { .td.tl .td-spacetiles[class*="tl-cols-"] { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
/* Connections, Work, Activity, Team and Settings: Profile's title, line and
   spacing, so the title, its line and the first row sit at the same height
   as on Profile and every space. */
.frame:has(> .rail.shell) .stage > main > .page-title {
  margin: 22px 0 0; font: 600 34px/1.08 var(--tight); letter-spacing: -0.025em; color: var(--ink);
}
.frame:has(> .rail.shell) .stage > main > .page-title + .cn-lead { margin: 6px 0 0; font: 400 15px/19px var(--sans); color: var(--soft); }
.frame:has(> .rail.shell) .stage > main > .page-title + .cn-lead + * { margin-top: 18px; }
/* A page with no line under its title keeps that line's room (6 + 19px). */
.frame:has(> .rail.shell) .stage > main > .page-title + :not(.cn-lead) { margin-top: 43px; }
@media (max-width: 767px) { .frame:has(> .rail.shell) .stage > main > .page-title { font-size: 30px; line-height: 1.1; } }

/* ===================================================================
   Wide screens (Conner, 2026-11-02): the content column stops at 1200px,
   centered in the space right of the sidebar, at every width. The sidebar
   and the top bar frame still run edge to edge. Type is rem on a 16px
   root, so nothing shrinks or grows with the screen.
   =================================================================== */
html:has(.rail.shell) { font-size: 16px; }
@media (min-width: 768px) {
  .frame:has(> .rail.shell) .stage > main,
  body:has(.rail.shell) .frame:has(> .rail.shell) .stage > main {
    max-width: calc(1200px + 56px); margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px;
  }
}
/* Two to one: Recently learned and This week, the greeting and the win. */
@media (min-width: 1200px) {
  .tl-shell .tl-pair { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
  .tl-shell .tl-pair + .tl-pair { margin-top: 16px; }
}
/* The count tiles share the row evenly. */
.tl-shell .tl-knows { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
/* Fact text: one line, at most about 720px, so it stays readable. */
.tl-shell .td-learned .td-fr-main, .tl-shell .td-topicsec .td-fr-main, .tl-shell .td-topicsec .td-fr-t { max-width: 720px; }
.tl-shell .tl-week-t b { max-width: 720px; }
/* Sizes in rem: rows 14px, meta 12px, card titles 16px. */
.tl-shell .td-learned .td-fr-main, .tl-shell .td-topicsec .td-fr-main, .tl-shell .td-topicsec .td-fr-t, .tl-shell .tl-week-t b { font-size: 0.875rem; }
.tl-shell .td-learned .td-fr-meta, .tl-shell .td-topicsec .td-fr-meta, .tl-shell .td-topicsec .td-fr-s, .tl-shell .tl-week-t span,
.tl-shell .td-learned .td-fr-date, .tl-shell .td-topicsec .td-fr-date { font-size: 0.75rem; }
.tl-shell .td-learned .td-sec-top h4, .tl-shell .tl-week .td-sec-top h4, .tl-shell .td-topicsec .td-sec-top h4 { font-size: 1rem; }
.tl-shell .td-sec-top .link-btn, .tl-shell .td-topicsec .td-sec-n { font-size: 0.8125rem; }
.tl-shell .tl-week-d { font-size: 0.625rem; }
.tl-shell .page-title, .tl-shell .td-space .td-title, .frame:has(> .rail.shell) .stage > main > .page-title { font-size: 2.125rem; }
.tl-shell .td-pagesub, .frame:has(> .rail.shell) .stage > main > .page-title + .cn-lead { font-size: 0.9375rem; }
.tl-shell .tl-knows .pf-k b, .tl-shell .td-spacetiles .pf-k b { font-size: 1.375rem; }
.tl-shell .tl-knows .pf-k > span:not(.cl), .tl-shell .td-spacetiles .pf-k > span:not(.cl) { font-size: 0.75rem; }
.tl-shell .td-greet h3 { font-size: 1.3125rem; }
.tl-shell .td-greet p, .tl-shell .td-win p, .tl-shell .td-win p b, .tl-shell .td-win-go { font-size: 0.875rem; }
/* Rows grow by the extra point of type. */
.tl-shell .td-learned .td-fr:not(:has(.td-ok)), .tl-shell .tl-week-row { height: auto; min-height: 50px; }
@media (max-width: 767px) {
  .tl-shell .page-title, .tl-shell .td-space .td-title, .frame:has(> .rail.shell) .stage > main > .page-title { font-size: 1.875rem; }
  .tl-shell .tl-knows .pf-k b { font-size: 0.90625rem; }
  .tl-shell .tl-knows .pf-k > span:not(.cl) { font-size: 0.59375rem; }
}

/* ===================================================================
   The top strip (Conner, 2026-11-02): 60px, every control 36px with 12px
   above and below, 12px between controls and 16px from the frame's right
   edge. The frame's 24px inner curve meets the content at 84px.
   =================================================================== */
.sh-strip { display: none; }
@media (min-width: 768px) {
  .frame:has(> .rail.shell) { --tb: 60px; }
  .sh-strip {
    position: fixed; z-index: 6; top: 0; left: var(--rw); right: 0; height: var(--tb);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px) minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 16px 0 24px;
  }
  .sh-strip-l { min-width: 0; overflow: hidden; }
  .sh-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 0.9375rem/1.35 var(--tight); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
  .sh-crumb, html.dark .sh-crumb { min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; color: var(--lab); cursor: pointer; }
  .sh-crumb:hover, html.dark .sh-crumb:hover { background: none; color: var(--ink); }
  .sh-crumb-now { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
  .sh-crumb-sep { color: var(--lab); font-weight: 400; }
  /* Search */
  .sh-q { justify-self: center; width: 100%; max-width: 480px; }
  .sh-q-box { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 12px; border-radius: 12px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); color: var(--lab); cursor: text; }
  .sh-q-box:focus-within { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 3px rgba(21, 112, 239, 0.22); }
  .sh-q-box .ico, .sh-q-box .ico svg { width: 16px; height: 16px; flex: none; }
  .sh-q-box input, html.dark .sh-q-box input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; font: 400 0.875rem var(--sans); color: var(--ink); }
  .sh-q-box input::placeholder { color: var(--lab); }
  .sh-q-box kbd { flex: none; font: 500 0.6875rem var(--sans); padding: 2px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); color: var(--lab); }
  .sh-q-btn { display: none !important; }
  /* Right side */
  .sh-strip-r { justify-self: end; display: flex; align-items: center; gap: 12px; }
  .sh-chip, html.dark .sh-chip {
    width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 50%; display: inline-grid; place-items: center;
    background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); cursor: pointer;
  }
  .sh-chip:hover, .sh-chip.on, html.dark .sh-chip:hover, html.dark .sh-chip.on { background: var(--active); color: var(--ink); }
  .sh-chip .ico, .sh-chip .ico svg { width: 18px; height: 18px; }
  .sh-need, html.dark .sh-need {
    height: 36px; min-height: 0; padding: 0 6px 0 16px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
    background: var(--pill); color: var(--pilltx); font: 600 0.875rem var(--sans); white-space: nowrap; box-shadow: 0 6px 16px rgba(15, 17, 21, 0.16); cursor: pointer;
  }
  .sh-need:hover, html.dark .sh-need:hover { background: var(--pill); color: var(--pilltx); filter: brightness(1.12); }
  .sh-need:not(:has(.sh-need-n)) { padding: 0 16px; }
  .sh-need-n { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #1570EF; color: #fff; font: 600 0.75rem/24px var(--sans); text-align: center; }
  .sh-ring svg { display: block; color: var(--ink); }
  /* The strip's menus */
  .sh-pop-wrap { position: relative; }
  .sh-pop, html.dark .sh-pop {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 90; min-width: 232px; padding: 6px; border: 0; border-radius: 12px;
    background: var(--card); color: var(--ink); box-shadow: var(--shadow), 0 24px 60px rgba(20, 32, 56, 0.16);
  }
  html.dark .sh-pop { box-shadow: var(--shadow), 0 24px 60px rgba(0, 0, 0, 0.5); }
  .sh-pop-note { margin: 6px 10px 4px; max-width: 220px; font: 400 0.75rem/1.4 var(--sans); color: var(--lab); }
  .sh-pop-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; font: 500 0.8125rem var(--sans); color: var(--soft); }
  .sh-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--hover); }
  .sh-seg button, html.dark .sh-seg button { height: 26px; min-height: 0; padding: 0 10px; border: 0; border-radius: 999px; background: none; box-shadow: none; font: 600 0.75rem var(--sans); color: var(--soft); }
  .sh-seg button.on, html.dark .sh-seg button.on { background: var(--active); color: var(--ink); box-shadow: var(--shadow); }
  /* The account block, inside the sidebar's margins and centered in the strip. */
  .rail.shell.open { padding-top: 12px; }
  .rail.shell .sh-top { height: 36px; }
  .rail.shell .sh-acct, html.dark .rail.shell .sh-acct { height: 36px; padding: 0; gap: 10px; border-radius: 10px; background: none; box-shadow: none; }
  .rail.shell .sh-acct:hover, html.dark .rail.shell .sh-acct:hover { background: none; }
  .rail.shell .sh-av { width: 28px; height: 28px; background: #1570EF; }
  .rail.shell .sh-chev { margin: 0 0 0 auto; width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 8px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); }
  .rail.shell .sh-chev .ico, .rail.shell .sh-chev .ico svg { width: 14px; height: 14px; }
  .rail.shell .sh-menu-h { margin: 4px 10px 4px; font: 600 0.65625rem var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--lab); }
  .rail.shell .sh-biz-av { flex: none; width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; background: var(--hover); color: var(--ink); font: 600 0.6875rem var(--sans); }
  .rail.shell:not(.open) .sh-chev { display: none; }
  .rail.shell > .sh-collapse { align-self: center; margin-top: 8px; }
  /* The strip names the page, so the pages' own headers step aside and
     the content starts right under the frame's curve. */
  .frame:has(> .rail.shell) .stage > main { padding-top: 24px; }
  .tl-shell.td-at-home > .td-pagehead { display: none; }
  .tl-shell .td-space > .tl-spacehead, .tl-shell .td-space > .tl-spaceline { display: none; }
  .tl-shell .td-space > .td-spacetiles, .tl-shell .tl-knows { margin-top: 0; }
  .frame:has(> .rail.shell) .stage > main > .page-title, .frame:has(> .rail.shell) .stage > main > .page-title + .cn-lead { display: none; }
  .frame:has(> .rail.shell) .stage > main > .page-title + .cn-lead + *, .frame:has(> .rail.shell) .stage > main > .page-title + :not(.cn-lead) { margin-top: 0; }
  /* The sample's note sits above the content now, not in the strip. */
  .frame:has(> .rail.shell) .sample-bar, html.dark .frame:has(> .rail.shell) .sample-bar {
    position: static; height: auto; max-width: 1256px; margin: 0 auto; padding: 16px 28px 0; left: auto;
  }
  /* Show pop-ups opens from the ⋯ menu. */
  body:has(.rail.shell) .pp-open { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .sh-strip { grid-template-columns: minmax(0, 1fr) auto auto; }
  .sh-q { width: auto; justify-self: end; }
  .sh-q-box { display: none; }
  .sh-q-btn { display: inline-grid !important; }
  .sh-q.open { position: absolute; z-index: 2; left: 24px; right: 16px; top: 12px; width: auto; max-width: none; }
  .sh-q.open .sh-q-box { display: flex; background: var(--card); }
  .sh-q.open .sh-q-btn { display: none !important; }
}
@media (min-width: 768px) {
  .sh-strip .sh-pop, html.dark .sh-strip .sh-pop { left: auto; right: 0; width: max-content; min-width: 232px; max-width: 280px; }
  .sh-strip .sh-pop .sh-menu-i { white-space: nowrap; }
}
@media (min-width: 768px) and (max-width: 1099px) { .sh-q.open .sh-q-box { width: 100%; box-sizing: border-box; } }
@media (min-width: 768px) and (max-width: 1099px) { .sh-q.open { justify-self: stretch; } }

/* ===================================================================
   Profile details (Conner, 2026-11-02, profile-top mockups).
   =================================================================== */
@media (min-width: 768px) {
  /* 1. One inset panel inside the frame, on every page: a hairline, 24px top
     corners, a faint fill, and a 12px frame gutter on the right. */
  .frame:has(> .rail.shell) { --gut: 12px; }
  .frame:has(> .rail.shell)::after {
    -webkit-mask:
      linear-gradient(#000, #000) 0 0 / var(--rw) 100% no-repeat,
      linear-gradient(#000, #000) 0 0 / 100% var(--tb) no-repeat,
      linear-gradient(#000, #000) right 0 top 0 / var(--gut) 100% no-repeat,
      radial-gradient(circle at 100% 100%, transparent 23.5px, #000 24px) var(--rw) var(--tb) / 24px 24px no-repeat,
      radial-gradient(circle at 0 100%, transparent 23.5px, #000 24px) right var(--gut) top var(--tb) / 24px 24px no-repeat;
    mask:
      linear-gradient(#000, #000) 0 0 / var(--rw) 100% no-repeat,
      linear-gradient(#000, #000) 0 0 / 100% var(--tb) no-repeat,
      linear-gradient(#000, #000) right 0 top 0 / var(--gut) 100% no-repeat,
      radial-gradient(circle at 100% 100%, transparent 23.5px, #000 24px) var(--rw) var(--tb) / 24px 24px no-repeat,
      radial-gradient(circle at 0 100%, transparent 23.5px, #000 24px) right var(--gut) top var(--tb) / 24px 24px no-repeat;
  }
  .frame:has(> .rail.shell) > .stage::after {
    right: var(--gut); border: 1px solid rgba(15, 17, 21, 0.07); border-bottom: 0; border-radius: 24px 24px 0 0;
  }
  html.dark .frame:has(> .rail.shell) > .stage::after { border-color: rgba(255, 255, 255, 0.06); }
  .frame:has(> .rail.shell) > .stage { padding-right: var(--gut); background: rgba(255, 255, 255, 0.22); }
  html.dark .frame:has(> .rail.shell) > .stage { background: rgba(255, 255, 255, 0.015); }
  /* 5. The content: 1200px at most, centered in the panel, 32px each side. */
  .frame:has(> .rail.shell) .stage > main,
  body:has(.rail.shell) .frame:has(> .rail.shell) .stage > main { max-width: calc(1200px + 64px); padding-left: 32px; padding-right: 32px; }
  .frame:has(> .rail.shell) .sample-bar, html.dark .frame:has(> .rail.shell) .sample-bar { max-width: calc(1200px + 64px); padding-left: 32px; padding-right: 32px; }
  /* The strip: the ⋯ chip on the panel's right edge, the breadcrumb on the
     cards' left edge. */
  .sh-strip { padding-right: var(--gut); }
  .sh-strip-l { position: absolute; top: 0; bottom: 0; left: 0; right: var(--gut); display: flex; align-items: center; pointer-events: none; overflow: visible; }
  .sh-strip-l .sh-crumbs { width: 100%; max-width: calc(1200px + 64px); margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
  .sh-strip-l .sh-crumbs > * { pointer-events: auto; }
  .sh-q { grid-column: 2; }
  .sh-strip-r { grid-column: 3; }
  /* 2. Breadcrumb: parents gray, the page in ink, then a quiet status. */
  .sh-crumbs { gap: 10px; }
  .sh-crumb-up, .sh-crumb { color: var(--lab); font-weight: 600; }
  .sh-crumb-now { color: var(--ink); }
  .sh-crumb-sep { color: var(--lab); font: 400 1rem/1 var(--sans); }
  .sh-status { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font: 500 0.8125rem var(--sans); letter-spacing: 0; color: var(--soft); }
  .sh-status i { width: 8px; height: 8px; border-radius: 50%; background: #12B76A; }
  .sh-status-warn i { background: #F5B800; }
  .sh-status-bad i { background: #D92D20; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .sh-q { grid-column: 2; }
  .sh-strip-r { grid-column: 3; }
  .sh-q.open { grid-column: auto; }
}

/* 3. Card headers: title, a counted line, an optional link, a hairline. */
.tl-shell .td-learned, .tl-shell .tl-week, .tl-shell .td-topicsec,
html.dark .tl-shell .td-topicsec { padding: 0 0 8px; overflow: hidden; }
.tl-shell .tl-hd, .tl-shell .td-learned .tl-hd, .tl-shell .tl-week .tl-hd, .tl-shell .td-topicsec .tl-hd {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0; padding: 20px var(--pad-card) 14px; border-bottom: 1px solid var(--line);
}
.tl-shell .tl-hd-t { min-width: 0; }
.tl-shell .tl-hd h4, .tl-shell .td-learned .tl-hd h4, .tl-shell .tl-week .tl-hd h4, .tl-shell .td-topicsec .tl-hd h4 { margin: 0; font: 600 1.0625rem/1.25 var(--tight); letter-spacing: -0.02em; color: var(--ink); }
.tl-shell .tl-sum { margin: 4px 0 0; font: 400 0.8125rem/1.3 var(--sans); color: var(--lab); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-shell .tl-hd .link-btn { flex: none; margin-top: 2px; font: 500 0.8125rem var(--sans); color: var(--soft); }
.tl-shell .td-learned .td-list, .tl-shell .td-topicsec .td-list { padding: 0 var(--pad-card); }
.tl-shell .tl-week > .tl-week-row { width: auto; margin: 0 var(--pad-card); }
.tl-shell .tl-week > .small, .tl-shell .td-learned > .tl-none { margin: 14px var(--pad-card) 6px; }
.tl-shell .td-learned .pt-tabs { padding: 12px var(--pad-card) 4px; }

/* 4. Pill tabs: the active one a soft filled pill, the rest plain text. */
.frame:has(> .rail.shell) .pt-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; border: 0; }
.frame:has(> .rail.shell) .pt-tab, html.dark .frame:has(> .rail.shell) .pt-tab {
  height: 32px; min-height: 0; padding: 0 12px; margin: 0; border: 0; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: none; box-shadow: none; color: var(--soft); font: 500 0.875rem var(--sans);
}
.frame:has(> .rail.shell) .pt-tab::after { display: none; }
.frame:has(> .rail.shell) .pt-tab:hover, html.dark .frame:has(> .rail.shell) .pt-tab:hover { background: var(--hover); color: var(--ink); }
.frame:has(> .rail.shell) .pt-tab.on, .frame:has(> .rail.shell) .pt-tab.on:hover { background: rgba(15, 17, 21, 0.06); color: var(--ink); font-weight: 600; }
html.dark .frame:has(> .rail.shell) .pt-tab.on, html.dark .frame:has(> .rail.shell) .pt-tab.on:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.frame:has(> .rail.shell) .pt-n { font: 500 0.75rem var(--sans); color: var(--lab); background: none; padding: 0; }
/* Connections: room between the tabs and the card under them (Conner, 2026-11-05). */
.frame:has(> .rail.shell) .pt-tabs + :is(.cn-mac, .cn-libwrap, .cn-ais) { margin-top: 14px; }

/* 5. The two cards are the same height. */
.tl-shell .tl-pair-b { align-items: stretch; }
.tl-shell .tl-pair-b > .td-learned, .tl-shell .tl-pair-b > .tl-week { align-self: stretch; }
@media (min-width: 768px) {
  /* The breadcrumb is the strip's left column, starting where the cards do
     (the panel's content is 1264px at most, centered, 32px inside). A long
     status shortens with an ellipsis before it can reach the search. */
  .sh-strip { padding-left: calc(max(0px, (100% - var(--rw) - var(--gut) - 1264px) / 2) + 32px); }
  .sh-strip-l { position: static; display: block; overflow: hidden; pointer-events: auto; }
  .sh-strip-l .sh-crumbs { width: auto; max-width: none; margin: 0; padding: 0; overflow: hidden; }
  .sh-crumbs > * { flex: none; }
  .sh-crumbs > .sh-status { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .sh-status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sh-q { grid-column: 2; }
  .sh-strip-r { grid-column: 3; }
}
/* Search stays put on the right, ending where the cards end, so a long
   breadcrumb has the room to its left and never pushes it (Conner,
   2026-11-02). */
@media (min-width: 1100px) {
  .sh-strip { grid-template-columns: minmax(0, 1fr) auto auto; padding-right: calc(max(0px, (100% - var(--rw) - var(--gut) - 1264px) / 2) + 32px + var(--gut)); }
  .sh-q { grid-column: 3; justify-self: end; width: 360px; max-width: none; }
  /* Needs you, when it shows, sits just left of the search. */
  .sh-strip-r { grid-column: 2; grid-row: 1; }
}

/* ===================================================================
   Desktop zoom (Conner, 2026-11-02): laptops were at 90% (80% was a bit
   small), then "10% more zoomed in" everywhere: 99% on screens 1024 to
   1600px wide, 110% on wider ones. Parts sized to the window's height are
   divided by the same factor so they still reach the bottom of the screen.
   =================================================================== */
@media (min-width: 1024px) and (max-width: 1600px) { html:has(.rail.shell) { --z: 0.99; } }
@media (min-width: 1601px) { html:has(.rail.shell) { --z: 1.1; } }
@media (min-width: 1024px) {
  html:has(.rail.shell) { zoom: var(--z); }
  html:has(.rail.shell) .frame { min-height: calc(100vh / var(--z)); }
  html:has(.rail.shell) .rail.shell { height: calc(100vh / var(--z)); }
  html:has(.rail.shell) .stage:has(.td) { height: calc(100dvh / var(--z)); }
}

/* ===================================================================
   Profile on one grid (Conner, 2026-11-02): one 1200px container, 32px
   each side; every row shares its left and right edges; 16px between rows;
   one card style; nothing runs past a card's padding.
   =================================================================== */
/* The scroll column keeps the container's edges and doesn't clip the cards'
   edge ring: it reaches 8px past them on each side and pads them back. */
.tl-shell .td-mid { padding: 0 8px 24px; margin: 0 -8px; box-sizing: content-box; }
.tl-shell .td-home { display: flex; flex-direction: column; gap: 16px; }
.tl-shell .td-home > *, .tl-shell .tl-pair { margin: 0 !important; }
.tl-shell .td-home > * { min-width: 0; }
/* 6. One card: radius, edge ring (the hairline) and background. */
.tl-shell .tl-knows .pf-k, html.dark .tl-shell .tl-knows .pf-k,
.tl-shell .td-card-s, html.dark .tl-shell .td-card-s, .tl-shell .td-learned, .tl-shell .tl-week, .tl-shell .td-topicsec {
  border-radius: 16px; border: 0; background: var(--card); box-shadow: var(--shadow);
}
/* 2. Stats: equal tiles in one row with 16px gaps, 20px inside, laid out
   the same; the row's edges are the cards' edges. */
.tl-shell .td-statrow { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.tl-shell .tl-knows { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; margin: 0; }
.tl-shell .tl-knows .pf-k { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; height: 100%; padding: 20px; min-width: 0; box-sizing: border-box; }
.tl-shell .tl-knows .pf-k b { margin-top: 10px; line-height: 1.1; }
.tl-shell .tl-knows .pf-k > span:not(.cl) { margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* 5. How up to date: a caption under the tiles, on the right edge. */
.tl-shell .td-statrow .td-quiet { margin: 0; text-align: right; }
/* 3. Greeting and win: the cards row's 2fr / 1fr and 16px gap, same height,
   24px inside, 40px icons, text centered top to bottom. */
.tl-shell .tl-pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.tl-shell .tl-pair > * { min-width: 0; align-self: stretch; }
.tl-shell .td-greet, .tl-shell .td-win { min-height: 0; height: 100%; padding: 24px; display: flex; align-items: center; box-sizing: border-box; overflow: hidden; }
.tl-shell .td-greet-row { display: flex; align-items: center; gap: 16px; width: 100%; min-width: 0; }
.tl-shell .td-greet-t { flex: 1 1 auto; min-width: 0; }
.tl-shell .td-greet .td-greet-cloud .cl, .tl-shell .td-win .cl { --cl: 40px !important; flex: none; }
.tl-shell .td-greet .td-greet-cloud { flex: none; display: inline-flex; }
.tl-shell .td-greet .td-b.primary { flex: none; }
.tl-shell .td-win { gap: 16px; }
.tl-shell .td-win p { flex: 1 1 auto; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.tl-shell .td-win-go { flex: none; white-space: nowrap; }
/* 4. Recently learned and This week: the same rows, and long titles stop
   at the card's padding with an ellipsis. */
.tl-shell .td-learned .td-fr, .tl-shell .tl-week > .tl-week-row { min-height: 56px; padding-top: 10px; padding-bottom: 10px; box-sizing: border-box; }
.tl-shell .tl-week > .tl-week-row { display: flex; align-items: flex-start; gap: 12px; min-width: 0; overflow: hidden; }
.tl-shell .tl-week-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tl-shell .tl-week-t b, .tl-shell .tl-week-t span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-shell .td-learned .td-fr-head, .tl-shell .td-learned .td-fr-txt, .tl-shell .td-learned .td-fr-body { min-width: 0; }
.tl-shell .td-learned .td-fr-main { max-width: 100%; }
/* The day or date column: one size and weight on both cards. */
.tl-shell .td-learned .td-fr-date, .tl-shell .tl-week-d { font: 600 0.6875rem/18px var(--sans); letter-spacing: 0.04em; }
.tl-shell .td-learned .td-fr-date { color: var(--lab); }
.tl-shell .tl-week-d { width: 52px; text-transform: uppercase; }
@media (max-width: 1199px) { .tl-shell .tl-pair { grid-template-columns: minmax(0, 1fr); } }
/* A button only grows to fit its text; the week rows fill the card instead. */
.tl-shell .tl-week > .tl-week-row { width: calc(100% - 48px); max-width: calc(100% - 48px); }

/* ===================================================================
   Cards fix (Conner, 2026-11-03): in dark an older dark-only rule took the
   lists' 24px side padding away, so the rows sat on the card's edge, and
   the rows' 10px corners rounded the divider lines. Same rows in both
   themes now; the invite strip is a card on the same grid.
   =================================================================== */
@media (min-width: 768px) {
  .tl-shell .td-learned .td-list, html.dark .tl-shell .td-learned .td-list,
  .tl-shell .td-topicsec .td-list, html.dark .tl-shell .td-topicsec .td-list { padding: 0 var(--pad-card); }
}
.tl-shell .td-learned .td-fr, .tl-shell .td-topicsec .td-fr { border-radius: 0; }
.tl-shell .td-learned .td-fr:hover, .tl-shell .td-topicsec .td-fr:hover { background: none; }
/* The invite: one card, the cards' edges, 16px above the rest. */
@media (min-width: 768px) {
  .frame:has(> .rail.shell) .stage > main > .pf-invite-row, html.dark .frame:has(> .rail.shell) .stage > main > .pf-invite-row {
    margin: 0 0 16px; padding: 14px 16px 14px 24px; border: 0; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); cursor: pointer;
  }
  .frame:has(> .rail.shell) .pf-invite-row .pf-invite-h { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; }
  .frame:has(> .rail.shell) .pf-invite-row .pf-invite-h b { font: 600 1.0625rem var(--tight); letter-spacing: -0.02em; color: var(--ink); }
  .frame:has(> .rail.shell) .pf-invite-row .pf-space-c { font: 400 0.8125rem var(--sans); color: var(--lab); }
  .frame:has(> .rail.shell) .pf-invite-row .pf-invite-all, html.dark .frame:has(> .rail.shell) .pf-invite-row .pf-invite-all {
    margin-left: auto; height: 32px; min-height: 0; padding: 0 14px; border: 0; border-radius: 999px; background: var(--pill); color: var(--pilltx); font: 600 0.8125rem var(--sans); box-shadow: none;
  }
  .frame:has(> .rail.shell) .pf-invite-row .pf-pt-link, html.dark .frame:has(> .rail.shell) .pf-invite-row .pf-pt-link {
    height: 32px; min-height: 0; padding: 0 8px; border: 0; background: none; box-shadow: none; font: 500 0.8125rem var(--sans); color: var(--soft);
  }
}
/* The page's own scroll bar took a few pixels off the right edge of
   everything under it, so it hides; the page still scrolls the same. */
.tl-shell .td-mid, .tl-shell .td-mid:hover { scrollbar-width: none; }
.tl-shell .td-mid::-webkit-scrollbar { display: none; }
/* An older rule left the column 4px on the right instead of 8. */
.td.tl-shell > .td-grid > .td-mid { padding-left: 8px !important; padding-right: 8px !important; }

/* Needs you panel (Conner, 2026-11-03): its own full-width card under the
   greeting row, so the greeting and the card beside it keep their size.
   Rows inset 24px like the other cards; the full list scrolls past six. */
.tl-shell .tl-needs, html.dark .tl-shell .tl-needs { display: block; overflow: hidden; padding: 20px 0 8px; scroll-margin-top: 16px; }
.tl-shell .tl-needs .td-sec-top { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; padding: 0 24px; }
.tl-shell .tl-needs .td-sec-top h4 { margin: 0; font: 600 1.0625rem var(--tight); letter-spacing: -0.02em; color: var(--ink); text-transform: none; }
.tl-shell .tl-needs .td-sec-top .link-btn { font: 500 13px var(--sans); color: var(--soft); }
.tl-shell .tl-needs .td-list, html.dark .tl-shell .tl-needs .td-list { padding: 0 24px; border: 0; border-radius: 0; background: none; box-shadow: none; gap: 0; }
.tl-shell .tl-needs .td-list > * + * { border-top: 1px solid var(--line); }
.tl-shell .tl-needs .td-list > * { border-radius: 0; }
.tl-shell .tl-needs .tl-needs-scroll { max-height: 384px; overflow-y: auto; }
.tl-shell .tl-needs .td-showall { margin: 2px 24px 0; }
.tl-shell .tl-needs .tl-note { margin: 4px 24px 8px; }

/* ---- Round 4 (agent) (Conner, 2026-11-03) ---- */
/* Activity's 30-day chart: tall enough to read, and a day with nothing
   is a thin line on the floor instead of no bar at all. */
.act-bars { height: 196px; box-sizing: border-box; } /* 168px of bars inside the padding */
.act-bars i { min-height: 2px; }
.act-bars button.empty::before { content: ""; display: block; height: 2px; border-radius: 1px; background: var(--bp-line2, var(--line-strong)); }
/* Team on a plan without one: the way up first, then a dimmed look at the levels. */
.tm-up-lead { margin-bottom: 12px; }
.tm-up-lead .tm-lock { display: inline-block; margin-bottom: 6px; font: 600 12px var(--bp-sans, inherit); letter-spacing: 0.02em; color: var(--bp-lab, var(--muted)); }
.tm-up-lead h2 { font: 600 1.25rem var(--bp-tight, inherit); letter-spacing: -0.02em; color: var(--bp-ink, var(--ink)); }
.tm-locked { opacity: 0.6; pointer-events: none; }
.tm-locked .tm-label { margin-top: 0; }
/* One skill opened from Your work. */
.yw-skill .yw-steps { margin: 0; color: var(--bp-soft, var(--body)); white-space: pre-line; }
.yw-skill ol.jc-list { padding-left: 20px; }

/* ---- Nimbus for Mac: This Mac, Your AIs and Chat (Conner, 2026-11-03:
   "Update any area outdated to the new style"). The same cards, ink pill
   and frosted chips as the rest of the refresh, in light and dark. ---- */
/* Full width, like Settings and the other pages (Conner, 2026-11-12: "this page needs to match the others in arrangement"). */
.tl-shell .mac-page, .frame:has(> .rail.shell) .mac-page { max-width: none; }
.frame:has(> .rail.shell) .mac-page > .box, .frame:has(> .rail.shell) .mc .box,
.frame:has(> .rail.shell) .mc-empty, .frame:has(> .rail.shell) .mc-compose, .frame:has(> .rail.shell) .mc-fact {
  background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--shadow); color: var(--soft);
}
.frame:has(> .rail.shell) .mac-page > .box { padding: 18px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; font: 400 14px var(--sans);
  border-radius: 20px; box-shadow: none; }   /* Settings' cards: rounder, no outline */
.frame:has(> .rail.shell) .mac-page > .box > b, .frame:has(> .rail.shell) .ai-head > b, .frame:has(> .rail.shell) .mc-empty > b,
.frame:has(> .rail.shell) .mc .box > b { font: 600 16px var(--tight); letter-spacing: -0.02em; color: var(--ink); }
.frame:has(> .rail.shell) .mac-page .small, .frame:has(> .rail.shell) .mc .small { font: 400 12.5px/1.45 var(--sans); color: var(--lab); }
.frame:has(> .rail.shell) .ai-row { border-top: 1px solid var(--line); padding: 11px 0; }
.frame:has(> .rail.shell) .ai-row:first-child { border-top: 0; }
.frame:has(> .rail.shell) .ai-who b { font: 600 14px var(--sans); color: var(--ink); }
.frame:has(> .rail.shell) .ai-mark { width: 30px; height: 30px; border-radius: 9px; font: 700 12px var(--sans); box-shadow: inset 0 0 0 1px rgba(15, 17, 21, 0.06); }
html.dark .frame:has(> .rail.shell) .ai-ollama { background: #F4F5F7; border: 0; }
.frame:has(> .rail.shell) .ai-default { font: 600 12px var(--sans); color: #0A7A45; background: rgba(18, 183, 106, 0.12); padding: 6px 11px; }
html.dark .frame:has(> .rail.shell) .ai-default { color: #6CE9A6; background: rgba(18, 183, 106, 0.16); }

/* Buttons: ink pill for the main move, frosted chip for the rest. */
.frame:has(> .rail.shell) :is(.mac-page, .mc) button:not(.link-btn):not(.im-sw):not(.mc-chat-open):not(.mc-chat-x):not(.mc-sched):not(.ag-row):not(.ag-color):not(.at-row):not(.ag-opt),
.frame:has(> .rail.shell) :is(.mac-page, .mc) .button-link {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; margin: 0; padding: 0 15px; box-sizing: border-box;
  border: 0; border-radius: 999px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink);
  font: 600 13px/1 var(--sans); text-decoration: none; transform: none; white-space: nowrap;
}
.frame:has(> .rail.shell) :is(.mac-page, .mc) button:not(.link-btn):not(.im-sw):not(.mc-chat-open):not(.mc-chat-x):not(.mc-sched):not(.ag-row):not(.ag-color):not(.at-row):not(.ag-opt):hover { background: var(--hover); }
.frame:has(> .rail.shell) :is(.mac-page, .mc) button.primary:not(.link-btn):not(.im-sw):not(.mc-chat-open):not(.mc-chat-x):not(.mc-sched):not(.ag-row):not(.ag-color):not(.at-row):not(.ag-opt), .frame:has(> .rail.shell) :is(.mac-page, .mc) .button-link {
  background: var(--pill); color: var(--pilltx); box-shadow: 0 6px 16px rgba(15, 17, 21, 0.16);
}
.frame:has(> .rail.shell) :is(.mac-page, .mc) button.primary:not(.link-btn):not(.im-sw):not(.mc-chat-open):not(.mc-chat-x):not(.mc-sched):not(.ag-row):not(.ag-color):not(.at-row):not(.ag-opt):hover { background: var(--pill); opacity: 0.88; }
.frame:has(> .rail.shell) :is(.mac-page, .mc) button:not(.link-btn):not(.im-sw):not(.mc-chat-open):not(.mc-chat-x):not(.mc-sched):not(.ag-row):not(.ag-color):not(.at-row):not(.ag-opt):disabled { opacity: 0.45; }
.frame:has(> .rail.shell) .mc .link-btn { font: 500 13px var(--sans); color: var(--soft); }

/* Selects: frosted chips with a small arrow. */
.frame:has(> .rail.shell) :is(.mac-page, .mc) select {
  height: 34px; padding: 0 30px 0 12px; border: 0; border-radius: 10px; background-color: var(--chip);
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font: 500 13px var(--sans); -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238A909A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.frame:has(> .rail.shell) .mc .sg-to { display: flex; align-items: center; gap: 8px; font: 500 12.5px var(--sans); color: var(--lab); }
.frame:has(> .rail.shell) .mc .sg-to select { flex: 1; min-width: 0; }

/* The chat: soft card bubbles, an ink pill for what you said. */
.frame:has(> .rail.shell) .mc-bar { gap: 8px; }
.frame:has(> .rail.shell) .mc-pick > .small { font: 500 12.5px var(--sans); }
.frame:has(> .rail.shell) .mc-log .bubble { font: 400 14.5px/1.5 var(--sans); background: var(--card); color: var(--ink); box-shadow: var(--shadow); border-radius: 18px 18px 18px 6px; }
.frame:has(> .rail.shell) .mc-log .msg-you .bubble { background: var(--pill); color: var(--pilltx); box-shadow: none; border-radius: 18px 18px 6px 18px; }
.frame:has(> .rail.shell) .mc-log .msg-err .bubble { color: var(--bp-red, #D92D20); }
.frame:has(> .rail.shell) .mc-empty { padding: 20px 22px; gap: 6px; }
.frame:has(> .rail.shell) .mc-fact { padding: 14px 16px; gap: 10px; border-left: 0; }
.frame:has(> .rail.shell) .mc-fact .text { font: 400 14.5px/1.5 var(--sans); color: var(--ink); }
/* A card's words read like the chat's own messages, not bigger (Conner,
   2026-11-13: same size and weight as chat text, 15px). The buttons
   keep their size. */
.frame:has(> .rail.shell) .ag-left-layout .mc-fact .text { font: 400 15px/1.5 var(--sans); }
.frame:has(> .rail.shell) .mc-fact .actions { display: flex; gap: 8px; margin: 0; }
.frame:has(> .rail.shell) .mc-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px var(--sans); color: #0A7A45; }
.frame:has(> .rail.shell) .mc-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #12B76A; }
html.dark .frame:has(> .rail.shell) .mc-tag { color: #6CE9A6; }
.frame:has(> .rail.shell) .mc-compose { padding: 10px 12px; bottom: 16px; }
.frame:has(> .rail.shell) .mc-compose:focus-within { box-shadow: var(--shadow), 0 0 0 3px rgba(21, 112, 239, 0.22); }
.frame:has(> .rail.shell) .mc-compose .mc-input, html.dark .frame:has(> .rail.shell) .mc-compose .mc-input {
  background: transparent; border: 0; box-shadow: none; outline: none; padding: 4px 2px; font: 400 14.5px/1.5 var(--sans); }
.frame:has(> .rail.shell) .mc-warn { border-radius: 14px; font: 500 13px var(--sans); }

/* A dark .button-link was white on white (ink is near-white there). */
html.dark .button-link { color: var(--on-ink, #0F1115); }
html .cn-mac .button-link.cn-dl-2, html.dark .cn-mac .button-link.cn-dl-2 { color: var(--ink); }   /* the second download is an outline */
html.dark .frame:has(> .rail.shell) .ai-cursor { background: #2A2D33; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* ---- Chat fills the page, with saved chats on the left (Conner,
   2026-11-03: "fill the full area available on the mac app", "include a
   section for saved chats"). Only the messages scroll. ---- */
.mc.mc-full { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 18px; max-width: none; }
.mc-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.mc-full .mc-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 2px 6px 10px 2px; }
.mc-full .mc-log .msg { max-width: min(86%, 760px); }
.mc-full .mc-compose { position: static; flex: none; }
.mc-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.mc-side .mc-new { width: 100%; }
.mc-side-h { margin: 6px 4px 0; font: 600 11.5px var(--sans); letter-spacing: 0.02em; color: var(--lab, var(--muted)); }
.mc-chats { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.mc-side-note { margin: 2px 4px; }
.mc-chat { display: flex; align-items: center; gap: 2px; border-radius: 10px; }
.mc-chat:hover { background: var(--hover, rgba(15, 17, 21, 0.05)); }
.mc-chat.on { background: var(--active, #fff); box-shadow: var(--shadow); }
button.mc-chat-open, button.mc-chat-open:hover { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 6px 8px 10px; border: 0; border-radius: 10px; background: none; box-shadow: none; text-align: left; transform: none; }
.mc-chat-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13.5px var(--sans); color: var(--ink); }
.mc-chat-d { font: 400 11.5px var(--sans); color: var(--lab, var(--muted)); }
button.mc-chat-x, button.mc-chat-x:hover { flex: none; width: 26px; height: 26px; padding: 0; margin-right: 4px; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--lab, var(--muted)); font-size: 17px; line-height: 1; opacity: 0; }
.mc-chat:hover .mc-chat-x, .mc-chat-x:focus-visible { opacity: 1; }
button.mc-chat-x:hover { background: var(--hover, rgba(15, 17, 21, 0.06)); color: var(--ink); }
.mc-chat-ask { flex: 1; padding: 8px 6px 8px 10px; font: 500 13px var(--sans); color: var(--ink); }
.mc-chat-yes { color: var(--bp-red, #D92D20) !important; }
.mc-side-btn { display: none !important; }
.mc-held { margin: 0; color: #9A6700; }
html.dark .mc-held { color: #F5C451; }
/* A computer: exactly the room under the top bar; the page footer steps aside. */
@media (min-width: 768px) {
  .mc.mc-full { height: calc(100dvh - 104px); }
  .stage:has(.mc-full) > footer { display: none; }
  .frame:has(> .rail.shell) .stage > main:has(> .mc-full) { padding-bottom: 16px; }
}
/* Narrow: the chats are a button that opens the list above the chat. */
@media (max-width: 900px) {
  .mc.mc-full { grid-template-columns: minmax(0, 1fr); }
  .mc-side { display: none; }
  .mc-side.open { display: flex; max-height: 45vh; }
  .mc-side-btn { display: inline-flex !important; }
  .mc.mc-full:has(.mc-side.open) { grid-template-rows: auto minmax(0, 1fr); }
}

/* Folders your AI can read (2026-11-03). */
.fd-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; background: #E8F0FE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231570EF' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E") center / 16px no-repeat; }
html.dark .fd-ico { background-color: rgba(110, 166, 255, 0.14); }
.fd-none { margin: 4px 0 2px; }
.fd-foot { display: flex; margin-top: 10px; }
.mc-addfolder { align-self: flex-start; padding-left: 0 !important; }
.mc-row { flex-wrap: wrap; row-gap: 6px; }

/* Schedules (2026-11-03): in the chat's left column, and their editor. */
.mc-side-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.mc-side-row .mc-side-h { margin-top: 0; }
.mc-side-add { font: 600 12.5px var(--sans) !important; color: var(--ink) !important; padding: 2px 4px !important; }
.mc-scheds { display: flex; flex-direction: column; gap: 2px; max-height: 30%; overflow-y: auto; flex: none; }
button.mc-sched, button.mc-sched:hover { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; box-shadow: none; text-align: left; transform: none; }
button.mc-sched:hover { background: var(--hover, rgba(15, 17, 21, 0.05)); }
button.mc-sched.on { background: var(--active, #fff); box-shadow: var(--shadow); }
button.mc-sched.off .mc-chat-t { color: var(--lab, var(--muted)); }
.mc-sched .mc-chat-t::before { content: "◷ "; color: var(--lab, var(--muted)); }
.sc-edit { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); overflow-y: auto; max-width: 720px; }
.sc-head { display: flex; justify-content: space-between; align-items: baseline; }
.sc-head b { font: 600 18px var(--tight, inherit); letter-spacing: -0.02em; color: var(--ink); }
.sc-field { display: flex; flex-direction: column; gap: 6px; }
.sc-field > span { font: 600 12.5px var(--sans); color: var(--lab, var(--muted)); }
.sc-field input[type=text], .sc-field textarea, .sc-time {
  box-sizing: border-box; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: var(--chip, #fff);
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font: 400 14px/1.45 var(--sans); }
.sc-field textarea { resize: vertical; }
.sc-time { width: auto; margin-top: 8px; color-scheme: light dark; }
.sc-days { display: flex; flex-wrap: wrap; gap: 6px; }
.frame:has(> .rail.shell) .mc button.sc-day:not(.link-btn):not(.im-sw):not(.mc-chat-open):not(.mc-chat-x):not(.mc-sched):not(.ag-row):not(.ag-color) { height: 30px; min-width: 46px; padding: 0 10px; border-radius: 999px; }
.frame:has(> .rail.shell) .mc button.sc-day.on:not(.link-btn):not(.im-sw):not(.mc-chat-open):not(.mc-chat-x):not(.mc-sched):not(.ag-row):not(.ag-color) { background: var(--pill); color: var(--pilltx); box-shadow: none; }
.sc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sc-last { align-self: flex-start; padding-left: 0 !important; }

/* ---- Agents (2026-11-03): agents | conversation | details ---- */
.mc.ag-full { grid-template-columns: 248px minmax(0, 1fr); }
.mc.ag-full.with-details { grid-template-columns: 248px minmax(0, 1fr) 300px; }
.ag-side { gap: 8px; }
.ag-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 2px; }
button.ag-row, button.ag-row:hover { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 12px; background: none; box-shadow: none; text-align: left; transform: none; }
button.ag-row:hover { background: var(--hover, rgba(15, 17, 21, 0.05)); }
button.ag-row.on { background: var(--active, #fff); box-shadow: var(--shadow); }
.ag-av { flex: none; display: inline-flex; align-items: center; justify-content: center; }
.ag-av-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--lab, #888); }
.ag-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ag-row-name { font: 600 13.5px var(--sans); color: var(--ink); }
.ag-row-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px var(--sans); color: var(--lab, var(--muted)); }
.ag-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #1570EF; }
.ag-ghead { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; padding-right: 4px; }
.ag-ghead .mc-side-h { margin: 0 4px; }
.ag-gedit { font: 500 11.5px var(--sans) !important; opacity: 0; }
.ag-ghead:hover .ag-gedit, .ag-gedit:focus-visible { opacity: 1; }
.ag-gname { width: 100%; box-sizing: border-box; padding: 7px 10px; border: 0; border-radius: 10px; background: var(--chip, #fff); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font: 500 13px var(--sans); }
.ag-foot { display: flex; gap: 8px; flex: none; }
.ag-foot .primary { flex: 1; }
.frame:has(> .rail.shell) .mc .ag-foot .primary:not(.link-btn):not(.im-sw):not(.mc-chat-open):not(.mc-chat-x):not(.mc-sched):not(.ag-row):not(.ag-color) { width: auto; }
.ag-head { display: flex; align-items: center; gap: 10px; flex: none; padding: 2px 0 4px; }
.ag-head-txt { display: flex; flex-direction: column; min-width: 0; }
.ag-head-txt b { font: 600 15px var(--tight, var(--sans)); letter-spacing: -0.01em; color: var(--ink); }
.ag-panel { min-height: 0; overflow-y: auto; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; }
.ag-details { display: flex; flex-direction: column; gap: 14px; }
.ag-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 4px; text-align: center; }
.ag-hero b { font: 600 17px var(--tight, var(--sans)); color: var(--ink); }
.ag-colors { display: flex; flex-wrap: wrap; gap: 8px; }
button.ag-color, button.ag-color:hover { width: 24px !important; height: 24px !important; min-width: 0; padding: 0 !important; border: 0; border-radius: 50% !important; box-shadow: none !important; }
button.ag-color.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink) !important; }
.ag-c0 { background: #1570EF !important; } .ag-c1 { background: #12B76A !important; } .ag-c2 { background: #F04438 !important; }
.ag-c3 { background: #F79009 !important; } .ag-c4 { background: #7A5AF8 !important; } .ag-c5 { background: #EE46BC !important; }
.ag-c6 { background: #06AED4 !important; } .ag-c7 { background: #667085 !important; } .ag-c8 { background: #111111 !important; }
html.dark .ag-c8 { background: #F4F5F7 !important; }
.ag-details select, .ag-details input[type=text], .ag-details textarea { width: 100%; box-sizing: border-box; }
.ag-scheds { gap: 4px; }
.ag-del { align-self: flex-start; padding-left: 0 !important; }
.mc-tag-rule { color: #7A5AF8 !important; }
.mc-tag-rule::before { background: #7A5AF8 !important; }
.mc-rule { }
@media (max-width: 1180px) {
  .mc.ag-full.with-details { grid-template-columns: 248px minmax(0, 1fr); }
  .mc.ag-full.with-details .ag-panel { position: fixed; z-index: 40; top: 64px; right: 16px; bottom: 16px; width: min(320px, calc(100vw - 32px)); box-shadow: var(--shadow), 0 24px 60px rgba(0, 0, 0, 0.25); }
}
@media (max-width: 900px) {
  .mc.ag-full, .mc.ag-full.with-details { grid-template-columns: minmax(0, 1fr); }
}
.ag-details { position: relative; }
button.ag-close, button.ag-close:hover { position: absolute; top: -6px; right: -6px; width: 30px !important; height: 30px !important; padding: 0 !important; border: 0; border-radius: 50% !important; background: var(--chip) !important; box-shadow: inset 0 0 0 1px var(--line) !important; color: var(--ink) !important; font-size: 18px !important; line-height: 1; }
/* Draft texts (2026-11-03). */
.mc-tag-text { color: #1570EF !important; }
.mc-tag-text::before { background: #1570EF !important; }
.mc-text-to { display: flex; align-items: center; gap: 8px; }
.mc-text-to b { font: 600 14px var(--sans); color: var(--ink); }
.mc-text-to select { flex: 1; min-width: 0; }
.mc-text-body { width: 100%; box-sizing: border-box; resize: vertical; padding: 9px 12px; border: 0; border-radius: 14px; background: rgba(21, 112, 239, 0.08); box-shadow: inset 0 0 0 1px rgba(21, 112, 239, 0.25); color: var(--ink); font: 400 14.5px/1.45 var(--sans); }

/* Agents in the main sidebar while Chat is open (2026-11-03). */
.mc.ag-full.in-rail { grid-template-columns: minmax(0, 1fr); }
.mc.ag-full.in-rail.with-details { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 1180px) { .mc.ag-full.in-rail.with-details { grid-template-columns: minmax(0, 1fr); } }
.sh-spaces.ag-rail { display: flex; flex-direction: column; gap: 6px; }
.ag-rail .ag-list { overflow: visible; flex: none; padding-right: 0; }
.ag-rail button.ag-row { padding: 6px 8px; border-radius: 10px; }
.ag-rail button.ag-row.on { background: var(--active, #fff); box-shadow: var(--shadow); }
.ag-rail .ag-row-name { font-size: 13px; }
.ag-rail .ag-row-last { font-size: 11.5px; }
.ag-rail .mc-side-h, .ag-rail .mc-side-note { margin-left: 8px; margin-right: 8px; }
.ag-rail .ag-foot { margin: 6px 4px 0; }
.ag-rail .ag-foot button, .ag-rail .ag-foot button:hover {
  display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px; border: 0; border-radius: 999px;
  background: var(--chip); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font: 600 12.5px/1 var(--sans); transform: none; }
.ag-rail .ag-foot button.primary { flex: 1; background: var(--pill); color: var(--pilltx); box-shadow: none; }
.ag-rail .ag-gname { margin: 4px 0; }
.mc-text-num { width: 100%; box-sizing: border-box; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--chip, #fff); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font: 400 13.5px var(--sans); }

/* Steps an agent took, streaming, Save all (2026-11-03). */
.mc-steps { display: flex; flex-direction: column; gap: 3px; margin: 0 0 2px 2px; }
.mc-step { font: 500 12px var(--sans); color: var(--lab, var(--muted)); }
.mc-step::before { content: "◌ "; }
.mc-step.done::before { content: "✓ "; color: #12B76A; }
/* An agent at work, as one cloud and its current step (macai.js stepsLive /
   stepsDone, 2026-11-08, docs/mockups/agent-steps.png). */
.mc-run { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mc .mc-run .mc-run-b, .mc-run-b { display: inline-flex; align-items: center; gap: 10px; height: auto; max-width: 100%; padding: 7px 14px 7px 9px; border: 0; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); color: var(--soft); font: 500 13.5px/1.3 var(--sans); text-align: left; white-space: nowrap; cursor: default; }
.mc-run-b[aria-expanded] { cursor: pointer; }
.mc-run-c { display: inline-flex; flex: none; }
.mc-run-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.mc-run-t.enter { animation: mc-run-in 0.35s ease both; }
@keyframes mc-run-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mc-run-n { flex: none; font-size: 12px; color: var(--lab); }
.mc-run .mc-steps, .mc-did .mc-steps { margin: 0 0 0 6px; }
.mc-did { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 2px; }
.mc .mc-did .mc-did-b, .mc-did-b { display: inline-flex; align-items: center; gap: 6px; height: auto; padding: 0; border: 0; background: none; box-shadow: none;
  color: var(--lab); font: 500 12.5px/1.3 var(--sans); cursor: pointer; text-align: left; }
.mc-did-b b { color: #067647; font-weight: 600; }
html.dark .mc-did-b b { color: #5FD39A; }
.mc-did-b i { font-style: normal; }
@media (prefers-reduced-motion: reduce) { .mc-run-t.enter { animation: none; } }
.mc-saveall { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mc-can { font: 500 12px var(--sans) !important; color: var(--lab, var(--muted)) !important; padding: 4px 2px !important; text-align: left; }
.mc-can:hover { color: var(--ink) !important; }
/* The AIs' own logos in Your AIs (2026-11-04). */
.ai-mark.ai-logo, html.dark .frame:has(> .rail.shell) .ai-mark.ai-logo { background: #fff; border: 0; box-shadow: inset 0 0 0 1px rgba(15, 17, 21, 0.08); padding: 5px; box-sizing: border-box; }
.ai-mark.ai-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ai-mark.ai-cursor.ai-logo, html.dark .frame:has(> .rail.shell) .ai-mark.ai-cursor.ai-logo { background: #fff; }
/* Chat's sidebar: agents up top, spaces below (2026-11-04). */
.rail.shell .sh-spaces.ag-rail { flex: 0 1 auto; max-height: 48%; }
.rail.shell .sh-spaces.sh-spaces-chat { flex: 1 1 auto; margin-top: 8px; }
.sh-hint { margin: 0 8px 4px; font: 400 11.5px var(--sans); color: var(--lab, var(--muted)); }
.rail.shell .sh-spaces.ag-rail { overflow: hidden; }
.rail.shell .ag-rail .ag-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.rail.shell .ag-rail .ag-foot { flex: none; padding-bottom: 2px; }

/* Agents in their own column to the right of the chat (2026-11-04). */
.mc.ag-full.ag-right-layout, .mc.ag-full.ag-right-layout.with-details { grid-template-columns: minmax(0, 1fr) 272px; }
.ag-right-layout > .ag-side { display: flex; flex-direction: column; min-height: 0; padding: 12px 10px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }
.ag-right-layout > .ag-side::before { content: "Agents"; display: block; margin: 0 8px 6px; font: 600 11.5px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--lab, var(--muted)); }
.ag-right-layout > .ag-panel { position: static; width: auto; }
@media (max-width: 1000px) {
  .mc.ag-full.ag-right-layout, .mc.ag-full.ag-right-layout.with-details { grid-template-columns: minmax(0, 1fr); }
  .ag-right-layout > .ag-side { display: none; }
  .ag-right-layout.side-open > .ag-side { display: flex; position: fixed; z-index: 40; top: 64px; right: 16px; bottom: 16px; width: min(300px, calc(100vw - 32px)); box-shadow: var(--shadow), 0 24px 60px rgba(0, 0, 0, 0.25); }
  .ag-right-layout > .ag-panel { position: fixed; z-index: 40; top: 64px; right: 16px; bottom: 16px; width: min(320px, calc(100vw - 32px)); box-shadow: var(--shadow), 0 24px 60px rgba(0, 0, 0, 0.25); }
  .ag-right-layout .mc-side-btn { display: inline-flex !important; }
}
@media (min-width: 1001px) { .ag-right-layout .mc-side-btn { display: none !important; } }

/* ---- Your work: Jobs | Skills (Conner, 2026-11-04; mockups in
   jobs-skills-1104). Job cards with Uses and Follows rows, a job's page,
   and a read-only skill card. Tokens with fallbacks, so it reads right
   with or without the shell. ---- */
.wj-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.wj-bar .pt-tabs { margin: 0; }
.wj-add, .wj-add:hover { margin-left: auto; height: 32px; min-height: 0; padding: 0 14px; border: 0; border-radius: 999px; background: var(--pill, #0F1115); color: var(--pilltx, #fff); font: 600 0.8125rem var(--sans, inherit); box-shadow: none; cursor: pointer; }
.wj-lead { margin: 0 0 14px; }
.wj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin: 0 0 12px; }
.wj-grid-jobs { grid-template-columns: repeat(auto-fill, minmax(max(340px, calc((100% - 12px) / 2)), 1fr)); }
.wj-card, .wj-card:hover { display: flex; flex-direction: column; gap: 10px; min-width: 0; text-align: left; padding: 16px 18px; background: var(--card, #fff); border: 0; border-radius: 16px; box-shadow: var(--shadow, 0 0 0 1px rgba(15, 17, 21, 0.08)); color: var(--ink, #0F1115); cursor: pointer; font: 400 14px var(--sans, inherit); }
.wj-card:hover { box-shadow: var(--shadow, none), 0 0 0 1px var(--line-strong, rgba(15, 17, 21, 0.14)); }
.wj-card.wj-off { opacity: 0.55; }
.wj-top { display: flex; align-items: flex-start; gap: 12px; }
.wj-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.wj-name, .wj-name:hover { align-self: flex-start; padding: 0; min-height: 0; border: 0; background: none; box-shadow: none; text-align: left; font: 600 15px var(--tight, inherit); letter-spacing: -0.01em; color: var(--ink, #0F1115); cursor: pointer; }
.wj-space { display: inline-flex; align-items: center; gap: 6px; font: 400 12.5px var(--sans, inherit); color: var(--lab, #5E6570); }
.wj-space i { width: 8px; height: 8px; border-radius: 2px; background: var(--day, #1570EF); flex: none; }
.wj-row { display: flex; align-items: flex-start; gap: 10px; }
.wj-lab { width: 56px; flex: none; padding-top: 4px; font: 500 12px var(--sans, inherit); color: var(--lab, #5E6570); }
.wj-pills { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; flex: 1; }
.wj-pill, .wj-pill:hover { height: 24px; min-height: 0; padding: 0 10px; border: 1px solid rgba(21, 112, 239, 0.22); border-radius: 999px; background: rgba(21, 112, 239, 0.08); color: var(--day, #1570EF); font: 500 12.5px var(--sans, inherit); box-shadow: none; cursor: pointer; }
.wj-pill:hover { background: rgba(21, 112, 239, 0.14); }
.wj-pill.wj-pill-plain, .wj-pill.wj-pill-plain:hover { cursor: inherit; background: rgba(21, 112, 239, 0.08); }
.wj-rule { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 24px; padding: 0 10px; border: 1px solid var(--line-strong, rgba(15, 17, 21, 0.14)); border-radius: 999px; font: 400 12.5px var(--sans, inherit); color: var(--soft, #3B4049); }
.wj-rule-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.wj-rule em { white-space: nowrap; }
.wj-rule em, .wj-badge.ok { font-style: normal; font-weight: 600; font-size: 11.5px; color: #12804A; }
.wj-rule.wj-rule-wait em, .wj-badge { color: #B25E09; }
.wj-more, .wj-none { font: 400 12.5px var(--sans, inherit); color: var(--lab, #5E6570); padding-top: 4px; }
.wj-foot { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line, rgba(15, 17, 21, 0.07)); }
.wj-status { font: 400 12.5px var(--sans, inherit); color: var(--soft, #3B4049); margin: 0; }
.wj-status.ok { color: #12804A; }
.wj-link, .wj-link:hover { margin-left: auto; height: auto; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--day, #1570EF); font: 500 12.5px var(--sans, inherit); cursor: pointer; }
.wj-card .au-switch:focus-visible, .wj-head .au-switch:focus-visible, .wj-pill:focus-visible, .wj-name:focus-visible { outline: 2px solid var(--ink, #0F1115); outline-offset: 2px; }
.wj-card .au-switch:disabled, .wj-head .au-switch:disabled { opacity: 0.6; cursor: default; }
.wj-skilltile, .wj-skilltile:hover { flex-direction: row; align-items: flex-start; gap: 12px; }
.wj-at { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: rgba(21, 112, 239, 0.1); color: var(--day, #1570EF); font: 700 16px var(--tight, inherit); }
.wj-slist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.wj-srow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 44px; padding: 10px 14px; background: var(--card, #fff); border: 0; border-radius: 12px; box-shadow: var(--shadow, 0 0 0 1px rgba(15, 17, 21, 0.08)); text-align: left; cursor: pointer; color: var(--ink, #0F1115); font: 500 14px var(--sans, inherit); }
.wj-srow:hover { box-shadow: var(--shadow, none), 0 0 0 1px var(--line-strong, rgba(15, 17, 21, 0.14)); }
.wj-srow:focus-visible { outline: 2px solid var(--ink, #0F1115); outline-offset: 2px; }
@media (max-width: 1000px) { .wj-slist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wj-slist { grid-template-columns: minmax(0, 1fr); } }
.wj-nameline { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.wj-nameline .wj-name { min-width: 0; overflow-wrap: anywhere; }
.wj-sname { min-width: 0; overflow-wrap: anywhere; }
.wj-snote { flex: none; white-space: nowrap; font: 500 12px var(--sans, inherit); color: #B25E09; }
html.dark .wj-snote { color: #F0A64A; }
.wj-at-big { width: 48px; height: 48px; border-radius: 12px; font-size: 24px; }
.wj-about { font: 400 13px/1.45 var(--sans, inherit); color: var(--soft, #3B4049); }
/* A job's page and a skill's card. */
.wj-page { max-width: 880px; display: flex; flex-direction: column; gap: 10px; }
.wj-head { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--card, #fff); border-radius: 16px; box-shadow: var(--shadow, 0 0 0 1px rgba(15, 17, 21, 0.08)); }
.wj-head h2 { margin: 0; text-transform: none; font: 600 1.375rem var(--tight, inherit); letter-spacing: -0.02em; color: var(--ink, #0F1115); }
.wj-onoff { display: flex; align-items: center; gap: 10px; }
.wj-onoff-t { font: 500 12.5px var(--sans, inherit); color: var(--lab, #5E6570); }
.wj-desc { margin: 0; font: 400 14px/1.5 var(--sans, inherit); color: var(--soft, #3B4049); }
.wj-desc.wj-none { color: var(--lab, #5E6570); padding: 0; }
.wj-steps { white-space: pre-line; }
.wj-page-off .wj-head { opacity: 0.7; }
.wj-sec { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 0; font: 600 15px var(--tight, inherit); letter-spacing: -0.01em; color: var(--ink, #0F1115); }
.wj-sec span { font: 400 12.5px var(--sans, inherit); color: var(--lab, #5E6570); }
/* Skills tab: On a job / Not on a job sit clear of the cards under them. */
.wj-sec.wj-skillsec { margin: 20px 0 10px; }
.wj-head .wj-sec { margin-top: 6px; font-size: 13.5px; }
.wj-box { padding: 14px 18px; background: var(--card, #fff); border-radius: 16px; box-shadow: var(--shadow, 0 0 0 1px rgba(15, 17, 21, 0.08)); color: var(--soft, #3B4049); font: 400 14px var(--sans, inherit); }
.wj-box .jc-note { margin: 0; }
.wj-list { padding: 4px 18px; }
.wj-li, .wj-li-btn, .wj-li-btn:hover { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 0; padding: 11px 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; font: 400 14px var(--sans, inherit); color: var(--ink, #0F1115); }
.wj-li + .wj-li { border-top: 1px solid var(--line, rgba(15, 17, 21, 0.07)); }
.wj-li-btn { cursor: pointer; }
.wj-li-btn .wj-li-t { color: var(--day, #1570EF); }
.wj-li-t { flex: 1; min-width: 0; }
.wj-code { font: 400 12px ui-monospace, Menlo, Consolas, monospace; color: var(--lab, #5E6570); padding: 2px 6px; border: 1px solid var(--line, rgba(15, 17, 21, 0.07)); border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.wj-badge { flex: none; font: 600 11.5px var(--sans, inherit); padding: 3px 8px; border-radius: 6px; background: rgba(178, 94, 9, 0.1); }
.wj-badge.ok { background: rgba(18, 128, 74, 0.1); }
.wj-empty { margin: 0; font: 400 13.5px var(--sans, inherit); color: var(--lab, #5E6570); }
.wj-emptybox p { margin: 0 0 4px; }
.wj-emptybox .wj-link { margin: 6px 0 0; }
/* No jobs yet: the Build a job words to copy (2026-11-17). */
.wj-build { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.wj-build p { margin: 0; }
.wj-build-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: var(--pad-tile); border: 1px solid var(--line, rgba(15, 17, 21, 0.07)); border-radius: 10px; }
.wj-build-words { flex: 1; min-width: 0; font: 400 14px var(--sans, inherit); color: var(--ink, #0F1115); }
.wj-missed { margin: 8px 0 0; }
/* No jobs yet: the Prompts tiles (refresh.css .wp-kinds), 2026-11-18. */
.wj-kinds .wp-count { margin-top: auto; }
.wj-kinds .wp-example + .wp-count { margin-top: 0; }
.wj-kinds .wj-buildtile { cursor: default; }
.wj-kinds .wj-libmore { border: 1px dashed var(--line-strong, rgba(15, 17, 21, 0.14)); box-shadow: none; }
.wj-libl { margin-left: auto; }
.wj-libl + .wj-add { margin-left: 12px; }
.wj-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 10px; }
.wj-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line, rgba(15, 17, 21, 0.07)); border-radius: 10px; }
.wj-stat b { font: 600 18px var(--tight, inherit); color: var(--ink, #0F1115); }
.wj-stat span { font: 400 12px var(--sans, inherit); color: var(--lab, #5E6570); }
html.dark .wj-rule em, html.dark .wj-badge.ok, html.dark .wj-status.ok { color: #4FC788; }
html.dark .wj-rule.wj-rule-wait em, html.dark .wj-badge { color: #F0A64A; }
@media (max-width: 640px) { .wj-stats { grid-template-columns: repeat(2, 1fr); } .wj-code { display: none; } }
/* Who last changed a job, when it was the owner's AI (datum#80), and a job's
   runs (datum#81; jobreceipts.js). */
.jc-by { display: block; color: var(--lab, #5E6570); }
.wj-top + .jc-by, .wj-head .jc-by { margin: -4px 0 0; text-align: right; }
.wj-runline { margin-left: auto; }
.wj-runline + .wj-link { margin-left: 0; }
.wj-run .wj-badge { margin-right: 4px; }
.wj-runs { display: flex; flex-direction: column; gap: 10px; }
.act-jobpick { flex-wrap: wrap; }
.wj-receipts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.wj-receipts .wj-link { margin-left: 0; }

/* Work model, Phase A (2026-11-04): step numbers, rule sources, apps,
   knows-from and the jobless flag. */
.wj-step-n { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; margin-right: 5px; border-radius: 999px; background: rgba(21, 112, 239, 0.16); font: 600 10.5px var(--sans, inherit); }
.wj-prov { margin: 0; font: 400 12.5px var(--sans, inherit); color: var(--lab, #5E6570); }
.wj-prov-big { font-size: 13.5px; color: var(--soft, #3B4049); font-weight: 500; }
.wj-sub { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; font: 600 13px var(--sans, inherit); color: var(--ink, #0F1115); }
.wj-sub span { font: 400 12px var(--sans, inherit); color: var(--lab, #5E6570); }
.wj-apps, .wj-box.wj-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.wj-app, .wj-know { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--line-strong, rgba(15, 17, 21, 0.14)); border-radius: 999px; font: 400 12.5px var(--sans, inherit); color: var(--soft, #3B4049); }
.wj-know i { width: 8px; height: 8px; border-radius: 2px; background: var(--day, #1570EF); flex: none; }
.wj-app-bad { border-color: rgba(178, 94, 9, 0.4); color: #B25E09; }
.wj-app-fix { background: none; cursor: pointer; }
.wj-app-fix:hover, .wj-app-fix:focus-visible { border-color: currentColor; }
.wj-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wj-flag { align-self: flex-start; }
.wj-li-wrap { flex-wrap: wrap; }
.wj-li-full { flex-basis: 100%; }
html.dark .wj-app-bad { color: #F0A64A; }
/* One-glance Work (Phase A UI pass). */
.wj-card .wj-lab { width: 76px; }
.wj-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wj-card .wj-know { height: 24px; }
.wj-step { gap: 14px; }
.wj-step .wj-id { gap: 2px; }
.wj-step-big { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 999px; background: rgba(21, 112, 239, 0.1); color: var(--day, #1570EF); font: 600 13px var(--tight, inherit); }
.wj-chev { flex: none; color: var(--lab, #5E6570); font-size: 18px; }
.wj-notes { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line, rgba(15, 17, 21, 0.07)); }
.wj-notes .wj-lab { width: auto; padding: 0; }
.wj-rules { display: flex; flex-direction: column; gap: 2px; }
.wj-rules .wj-prov-big { margin: 0 0 6px; }
.wj-rgroup { border-top: 1px solid var(--line, rgba(15, 17, 21, 0.07)); }
.wj-rgroup summary { display: flex; align-items: baseline; gap: 8px; padding: 10px 0; cursor: pointer; list-style: none; color: var(--ink, #0F1115); font: 400 14px var(--sans, inherit); }
.wj-rgroup summary::-webkit-details-marker { display: none; }
.wj-rgroup summary::before { content: '›'; display: inline-block; width: 10px; color: var(--lab, #5E6570); transition: transform 0.15s; }
.wj-rgroup[open] summary::before { transform: rotate(90deg); }
.wj-rcount { font: 600 12px var(--sans, inherit); color: var(--lab, #5E6570); }
.wj-rsub { margin-left: auto; font: 400 12px var(--sans, inherit); color: var(--lab, #5E6570); }
.wj-rgroup .wj-list { padding: 0 0 6px 18px; }
.wj-stepr { padding: 0 0 4px 18px; }
.wj-stepr-n { display: block; font: 600 12.5px var(--sans, inherit); color: var(--lab, #5E6570); padding: 4px 0 2px; }
.wj-stepr .wj-list { padding: 0; }
.wj-stepr .wj-li .link-btn { margin-left: auto; flex: none; }
.wj-stepr-add { margin: 2px 0 10px 18px; }
.wj-stepr-form { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 10px 18px; }
.wj-stepr-pick, .wj-stepr-box { width: 100%; max-width: 520px; box-sizing: border-box; font: 400 14px var(--sans, inherit); padding: 7px 10px; border: 1px solid var(--line-strong, rgba(15, 17, 21, 0.18)); border-radius: 8px; background: var(--card, #fff); color: var(--ink, #0F1115); }
.wj-grants { margin: 0; }
.wj-rgroup .wj-empty { padding: 0 0 10px 18px; }
@media (max-width: 640px) { .wj-rsub { display: none; } }
.wj-pill { display: inline-flex; align-items: center; max-width: 100%; white-space: nowrap; }
.wj-pill-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wj-pill .wj-step-n { flex: none; }
@media (max-width: 640px) { .wj-card .wj-lab { width: 64px; } }

/* Tasks calendar (Conner, 2026-11-05): a List / Calendar switch beside the
   To do and Done tabs; the month shows each task on its due day. */
/* The np-tabs track forces its own 3px padding, so the gap under Add a task
   lives on the row (Conner, 2026-11-17). */
.tp-tabrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 0 0; }
.tp-tabrow > .tp-tabs { padding-right: 0; }
.tp-lays { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--wash, rgba(15, 17, 21, 0.05)); }
.tp-lay { min-height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: 600 13px var(--sans); color: var(--soft); cursor: pointer; }
.tp-lay.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 17, 21, 0.08), 0 0 0 1px rgba(15, 17, 21, 0.04); }
.tp-cal-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.tp-cal-h b { font: 600 1.0625rem var(--tight); letter-spacing: -0.02em; color: var(--ink); }
.tp-cal-nav { display: inline-flex; align-items: center; gap: 4px; }
.tp-cal-arrow { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 999px; background: none; font: 500 18px/1 var(--sans); color: var(--ink); cursor: pointer; }
.tp-cal-today { padding: 0 8px; font: 600 13px var(--sans); color: var(--ink); }
.tp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0 16px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tp-cal-w { padding: 8px 8px 6px; font: 600 11px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--lab, var(--soft)); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tp-cal-d { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 0; min-height: 92px; padding: 6px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.tp-cal-d:hover { background: rgba(21, 112, 239, 0.04); }
.tp-cal-d.out { background: rgba(15, 17, 21, 0.02); }
.tp-cal-d.out .tp-cal-n { color: var(--lab, var(--soft)); opacity: 0.6; }
.tp-cal-d.sel { box-shadow: inset 0 0 0 2px #1570EF; }
.tp-cal-n { align-self: flex-start; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; font: 600 12.5px/24px var(--sans); color: var(--ink); text-align: center; box-sizing: border-box; }
.tp-cal-d.today .tp-cal-n { background: #1570EF; color: #fff; }
.tp-cal-t { display: block; padding: 3px 6px; border-radius: 6px; background: rgba(21, 112, 239, 0.1); font: 500 12px/1.3 var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-cal-t.late { background: rgba(217, 45, 32, 0.1); color: #B42318; }
.tp-cal-t.done { background: rgba(15, 17, 21, 0.05); color: var(--lab, var(--soft)); text-decoration: line-through; }
.tp-cal-more { font: 500 11.5px var(--sans); color: var(--soft); padding-left: 6px; }
.tp-cal-day { margin: 12px 0 0; border-top: 1px solid var(--line); }
.tp-cal-day-h { padding: 12px 16px 4px; font: 600 14px var(--sans); color: var(--ink); }
.tp-cal-undated { margin: 10px 16px 6px; color: var(--soft); }
html.dark .tp-cal-t { background: rgba(83, 146, 255, 0.18); }
html.dark .tp-cal-t.late { background: rgba(240, 68, 56, 0.18); color: #FDA29B; }
html.dark .tp-cal-t.done { background: rgba(255, 255, 255, 0.06); }
html.dark .tp-cal-d.out { background: rgba(255, 255, 255, 0.02); }
html.dark .tp-lays { background: rgba(255, 255, 255, 0.06); }
@media (max-width: 760px) {
  .tp-cal { margin: 0 8px; }
  .tp-cal-d { min-height: 54px; padding: 4px; }
  .tp-cal-t { font-size: 0; height: 6px; padding: 0; border-radius: 3px; }
  .tp-cal-more { display: none; }
}

/* Team tasks (Conner, 2026-11-05): a teammate's task you're mentioned in
   wears their name; Give to hands your own task to a teammate. */
.tp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tp-chips:empty { display: none; }
.tp-owner { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 2px 8px 2px 3px; margin-top: 2px; border-radius: 999px; background: rgba(21, 112, 239, 0.08); font: 600 12px var(--sans); color: #175CD3; }
html.dark .tp-owner { background: rgba(83, 146, 255, 0.16); color: #84ADFF; }
.tp-board { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; margin-top: 2px; border-radius: 999px; background: rgba(71, 84, 103, 0.08); font: 600 12px var(--sans); color: #475467; }
html.dark .tp-board { background: rgba(152, 162, 179, 0.16); color: #D0D5DD; }
.tp-check:disabled:not([aria-pressed="true"]) { opacity: 0.45; cursor: not-allowed; }
.tp-edit-row:has(.tp-edit-own) { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 760px) { .tp-edit-row:has(.tp-edit-own) { grid-template-columns: 1fr; } }
.tp-fsep { height: 1px; margin: 4px 6px; background: var(--line); }

/* Personal and each board under Tasks in the sidebar (Conner, 2026-11-05). */
/* Nested like sub-spaces: indented under the row's icon, with the same
   guide line, in regular weight (Conner, 2026-11-05). */
.rail-subs { margin: 1px 0 2px 33px; padding-left: 8px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.rail.shell.open .rail-btn.rail-sub, html.dark .rail.shell.open .rail-btn.rail-sub { height: 28px; padding-left: 10px; }
.rail.shell.open .rail-btn.rail-sub .rail-label, html.dark .rail.shell.open .rail-btn.rail-sub .rail-label { font: 400 13px var(--sans); color: var(--ink); }
.rail.shell.open .rail-btn.rail-sub.on .rail-label { font-weight: 500; }
.rail.shell:not(.open) .rail-sub { display: none; }
.rail-taskgroup { display: contents; }
/* The arrow that opens the rows under Tasks and Work (Conner, 2026-11-05). */
.rail-fold { position: relative; display: flex; flex-direction: column; }
/* Arrows sit on the left, like the Spaces tree (Conner, 2026-11-05): every
   Your Nimbus row keeps a gutter for one so the icons line up. */
.rail.shell.open .sh-tabs .rail-btn:not(.rail-sub), html.dark .rail.shell.open .sh-tabs .rail-btn:not(.rail-sub),
.rail.shell.open :is(.sh-foot, .sh-conns-up) .rail-btn, html.dark .rail.shell.open :is(.sh-foot, .sh-conns-up) .rail-btn { padding-left: 26px; }
.rail-fold-chev { position: absolute; top: 4px; left: 3px; width: 22px; height: 23px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.rail-fold-chev:hover { background: var(--hover); }
.rail-fold-chev.open { transform: rotate(90deg); }
.rail.shell:not(.open) .rail-fold-chev { display: none; }
.rail.shell:not(.open) .rail-subs { display: none; }

/* Every account and Your businesses read like Profile and Tasks (Conner, 2026-11-05). */
.rail.shell .tl-ghead, html.dark .rail.shell .tl-ghead { font: 500 13.5px var(--sans); color: var(--ink); padding: 6px 6px 5px; }
.rail.shell .tl-ghead .td-chev, html.dark .rail.shell .tl-ghead .td-chev { width: 16px; }
.rail.shell .tl-gico { display: inline-flex; align-items: center; }
/* Group headers are the same height as Profile and Tasks, and every arrow
   in the sidebar is the same size as the Tasks and Work ones (Conner, 2026-11-05). */
.rail.shell .tl-ghead, html.dark .rail.shell .tl-ghead { height: 31px; padding: 0 6px 0 11px; }
.rail.shell .sh-spaces .tl-sidetree > .tl-ghead:first-child, html.dark .rail.shell .sh-spaces .tl-sidetree > .tl-ghead:first-child { padding-top: 0; }
.rail.shell .td-chev, html.dark .rail.shell .td-chev { height: 22px; font-size: 15px; }
/* The arrows on Shared, Contacts and the business rows sit under the cloud
   of Every account or Your businesses; only the arrow moves, the cloud and
   name stay put (Conner, 2026-11-05). */
.rail.shell .tl-gbody > .td-row .td-chev, .rail.shell .tl-gbody > * > .td-row .td-chev { position: relative; left: 16px; }
/* The gap from that arrow to the space's cloud matches the header's gap. */
.rail.shell .tl-gbody > .td-row .cl, .rail.shell .tl-gbody > * > .td-row .cl { margin-left: 2px; }
/* Personal, Jobs and Skills start where the space clouds start. */
.rail.shell.open .rail-btn.rail-sub, html.dark .rail.shell.open .rail-btn.rail-sub { padding-left: 14px; }
@media (min-width: 768px) {
  .rail.shell .tl-gbody > .td-row .td-chev, .rail.shell .tl-gbody > * > .td-row .td-chev { left: 20px; }
  .rail.shell .tl-gbody > .td-row .cl, .rail.shell .tl-gbody > * > .td-row .cl { margin-left: 9px; }
  .rail.shell.open .rail-btn.rail-sub, html.dark .rail.shell.open .rail-btn.rail-sub { padding-left: 13px; }
}
/* Page icons sit as far from their arrow as the Every account cloud does,
   so they line up with it (Conner, 2026-11-05). */
.rail.shell.open .sh-tabs .rail-btn:not(.rail-sub), html.dark .rail.shell.open .sh-tabs .rail-btn:not(.rail-sub),
.rail.shell.open :is(.sh-foot, .sh-conns-up) .rail-btn, html.dark .rail.shell.open :is(.sh-foot, .sh-conns-up) .rail-btn { padding-left: 34px; }
@media (min-width: 768px) {
  .rail.shell.open .sh-tabs .rail-btn:not(.rail-sub), html.dark .rail.shell.open .sh-tabs .rail-btn:not(.rail-sub),
  .rail.shell.open :is(.sh-foot, .sh-conns-up) .rail-btn, html.dark .rail.shell.open :is(.sh-foot, .sh-conns-up) .rail-btn { padding-left: 33px; }
}
/* The guide line under Tasks and Work runs down the centre of their icons;
   Personal, Jobs and Skills stay lined up with the space clouds (Conner, 2026-11-05). */
.rail.shell .rail-subs { margin-left: 42px; padding-left: 0; }
.rail.shell.open .rail-btn.rail-sub, html.dark .rail.shell.open .rail-btn.rail-sub { padding-left: 13px; }
@media (min-width: 768px) { .rail.shell .rail-subs { margin-left: 41px; } }

/* Count tiles on phones (Conner, 2026-11-05): kept last so no wide-screen
   tile rule above can win. Seven tiles share the row, so they sit close
   with no side padding and every label shows in full. */
@media (max-width: 767px) {
  .tl-shell .tl-knows { gap: 5px; }
  .tl-shell .tl-knows .pf-k, html.dark .tl-shell .tl-knows .pf-k { padding: 10px 0 8px; border-radius: 12px; }
  .tl-shell .tl-knows .pf-k b { margin-top: 5px; font-size: 0.90625rem; letter-spacing: -0.02em; }
  .tl-shell .tl-knows .pf-k > span:not(.cl) { font-size: 0.625rem; padding: 0 2px; box-sizing: border-box; }
}

/* Agents asking each other (2026-11-05): the exchange as one small box in
   the asker's chat, Nimbus changes as cards, who-can-ask switches and the
   day's log in an agent's details. */
.ag-talk { align-self: flex-start; max-width: min(560px, 92%); display: flex; flex-direction: column; gap: 6px; margin: 2px 0 6px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.ag-talk-top { display: flex; align-items: center; gap: 6px; font: 400 12.5px var(--sans); color: var(--lab); }
.ag-talk-top b { font-weight: 600; color: var(--ink); }
.ag-talk-q, .ag-talk-a { font: 400 13.5px/1.5 var(--sans); color: var(--ink); padding: 8px 10px; border-radius: 10px; background: var(--chip, #F3F5F8); white-space: pre-wrap; }
.ag-talk-a { background: rgba(18, 183, 106, 0.09); }
.ag-talk-a.waiting { color: var(--lab); background: var(--chip, #F3F5F8); }
.ag-talk-a.failed { background: rgba(217, 45, 32, 0.08); }
.ag-talk-who { display: block; font: 600 11.5px var(--sans); color: var(--lab); margin-bottom: 2px; }
html.dark .ag-talk-a { background: rgba(18, 183, 106, 0.14); }
.msg-from .bubble { border-radius: 18px 18px 18px 6px; }
.mc-tag-change { color: #B54708 !important; }
.mc-tag-change::before { background: #F79009 !important; }
.mc-tag-routine { color: var(--accent, #2563EB) !important; }
.mc-tag-routine::before { background: var(--accent, #2563EB) !important; }
.mc-tag-job { color: var(--muted, #667085) !important; }
.mc-tag-job::before { background: #12B76A !important; }
.ag-job-now { margin: 2px 0 0; }
.mc-tag-watch { color: var(--muted, #667085) !important; }
.mc-tag-watch::before { background: #2E90FA !important; }
.ag-job-steps { margin: 8px 0 0; padding-left: 18px; max-height: 180px; overflow-y: auto; }
.ag-routine .sc-field { margin: 8px 0 0; }
.ag-asks .small { margin: 0 0 4px; }
.ag-ask-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ag-ask-row:last-child { border-bottom: 0; }
.ag-ask-name { flex: 1; min-width: 0; font: 500 13.5px var(--sans); color: var(--ink); }
.ag-ev { display: flex; gap: 10px; padding: 5px 0; font: 400 12.5px/1.4 var(--sans); color: var(--soft, var(--ink)); }
.ag-ev time { flex: none; width: 58px; color: var(--lab); }
.ag-ev b { font-weight: 600; color: var(--ink); }
.ag-pill { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--chip, #F3F5F8); color: var(--lab); font: 600 10.5px var(--sans); }

/* An agent's own browser (2026-11-05): a wider right column with a picture
   of its page, the address and Take over. */
.mc.ag-full.ag-right-layout.with-web { grid-template-columns: minmax(0, 1fr) minmax(380px, 48%); }
@media (max-width: 1000px) {
  .mc.ag-full.ag-right-layout.with-web { grid-template-columns: minmax(0, 1fr); }
  .ag-right-layout > .ag-panel.ag-web-panel { width: min(560px, calc(100vw - 32px)); }
}
.ag-web { position: relative; display: flex; flex-direction: column; gap: 10px; }
.ag-web-h { font: 600 15px var(--tight, var(--sans)); color: var(--ink); padding-right: 30px; }
.ag-web-bar { display: flex; align-items: center; gap: 8px; }
.ag-web-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 12px; border-radius: 10px; background: var(--chip, #F3F5F8); box-shadow: inset 0 0 0 1px var(--line); font: 400 12.5px var(--sans); color: var(--soft, var(--ink)); }
.ag-web-using { color: #1570EF !important; }
.ag-web-pic { width: 100%; height: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); background: #fff; display: block; }
.mc-sends { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--chip, #F3F5F8); }
.mc-sends b { font-weight: 600; color: var(--ink); }
.mc-auto { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line, rgba(127,127,127,.2)); }
.mc-auto p { margin: 0; color: var(--muted); }
.mc-auto-note { color: var(--muted); }
.mc-checked { color: #0A7A45 !important; }
html.dark .mc-checked { color: #6CE9A6 !important; }
.mc-unchecked { color: #B54708 !important; }
/* The Look row in the account menu (Conner, 2026-11-05): a row like the
   others, with a small Auto / Light / Dark switch at its right end, the
   same on phones and computers. */
.sh-menu .sh-look, .sh-menu .sh-look:hover, html.dark .sh-menu .sh-look:hover { cursor: default; background: none; }
.sh-menu .sh-look > span:not(.ico) { flex: 1 1 auto; }
.sh-menu .sh-look .sh-seg { flex: none; display: inline-flex; gap: 2px; margin: 0; padding: 2px; border-radius: 999px; background: var(--hover); }
.sh-menu .sh-look .sh-seg button, html.dark .sh-menu .sh-look .sh-seg button { width: auto; height: 24px; min-height: 0; padding: 0 9px; border: 0; border-radius: 999px; background: none; box-shadow: none; font: 600 0.75rem var(--sans); color: var(--soft); cursor: pointer; }
.sh-menu .sh-look .sh-seg button.on, html.dark .sh-menu .sh-look .sh-seg button.on { background: var(--active); color: var(--ink); box-shadow: var(--shadow); }
/* Words when they fit, icons when the menu is narrow (Conner, 2026-11-18). */
.sh-menu { container-type: inline-size; }
.sh-menu .sh-look .sh-seg button .ico { display: none; }
@container (max-width: 230px) {
  .sh-menu .sh-look .sh-seg button { display: grid; place-items: center; padding: 0 7px; }
  .sh-menu .sh-look .sh-seg button .ico { display: grid; width: 14px; height: 14px; }
  .sh-menu .sh-look .sh-seg button .ico svg { width: 14px; height: 14px; }
  .sh-menu .sh-look .sh-seg button .sh-seg-w { display: none; }
}

/* The profile outline inside the page (Conner, 2026-11-05): the page
   already has its own padding, so the outline adds none. */
.wf-main.wf-inpage { margin: 0; max-width: none; padding: 0; width: 100%; box-sizing: border-box; }

/* ---- The chat is locked to the window (Conner, 2026-11-06: "the mac app is
   making me scroll down, this needs to be locked in place"). Only the
   messages scroll; the page itself never does. It used to guess the room
   under the top bar (100dvh - 104px); now the stage is exactly the window and
   the chat takes whatever is left, so a taller top bar or bigger text can't
   push the message box below the window. The page is zoomed to 110% on
   screens wider than 1600px (Desktop zoom, above), so the stage's height is
   divided by the same factor; without it the bottom 10% was cut off. ---- */
@media (min-width: 768px) {
  html:has(.mc-full), html:has(.mc-full) body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  .stage:has(> main > .mc-full) { display: flex; flex-direction: column; height: calc(100dvh / var(--z, 1)); min-height: 0; box-sizing: border-box; overflow: hidden; }
  .stage > main:has(> .mc-full) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; box-sizing: border-box; width: 100%; align-self: center; }
  /* Full width too: a flex column with auto side margins shrank it to its
     content, so an empty new agent's chat was narrow (2026-11-06). */
  .mc.mc-full { flex: 1 1 auto; height: auto; min-height: 0; grid-template-rows: minmax(0, 1fr); overflow: hidden; align-self: stretch; width: 100%; box-sizing: border-box; }
  .mc.mc-full > * { min-height: 0; max-height: 100%; }
  .mc-full .mc-main { overflow: hidden; }
}
.mc-full .mc-input { overflow-x: hidden; }
/* Tree arrows (Conner, 2026-11-05): no grey bubble on hover, which read
   as an oval. The row's own highlight is enough; the arrow just darkens. */
.td-row.td-has:hover .td-chev, .td-tree .td-chev:hover,
html.dark .td-row.td-has:hover .td-chev, html.dark .td-tree .td-chev:hover { background: none; }
.td-tree .td-chev:not(.none):hover, html.dark .td-tree .td-chev:not(.none):hover,
.rail.shell .td-chev:not(.none):hover, html.dark .rail.shell .td-chev:not(.none):hover { color: var(--ink); }

/* ---- Agents: drag, pin, or put in a group (Conner, 2026-11-06). ⋯ shows on
   hover; a line shows where a dragged agent will land. ---- */
.ag-rowwrap { position: relative; border-radius: 12px; }
.ag-rowwrap[draggable="true"] { cursor: grab; }
.ag-rowwrap.dragging { opacity: 0.45; }
.ag-rowwrap.drop::before, .ag-ghead.drop::after, .mc-side-h.drop::after, .mc-side-note.drop::after { content: ""; position: absolute; left: 8px; right: 8px; height: 2px; border-radius: 2px; background: #1570EF; }
.ag-rowwrap.drop::before { top: -2px; }
.ag-ghead, .mc-side-h, .mc-side-note { position: relative; }
.ag-ghead.drop::after, .mc-side-h.drop::after, .mc-side-note.drop::after { bottom: -3px; }
.ag-rowwrap > button.ag-row { padding-right: 34px; }
button.link-btn.ag-more { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; padding: 0; border-radius: 8px; font: 600 17px/1 var(--sans); color: var(--muted); text-decoration: none; opacity: 0; }
.ag-rowwrap:hover button.ag-more, button.ag-more.open, button.ag-more:focus-visible { opacity: 1; }
button.link-btn.ag-more:hover, button.ag-more.open { background: var(--hover, rgba(15, 17, 21, 0.06)); color: var(--ink); }
.ag-rowwrap:hover .ag-dot { visibility: hidden; }
.ag-menu { position: absolute; z-index: 30; right: 6px; top: calc(100% - 2px); min-width: 180px; padding: 4px; border-radius: 12px; background: var(--card, #fff); box-shadow: var(--shadow), 0 12px 32px rgba(0, 0, 0, 0.16); display: flex; flex-direction: column; }
.ag-menu button.link-btn { display: block; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; text-decoration: none; font: 500 13.5px var(--sans); color: var(--ink); }
.ag-menu button.link-btn:hover { background: var(--hover, rgba(15, 17, 21, 0.05)); }
.ag-menu button.link-btn.on::after { content: " ✓"; color: var(--muted); }
.ag-menu-h { margin: 6px 10px 2px; padding-top: 6px; border-top: 1px solid var(--line, rgba(15, 17, 21, 0.08)); font: 600 11px var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--lab, var(--muted)); }

/* ---- Between agents, one quiet centered line (Conner, 2026-11-06, like
   Grok Bot). Tap it for the whole exchange. ---- */
.ag-tlines { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0; }
.ag-tlines .ag-talk { align-self: center; }
.ag-tline, button.link-btn.ag-tline { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font: 400 12.5px var(--sans); color: var(--lab, var(--muted)); text-decoration: none; background: none; }
button.link-btn.ag-tline:hover, button.link-btn.ag-tline.open { background: var(--hover, rgba(15, 17, 21, 0.05)); color: var(--ink); }
.ag-tline b { font-weight: 500; color: var(--ink); }
.ag-tline .ag-av, .ag-tline svg { flex: none; }
.ag-tline.working { animation: ag-pulse 1.4s ease-in-out infinite; }
.ag-row-last.working { color: #1570EF; animation: ag-pulse 1.4s ease-in-out infinite; }
html.dark .ag-row-last.working { color: #84CAFF; }
@keyframes ag-pulse { 50% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .ag-tline.working, .ag-row-last.working { animation: none; } }

/* ---- The agent message box: one line that grows as you write (Conner,
   2026-11-06), with Send beside it. ---- */
.frame:has(> .rail.shell) .mc-compose.ag-compose { gap: 4px; padding: 8px 10px 6px 14px; }
.ag-compose-row { display: flex; align-items: flex-end; gap: 10px; }
.frame:has(> .rail.shell) .mc-compose .mc-input.mc-grow { flex: 1 1 auto; min-height: 0; max-height: 220px; resize: none; overflow-y: auto; padding: 7px 2px; line-height: 1.45; }
.ag-compose-row > button.primary { flex: none; margin-bottom: 2px; }
.ag-compose .mc-can { align-self: flex-start; padding: 0 2px; font: 400 11.5px var(--sans); color: var(--lab, var(--muted)); text-decoration: none; }
.ag-compose-row { align-items: center; }
.frame:has(> .rail.shell) .mc-compose .mc-input.mc-grow { margin: 0; }
.ag-compose-row > button.primary { margin: 0; }
.ag-compose .mc-can { min-height: 0; height: auto; line-height: 16px; }

/* ---- @contacts in an agent's box (Conner, 2026-11-08): the list above the
   box, and each @Name as a chip in the sent message. ---- */
.mc-full .mc-compose.ag-compose, .frame:has(> .rail.shell) .mc-compose.ag-compose { position: relative; bottom: auto; }
.at-pop { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 8px 24px rgba(15, 17, 21, 0.12); max-height: 300px; overflow-y: auto; }
.at-pop[hidden] { display: none; }
.at-pop button.at-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 0; height: auto; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--ink); text-align: left; cursor: pointer; font: 400 14px var(--sans); }
.at-pop button.at-row:hover, .at-pop button.at-row.on { background: rgba(21, 112, 239, 0.09); }
.at-row.on b { color: #1570EF; }
html.dark .at-pop button.at-row:hover, html.dark .at-pop button.at-row.on { background: rgba(132, 202, 255, 0.12); }
html.dark .at-row.on b { color: #84CAFF; }
.at-init { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ground); color: var(--lab); font: 500 11px var(--sans); }
.at-txt { display: flex; flex-direction: column; min-width: 0; }
.at-txt b { font-weight: 500; }
.at-txt .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--lab); }
.at-chip { padding: 1px 6px; border-radius: 6px; background: rgba(21, 112, 239, 0.1); color: #1570EF; font-weight: 500; }
html.dark .at-chip { background: rgba(132, 202, 255, 0.14); color: #84CAFF; }

/* ---- Saved because the owner said so: one line, with Undo (2026-11-06). ---- */
.mc-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; align-self: flex-start; max-width: min(86%, 760px); padding: 6px 12px; border-radius: 12px; background: rgba(18, 183, 106, 0.08); color: #067647; }
html.dark .mc-saved { background: rgba(18, 183, 106, 0.14); color: #75E0A7; }
.mc-saved .link-btn { font: 500 12.5px var(--sans); }
/* What a reply saved, folded into one line (macai.js savedFold, 2026-11-08). */
.mc-facts:empty { display: none; }
.mc-fold { align-self: flex-start; max-width: min(86%, 760px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mc .mc-fold .mc-fold-b, .mc-fold-b { display: inline-flex; align-items: center; gap: 8px; height: auto; padding: 5px 12px 5px 10px; border: 0; border-radius: 999px;
  background: rgba(18, 183, 106, 0.08); box-shadow: none; color: var(--soft); font: 500 12.5px/1.3 var(--sans); cursor: pointer; text-align: left; white-space: normal; }
.mc .mc-fold .mc-fold-b:hover, .mc-fold-b:hover { background: rgba(18, 183, 106, 0.14); }
.mc-fold-b b { color: #067647; font-weight: 600; white-space: nowrap; }
.mc-fold-b i { font-style: normal; color: var(--lab); }
html.dark .mc-fold-b { background: rgba(18, 183, 106, 0.12); }
html.dark .mc-fold-b b { color: #5FD39A; }
.mc-fold-list { width: 100%; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.mc-fold-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--soft); }
.mc-fold-row:first-child { border-top: 0; }
.mc-fold-row.undone { opacity: 0.55; }
.mc-fold-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none; }
.mc-fold-t { flex: 1; min-width: 0; }
.mc-fold-t small { display: block; color: var(--lab); font-size: 11.5px; }
.mc-fold-row .link-btn { flex: none; margin-top: 14px; font: 500 12px var(--sans); color: var(--lab); }

/* Details never scrolls sideways: long words (an email address) wrap
   (Conner, 2026-11-06). */
.ag-panel { overflow-x: hidden; overflow-wrap: anywhere; }

/* ---- Meetings, a tab of Nimbus for Mac (macmeet.js, 2026-11-07) ---- */
.rail-soon { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #FF2E93; color: #fff; font: 700 11px/1.4 var(--sans); white-space: nowrap; }
.rail:not(.open) .rail-soon { position: absolute; top: 2px; right: 0; padding: 0 5px; font-size: 10px; }
.mt { display: flex; flex-direction: column; gap: 14px; }
.mt-top { display: flex; align-items: center; gap: 10px; }
.mt-space { flex: 1; }
.mt-source { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 500; color: var(--soft); }
.mt-source i { width: 8px; height: 8px; border-radius: 50%; background: #12B76A; }
.mt-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mt-card h2 { margin: 0; font: 700 20px/1.2 var(--tight); letter-spacing: -0.01em; text-transform: none; color: var(--ink); }
.mt-card p { margin: 0; color: var(--soft); }
.mt-setup { max-width: 560px; }
.mt-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mt-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 14px; align-items: start; }
@media (max-width: 900px) { .mt-cols { grid-template-columns: minmax(0, 1fr); } }
.mt-lab, .mt-sh { margin: 0; font: 700 10.5px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lab); }
.mt-when { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--soft); font-size: 13.5px; }
.mt-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #0F1115; color: #fff; font: 600 12px/1 var(--sans); }
.mt-pill i { width: 7px; height: 7px; border-radius: 50%; background: #FFC24B; }
.mt-brief { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.mt-wide { grid-column: 1 / -1; }
.mt-sec { display: flex; flex-direction: column; gap: 0; min-width: 0; border-top: 1px solid var(--line); padding: 14px 0 2px; }
.mt-sec .mt-sh { margin-bottom: 8px; }
.mt-card .mt-line { font-size: 14px; line-height: 1.55; color: var(--soft); margin: 0 0 10px; }
.mt-line b { color: var(--ink); font-weight: 600; }
.mt-line small, .mt-src { display: block; margin-top: 2px; color: var(--lab); font-size: 12px; line-height: 1.4; }
.mt-none { color: var(--lab) !important; }
.mt-card .mt-rule { font-size: 14px; line-height: 1.5; color: var(--soft); padding: 2px 0 2px 12px; border-left: 2px solid #FF5CA8; margin: 0 0 10px; }
@media (max-width: 700px) { .mt-brief { grid-template-columns: minmax(0, 1fr); } }
/* The call's actions: one row, one height. */
.mt .mt-acts { margin: 6px 0 4px; }
.mt .mt-acts .mt-act { display: inline-flex; align-items: center; justify-content: center; height: 36px; margin: 0; padding: 0 16px; box-sizing: border-box;
  border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink);
  font: 600 13.5px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transform: none; }
.mt .mt-acts .mt-act:hover { background: var(--hover); }
.mt .mt-acts .mt-act.go { background: var(--pill); color: var(--pilltx); box-shadow: none; }
.mt .mt-acts .mt-act.go:hover { opacity: 0.88; }
.mt .mt-acts .mt-q { margin: 0 0 0 auto; padding: 0; height: auto; border: 0; background: none; box-shadow: none; color: var(--lab);
  font: 500 13px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mt .mt-acts .mt-q:hover { color: var(--ink); background: none; }
.mt-wait { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.mt-wait b { color: var(--ink); }
.mt-today { gap: 0; }
.mt-today .mt-lab { margin-bottom: 6px; }
.mt-call { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 6px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; text-align: left; color: var(--ink); cursor: pointer; font: inherit; }
.mt-call:first-of-type { border-top: 0; }
.mt-call.on { background: var(--hover); border-radius: 10px; }
.mt-call.past { opacity: 0.55; }
.mt-t { width: 64px; flex: none; font-weight: 600; font-size: 13px; }
.mt-w { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-w b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-w span { font-size: 12px; color: var(--lab); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-tag { flex: none; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--hover); color: var(--soft); white-space: nowrap; }
.mt-tag.ok { background: rgba(18, 183, 106, 0.12); color: #067647; }
.mt-settings { max-width: 640px; gap: 0; padding-top: 6px; padding-bottom: 8px; }
.mt-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.mt-row:first-child { border-top: 0; }
.mt-row-l { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-row-l b, .mt-sub > b { font-size: 14px; font-weight: 600; color: var(--ink); }
.mt-row-l span, .mt-from { font-size: 12.5px; color: var(--lab); }
.mt-seg { display: flex; flex: none; padding: 3px; border-radius: 999px; background: var(--hover); }
.mt-seg-b { padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; font: 600 12.5px/1.2 var(--sans); color: var(--soft); cursor: pointer; }
.mt-seg-b.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.mt-tog { position: relative; flex: none; width: 40px; height: 24px; padding: 0; border: 0; border-radius: 12px; background: rgba(15, 17, 21, 0.15); box-shadow: none; cursor: pointer; }
.mt-tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: left 0.15s; }
.mt-tog.on { background: #12B76A; }
.mt-tog.on::after { left: 19px; }
.mt-sub { display: flex; flex-direction: column; gap: 2px; padding: 14px 0 6px; border-top: 1px solid var(--line); }
.mt-cal { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
.mt-cal:first-of-type { border-top: 0; margin-top: 6px; }
.mt-cal .mt-tog { margin-left: auto; }
.mt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--day); flex: none; }

/* YOUR AGENTS ON YOUR PHONE (phoneagents.js, Conner, 2026-11-07): dark,
   the main agent big at the top, groups that fold, a Nimbus cloud each.
   On a phone it fills the screen; on a computer it's a column in the page. */
.pa { --pa-bg: #141414; --pa-ink: #F2F2F2; --pa-muted: #8E8E8E; --pa-chip: #232323; --pa-line: #2E2E2E;
  background: var(--pa-bg); color: var(--pa-ink); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; max-width: 520px; height: calc((100dvh - 140px) / var(--z, 1)); min-height: 520px; font-size: 15px; }
@media (max-width: 767px) {
  .pa { position: fixed; inset: 56px 0 0; z-index: 35; border-radius: 0; max-width: none; height: auto; min-height: 0;
    padding-bottom: env(safe-area-inset-bottom); }
  /* Conner, 2026-11-14: on a phone the chat reads like the phone's own apps
     (Grok, iMessage): the iPhone's font, lighter than Inter on dark, and
     already on the phone so it never has to load. The rest of Nimbus keeps Inter. */
  .pa { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; --pa-ink: #FFFFFF; }
  /* Conner, 2026-11-14: the white text looked foggy (it was #F2F2F2). Pure white, like Grok. */
  /* The page behind the chat stays put (Conner, 2026-11-13: tapping the box,
     the Nimbus page behind scrolled and the chat didn't lock in place; he saw
     the top of the chat and had to scroll down to find the box). With the
     page pinned, the phone can't scroll it to chase the keyboard: only the
     chat moves, sized to what's visible (fitPhone). */
  html:has(.pa), html:has(.pa) body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  html:has(.pa) body { position: fixed; inset: 0; width: 100%; }
  .pa-log, .pa-list { overscroll-behavior: contain; }
  /* Keyboard up: no home-bar space under the box, it sits on the keyboard. */
  .pa.pa-kb { padding-bottom: 0; }
  .pa.pa-kb .pa-compose { margin-bottom: 6px; }
}
.pa button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
/* Conner, 2026-11-13: a gray box kept showing behind Ops. dark.css's html.dark button:hover outranks .pa button, and an iPhone keeps :hover on the last thing tapped. Plain phone buttons stay clear on hover. */
html.dark .pa :is(.pa-hero, .pa-row, .pa-grp, .pa-tl, .pa-rep, .pa-skip):hover, .pa :is(.pa-hero, .pa-row, .pa-grp, .pa-tl, .pa-rep, .pa-skip):hover { background: none; }
.pa-top, .pa-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 6px; flex: none; }
.pa .pa-circ { width: 42px; height: 42px; border-radius: 50%; background: var(--pa-chip); display: grid; place-items: center; font-size: 20px; text-align: center; }
.pa .pa-ghost { visibility: hidden; }
.pa .pa-hero { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 auto 6px; padding-top: 22px; text-align: center; flex: none; }
.pa-hero b { font-weight: 600; font-size: 16px; margin-top: 4px; }
.pa-hero small { color: var(--pa-muted); font-size: 12px; }
.pa-list { flex: 1; overflow-y: auto; padding-bottom: 18px; -webkit-overflow-scrolling: touch; }
.pa .pa-grp { display: flex; align-items: center; gap: 6px; width: 100%; padding: 16px 18px 6px; color: var(--pa-muted); font-size: 14px; }
.pa-chev { display: inline-block; transition: transform .15s; }
.pa-chev.shut { transform: rotate(-90deg); }
.pa .pa-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 18px; }
html.dark .pa .pa-row:active, .pa .pa-row:active { background: #1D1D1D; }
.pa-face, .pa-tiny, .pa-big { display: inline-flex; flex: none; }
.pa-t { flex: 1; min-width: 0; display: block; }
.pa-l1 { display: flex; justify-content: space-between; gap: 8px; }
/* Like Grok Bot's list (Conner, 2026-11-14): bigger, lighter text. */
.pa-l1 { align-items: baseline; }
.pa-l1 b { font-weight: 500; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pa-l1 small { color: var(--pa-muted); font-size: 13px; white-space: nowrap; }
.pa-l2 { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 2px; color: var(--pa-muted); font-size: 16px; }
.pa-pv { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-needs { flex: none; font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 999px; background: rgba(247, 144, 9, .18); color: #FDB022; }
.pa-l2.pa-work { color: #7EA6FF; }
.pa-empty { color: var(--pa-muted); text-align: center; padding: 40px 24px; margin: 0; }
.pa-err { color: #FF8A8A; font-size: 13px; text-align: center; margin: 8px 16px; }
.pa-who { display: flex; align-items: center; gap: 8px; background: var(--pa-chip); border-radius: 999px; padding: 5px 14px 5px 8px; min-width: 0; }
.pa-who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-log { flex: 1; overflow-y: auto; padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; overflow-wrap: anywhere; }
/* Conner, 2026-11-14: Grok Bot's chat text is a touch bigger. Messages at the iPhone's standard 17. */
.pa-a { align-self: flex-start; background: var(--pa-chip); border-radius: 18px; padding: 10px 14px; max-width: 88%; white-space: pre-wrap; font-size: 17px; line-height: 1.4; }
.pa-u { align-self: flex-end; background: var(--pa-me, #C0367F); color: var(--pa-me-ink, #fff); border-radius: 18px; padding: 10px 14px; max-width: 82%; white-space: pre-wrap; font-size: 17px; line-height: 1.4; }
.pa-ts { align-self: center; font-size: 12px; color: var(--pa-muted); margin-top: 6px; }
.pa-tl-wrap { align-self: center; max-width: 92%; text-align: center; }
.pa .pa-tl { display: inline-flex; align-items: center; gap: 5px; color: var(--pa-muted); font-size: 12px; text-align: center; }
.pa-tl .pa-tiny { vertical-align: -4px; }
.pa-tl-body { text-align: left; background: #1C1C1C; border: 1px solid var(--pa-line); border-radius: 14px; padding: 8px 12px; margin-top: 6px; font-size: 13px; color: #D6D6D6; }
.pa-tl-body p { margin: 4px 0; white-space: pre-wrap; }
.pa-tl-body ul { margin: 0; padding-left: 18px; }
.pa-note { align-self: stretch; background: #1C1C1C; border: 1px solid var(--pa-line); border-radius: 14px; padding: 9px 12px; font-size: 13px; color: #CFCFCF; }
.pa-working { display: flex; align-items: center; gap: 10px; color: var(--pa-muted); font-size: 14px; }
.pa-working .pa-tiny { animation: pa-bob 1.4s ease-in-out infinite; }
@keyframes pa-bob { 50% { transform: translateY(-3px); } }
.pa-compose { display: flex; flex-direction: column; gap: 6px; margin: 6px 12px 14px; background: var(--pa-chip); border: 1px solid var(--pa-line); border-radius: 24px; padding: 6px 6px 6px 16px; flex: none; }
.pa-compose-row { display: flex; align-items: flex-end; gap: 8px; }
.pa-compose.replying { border-radius: 20px; padding-top: 8px; }
.pa-replying { display: flex; align-items: center; gap: 8px; margin-right: 2px; padding: 6px 6px 6px 10px; border-radius: 12px; background: #2C2C2C; color: var(--pa-muted); font-size: 13px; }
.pa-replying-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa .pa-x { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; text-align: center; color: var(--pa-muted); font-size: 12px; }
/* One open line (change 91, Conner, 2026-11-12): is the Mac on, where a
   phone message is, what an agent is doing now, cards to say yes to, and
   reply to any message. */
.pa-mac { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 16px 0; font-size: 13px; color: var(--pa-muted); flex: none; }
.pa-dot { width: 8px; height: 8px; border-radius: 50%; background: #5C5C5C; flex: none; }
.pa-mac.on .pa-dot { background: #32D583; }
.pa-mac.on { color: #A6F4C5; }
.pa-unread { width: 10px; height: 10px; border-radius: 50%; background: #1570EF; flex: none; }
.pa-urow { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; max-width: 82%; gap: 3px; }
.pa-urow .pa-u { max-width: 100%; }
.pa-quote { max-width: 100%; font-size: 12px; color: var(--pa-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-state { align-self: flex-end; margin-top: -6px; font-size: 11.5px; color: var(--pa-muted); }
.pa-arow { align-self: flex-start; display: flex; align-items: center; gap: 6px; max-width: 94%; }
.pa-arow .pa-a { max-width: none; min-width: 0; }
.pa .pa-rep { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; text-align: center; color: #6A6A6A; font-size: 14px; }
html.dark .pa .pa-rep:active, .pa .pa-rep:active { background: #262626; color: var(--pa-ink); }
.pa-card { align-self: stretch; background: #1C1C1C; border: 1px solid var(--pa-line); border-radius: 16px; padding: 10px 12px; }
.pa-card p { margin: 4px 0 10px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.pa-card-h { font-size: 12px; color: #FDB022; }
.pa-card.settled .pa-card-h { color: var(--pa-muted); }
.pa-card.settled p { margin-bottom: 0; color: var(--pa-muted); }
.pa-card-btns { display: flex; gap: 8px; }
.pa .pa-yes, .pa .pa-skip { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; text-align: center; }
.pa .pa-yes { background: var(--pa-ink); color: #141414; font-weight: 600; }
.pa .pa-skip { border: 1px solid #3A3A3A; }
.pa .pa-yes:disabled, .pa .pa-skip:disabled { opacity: 0.6; }
.pa .pa-input { flex: 1; resize: none; border: 0; outline: 0; box-shadow: none; background: transparent; min-height: 0; height: 36px; width: auto; border-radius: 0; margin: 0; color: var(--pa-ink); font: inherit; font-size: 17px; line-height: 1.4; padding: 6px 0; max-height: 140px; }
.pa-input::placeholder { color: var(--pa-muted); }
/* Like the Mac (Conner, 2026-11-13: pink on the phone, blue on the Mac):
   blue, or the agent's color when the chat is tinted. */
.pa .pa-send { width: 34px; height: 34px; border-radius: 50%; background: var(--pa-me, #1570EF); color: var(--pa-me-ink, #fff); display: grid; place-items: center; font-weight: 700; text-align: center; flex: none; }
.pa .pa-send:disabled { opacity: .5; }
/* A photo from the phone (Conner, 2026-11-12): the + opens the phone's own
   picker, the photo waits above the text box with an ✕, and shows in the chat. */
.pa .pa-photo { width: 34px; height: 34px; border-radius: 50%; background: #2C2C2C; color: var(--pa-ink); display: grid; place-items: center; font-size: 22px; line-height: 1; flex: none; cursor: pointer; margin-left: -10px; }
.pa .pa-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pa-thumb { position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-left: -6px; }
.pa-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; display: block; }
.pa-thumb-wait { font-size: 13px; color: var(--pa-muted); padding: 8px 4px; }
.pa-thumb .pa-x { background: #2C2C2C; }
.pa-img { display: block; max-width: 100%; width: 240px; max-height: 320px; object-fit: cover; border-radius: 16px; }
.pa-img-none { width: auto; padding: 10px 14px; background: var(--pa-chip); color: var(--pa-muted); font-size: 13px; }

/* Phone: search in the top bar (2026-11-11). The button sits where the empty
   spacer was; opened, the box takes the middle and an × closes it. */
@media (max-width: 760px) {
  .phone-q { display: flex; align-items: center; gap: 8px; min-width: 0; height: 40px; padding: 0 4px 0 12px; border-radius: 12px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); color: var(--lab); }
  .phone-q .ico, .phone-q .ico svg { width: 16px; height: 16px; flex: none; }
  .phone-q input, html.dark .phone-q input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; font: 400 16px var(--sans); color: var(--ink); }
  .phone-q-x { width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--lab); display: grid; place-items: center; flex: none; }
  .phone-q-x .ico, .phone-q-x .ico svg { width: 16px; height: 16px; }
  .phone-search .ico, .phone-search .ico svg { width: 22px; height: 22px; }
}

/* ---- Chat as a full page (Conner, 2026-11-11) ----------------------------------
   Grok Bot's layout and sizes, in Nimbus's own colors, type and clouds: the
   app's sidebar is untouched; beside it the agents, then the chat edge to
   edge, with details or the browser opening on the right. Mockup:
   docs/mockups/mac-chat-full-page.html. */
.mc.ag-full.ag-left-layout { grid-template-columns: 292px minmax(0, 1fr); gap: 0; }
.mc.ag-full.ag-left-layout.with-details { grid-template-columns: 292px minmax(0, 1fr) 320px; }
.mc.ag-full.ag-left-layout.with-web { grid-template-columns: 292px minmax(0, 1fr) minmax(380px, 44%); }
/* max-width needs !important: the wide-screen rule that caps and centers every page is more specific,
   and left a wide empty band between a folded sidebar and the agents (Conner, 2026-11-11). */
.frame:has(> .rail.shell) .stage > main:has(> .ag-left-layout) { padding: 0 !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.ag-left-layout > .ag-side { display: flex; flex-direction: column; min-height: 0; padding: 14px 10px 12px; gap: 10px; border-right: 1px solid var(--line, rgba(127, 127, 127, 0.18)); }
.ag-left-layout > .mc-main { padding: 10px 22px 16px; gap: 8px; }
.ag-left-layout > .ag-panel { position: static; width: auto; margin: 12px 12px 12px 0; }
/* the list: bigger rows, the owner's section names, a blue dot for unread */
.ag-left-layout .ag-list { gap: 2px; }
.ag-left-layout .mc-side-h { margin: 12px 10px 6px; font: 400 12.5px var(--sans); letter-spacing: 0; text-transform: none; color: var(--lab, var(--muted)); }
.ag-left-layout .ag-ghead { margin-top: 0; align-items: center; }
.ag-left-layout .ag-ghead .mc-side-h { margin: 12px 10px 6px; }
.ag-left-layout button.ag-row, .ag-left-layout button.ag-row:hover { gap: 11px; padding: 8px 10px; border-radius: 12px; }
.ag-left-layout button.ag-row.on { background: var(--active, #fff); box-shadow: var(--shadow); }
.ag-left-layout .ag-row .cl { --cl: 40px !important; }
/* Grok Bot-sized list (Conner, 2026-11-13): bigger, bolder names, brighter previews */
.ag-left-layout .ag-row-name { font: 600 15px/1.3 var(--sans); color: var(--ink); }
.ag-left-layout .ag-row-last { font: 400 13.5px/1.35 var(--sans); }
html.dark .ag-left-layout .ag-row-last:not(.working) { color: #A2A7B0; }
.ag-left-layout .ag-dot { width: 9px; height: 9px; }
/* pinned agents are tiles at the top */
.ag-left-layout .ag-pins-h { display: none; }
.ag-left-layout .ag-pins { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 4px 0 8px; }
.ag-left-layout .ag-pins .ag-rowwrap { width: 104px; }
/* No box: the face, star and name sit on the page like the other agents,
   only bigger; a faint highlight on hover and when it's the open chat
   (Conner, 2026-11-12: "why does the bot have that stupid box around it"). */
.ag-left-layout .ag-pins button.ag-row { flex-direction: column; gap: 4px; padding: 12px 6px 9px; border-radius: 16px; background: none; box-shadow: none; }
.ag-left-layout .ag-pins button.ag-row:hover, .ag-left-layout .ag-pins button.ag-row:focus-visible, .ag-left-layout .ag-pins button.ag-row.on { background: var(--hover, rgba(127, 127, 127, 0.12)); box-shadow: none; }
.ag-left-layout .ag-pins .ag-row .cl { --cl: 60px !important; }
.ag-left-layout .ag-pins .ag-row-txt { align-items: center; max-width: 100%; }
.ag-left-layout .ag-pins .ag-row-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 92px; }
.ag-left-layout .ag-pins .ag-row-last { display: none; }
.ag-left-layout .ag-pins .ag-dot { position: absolute; top: 10px; right: 10px; }
.ag-left-layout .ag-pins button.ag-more { top: 4px; right: 4px; }
.ag-left-layout .ag-pins .ag-rowwrap { position: relative; }
.ag-left-layout .ag-star { position: absolute; top: 52px; right: 20px; width: 18px; height: 18px; border-radius: 50%; background: #F79009; color: #fff; font-size: 10.5px; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--card); pointer-events: none; }
/* search and new agent: two round buttons above the list */
.ag-left-layout .ag-top { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex: none; padding: 0 2px; }
.frame:has(> .rail.shell) .mc.ag-left-layout button.ag-round { width: 34px !important; height: 34px !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center; font: 400 21px/1 var(--sans) !important; background: var(--card) !important; color: var(--ink) !important; box-shadow: var(--shadow) !important; }
.ag-left-layout .ag-find { flex: 1; min-width: 0; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--card); box-shadow: var(--shadow); font: 400 13.5px var(--sans); color: var(--ink); }
/* the open agent: a pill at the top of the page; press it for its panel */
.ag-left-layout .ag-head { position: relative; min-height: 46px; padding: 0; }
.frame:has(> .rail.shell) .mc.ag-left-layout button.ag-who { position: absolute; left: 50%; top: 2px; transform: translateX(-50%) !important; display: flex !important; align-items: center; gap: 9px; max-width: 60%; height: auto !important; padding: 5px 16px 5px 7px !important; border-radius: 999px !important; background: var(--card) !important; box-shadow: var(--shadow) !important; cursor: pointer; }
.ag-left-layout .ag-who .cl { --cl: 26px !important; }
.ag-left-layout .ag-who .ag-head-txt { flex-direction: row; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; }
.ag-left-layout .ag-who .ag-head-txt b { font: 600 15px var(--sans); letter-spacing: 0; }
.ag-left-layout .ag-who .ag-head-txt .small { overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
/* the chat: larger words, rounder bubbles */
.frame:has(> .rail.shell) .ag-left-layout .mc-log { padding: 8px 4px 10px; }
.frame:has(> .rail.shell) .ag-left-layout .mc-log .msg { max-width: min(82%, 860px); }
.frame:has(> .rail.shell) .ag-left-layout .mc-log .bubble { font: 400 15px/1.5 var(--sans); padding: 11px 15px; border-radius: 18px 18px 18px 7px; }
.frame:has(> .rail.shell) .ag-left-layout .mc-log .msg-you .bubble { border-radius: 18px; }
.frame:has(> .rail.shell) .ag-left-layout .mc-log .small { font-size: 13px; }
/* agent replies: a lighter bubble so they read against the dark chat */
html.dark .frame:has(> .rail.shell) .ag-left-layout .mc-log .msg:not(.msg-you):not(.msg-err) .bubble { background: #2A2C31; color: #EEF0F3; }
/* the message bar: one rounded bar, a round send button */
.frame:has(> .rail.shell) .ag-left-layout .mc-compose { padding: 8px 10px 8px 18px; border-radius: 26px; }
.frame:has(> .rail.shell) .ag-left-layout .mc-compose .mc-input, html.dark .frame:has(> .rail.shell) .ag-left-layout .mc-compose .mc-input { font: 400 15px/1.5 var(--sans); min-height: 36px; padding-top: 8px; }
.ag-left-layout .ag-compose-row { align-items: flex-end; }
.frame:has(> .rail.shell) .mc.ag-left-layout .ag-compose-row button.primary:not(.link-btn):not(.im-sw):not(.mc-chat-open):not(.mc-chat-x):not(.mc-sched):not(.ag-row):not(.ag-color):not(.at-row) { width: 38px; min-width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 0; }
.ag-left-layout .ag-compose-row button.primary::before { content: "↑"; font: 500 18px var(--sans); }
.ag-left-layout .mc-can { padding-left: 2px; }
@media (min-width: 1001px) { .ag-left-layout .mc-side-btn { display: none !important; } }
@media (max-width: 1180px) {
  .mc.ag-full.ag-left-layout.with-details, .mc.ag-full.ag-left-layout.with-web { grid-template-columns: 292px minmax(0, 1fr); }
  .ag-left-layout > .ag-panel { position: fixed; z-index: 40; top: 64px; right: 16px; bottom: 16px; width: min(340px, calc(100vw - 32px)); margin: 0; box-shadow: var(--shadow), 0 24px 60px rgba(0, 0, 0, 0.25); }
  .ag-left-layout > .ag-panel.ag-web-panel { width: min(560px, calc(100vw - 32px)); }
}
/* No visible scrollbars in Chat's three sections: agents, the chat and
   Details (Conner, 2026-11-13: "gross"). They still scroll. The side menu
   keeps its own. */
.ag-left-layout :is(.ag-side, .ag-list, .mc-log, .ag-panel) { scrollbar-width: none; }
.ag-left-layout :is(.ag-side, .ag-list, .mc-log, .ag-panel)::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* The phone chat too: its agent list, its messages and the message box
   (Conner, 2026-11-13: "why can I still see the scroll bars?"). */
.pa :is(.pa-list, .pa-log, textarea) { scrollbar-width: none; }
.pa :is(.pa-list, .pa-log, textarea)::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* Details blends in like the other two: no card, a hairline on its left.
   A narrow window still floats it as a card (above). */
@media (min-width: 1181px) {
  .ag-left-layout > .ag-panel:not(.ag-web-panel), html.dark .ag-left-layout > .ag-panel:not(.ag-web-panel) { margin: 0; border-radius: 0; background: transparent; box-shadow: none; border-left: 1px solid var(--line, rgba(127, 127, 127, 0.18)); padding: 16px 14px; }
}
@media (max-width: 1000px) {
  .mc.ag-full.ag-left-layout, .mc.ag-full.ag-left-layout.with-details, .mc.ag-full.ag-left-layout.with-web { grid-template-columns: minmax(0, 1fr); }
  .ag-left-layout > .ag-side { display: none; }
  .ag-left-layout.side-open > .ag-side { display: flex; position: fixed; z-index: 40; top: 64px; left: 16px; bottom: 16px; width: min(320px, calc(100vw - 32px)); background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--shadow), 0 24px 60px rgba(0, 0, 0, 0.25); }
  .ag-left-layout .mc-side-btn { display: inline-flex !important; }
  .ag-left-layout > .mc-main { padding: 8px 12px 12px; }
}

/* ---- The agent's panel (Conner, 2026-11-11; docs/mockups/agent-panel.html) ----
   Its cloud (hover for a pencil: shapes and colors), its name (renames in
   place), Activity and Library, and a gear for everything else. */
.ag-pane { position: relative; display: flex; flex-direction: column; gap: 10px; }
.ag-pane .ag-close { position: absolute; left: 0; top: 0; z-index: 1; }
.frame:has(> .rail.shell) .mc .ag-pane button.ag-close, .frame:has(> .rail.shell) .mc .ag-pane button.ag-gear { width: 32px !important; height: 32px !important; padding: 0 !important; border-radius: 50% !important; font-size: 16px !important; background: var(--chip) !important; }
.ag-pane .ag-gear { position: absolute; right: 0; top: 0; z-index: 1; }
.ag-pane .ag-back { align-self: center; font: 500 15px var(--sans) !important; margin: 4px 0 6px; }
.ag-hero-big { padding: 14px 0 2px; gap: 8px; }
.frame:has(> .rail.shell) .mc .ag-pane button.ag-face { position: relative; width: 104px !important; height: 104px !important; padding: 0 !important; border-radius: 50% !important; background: none !important; box-shadow: none !important; cursor: pointer; }
.ag-face .ag-face-edit { position: absolute; inset: 6px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 24px; opacity: 0; transition: opacity 0.12s; }
.ag-face:hover .ag-face-edit, .ag-face:focus-visible .ag-face-edit, .ag-face.open .ag-face-edit { opacity: 1; }
.frame:has(> .rail.shell) .mc .ag-pane button.ag-name-btn { height: auto !important; padding: 2px 10px !important; background: none !important; box-shadow: none !important; font: 500 17px var(--sans) !important; cursor: text; }
.frame:has(> .rail.shell) .mc .ag-pane button.ag-name-btn:hover { background: var(--hover) !important; }
.ag-pane input.ag-rename { width: 80%; text-align: center; font: 500 17px var(--sans); }
.ag-picker { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.ag-picker-top { display: flex; justify-content: space-between; align-items: center; font: 500 13.5px var(--sans); }
.ag-shapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px 2px; justify-items: center; }
.frame:has(> .rail.shell) .mc .ag-pane button.ag-shape { width: 54px !important; height: 54px !important; padding: 0 !important; border-radius: 50% !important; background: none !important; box-shadow: none !important; }
.frame:has(> .rail.shell) .mc .ag-pane button.ag-shape.on { box-shadow: inset 0 0 0 2px var(--line-strong, #888) !important; }
.ag-pick-colors { justify-content: center; flex-wrap: wrap; gap: 12px; }
.ag-tabs { display: flex; justify-content: center; gap: 4px; margin: 2px 0 4px; }
.frame:has(> .rail.shell) .mc .ag-pane button.ag-tab { height: 30px !important; padding: 0 13px !important; background: none !important; box-shadow: none !important; font: 500 13.5px var(--sans) !important; color: var(--lab, var(--muted)) !important; }
.frame:has(> .rail.shell) .mc .ag-pane button.ag-tab.on { background: var(--chip) !important; box-shadow: inset 0 0 0 1px var(--line-strong) !important; color: var(--ink) !important; }
.ag-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 4px 0; font: 400 12.5px var(--sans); color: var(--lab, var(--muted)); }
.ag-pane .ag-card { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 4px 14px; }
.ag-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.ag-item + .ag-item { border-top: 1px solid var(--line, rgba(127, 127, 127, 0.14)); }
.ag-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: left; }
.ag-item-main b { font: 500 13.5px/1.3 var(--sans); color: var(--ink); overflow-wrap: anywhere; white-space: normal; }
.frame:has(> .rail.shell) .mc .ag-pane button.ag-item-main { height: auto !important; padding: 0 !important; border-radius: 8px !important; background: none !important; box-shadow: none !important; align-items: flex-start !important; white-space: normal !important; }
.frame:has(> .rail.shell) .mc .ag-pane button.ag-item-go { padding: 9px 0 !important; width: 100%; }
.ag-none { margin: 10px 0; }
.ag-pane .ag-more-btn { display: block; margin: 4px auto 8px; }
.ag-chips { display: flex; gap: 6px; }
.frame:has(> .rail.shell) .mc .ag-pane button.ag-chip { height: 28px !important; padding: 0 12px !important; font: 500 13px var(--sans) !important; }
.frame:has(> .rail.shell) .mc .ag-pane button.ag-chip.on { background: var(--pill) !important; color: var(--pilltx) !important; box-shadow: none !important; }
.ag-pane .ag-log { margin-top: 4px; }
.ag-pane .ag-log > span:first-child { margin: 4px 4px 0; font: 400 12.5px var(--sans); color: var(--lab, var(--muted)); }
/* Folded, the sidebar shows icons only: no counts beside Contacts or Tasks (Conner, 2026-11-11). */
.rail.shell:not(.open) .rail-btn .td-n { display: none; }

/* Agents speak mid-job (2026-11-11): a question with buttons, and a quiet routine's faint line. */
.ag-ask-card { margin-top: 8px; width: 100%; max-width: 520px; box-sizing: border-box; padding: 16px 16px 12px; border-radius: 18px; border: 1px solid var(--line, rgba(0,0,0,.12)); background: var(--card, #fff); }
.ag-ask-t { font: 600 14.5px var(--sans); color: var(--ink); margin: 0 0 4px; }
.ag-ask-q { font: 400 14px var(--sans); color: var(--ink); margin: 0 0 10px; }
.ag-ask-t + .ag-ask-q { color: var(--lab, var(--muted)); }
.ag-ask-card .ag-opt { display: flex; justify-content: flex-start; height: auto; box-shadow: none; align-items: center; gap: 12px; width: calc(100% + 16px); margin: 0 -8px; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 400 14px var(--sans); text-align: left; cursor: pointer; }
.ag-ask-card .ag-opt:hover, .ag-ask-card .ag-opt.on { background: var(--wash, rgba(127,127,127,.12)); }
.ag-ask-card .ag-key { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line, rgba(0,0,0,.18)); font: 500 12px var(--sans); color: var(--lab, var(--muted)); }
.ag-ask-card .ag-opt.on .ag-key { background: var(--ink); color: var(--card, #fff); border-color: var(--ink); }
.ag-ask-card .ag-opt-other .ag-opt-t { color: var(--lab, var(--muted)); }
.ag-ask-card .ag-opt.typing { cursor: default; background: var(--wash, rgba(127,127,127,.12)); }
.ag-ask-card .ag-opt-in, .ag-ask-card .ag-opt-in:focus { flex: 1; min-width: 0; height: 28px; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; color: var(--ink); font: 400 14px var(--sans); }
.ag-ask-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.ag-dots { display: flex; gap: 6px; flex: 1; }
.ag-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line, rgba(127,127,127,.35)); }
.ag-dots i.done { background: var(--lab, var(--muted)); opacity: .55; }
.ag-dots i.on { background: var(--ink); }
.ag-ask-card .ag-ask-b { width: auto; box-shadow: none; height: auto; padding: 8px 16px; border-radius: 999px; border: 0; background: var(--wash, rgba(127,127,127,.14)); color: var(--ink); font: 500 13px var(--sans); cursor: pointer; }
.ag-ask-card .ag-ask-b.primary { background: var(--ink); color: var(--card, #fff); }
.ag-tline.quiet { color: var(--lab, var(--muted)); opacity: .8; font-size: 12px; }

/* The slim chat bar (Conner, 2026-11-11: "let's condense this chat", like Grok
   Bot): one rounded line with + on the left and send on the right. A reply or
   attached files sit inside it, above the words, until it's sent. */
.frame:has(> .rail.shell) .ag-left-layout .mc-compose.ag-slim { padding: 5px 6px !important; border-radius: 24px !important; gap: 4px; }
.frame:has(> .rail.shell) .ag-left-layout .mc-compose.ag-slim .mc-input,
html.dark .frame:has(> .rail.shell) .ag-left-layout .mc-compose.ag-slim .mc-input { min-height: 30px !important; padding: 5px 4px !important; }
.ag-slim .ag-compose-row { align-items: flex-end !important; gap: 8px; }
.frame:has(> .rail.shell) .mc.ag-left-layout .ag-slim button.ag-round { flex: none; width: 32px !important; min-width: 32px !important; height: 32px !important; padding: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center; font: 400 20px/1 var(--sans) !important; box-shadow: none !important; }
.frame:has(> .rail.shell) .mc.ag-left-layout .ag-slim button.ag-plus { background: var(--hover, rgba(127, 127, 127, 0.14)) !important; color: var(--ink) !important; }
.frame:has(> .rail.shell) .mc.ag-left-layout .ag-slim button.ag-send { background: #1570EF !important; color: #fff !important; font-weight: 500 !important; font-size: 17px !important; }
.ag-slim .ag-plus-wrap { position: relative; flex: none; }
.ag-slim .ag-picker-input { display: none; }
.ag-slim .ag-plus-menu { position: absolute; left: 0; bottom: 40px; z-index: 30; min-width: 170px; padding: 6px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow), 0 12px 30px rgba(0, 0, 0, 0.25); }
.frame:has(> .rail.shell) .ag-slim .ag-plus-menu button.link-btn { display: flex; width: 100%; padding: 8px 10px; border-radius: 8px; font: 400 13.5px var(--sans); color: var(--ink); text-decoration: none; }
.ag-slim .ag-plus-menu button.link-btn:hover { background: var(--hover); }
.ag-compose-top { display: flex; flex-direction: column; gap: 6px; padding: 4px 4px 0; }
.ag-replying { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border-radius: 10px; background: var(--hover, rgba(127, 127, 127, 0.14)); font: 400 12.5px/1.4 var(--sans); color: var(--muted); }
.ag-replying-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-files { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-file { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; padding: 4px 6px 4px 9px; border-radius: 9px; background: var(--hover, rgba(127, 127, 127, 0.14)); font: 400 12.5px/1.4 var(--sans); color: var(--ink); }
.ag-file.busy { opacity: 0.6; }
.ag-file.bad { color: #f97066; }
.ag-file-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame:has(> .rail.shell) .mc button.ag-file-x { flex: none; width: 20px; height: 20px; min-height: 0; padding: 0; font-size: 11px; line-height: 20px; color: var(--muted); text-decoration: none; }
.msg-you .ag-files { justify-content: flex-end; margin-top: 4px; }
/* Reply to any message: an arrow beside it on hover, and the quote above yours. */
.ag-bubble-row { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.msg-you .ag-bubble-row { flex-direction: row-reverse; }
/* a long reply as a stack of bubbles, one per paragraph (2026-11-13) */
.ag-bubbles { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; max-width: 100%; }
.ag-bubbles > .bubble { max-width: 100%; }
.ag-bubbles > .bubble + .bubble { border-top-left-radius: 6px !important; }
.frame:has(> .rail.shell) .mc button.ag-reply-btn { flex: none; width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 50%; font-size: 14px; line-height: 26px; color: var(--muted); text-decoration: none; opacity: 0; transition: opacity 0.12s; }
/* As strong as the rule above that hides it, or it never shows (Conner, 2026-11-12: "the reply button doesnt show"). */
.frame:has(> .rail.shell) .mc .msg:hover button.ag-reply-btn, .frame:has(> .rail.shell) .mc button.ag-reply-btn:focus-visible, .msg:hover .ag-reply-btn, .ag-reply-btn:focus-visible { opacity: 1; }
.ag-quote { display: block; max-width: 80%; margin: 0 4px 3px; font: 400 12px/1.4 var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-you .ag-quote { align-self: flex-end; text-align: right; }

/* An agent chat draws its newest messages first (2026-11-12, "snappy"). */
.ag-earlier { display: block; margin: 4px auto 12px; font-size: 12.5px; color: var(--lab, var(--muted)); }

/* Like Grok (Conner, 2026-11-12, "Yes, both"): the working line is the
   agent's face and soft gray words saying what it's doing, no pill and no
   name; a reply that lands rises a few pixels into place, once. */
.mc .mc-run .mc-run-b, .frame:has(> .rail.shell) .mc .mc-run .mc-run-b { padding: 2px 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; font: 400 13.5px/1.3 var(--sans) !important; color: var(--lab, var(--muted)) !important; }
.mc .mc-run .mc-run-t { color: var(--lab, var(--muted)); }
.msg.arrive { animation: msg-rise 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes msg-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg.arrive { animation: none; } }

/* What an agent did, in the working line's look (Conner, 2026-11-12): its
   face and gray words, no pill and no green; opened, plain gray lines. */
.frame:has(> .rail.shell) .mc .mc-did .mc-did-b, .mc .mc-did .mc-did-b { gap: 8px; padding: 2px 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; height: auto !important; font: 400 13px/1.3 var(--sans) !important; color: var(--lab, var(--muted)) !important; }
.mc .mc-did .mc-did-b:hover { color: var(--ink) !important; }
.mc-did .mc-did-steps { margin: 0 0 2px 26px; gap: 4px; }
.mc-did .mc-did-steps .mc-step { font: 400 12.5px/1.35 var(--sans); }
.mc-did .mc-did-steps .mc-step.done::before { content: none; }
/* Links in an agent's reply, like Grok's: the name, underlined. */
.mc .bubble a.ag-link, .mc .bubble a.tp-postlink { color: inherit; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; overflow-wrap: anywhere; }
.mc .bubble a.ag-link:hover, .mc .bubble a.tp-postlink:hover { text-decoration-thickness: 2px; }
/* The round down arrow over the chat's end (Conner, 2026-11-12). */
.ag-main { position: relative; }
.frame:has(> .rail.shell) .mc button.ag-down { position: absolute; left: 50%; bottom: 74px; z-index: 5; width: 34px !important; height: 34px !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center; font: 400 17px/1 var(--sans) !important; color: var(--ink) !important; background: var(--card) !important; box-shadow: var(--shadow), 0 6px 18px rgba(0, 0, 0, 0.18) !important; opacity: 0; transform: translate(-50%, 6px) !important; pointer-events: none; transition: opacity 0.15s, transform 0.15s; }
.frame:has(> .rail.shell) .mc button.ag-down.show { opacity: 1; transform: translate(-50%, 0) !important; pointer-events: auto; }
/* Photos show as themselves, in the box and in the chat (Conner, 2026-11-12, pasting into Grok Bot). */
.ag-thumb { position: relative; display: inline-block; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--hover, rgba(127, 127, 127, 0.14)); }
.ag-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-thumb.busy img { opacity: 0.55; }
.msg .ag-thumb { width: 160px; height: auto; max-height: 200px; }
.msg .ag-thumb img { height: auto; max-height: 200px; }
.ag-thumb .ag-thumb-x { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; min-height: 0; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 10px; line-height: 18px; cursor: pointer; opacity: 0; transition: opacity 120ms; }
.ag-thumb:hover .ag-thumb-x, .ag-thumb .ag-thumb-x:focus-visible { opacity: 1; }
.ag-compose.drop { outline: 2px dashed var(--lab, rgba(127, 127, 127, 0.5)); outline-offset: 2px; }

/* Tidy chat (Conner, 2026-11-12): what was saved is one plain gray line, no
   green pill; the chat never scrolls sideways; long step lines are cut short
   (the whole line is on hover). */
.frame:has(> .rail.shell) .mc .mc-fold .mc-fold-b, .mc .mc-fold .mc-fold-b, html.dark .mc .mc-fold .mc-fold-b { gap: 6px; padding: 2px 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; height: auto !important; font: 400 13px/1.3 var(--sans) !important; color: var(--lab, var(--muted)) !important; }
.mc .mc-fold .mc-fold-b:hover, html.dark .mc .mc-fold .mc-fold-b:hover { background: none !important; color: var(--ink) !important; }
.mc-full .mc-log { overflow-x: hidden; }
.mc-log .msg, .mc-did, .mc-run, .mc-steps { min-width: 0; max-width: 100%; }
.mc-steps .mc-step { display: block; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc .mc-did .mc-did-b, .mc .mc-run .mc-run-b { max-width: 100%; min-width: 0; }
.mc .mc-did .mc-did-b span, .mc .mc-run .mc-run-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Motion while it works, like Grok (Conner, 2026-11-12: "grok does a nice
   job of showing motion so you know its working"): a soft light sweeps
   across the words, and the cloud bobs gently. Gone when the reply lands
   (the line is gone); still for anyone who turned motion off. */
.mc .mc-run .mc-run-t { color: transparent !important; background-image: linear-gradient(90deg, var(--lab, #8a8a90) 0%, var(--lab, #8a8a90) 40%, var(--ink) 50%, var(--lab, #8a8a90) 60%, var(--lab, #8a8a90) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: mc-shim 1.8s linear infinite; }
.mc .mc-run .mc-run-t { animation-delay: var(--shim-at, 0s); }
.mc .mc-run .mc-run-t.enter { animation: mc-run-in 0.35s ease both, mc-shim 1.8s linear infinite; animation-delay: 0s, var(--shim-at, 0s); }
.mc-run-cw { display: inline-flex; flex: none; }
@keyframes mc-shim { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.mc .mc-run .mc-run-cw .mc-run-c { animation: mc-bob 1.4s ease-in-out infinite; animation-delay: var(--bob-at, 0s); }
@keyframes mc-bob { 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  .mc .mc-run .mc-run-t, .mc .mc-run .mc-run-t.enter { animation: none; color: var(--lab, var(--muted)) !important; background: none; }
  .mc .mc-run .mc-run-cw .mc-run-c { animation: none; }
}

/* The photo viewer, over the chat (Conner, 2026-11-12, like Grok Bot's). */
.ag-thumb.opens { cursor: zoom-in; }
.ag-thumb.opens:hover, .ag-thumb.opens:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ag-viewer { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 16px; background: #0b0b0c; color: #f2f2f3; animation: ag-viewer-in 0.16s ease both; }
@keyframes ag-viewer-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ag-viewer { animation: none; } }
.ag-viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; }
.ag-viewer-spacer, .ag-viewer-btns { display: flex; gap: 8px; min-width: 76px; }
.ag-viewer-btns { justify-content: flex-end; }
.ag-viewer-name { max-width: 50%; padding: 6px 14px; border-radius: 999px; background: #1f1f21; font: 500 13px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame:has(> .rail.shell) .mc .ag-viewer .ag-viewer-btn { width: 34px !important; height: 34px !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center; background: #1f1f21 !important; color: #f2f2f3 !important; box-shadow: none !important; font: 400 15px/1 var(--sans) !important; text-decoration: none; }
.ag-viewer-stage { flex: 1; min-height: 0; display: grid; place-items: center; }
.ag-viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.ag-viewer-bar { flex: none; align-self: center; width: min(560px, 100%); display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 16px; border-radius: 999px; border: 1px solid #3a3a3e; background: #141416; }
.frame:has(> .rail.shell) .mc .ag-viewer .ag-viewer-input { flex: 1; min-width: 0; height: 32px; padding: 0; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important; color: #f2f2f3; font: 400 13.5px var(--sans); }
.ag-viewer-input::placeholder { color: #8a8a90; }
.frame:has(> .rail.shell) .mc .ag-viewer button.ag-send { width: 30px !important; height: 30px !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center; background: #1570EF !important; color: #fff !important; box-shadow: none !important; font: 500 16px/1 var(--sans) !important; }

/* Your messages, the send button and the bar's glow in the agent's color,
   white text on every color (Conner, 2026-11-12; docs/mockups/agent-color-chat.png). */
.frame:has(> .rail.shell) .ag-left-layout .ag-tinted .mc-log .msg-you .bubble { background: var(--ag); color: #fff; }
.frame:has(> .rail.shell) .ag-left-layout .ag-tinted .mc-log .msg-you .bubble a { color: #fff; }
.frame:has(> .rail.shell) .mc.ag-left-layout .ag-tinted .ag-slim button.ag-send,
.frame:has(> .rail.shell) .mc .ag-tinted .ag-viewer button.ag-send { background: var(--ag) !important; color: #fff !important; }
.frame:has(> .rail.shell) .ag-tinted .mc-compose:focus-within { box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--ag) 35%, transparent); }

/* What a reply made or scheduled: one quiet line each, like the steps line
   (2026-11-12; docs/mockups/agent-notices.png). */
.mc-note { align-self: flex-start; max-width: min(86%, 560px); width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.frame:has(> .rail.shell) .mc .mc-note button.link-btn.mc-note-b, button.link-btn.mc-note-b { display: inline-flex; align-items: center; gap: 6px; margin-left: -8px; padding: 3px 8px; border-radius: 999px; background: none; color: var(--lab, var(--muted)); font: 400 12.5px var(--sans); text-decoration: none; text-align: left; white-space: normal; }
.frame:has(> .rail.shell) .mc .mc-note button.link-btn.mc-note-b:hover, .frame:has(> .rail.shell) .mc .mc-note button.link-btn.mc-note-b.open { background: var(--hover, rgba(127, 127, 127, 0.12)); color: var(--ink); }
.mc-note-b i { font-style: normal; }
.mc-note .mc-fold-row .link-btn { flex: none; font: 500 12.5px var(--sans); }
.mc-note .mc-fold-t small { display: block; }

/* The agent panel's lists at Grok's size (Conner, 2026-11-12: "we need to make
   the text smaller in the side bar too"): one line each, cut with "…". */
.ag-pane .ag-item { gap: 10px; padding: 7px 0; }
.ag-item-ic { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; border: 1.2px solid var(--lab, var(--muted)); color: var(--lab, var(--muted)); font-size: 10px; line-height: 1; }
.frame:has(> .rail.shell) .mc .ag-pane .ag-item-main b, .frame:has(> .rail.shell) .mc .ag-pane .ag-item-main .small { display: block; width: 100%; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.frame:has(> .rail.shell) .mc .ag-pane .ag-item-main b { font: 400 13px/1.35 var(--sans); }
.frame:has(> .rail.shell) .mc .ag-pane .ag-item-main .small { font: 400 12px/1.35 var(--sans); color: var(--lab, var(--muted)); }
.ag-pane .ag-sec { font-size: 12px; }

/* Browser hand-over card (Conner, 2026-11-12: like Grok's "Action needed"). */
.ag-hand { display: flex; flex-direction: column; gap: 6px; max-width: 520px; padding: 14px 16px; border-radius: 18px; background: var(--card, rgba(127, 127, 127, 0.12)); }
.ag-hand-h { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.ag-hand-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E90FA; }
.ag-hand-t { font-size: 15px; }
.ag-hand-need { margin: 0 0 4px; color: var(--muted); }
.ag-hand-pic { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line, rgba(127, 127, 127, 0.25)); background: #fff; }
.ag-hand-wait { height: 160px; display: flex; align-items: center; justify-content: center; color: #667085; }
.ag-hand-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; flex-wrap: wrap; }

/* Agents talking: their own chat over the owner's (2026-11-12;
   docs/mockups/agent-to-agent-chat.png), guest answers and @agent chips. */
.ag-a2a { position: absolute; inset: 0; z-index: 40; display: flex; justify-content: center; padding: 18px; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); }
.ag-a2a-box { width: min(720px, 100%); display: flex; flex-direction: column; gap: 10px; background: var(--ground, var(--card)); border-radius: 18px; box-shadow: var(--shadow), 0 20px 50px rgba(0, 0, 0, 0.35); padding: 14px 16px 12px; overflow: hidden; }
.ag-a2a-head { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--hover, rgba(127, 127, 127, 0.12)); font: 400 12.5px var(--sans); color: var(--ink); }
.ag-a2a-head b { font-weight: 500; }
.ag-a2a-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.ag-a2a-msg { display: flex; flex-direction: column; gap: 3px; }
.ag-a2a-msg > .ag-who { margin-left: 28px; }
.ag-a2a-row { display: flex; align-items: flex-end; gap: 8px; }
.ag-a2a-row .bubble { max-width: 86%; padding: 9px 13px; border-radius: 16px; background: var(--card); color: var(--ink); font: 400 14px/1.5 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.frame:has(> .rail.shell) .mc .ag-a2a button.ag-a2a-close { align-self: center; width: auto; }
.ag-who { font: 500 12px var(--sans); color: var(--lab, var(--muted)); }
.ag-guest { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 2px; }
.ag-at-chip { display: inline-flex; align-items: center; gap: 3px; vertical-align: -2px; }
.at-row .ag-av { flex: none; }

/* The agent's browser, full window (Conner, 2026-11-12: like Grok Bot's). */
.ag-zoomable { cursor: zoom-in; }
.ag-full-web { position: fixed; z-index: 1000; }
.ag-full-web .ag-viewer-stage { padding-bottom: 76px; }
.ag-full-pic { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }
.ag-full-wait { color: #c7c7cc; }
.ag-full-bar { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; border-radius: 22px; background: rgba(28, 28, 30, 0.92); border: 1px solid rgba(255, 255, 255, 0.12); }
.ag-full-watch { color: #c7c7cc; }
.ag-full-bar button.ag-full-take { height: 30px; padding: 0 14px; border-radius: 16px; border: 0; background: #f2f2f2; color: #111; font: 500 13.5px/1 var(--sans); cursor: pointer; }

/* Pick several (Conner, 2026-11-12: "might be good to add the multi picker"). */
.ag-ask-sub { margin: -2px 0 6px; color: var(--muted); }
.ag-ask-count { order: -1; color: var(--muted); }
.ag-opt.multi.on .ag-key { background: #12B76A; color: #fff; }

/* Background jobs in the agent's panel (2026-11-12; docs/mockups/agent-jobs-limit.png). */
.ag-stepper { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.ag-stepper b { min-width: 20px; text-align: center; font: 500 13px var(--sans); color: var(--ink); }
.frame:has(> .rail.shell) .mc .ag-pane .ag-stepper button { width: 24px !important; min-width: 0 !important; height: 24px !important; padding: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center; font: 500 14px/1 var(--sans) !important; }
.ag-run-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #12B76A; }

/* Nimbus for Mac card: the update lives here, with progress (2026-11-12;
   docs/mockups/mac-update-card.png). A dot on the sidebar's Mac item. */
.frame:has(> .rail.shell) .mac-page > .box.mac-card, .mac-card { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; text-align: left; }
.mac-card-t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.mac-card > button, .mac-card > .button-link { flex: none; }
.mac-prog { flex: none; width: 140px; height: 6px; border-radius: 3px; background: var(--line, rgba(127, 127, 127, 0.25)); overflow: hidden; }
.mac-prog i { display: block; height: 100%; background: #2E90FA; transition: width 0.4s ease; }
.rail-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #2E90FA; }
.rail.open .rail-dot { position: static; margin-left: auto; }

/* This Mac: your agents from your phone (Conner, 2026-11-12). */
.mac-phone-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mac-phone-row .small { margin: 4px 0 0; }

.pa-card-note { margin: 6px 0 0; font-size: 12.5px; opacity: 0.75; }
/* Profile's canvas home: the greeting is only as tall as what it says, never
   the page's height, and one slim line when nothing needs you. */
.tl-shell .td-home-canvas > .td-greet { height: auto; flex: none; }
/* The fixed Profile (everyone off the canvas alpha, 2026-11-13): the same
   greeting rule, and Who you are full width with its text inside the edges. */
.tl-shell .td-home > .td-greet { height: auto; flex: none; }
.tl-shell .td-home > .tl-who, .tl-shell .td-space > .tl-who { align-self: stretch; }
.tl-shell .td-home > .tl-who > .tl-who-lead, .tl-shell .td-home > .tl-who > .tl-who-dl, .tl-shell .td-space > .tl-who > .tl-who-lead, .tl-shell .td-space > .tl-who > .tl-who-dl { margin-left: 24px; margin-right: 24px; }
.tl-shell .td-space > .tl-who { width: auto; margin: 0 0 16px; }
.tl-shell .td-space > .tl-who + .ps { margin-bottom: 16px; }
.tl-shell .td-greet.td-greet-slim { padding: 12px 18px; }
.tl-shell .td-greet.td-greet-slim h3 { font-size: 16px; line-height: 1.3; }
.tl-shell .td-greet.td-greet-slim .td-greet-cloud .cl { --cl: 28px !important; }

/* Canvas changes waiting for the owner's tap (change 92, 2026-11-12;
   docs/mockups/canvas-approve-card.png). */
.cv-waiting { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.cv-wait-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line, rgba(127, 127, 127, 0.2)); }
.cv-wait-tag { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--sans); color: #F79009; }
.cv-wait-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #F79009; }
.cv-wait-what { margin: 0; font: 400 13.5px/1.55 var(--sans); color: var(--ink); white-space: pre-line; }
.cv-wait-when { margin: 0; }
.cv-wait-btns { display: flex; gap: 8px; margin-top: 4px; }
.rail-dot-wait { background: #F79009; }

/* Side menu one step bigger, so it sits with the Grok Bot-sized agent list
   (Conner, 2026-11-13) but stays quieter than the bold agent names. */
.rail.shell .rail-group, html.dark .rail.shell .rail-group { font-size: 11px; }
.rail.shell.open .rail-btn, html.dark .rail.shell.open .rail-btn { height: 34px; font-size: 14.5px; }
.rail.shell.open .rail-btn .rail-label, html.dark .rail.shell.open .rail-btn .rail-label { font-size: 14.5px; }
.rail.shell.open .rail-btn.rail-sub, html.dark .rail.shell.open .rail-btn.rail-sub { height: 31px; }
.rail.shell .td-row, html.dark .rail.shell .td-row { height: 29px; }
.rail.shell .td-row .td-name { font-size: 14px; }
.rail.shell .td-n { font-size: 12.5px; }
.rail.shell .tl-ghead, html.dark .rail.shell .tl-ghead { font-size: 12.5px; }

/* ---- Every card that waits for your yes, one look (Conner, 2026-11-13:
   "i want all approval card types to be styled the new way"). A faint pink
   tint and border, a pink label, a solid pink "Yes" and an outlined Skip.
   Once it's tapped it turns gray. Background job cards too. Used by the Mac
   chat cards (macai.js), the phone/desk agent cards (phoneagents.js), the
   canvas waiting cards (canvas.js), the web chat's account cards (chat.js),
   the Board's review cards (board.js) and found-fact cards (suggest.js). */
:root { --yes: #EE46BC; --yes-ink: #C11574; --yes-tint: rgba(238, 70, 188, 0.06); --yes-line: rgba(238, 70, 188, 0.32); }
html.dark { --yes-ink: #F670C7; --yes-tint: rgba(238, 70, 188, 0.10); --yes-line: rgba(238, 70, 188, 0.40); }
.yes-card {
  background: linear-gradient(var(--yes-tint), var(--yes-tint)), var(--card, #fff) !important;
  border: 0 !important; border-left: 0 !important; box-shadow: inset 0 0 0 1px var(--yes-line) !important;
}
.yes-card :is(.mc-tag, .cv-wait-tag, .pa-card-h, .pd-card-h, .cc-kind, .ag-hand-h) { color: var(--yes-ink) !important; }
.yes-card :is(.mc-tag, .cv-wait-tag)::before, .yes-card .ag-hand-dot { background: var(--yes) !important; }
.yes-card button.primary, .yes-card .pa-yes, .yes-card .td-b.primary {
  background: var(--yes) !important; color: #fff !important; box-shadow: none !important; border: 0 !important; opacity: 1;
}
.yes-card button.primary:hover, .yes-card .pa-yes:hover { background: #DD2590 !important; }
.yes-card :is(.actions, .cv-wait-btns, .pa-card-btns, .ag-hand-btns) button:not(.primary):not(.pa-yes):not(.link-btn) {
  background: transparent !important; color: var(--yes-ink) !important; box-shadow: inset 0 0 0 1px var(--yes-line) !important; border: 0 !important;
}
.yes-card button:disabled { opacity: 0.55 !important; }
/* Tapped: gray. */
.yes-card:is(.settled, :has(.cc-done)), .yes-done {
  background: var(--chip, #F3F5F8) !important; box-shadow: none !important; color: var(--lab, #5E6570) !important;
}
.yes-card:is(.settled, :has(.cc-done)) :is(.mc-tag, .pa-card-h, .pd-card-h, .cc-kind, .cc-done, p, .text) { color: var(--lab, #5E6570) !important; }
.yes-card:is(.settled, :has(.cc-done)) .mc-tag::before { background: var(--lab, #5E6570) !important; }
.yes-done { display: block; padding: 9px 14px; border-radius: 14px; }
html.dark .yes-done, html.dark .yes-card:is(.settled, :has(.cc-done)) { background: rgba(255, 255, 255, 0.05) !important; }
/* The phone agents' own dark chat keeps its dark card under the tint. */
.pa .pa-card.yes-card { background: linear-gradient(rgba(238, 70, 188, 0.12), rgba(238, 70, 188, 0.12)), #1C1C1C !important; }
.pa .pa-card.yes-card .pa-card-h { color: #F670C7 !important; }
.pa .pa-card.yes-card.settled { background: #1C1C1C !important; box-shadow: inset 0 0 0 1px var(--pa-line) !important; }
.pa .pa-card.yes-card.settled .pa-card-h, .pa .pa-card.yes-card.settled p { color: var(--pa-muted) !important; }
.pa .pa-card.yes-card .pa-skip { color: #F670C7 !important; }

/* Icons in the phone chat's round buttons (Conner, 2026-11-13: the arrows
   sat off-center). Text characters sit wherever the font puts them; these
   are drawn on a 24-unit grid, centered exactly, in the button's color. */
/* Conner, 2026-11-13 (again): the back and send arrows still sat right of
   center. style.css gives every button 16px side padding; in a 34px circle
   that left no room, so the icon's track started at the left padding and
   spilled right. The round buttons carry no padding. */
.pa button.pa-circ, .pa button.pa-send, .pa button.pa-x { padding: 0; }
/* Conner, 2026-11-13: scrolled up, a pill just above the box takes him back
   to the newest message, and says when new ones came in. Shown only while
   he's off the end (.pa-up, set without a redraw). */
.pa .pa-down { display: none; position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -10px); z-index: 3;
  align-items: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 10px; border-radius: 999px; justify-content: center;
  background: var(--pa-chip); color: var(--pa-ink); border: 1px solid var(--pa-line); box-shadow: 0 4px 14px rgba(0,0,0,.35);
  font: 600 14px var(--sans); white-space: nowrap; }
.pa .pa-compose { position: relative; }
.pa .pa-tail { flex: none; height: 0; pointer-events: none; }
.pa.pa-up .pa-down { display: inline-flex; }
.pa .pa-down.pa-down-new { background: var(--pa-me, #1570EF); color: var(--pa-me-ink, #fff); border-color: transparent; padding: 0 14px; }
.pa .pa-ico-down { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E"); width: 16px; height: 16px; }
.pa .pa-ico { display: block; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.pa .pa-ico-back { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); width: 20px; height: 20px; }
.pa .pa-ico-up { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E"); }
.pa .pa-ico-plus { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.pa .pa-ico-reply { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E"); width: 15px; height: 15px; }
.pa .pa-ico-x { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); width: 12px; height: 12px; }

/* The sidebar's shape (Conner, 2026-11-16, docs/sidebar-shape.md): Home,
   then Spaces > Contacts, Work > Tasks, Activity > Learned. Spaces lives in
   the menu now, so the menu itself scrolls, and a small gap sits between
   the pairs. */
.rail.shell .sh-tabs { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
/* Condensed, the hidden hover labels stick out past the narrow column; no
   sideways scroll bar for them (Conner, 2026-11-16). */
.rail.shell .sh-tabs { overflow-x: hidden; }
.rail.shell .sh-tabs .sh-spaces { flex: none; min-height: 0; overflow: visible; margin: 0; padding: 0 0 4px; }
/* Light spaces its labels the same as dark (Conner, 2026-11-18: the sidebar
   moved between looks). */
.rail.shell .rail-pairlabel, html.dark .rail.shell .rail-pairlabel { margin: 0; }
.rail.shell:not(.open) .rail-pairlabel { display: block; height: 8px; margin: 0; visibility: hidden; }
.rail.shell .rail-fold > .rail-subs > .sh-spaces { margin-left: -8px; }
.rail.shell .tl-flat .tl-gsep { height: 1px; margin: 6px 8px; background: var(--line); }
@media (max-width: 760px) {
  .rail.shell .sh-tabs { overflow: visible; flex: none; }
}

/* Home as the day's brief (Conner, 2026-11-16): Today and Since yesterday
   side by side, one column on a narrow screen. */
.tl-shell .tl-brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .tl-shell .tl-brief { grid-template-columns: minmax(0, 1fr); } }
.tl-shell .tl-brief-card { margin: 0; min-width: 0; }
.tl-shell .tl-brief-card > .td-list, .tl-shell .tl-brief-card > .tl-brief-stats, .tl-shell .tl-brief-card > .tl-brief-row { margin-left: var(--pad-card); margin-right: var(--pad-card); }
.tl-shell .tl-brief-card > :last-child { margin-bottom: 16px; }
.tl-shell .tl-brief-row { width: calc(100% - 2 * var(--pad-card)); gap: 12px; }
.tl-shell .td-list > .tl-brief-row { width: 100%; }
.tl-shell .tl-brief-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-shell .tl-brief-row > .small { flex: none; color: var(--soft); }
.tl-shell .tl-brief-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin: 4px 0 8px; }
.tl-shell .tl-brief-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px var(--pad-tile); border: 0; border-radius: 10px; background: var(--hover); color: var(--ink); font: 400 12px var(--sans); cursor: pointer; text-align: left; }
.tl-shell .tl-brief-stat b { font: 500 18px var(--sans); }
.tl-shell .tl-brief-stat span { color: var(--soft); }

/* ===================================================================
   PADDING, ONE STANDARD (Conner, 2026-11-16: "i want padding
   standardized"). Text never sits closer to an edge than the corner's
   curve. Three sizes, used everywhere:
     cards (Needs your yes, Today, a space's sections)  24px, 20px on a phone
     tiles (the number tiles, Home's six)                16px, 12px on a phone
     pills and tags                                      10px
   test/browser/padding.browser.mjs checks every page for text that
   crowds an edge.
   =================================================================== */
:root { --pad-card: 24px; --pad-tile: 16px; --pad-pill: 10px; }
@media (max-width: 767px) { :root { --pad-card: 20px; --pad-tile: 12px; } }
/* A card with no padding of its own insets everything but its header row
   and its list, so nothing new added to it can touch the edge. */
.tl-shell .td-topicsec > :not(.tl-hd):not(.td-list),
.tl-shell .tl-week > :not(.tl-hd):not(.td-list) { margin-left: var(--pad-card); margin-right: var(--pad-card); }
.tl-shell .td-topicsec > .td-sec-top:first-child { padding-top: 16px; }
.tl-shell .td-topicsec > :last-child:not(.td-list) { margin-bottom: 10px; }
/* Pills and tags: the standard side space. */
.cx-sp-tag { padding-left: var(--pad-pill); padding-right: var(--pad-pill); }
.tm-chip { padding-left: var(--pad-pill); padding-right: var(--pad-pill); }
.tp-owner, .tp-who { padding-left: var(--pad-pill); padding-right: var(--pad-pill); }
/* With a face at the front, the face hugs the left edge as before. */
.tp-owner:has(> :first-child), .tp-who:has(> :first-child) { padding-left: 3px; }
/* Home's six tiles on a phone: three to a row, so each one has room for
   its word with the standard side space. */
@media (max-width: 767px) {
  /* style.css forces none with !important on a phone; this wins it back. */
  .tl-shell .tl-knows { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .tl-shell .tl-knows .pf-k, html.dark .tl-shell .tl-knows .pf-k { padding: 10px var(--pad-tile) 8px; }
  .tl-shell .tl-knows .pf-k > span:not(.cl) { font-size: 11px; }
}

/* ===================================================================
   PILLS, ONE STANDARD (Conner, 2026-11-17: "we need to standardize the
   pills throughout the website"). Three kinds, nothing else:
     .np-tabs / .np-tab   switch between views of a page, in a grey track
     .np-pill             narrow a list: All and its total first, 30px tall,
                          a muted count (.np-n), filled when on
     .np-pill.np-add      make a new one in that row, dashed
   Sorting is a Sort dropdown, never pills. The !important wins over the
   older per-page pill styles these replace. test/browser/padding.browser.mjs
   checks that every pill on a page is one of these.
   =================================================================== */
.np-pills { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.np-tabs { display: inline-flex !important; align-items: center; gap: 2px !important; width: auto !important; padding: 3px !important; border: 0 !important; border-radius: 999px !important; background: var(--hover) !important; box-shadow: none !important; }
.np-tab { display: inline-flex !important; align-items: center; gap: 6px; height: 30px !important; min-height: 30px !important; padding: 0 14px !important; border: 0 !important; border-radius: 999px !important; background: none !important; box-shadow: none !important; color: var(--soft) !important; font: 500 13px var(--sans) !important; cursor: pointer; white-space: nowrap; }
.np-tab:hover { color: var(--ink) !important; }
.np-tab.on { background: var(--active, var(--card)) !important; color: var(--ink) !important; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) !important; }
.np-pill { display: inline-flex !important; align-items: center; gap: 6px; height: 30px !important; min-height: 30px !important; padding: 0 var(--pad-pill) !important; border: 1px solid var(--line-strong) !important; border-radius: 999px !important; background: none !important; box-shadow: none !important; color: var(--ink) !important; font: 500 13px var(--sans) !important; cursor: pointer; white-space: nowrap; opacity: 1 !important; }
.np-pill:hover { background: var(--hover) !important; }
.np-pill.on { background: var(--pill) !important; border-color: var(--pill) !important; color: var(--pilltx) !important; }
.np-pill.np-add { border-style: dashed !important; color: var(--soft) !important; }
.np-n { margin: 0 !important; padding: 0 !important; background: none !important; font: 500 12px var(--sans) !important; font-style: normal !important; color: inherit !important; opacity: 0.6; }
.np-tab.on .np-n, .np-pill.on .np-n { opacity: 0.7; }
.rl-bar { justify-content: space-between; }

/* Your AI and Connections above the line, held to the bottom of the menu
   (Conner, 2026-11-17). They're ordinary menu rows now, so they line up
   with Home, Spaces and the rest. */
.rail.shell .sh-conns.sh-conns-up { flex: none; margin: auto 0 8px; padding-top: 8px; }
.rail.shell .sh-conns-up + .sh-foot { margin-top: 0; }
/* Your name starts where every row's word does; the circle sits just before it. */
/* Light too: dash.css loads later and won in light (Conner, 2026-11-18). */
html:not(.dark) .rail.shell.open .sh-foot .sh-acct, html.dark .rail.shell.open .sh-foot .sh-acct { padding-left: 27px; }

/* ---- Black sidebar and header in light mode too (Conner, 2026-11-18:
   "keep the task bar and header black for both light and dark"). The frame
   that holds them takes dark mode's colour, and everything drawn on them
   reads dark mode's tokens. The page in the middle stays light. ---- */
html:not(.dark):has(.rail.shell) .rail.shell,
html:not(.dark):has(.rail.shell) .sh-strip {
  --ground: #17181B; --card: #1E2024; --ink: #F4F5F7; --soft: #B3B8C1; --lab: #8A909A;
  --line: rgba(255, 255, 255, 0.07); --frame: #121316; --frameline: rgba(255, 255, 255, 0.06);
  --pill: #F4F5F7; --pilltx: #0F1115; --chip: rgba(255, 255, 255, 0.06); --active: #24262B; --hover: rgba(255, 255, 255, 0.05);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.35);
  --page: var(--ground); --body: var(--soft); --muted: var(--lab); --line-strong: rgba(255, 255, 255, 0.14); --on-ink: var(--pilltx);
  color: var(--ink); color-scheme: dark;
}
@media (min-width: 768px) {
  html:not(.dark) .frame:has(> .rail.shell)::after { background: #121316; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html:not(.dark) .frame:has(> .rail.shell) > .stage::after { border-color: rgba(255, 255, 255, 0.06); }
}
@media (max-width: 767px) {
  html:not(.dark):has(.rail.shell) .rail.shell { background: #121316; border-right-color: rgba(255, 255, 255, 0.06); }
}

/* ---- The web Chat on a computer (Conner, 2026-11-13: a wide window showed
   the phone's narrow column). phoneagents.js deskView: the Mac app's chat
   layout and classes (ag-left-layout above), on the account's agents. Only
   from 768px; the phone layout (.pa) is untouched. ---- */
@media (min-width: 768px) {
  /* Keep the agents column on a narrower computer, where the Mac folds it into a button. */
  .mc.ag-full.ag-left-layout.pa-desk { grid-template-columns: 292px minmax(0, 1fr); }
  .ag-left-layout.pa-desk > .ag-side { display: flex; position: static; width: auto; background: none; border-radius: 0; box-shadow: none; border-right: 1px solid var(--line, rgba(127, 127, 127, 0.18)); }
}
@media (min-width: 768px) and (max-width: 1000px) {
  .mc.ag-full.ag-left-layout.pa-desk { grid-template-columns: 244px minmax(0, 1fr); }
  .ag-left-layout.pa-desk > .mc-main { padding: 8px 14px 14px; }
}
.pa-desk .ag-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.pa-desk .pa-mac { display: flex; align-items: center; gap: 7px; margin: 0 10px 2px; font: 400 12.5px var(--sans); color: var(--lab, var(--muted)); flex: none; }
.pa-desk .pa-dot { width: 8px; height: 8px; border-radius: 50%; background: #98A2B3; flex: none; }
.pa-desk .pa-mac.on { color: #067647; }
.pa-desk .pa-mac.on .pa-dot { background: #12B76A; }
html.dark .pa-desk .pa-mac.on { color: #6CE9A6; }
.pa-desk .pd-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.pa-desk .pd-row-top .ag-row-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-desk .pd-when { flex: none; font: 400 11.5px var(--sans); color: var(--lab, var(--muted)); }
.pa-desk button.link-btn.pd-grp { display: flex; align-items: center; gap: 6px; width: auto; padding: 0; text-decoration: none; text-align: left; background: none; cursor: pointer; }
.pa-desk .pd-chev { display: inline-block; transition: transform 0.15s; }
.pa-desk .pd-chev.shut { transform: rotate(-90deg); }
/* the open agent: the Mac's pill at the top of the chat */
.pa-desk .ag-who.pd-who { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; max-width: 60%; padding: 5px 16px 5px 7px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.pa-desk .pd-who .cl { --cl: 26px !important; }
.pa-desk .pd-who .ag-head-txt { flex-direction: row; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; }
.pa-desk .pd-who .ag-head-txt b { font: 600 15px var(--sans); letter-spacing: 0; color: var(--ink); }
.pa-desk .pd-who .ag-head-txt .small { overflow: hidden; text-overflow: ellipsis; color: var(--lab, var(--muted)); }
/* the log: only it scrolls; the box stays at the bottom of the pane */
.pa-desk .pd-main { min-height: 0; overflow: hidden; }
.pa-desk .pd-log { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-wrap: anywhere; }
.pa-desk .pd-log .msg { max-width: min(82%, 860px); }
.pa-desk .pd-compose { flex: none; position: relative; bottom: auto; }
.pa-desk .ag-tinted .pd-log .msg-you .bubble, .frame:has(> .rail.shell) .pa-desk .ag-tinted .mc-log .msg-you .bubble { color: var(--ag-ink, #fff); }
.pa-desk .pd-ts { align-self: center; margin-top: 6px; color: var(--lab, var(--muted)); }
.pa-desk .pd-state { align-self: flex-end; margin-top: -6px; }
.pa-desk .pd-note, .pa-desk .pd-tl-body { align-self: stretch; padding: 9px 12px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); }
.pa-desk .pd-tl-body { text-align: left; margin-top: 6px; font: 400 13px/1.45 var(--sans); }
.pa-desk .pd-tl-body p { margin: 4px 0; white-space: pre-wrap; }
.pa-desk .pd-tl-body ul { margin: 0; padding-left: 18px; }
.pa-desk .pd-working { display: inline-flex; align-items: center; gap: 8px; }
.pa-desk .pd-card { border-left: 0; }
.pa-desk .pd-card .text { white-space: pre-wrap; }
.pa-desk .pd-card-h { color: #B54708; font-weight: 600; }
html.dark .pa-desk .pd-card-h { color: #FDB022; }
.pa-desk .pd-card.settled .pd-card-h, .pa-desk .pd-card.settled .text { color: var(--lab, var(--muted)); }
.pa-desk .pd-img { display: block; max-width: 100%; width: 240px; max-height: 320px; object-fit: cover; border-radius: 16px; }
.pa-desk .pd-img-none { width: auto; padding: 10px 14px; background: var(--card); color: var(--lab, var(--muted)); }
.pa-desk .pd-empty { margin: 40px auto; color: var(--lab, var(--muted)); text-align: center; }
/* the photo button: the Mac's round + (a label, so the file picker opens) */
.pa-desk .pd-photo { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 400 20px/1 var(--sans); color: var(--ink); background: var(--chip, rgba(127, 127, 127, 0.12)); cursor: pointer; }
.pa-desk .pd-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pa-desk .pd-thumb { position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }
.pa-desk .pd-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; display: block; }


