/* Dashboard fix pass, round 4 (Conner, 2026-11-03). Loads after the brand
   refresh. Brand tokens only, light and dark; no purple. */

/* Space pages: four equal tiles always, a 0 isn't a link. */
.td-spacetiles.tl-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.pf-k.tl-k-zero { cursor: default; opacity: 0.6; }
.pf-k.tl-k-zero:hover { background: inherit; transform: none; box-shadow: inherit; }
/* Profile's tiles aren't links: no hover or pointer. */
.tl-knows .pf-k, .tl-knows .pf-k:hover { cursor: default; transform: none; }
/* The week line: one compact row, not a card. */
.tl-callout { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--bp-wash, rgba(15,17,21,.03)); box-shadow: inset 0 0 0 1px var(--bp-line, rgba(15,17,21,.07)); font: 500 14px var(--bp-sans, var(--sans)); color: var(--bp-ink, var(--ink)); }
.tl-callout > span { flex: 1; min-width: 0; }
/* Section header rows: the sort sits beside the heading. */
.tl-hd-r { display: inline-flex; align-items: center; gap: 12px; }
.tl-facts-h { margin-top: 20px; }
.td-flat-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.td-sort { background: var(--bp-card, var(--card)) !important; color: var(--bp-ink, var(--ink)) !important; border-color: var(--bp-line2, var(--line)) !important; }
html.dark .td-sort { color-scheme: dark; }
/* Children with nothing in them: one line. */
.tl-empties { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0 0; font: 500 13px var(--bp-sans, var(--sans)); color: var(--bp-lab, var(--muted)); }
.tl-empties > span { font-weight: 600; }
/* A space linked from another parent. */
.tl-link-tag { display: block; margin-top: 2px; font: 500 12px var(--bp-sans, var(--sans)); color: var(--bp-lab, var(--muted)); }
.tl-link-i { color: var(--bp-lab, var(--muted)); }
/* Rows: a date on every one; "No date" quiet. One line titles with an
   ellipsis in Recently learned. */
.td-fr-date.none { color: var(--bp-lab, var(--muted)); opacity: 0.7; }
.tl-nosrc { color: var(--bp-lab, var(--muted)); }
.td-learned .td-fr-main { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-learned .td-fr.open .td-fr-main { white-space: normal; }
.td-ok.tl-example { background: rgba(245, 158, 11, 0.14); color: #B45309; }
html.dark .td-ok.tl-example { color: #FCD34D; }
/* Profile's second row: This week and Recently learned, one height, their
   lists scroll inside, neither stretches the other. */
.tl-pair, .tl-pair-b { align-items: start !important; }
.tl-pair-b > section { height: 440px; display: flex; flex-direction: column; overflow: hidden; }
.tl-pair-b > section > .td-list, .tl-pair-b > section > .tl-week-row:first-of-type ~ * { min-height: 0; }
.tl-pair-b > section > .td-list { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.tl-pair-b > .tl-week { overflow-y: auto; }
.td-home { padding-bottom: 32px; min-height: 0 !important; }
/* Tasks: every row one height, the add field like the other inputs. */
.tp-task { min-height: 56px; box-sizing: border-box; }
.tp-task-d { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-addtask { border: 1px solid var(--bp-line2, var(--line)) !important; border-radius: 12px !important; background: var(--bp-card, var(--card)); }
.tp-addtask-in { border: 0 !important; background: transparent !important; }
/* Contacts: one row height. */
.tp-prow { min-height: 60px; box-sizing: border-box; }
.tp-prow-t .tp-gray { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The account menu: a popover under the chevron, over the page, with room
   in the Look row. */
.sh-acct-wrap { position: relative; }
/* Opens beside the account button, out over the page, so the sidebar's
   sections stay in view. On a phone (the drawer) it drops below as before. */
@media (min-width: 761px) {
  .rail.shell:not(.drawer) .sh-menu { position: fixed !important; top: var(--sh-menu-top, 12px); left: var(--sh-menu-left, 248px); right: auto; z-index: 300 !important; width: 248px; background: var(--bp-card, var(--card)) !important; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1; }
  .rail.shell:not(.drawer):has(.sh-menu) { z-index: 300 !important; }
}
.rail.shell .sh-menu .sh-pop-row { padding: 10px 12px; gap: 14px; }
.rail.shell .sh-menu .sh-seg { flex: none; }

/* Grok Bot or Cursor: one choice, both logos side by side (2026-11-04). */
.cx-duo { display: inline-flex !important; align-items: center; justify-content: center; gap: 2px; padding: 4px; box-sizing: border-box; }
.cx-duo img { width: 46%; height: auto; object-fit: contain; }

/* The Nimbus logo on top of the sidebar, your name and plan at the bottom
   (Conner, 2026-11-04). The account menu grows up from the account. */
.rail.shell .sh-brand { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.rail.shell .sh-brand .cl { flex: none; }
.rail.shell .sh-brand .cl-body, .rail.shell .sh-brand .cl-shadow { fill: var(--ink, #fff); }
.rail.shell .sh-brand .cl-eyes rect { fill: var(--ground, #111); }
.rail.shell .sh-brand-name { font: 700 1.125rem var(--tight, var(--sans)); letter-spacing: -0.02em; color: var(--ink, #fff); }
.rail.shell .sh-foot { flex: none; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line, rgba(255, 255, 255, 0.1)); }
.rail.shell .sh-foot .sh-menu { top: auto; bottom: calc(100% + 6px); }
.rail.shell:not(.open) .sh-brand { justify-content: center; padding: 0; }
.rail.shell:not(.open) .sh-brand-name { display: none; }
@media (min-width: 761px) {
  /* Open: right above the account, the sidebar's width (Conner, 2026-11-04).
     Folded, the sidebar is too narrow, so it opens beside it instead. */
  .rail.shell.open:not(.drawer) .sh-foot .sh-menu { position: absolute !important; top: auto !important; bottom: calc(100% + 8px); left: 0; right: 0; width: auto; }
  .rail.shell:not(.open):not(.drawer) .sh-foot .sh-menu { top: auto !important; bottom: var(--sh-menu-bottom, 12px); }
  .rail.shell.open:has(.sh-foot .sh-menu) { overflow: visible; }
}
/* Hide the sidebar, beside the logo (Conner, 2026-11-04). */
.rail.shell .sh-hide, html.dark .rail.shell .sh-hide { flex: none; width: 32px; height: 32px; min-height: 0; padding: 0; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--soft, rgba(255, 255, 255, 0.6)); cursor: pointer; }
.rail.shell .sh-hide:hover, html.dark .rail.shell .sh-hide:hover { background: var(--hover, rgba(255, 255, 255, 0.08)); color: var(--ink, #fff); }
.rail.shell .sh-hide .ico, .rail.shell .sh-hide .ico svg { width: 18px; height: 18px; }
/* With no arrow, the whole account row shows it can be clicked. */
.rail.shell.open .sh-foot .sh-acct { padding: 0 6px; margin: 0 -6px; width: calc(100% + 12px); height: 44px; }
.rail.shell.open .sh-foot .sh-acct:hover, html.dark .rail.shell.open .sh-foot .sh-acct:hover { background: var(--hover, rgba(255, 255, 255, 0.08)); }
/* Connections, just above the account (Conner, 2026-11-04). */
.rail.shell .sh-conns { margin: 0 0 8px; }
.rail.shell .sh-conns .rail-btn:not(.rail-sub) { position: relative; }
.rail.shell .sh-conns-bad .rail-btn:not(.rail-sub)::after { content: ''; position: absolute; top: 50%; right: 12px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #F04438; }
.rail.shell:not(.open) .sh-conns-bad .rail-btn:not(.rail-sub)::after { top: 8px; right: 8px; margin-top: 0; }
.rail.shell.open .sh-foot { padding-top: 8px; }
/* Invite your team, under Connections when Team isn't on the plan yet
   (Conner, 2026-11-04). */
.rail.shell .sh-invite { margin-bottom: 8px; color: var(--soft); }
.rail.shell .rail-pill { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: rgba(21, 112, 239, 0.18); color: #84ADFF; font: 600 0.6875rem var(--sans); }
html:not(.dark) .rail.shell .rail-pill { background: #EAF2FF; color: #1570EF; }
.rail.shell:not(.open) .rail-pill { display: none; }
.rail.shell.open .sh-foot .sh-conns { margin-bottom: 2px; }
/* Locked on the Owner plan: grayed out with a lock (Conner, 2026-11-04). */
.rail.shell .sh-invite.rail-locked .rail-lock { position: static; margin-left: auto; }
.rail.shell .sh-invite.rail-locked .rail-lock .ico, .rail.shell .sh-invite.rail-locked .rail-lock .ico svg { width: 15px; height: 15px; color: var(--lab, rgba(255, 255, 255, 0.45)); }
.rail.shell:not(.open) .sh-invite .rail-lock { display: none; }

/* Tasks: one Filter button in the Add a task row (Conner, 2026-11-04). */
.tp-addtask { position: relative; }
.tp-filter { position: relative; flex: none; margin-left: auto; }
.tp-fbtn, .tp-fchip { display: inline-flex; align-items: center; gap: 8px; height: 32px; min-height: 0; padding: 0 12px; border-radius: 999px; border: 1px solid var(--bp-line2, var(--line)); background: none; box-shadow: none; color: var(--soft, var(--ink)); font: 600 0.8125rem var(--sans); cursor: pointer; }
.tp-fbtn:hover, .tp-fbtn.open { background: var(--hover, rgba(127, 127, 127, 0.1)); color: var(--ink); }
.tp-fchip { background: var(--ink); border-color: var(--ink); color: var(--on-ink, var(--card)); }
.tp-fchip span { font-size: 1rem; line-height: 1; opacity: 0.7; }
.tp-fico { width: 14px; height: 10px; background: linear-gradient(currentColor, currentColor) 0 0 / 14px 1.6px no-repeat, linear-gradient(currentColor, currentColor) 2.5px 4.2px / 9px 1.6px no-repeat, linear-gradient(currentColor, currentColor) 4.5px 8.4px / 5px 1.6px no-repeat; }
.tp-fmenu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: 240px; max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 12px; background: var(--bp-card, var(--card)); box-shadow: var(--shadow, 0 12px 32px rgba(0, 0, 0, 0.25)); border: 1px solid var(--bp-line2, var(--line)); }
.tp-fitem { display: block; width: 100%; min-height: 0; padding: 8px 10px; border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--ink); font: 500 0.875rem var(--sans); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-fitem:hover { background: var(--hover, rgba(127, 127, 127, 0.1)); }
.tp-tlist { overflow: visible; }
/* Only Add a task is dimmed while it's coming soon; Filter stays bright. */
.tp-addtask .tp-off { opacity: 0.6; }
.tp-addtask .tp-addtask-in.tp-off { cursor: not-allowed; }
.tp-fmenu { background: var(--card, #1E2024) !important; }
html.dark .tp-fmenu { background: #1E2024 !important; }

/* Phones: the menu drawer closes with its X, so no hide-the-sidebar button (2026-11-04). */
@media (max-width: 767px) {
  .rail.shell .sh-hide, html.dark .rail.shell .sh-hide { display: none; }
  /* The phone menu: Connections, Invite your team and the account sit at
     the bottom of the screen, as on a computer (Conner, 2026-11-05; on
     2026-11-04 they followed the spaces list). */
}
/* Profile, Conner only for now (2026-11-05): Who you are and Where it came
   from stacked where This week was. */
.tl-pair-b > .tl-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tl-shell .tl-side > .tl-week { height: auto; overflow: visible; width: 100%; box-sizing: border-box; align-self: stretch; }
.tl-who-lead { margin: 4px 0 10px; font: 500 13px var(--sans); color: var(--ink); line-height: 1.45; }
.tl-who-dl { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; margin: 0 0 12px; font: 400 12.5px var(--sans); }
.tl-who-dl dt { color: var(--soft, var(--muted)); }
.tl-who-dl dd { margin: 0; color: var(--ink); min-width: 0; }
.tl-who-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.tl-who-pill { border: 0; border-radius: 6px; padding: 2px 8px; background: var(--bp-line, var(--wash, rgba(127,127,127,0.15))); color: var(--ink); font: 500 12px var(--sans); cursor: pointer; }
.tl-who-pill:hover { filter: brightness(1.15); }
.tl-src-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font: 500 13px var(--sans); }
.tl-src-row + .tl-src-row { border-top: 1px solid var(--line); }
.tl-src-n { flex: 1; min-width: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-src-c { width: 44px; text-align: right; color: var(--soft, var(--muted)); font-weight: 400; font-size: 12px; }
.tl-src-bar { flex: none; width: 80px; height: 4px; border-radius: 2px; overflow: hidden; background: var(--bp-line, rgba(127,127,127,0.18)); }
.tl-src-bar > i { display: block; height: 100%; background: #1570EF; }
.tl-w1 { width: 10%; } .tl-w2 { width: 20%; } .tl-w3 { width: 30%; } .tl-w4 { width: 40%; } .tl-w5 { width: 50%; }
.tl-w6 { width: 60%; } .tl-w7 { width: 70%; } .tl-w8 { width: 80%; } .tl-w9 { width: 90%; } .tl-w10 { width: 100%; }
.tl-src { padding-bottom: 10px !important; }
/* Booking link in Who you are (piece 5, 2026-11-19). */
.tl-bk-edit { display: grid; gap: 10px; max-width: 420px; }
.tl-bk-row, .tl-bk-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl-bk-soft { margin: 0; color: var(--soft, var(--muted)); font-size: 12px; }
.tl-bk-saved a { color: var(--ink); overflow-wrap: anywhere; }
.tl-bk-change { margin-left: 10px; }
.tl-bk-note { margin: 0; color: var(--danger, #c0392b); font-size: 12px; }
.tl-bk-ask p { margin: 0 0 8px; font-size: 12.5px; }
