/* Today (agency home), 2026-11-20. The old rail/tabbar/me-menu rules moved to the shell (shell.css). */
/* ── Today, 2045 (notes/DESIGN-2045-2026-11-20.md "Today") ──
   A 2-column editorial page: hero → composer → tabs → list | sticky aside (fix · noticed · this month).
   Built from future.css tokens; aurora only on AI things (composer mark, AI draft, "Blanks noticed").
   Phone: one column, the aside's cards slot in by `order` (fix right after the composer). */
.page.today [hidden] { display: none !important; }
body.agency-body .page.today { max-width: 1240px; padding-top: 44px; font-family: var(--fx-sans); }
.td-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.td-main { min-width: 0; }
.td-aside { position: sticky; top: 24px; display: grid; gap: 16px; min-width: 0; }

/* hero */
.td-hero { margin: 0 0 28px; }
.td-hero .fx-hero { text-wrap: balance; }
.td-hero-line { color: var(--fx-ink); }
.td-inline-tile { color: #fff; font-weight: 600; font-size: .4em; width: 1.6em; height: 1.6em; vertical-align: .32em; border-radius: 32%; letter-spacing: 0; }
.td-inline-dot i { width: 30%; height: 30%; border-radius: 50%; background: var(--fx-live); box-shadow: 0 0 0 3px rgba(34, 160, 107, .16); }

/* the composer: the AI at the centre of home */
.td-ask { margin-bottom: 36px; }
.td-composer { padding: 16px 14px 10px 18px; }
.td-ask-mark { position: absolute; top: 17px; left: 18px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--fx-aurora); color: #fff; box-shadow: 0 4px 12px -4px rgba(225, 158, 129, .55); }
.td-ask-mark .ico, .td-ask-mark svg { width: 14px; height: 14px; }
.td-composer .td-ask-input { box-sizing: border-box; padding: 1px 4px 0 36px; min-height: 48px; max-height: 160px; resize: none; overflow-y: auto; white-space: pre-wrap; }
.td-composer .fx-row { gap: 6px; }
.td-kbd { height: 26px; padding: 0 9px; border-radius: 8px; background: var(--fx-sunk); box-shadow: none; }
.td-kbd:hover { background: var(--fx-line-2); }
.td-ask-note { font-size: 13px; color: var(--fx-ink-4); margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.td-mic { margin-left: auto; width: var(--fx-h); height: var(--fx-h); padding: 0; border-radius: 50%; background: transparent; box-shadow: none; color: var(--fx-ink-3); }
.td-mic:hover { background: var(--fx-sunk); color: var(--fx-ink); }
.td-mic.on { background: var(--fx-cobalt-soft); color: var(--fx-cobalt-deep); }
.td-mic.on .ico { animation: td-listen 1.2s var(--fx-ease) infinite; }
@keyframes td-listen { 50% { transform: scale(1.18); } }
.td-mic + .fx-send { margin-left: 0; }
.td-composer .fx-send { padding: 0; box-shadow: var(--fx-shadow-card); transition: transform var(--fx-fast) var(--fx-ease); }
.td-composer .fx-send:hover { background: var(--fx-ink); transform: translateY(-1px); }
.td-composer .fx-send .ico, .td-composer .fx-send svg { width: 16px; height: 16px; }
.td-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.td-chips .fx-chip:hover { background: var(--fx-card); }
.td-chips .fx-chip .ico, .td-chips .fx-chip svg { width: 16px; height: 16px; color: var(--fx-ink-3); }

/* tabs */
.td-tabs { padding: 0 2px; border-bottom: 1px solid var(--fx-line); margin-bottom: 20px; }
.td-tabs button { padding: 10px 0 12px; }
.td-tabs button:focus-visible { outline: 2px solid rgba(201, 100, 66, .45); outline-offset: 4px; border-radius: 6px; }
.td-tabs .on::after { bottom: -1px; }
.td-tabs b { font-variant-numeric: tabular-nums; }

/* the list */
.td-list { min-height: 120px; }
.td-list ul { list-style: none; margin: 0; padding: 0; }
.td-sub { display: flex; align-items: center; justify-content: space-between; margin: 30px 2px 12px; font: 500 13px/1.3 var(--fx-sans); letter-spacing: .02em; color: var(--fx-ink-3); }
.td-sub:first-child { margin-top: 4px; }
.td-all { display: inline-flex; align-items: center; gap: 4px; color: var(--fx-ink-3); text-decoration: none; font-weight: 500; }
.td-all:hover { color: var(--fx-ink); }
.td-all .ico, .td-all svg { width: 16px; height: 16px; }
.td-empty { margin: 0; padding: 30px 4px; font-size: 15px; color: var(--fx-ink-3); }
.td-empty a { color: var(--fx-cobalt-deep); text-decoration: none; font-weight: 500; }
.td-empty .fx-accent { color: var(--fx-ink); font-size: 1.12em; }

/* decision cards: the client's real screen in a soft frame | the sentence, big */
.td-cards > li + li { margin-top: 16px; }
.td-card { position: relative; display: grid; grid-template-columns: minmax(312px, 340px) minmax(0, 1fr); min-height: 300px; }
.td-card .phone iframe, .td-rows .phone iframe { pointer-events: none; }
.td-frame { margin: 10px; border-radius: var(--fx-r-inner); display: grid; place-items: center; background: linear-gradient(180deg, var(--fx-window), var(--fx-sunk)); box-shadow: inset 0 0 0 1px var(--fx-line); min-width: 0; overflow: hidden; }
.td-card.fx-ai-edge .td-frame { background: var(--fx-aurora-soft), var(--fx-window); }
.td-screens { display: flex; align-items: center; justify-content: safe center; gap: 10px; padding: 20px 10px 16px; min-width: 0; max-width: 100%; }
/* never shrink a phone (that cropped its left edge, bug 10); if it can't fit, the overflow is on the right */
.td-screens figure { margin: 0; display: grid; justify-items: center; gap: 10px; flex: none; }
.td-screens figcaption { height: 22px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: var(--fx-r-pill); background: var(--fx-glass-strong); color: var(--fx-ink-2); font: 500 12px/1 var(--fx-sans); box-shadow: 0 0 0 1px var(--fx-line); }
.td-screens .phone { border-radius: 14px; box-shadow: var(--fx-shadow-card); }
.td-arrow { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--fx-card); color: var(--fx-ink-2); box-shadow: var(--fx-shadow-card); margin-bottom: 32px; }
.td-arrow .ico, .td-arrow svg { width: 16px; height: 16px; }

.td-body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 26px 30px 26px 14px; min-width: 0; }
.td-meta { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; color: var(--fx-ink-2); }
.fx-tile.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }
.td-who { min-width: 0; font-weight: 500; }
.td-kind { flex: none; height: 22px; padding: 0 9px; display: inline-grid; place-items: center; border-radius: var(--fx-r-pill); background: var(--fx-sunk); color: var(--fx-ink-3); font-size: 12px; font-weight: 500; }
.td-card.hot .td-kind { background: var(--fx-cobalt-soft); color: var(--fx-cobalt-deep); }
.td-when { margin-left: auto; flex: none; font-size: 12px; color: var(--fx-ink-4); }
body.agency-body .td-card h2.td-sentence { margin: 0; font: 400 clamp(22px, 2.1vw, 28px)/1.22 var(--fx-sans); letter-spacing: -.025em; color: var(--fx-ink); text-wrap: pretty; overflow-wrap: anywhere; }
.td-more { margin: -6px 0 0; font-size: 13px; color: var(--fx-ink-3); }
.td-draft { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 10px 12px; border-radius: var(--fx-r-inner); background: var(--fx-sunk); font-size: 14px; color: var(--fx-ink-2); }
.td-draft .fx-ai-pill .ico, .td-draft .fx-ai-pill svg { width: 12px; height: 12px; }
.td-draft b { color: var(--fx-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.td-draft small { color: var(--fx-ink-4); font-size: 12px; }
.td-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.td-actions .fx-btn .ico, .td-actions .fx-btn svg { width: 16px; height: 16px; }
.td-actions .fx-btn.on { box-shadow: 0 0 0 1.5px var(--fx-cobalt); color: var(--fx-cobalt-deep); }
.td-actions .fx-btn.primary.on { color: #fff; }
.td-open { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--fx-ink-3); text-decoration: none; }
.td-open:hover { color: var(--fx-ink); }
.td-open .ico, .td-open svg { width: 16px; height: 16px; }

/* updates (quote accepted, a test finished): read, not decided; a calmer card */
.td-card.fyi { min-height: 0; }
.td-card.fyi .td-kind { background: var(--fx-sunk); color: var(--fx-ink-3); }

/* the day rate, asked once inside the quote panel (top fix 7) */
.td-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: var(--fx-r-inner); background: var(--fx-cobalt-soft); }
.td-rate-q { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--fx-ink); margin: 0; }
.td-rate-box { display: inline-flex; align-items: center; height: 34px; padding: 0 10px; border-radius: var(--fx-r-inner); background: var(--fx-card); box-shadow: 0 0 0 1px var(--fx-line); }
.td-rate-cur { color: var(--fx-ink-3); margin-right: 2px; }
.td-rate-in { width: 84px; border: 0; background: transparent; box-shadow: none; padding: 0; font: inherit; font-variant-numeric: tabular-nums; color: var(--fx-ink); min-height: 0; }
.td-rate-in:focus { outline: none; }
.td-rate-box:focus-within { box-shadow: 0 0 0 1px rgba(201, 100, 66, .5), 0 0 0 4px rgba(201, 100, 66, .1); }
.td-rate-msg { flex-basis: 100%; font-size: 12px; color: var(--fx-ink-3); }
.td-rate-msg.bad { color: var(--fx-bad); }
.td-rate-done { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--fx-ink-2); }
.td-rate-done .ico, .td-rate-done svg { width: 16px; height: 16px; color: var(--fx-live); }

/* inline confirm (never a modal) */
.td-confirm { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--fx-line); animation: td-drop var(--fx-med) var(--fx-ease) both; }
@keyframes td-drop { from { opacity: 0; transform: translateY(-6px); } }
.td-lead { margin: 0; font-size: 14px; color: var(--fx-ink); }
.td-fields { display: grid; gap: 8px; }
.td-fields input, .td-fields textarea { width: 100%; padding: 10px 12px; border-radius: var(--fx-r-inner); border: 0; background: var(--fx-sunk); box-shadow: none; color: var(--fx-ink); resize: vertical; min-height: 0; }
.td-fields textarea { min-height: 64px; }
.td-fields input:focus, .td-fields textarea:focus { outline: none; background: var(--fx-card); box-shadow: 0 0 0 1px rgba(201, 100, 66, .4), 0 0 0 4px rgba(201, 100, 66, .08); }
.td-amount { max-width: 240px; font-variant-numeric: tabular-nums; }
.td-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.td-err { font-size: 12px; color: var(--fx-bad); }
.td-err:empty { display: none; }

/* rows: moving clients, proven apps (one card, quiet dividers) */
.td-rows { background: var(--fx-card); border-radius: var(--fx-r-card); box-shadow: var(--fx-shadow-card); padding: 4px 0; }
.td-rows > li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 46px auto; align-items: center; gap: 14px; padding: 12px 16px; position: relative; }
.td-rows > li + li::before { content: ''; position: absolute; top: 0; left: 70px; right: 16px; height: 1px; background: var(--fx-line); }
.td-rows > li:hover { background: rgba(31, 30, 29, .018); }
.td-rows > li:first-child { border-radius: var(--fx-r-card) var(--fx-r-card) 0 0; }
.td-rows > li:last-child { border-radius: 0 0 var(--fx-r-card) var(--fx-r-card); }
.td-mtext, .td-ptext { display: grid; gap: 6px; min-width: 0; color: inherit; text-decoration: none; }
.td-mtext b, .td-ptext b { font-size: 15px; font-weight: 500; color: var(--fx-ink); }
.td-mproj { margin-left: 8px; font-weight: 400; color: var(--fx-ink-4); }
.td-mthumb { width: 46px; height: 70px; border-radius: 10px; overflow: hidden; background: var(--fx-sunk); box-shadow: 0 0 0 1px var(--fx-line); }
.td-mthumb .phone { border-radius: 0; box-shadow: none; }
.td-rows > li.td-prow { grid-template-columns: 40px minmax(0, 1fr) auto; }
.td-psum { font-size: 13px; line-height: 1.45; color: var(--fx-ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-tile.td-tile-site { background: var(--fx-sunk); color: var(--fx-ink-3); }
.td-tile-site .ico, .td-tile-site svg { width: 18px; height: 18px; }
.td-rows .fx-btn .ico, .td-rows .fx-btn svg { width: 16px; height: 16px; }

/* aside */
.td-side-k { margin: 0 0 12px; font: 500 13px/1.3 var(--fx-sans); letter-spacing: .02em; color: var(--fx-ink-3); }
.td-noticed { padding: 18px 18px 6px; background: var(--fx-aurora-soft), var(--fx-card); }
.td-noticed .td-side-k { font-weight: 600; }
.td-insights { list-style: none; margin: 0; padding: 0; }
.td-insights li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 10px; padding: 12px 0 14px; }
.td-insights li + li { border-top: 1px solid var(--fx-line); }
.td-insights p { margin: 0; align-self: center; font-size: 14px; line-height: 1.45; color: var(--fx-ink-2); }
.td-insights .fx-btn { grid-column: 2; justify-self: start; }
.td-ins-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--fx-card); color: var(--fx-ink-2); box-shadow: var(--fx-shadow-card); }
.td-ins-ico .ico, .td-ins-ico svg { width: 16px; height: 16px; }

.td-month { padding: 18px; }
.td-month-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.td-month-rows li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--fx-ink-2); cursor: default; border-radius: 8px; }
.td-month-rows li > .ico { flex: none; width: 16px; height: 16px; color: var(--fx-ink-4); }
.td-month-rows b { color: var(--fx-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.td-est { margin-left: 6px; display: inline-grid; place-items: center; height: 18px; padding: 0 6px; border-radius: var(--fx-r-pill); background: var(--fx-sunk); color: var(--fx-ink-3); font-size: 12px; font-weight: 500; text-decoration: none; cursor: help; vertical-align: 1px; }

/* the AI-fix card: Blanks ••• OpenAI / Claude */
.td-fix { overflow: hidden; }
.td-fix-art { min-height: 132px; }
.td-fix-art .fx-orbit-icon svg { width: 22px; height: 22px; }
.td-fix-art .td-g-blanks { left: 16%; top: 46px; width: 44px; height: 44px; }
.td-fix-art .td-g-blanks svg { width: 28px; height: 28px; }
.td-g-dots { position: absolute; left: 37%; top: 64px; display: flex; gap: 6px; }
.td-g-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--fx-ink-4); animation: td-dots 1.6s var(--fx-ease) infinite; }
.td-g-dots i:nth-child(2) { animation-delay: .2s; }
.td-g-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes td-dots { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.td-g-claude { left: 58%; top: 24px; }
.td-g-openai { left: 70%; top: 70px; }
.td-g-far { left: 84%; top: 22px; }
.td-fix-body { padding: 16px 18px 18px; }
.td-fix-body .td-side-k { margin-bottom: 6px; color: var(--fx-ink); font-size: 14px; letter-spacing: 0; }
.td-fix-text { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--fx-ink-2); }
.td-fix-body .fx-btn .ico, .td-fix-body .fx-btn svg { width: 16px; height: 16px; }

/* the guide, small, only for new agencies */
.td-guide .guide-card { padding: 16px 18px !important; border-radius: var(--fx-r-card) !important; box-shadow: var(--fx-shadow-card) !important; }
.td-guide .guide-card h2 { font-size: 14px; }

/* first run */
.td-first { display: flex; flex-wrap: wrap; gap: 8px; }

/* motion: things rise in, and slide away when acted on */
.td-rise { animation: td-rise var(--fx-med) var(--fx-ease) both; }
@keyframes td-rise { from { opacity: 0; transform: translateY(8px); } }
.td-leaving { overflow: hidden; transition: transform 220ms var(--fx-ease), opacity 200ms ease-in, height 240ms var(--fx-ease), margin 240ms var(--fx-ease), padding 240ms var(--fx-ease); }
.td-leaving.td-gone { transform: translateX(-48px); opacity: 0; pointer-events: none; }
.td-leaving.td-collapse { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.td-leaving.td-collapse::before { display: none; }

/* loading */
.td-skel-hero { height: 112px; border-radius: var(--fx-r-card); margin-bottom: 28px; }
.td-skel-ask { height: 118px; border-radius: 20px; margin-bottom: 36px; }
.td-skel-card { height: 300px; border-radius: var(--fx-r-card); }
.td-skel-side { height: 280px; border-radius: var(--fx-r-card); }

/* narrower screens: the aside drops under the list */
@media (max-width: 1100px) and (min-width: 760px) {
  .td-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .td-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}

/* phones (390 px first-class): one column; the aside's cards slot in by order */
@media (max-width: 759px) {
  body.agency-body .page.today { padding: 22px 16px 28px; }
  .td-layout { display: flex; flex-direction: column; gap: 0; }
  .td-main, .td-aside { display: contents; }
  .td-o1 { order: 1; }
  .td-o2 { order: 2; }
  .td-o3 { order: 3; }
  .td-o4 { order: 4; }
  .td-o5 { order: 5; }
  .td-o6 { order: 6; }
  .td-o7 { order: 7; }
  .td-o8 { order: 8; }
  .td-hero { margin-bottom: 20px; }
  .td-hero .fx-hero { font-size: 28px; }
  .td-ask { margin-bottom: 24px; }
  .td-ask-note, .td-kbd { display: none; }
  .td-chips { flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
  .td-chips::-webkit-scrollbar { display: none; }
  .td-chips .fx-chip { flex: none; }
  .td-fix { margin-bottom: 24px; }
  .td-tabs { gap: 18px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
  .td-tabs button { flex: none; }
  .td-list { margin-bottom: 24px; }
  .td-noticed, .td-month, .td-guide { margin-bottom: 14px; }
  .td-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .td-frame { margin: 8px 8px 0; }
  .td-screens { padding: 18px 10px 14px; gap: 8px; }
  .td-body { padding: 16px 18px 18px; gap: 14px; }
  body.agency-body .td-card h2.td-sentence { font-size: 22px; }
  .td-actions .fx-btn { flex: 1 1 auto; justify-content: center; height: var(--fx-h-lg); }
  .td-open { margin: 2px auto 0; }
  .td-amount { max-width: none; }
  .td-rows > li { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .td-rows > li + li::before { left: 66px; right: 14px; }
  .td-mthumb { display: none; }
  .td-rows > li.td-prow { grid-template-columns: 40px minmax(0, 1fr); }
  .td-prow .fx-btn { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .td-rise, .td-confirm, .td-leaving, .td-mic.on .ico, .td-g-dots i, .td-composer .fx-send { animation: none !important; transition: none !important; }
}

/* Lead polish (2026-11-20): on phones every block takes the full width (the composer was squeezed to 234 px). */
@media (max-width: 759px) { .td-layout [class*="td-o"] { align-self: stretch; width: 100%; box-sizing: border-box; } }

/* Centring (founder, 2026-11-20): with nothing in the right column, the page is one centred column, not a left-shifted pair. */
.td-layout:not(:has(.td-aside > :not(:empty))) { grid-template-columns: minmax(0, 820px); justify-content: center; }
.td-layout:not(:has(.td-aside > :not(:empty))) .td-aside { display: none; }

/* ── the composer's inline plan (agency-command.js inlinePlan) ── */
.td-plan[hidden] { display: none; }
.td-plan .cmdk-inline { margin: 12px 0 4px; }

/* ── session digests (contract 3): an update, one line + a small breakdown, no screens ── */
.td-card.td-digest { display: block; }
.td-digest .td-body { padding: 18px 20px; }
.td-dg-line { font-size: 17px; }
.td-dg-bits { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--fx-ink-3); }
.td-dg-bits b { color: var(--fx-ink); font-weight: 600; }
.td-dg-titles { color: var(--fx-ink-3); }
.td-dg-money { display: inline-flex; align-items: center; gap: 6px; }
.td-see { border: 0; background: none; cursor: pointer; font: inherit; }

/* "This month": Brief → Yes keeps its lead words plain */
.td-month-rows li span { min-width: 0; }
