:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
  --bg: #050505;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --border: #292929;
  --text: #f5f5f3;
  --muted: #929292;
  --accent: #f5f5f3;
  --accent-strong: #ffffff;
  --button: #645cff;
  --button-hover: #766fff;
  --danger: #ff8f96;
  --warning: #bdbdbd;
  --info: #bdbdbd;
  --radius: 14px;
  --shadow: none;
}
* { box-sizing: border-box; }
html { min-height: 100%; max-width: 100%; overflow-x: clip; background: var(--bg); }
body { margin: 0; min-height: 100vh; max-width: 100%; overflow-x: clip; color: var(--text); background: var(--bg); font-weight: 400; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: var(--accent-strong); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; padding: .8rem 1rem; border-radius: 8px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 1rem; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.navigation-shell { position: sticky; top: 0; height: 100vh; padding: 1.25rem; border-right: 1px solid var(--border); background: #070707; display: flex; flex-direction: column; gap: 2rem; }
.brand { display: flex; gap: .5rem; align-items: baseline; }
.brand-name { font-size: 1.25rem; font-weight: 450; letter-spacing: -.04em; }
.brand small { display: block; color: #5f5f5f; margin: 0; font-size: .65rem; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--text); color: var(--bg); font-weight: 500; box-shadow: none; }
.navigation-shell nav { display: grid; gap: .35rem; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.navigation-shell nav button, .navigation-shell nav a, .ghost { border: 0; background: transparent; color: var(--muted); border-radius: 10px; padding: .75rem .85rem; text-align: left; text-decoration: none; }
.navigation-shell nav button:hover, .navigation-shell nav button:focus-visible, .navigation-shell nav button[aria-current="page"], .navigation-shell nav a:hover, .navigation-shell nav a:focus-visible { color: var(--text); background: var(--surface-2); }
.navigation-shell-meta { margin-top: auto; display: grid; gap: .7rem; }
.status-dot { color: var(--muted); font-size: .82rem; }
.status-dot::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .45rem; border-radius: 50%; background: var(--warning); }
.status-dot.current::before { background: var(--accent); }
.badge { min-width: 1.4rem; padding: .1rem .4rem; border-radius: 999px; color: #201400; background: var(--warning); font-size: .72rem; font-weight: 800; float: right; text-align: center; }
main { min-width: 0; padding: 1.5rem clamp(1rem, 4vw, 4rem) 4rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, h4, h5, h6, strong, b { font-weight: 500; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 0; letter-spacing: -.04em; }
h2 { font-size: 1.05rem; }
h3 { font-size: 1rem; }
.eyebrow { margin-bottom: .3rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .72rem; font-weight: 450; }
.muted { color: var(--muted); }
.error { color: var(--danger); }
.success { color: var(--accent); }
.view { animation: enter .18s ease-out; }
[hidden] { display: none !important; }
.view[hidden] { display: none; }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.metric, .panel, .list-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); box-shadow: none; }
.metric { padding: 1.1rem; }
.metric strong { display: block; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.04em; }
.metric span { color: var(--muted); font-size: .85rem; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.panel { padding: 1.15rem; min-width: 0; }
.span-2 { grid-column: span 2; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.stack { display: grid; gap: .8rem; }
.card-list { display: grid; gap: .8rem; }
.list-card { padding: 1rem; }
.list-card.clickable:hover { border-color: var(--accent); transform: translateY(-1px); }
.list-card header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.list-card dl, .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; margin: .8rem 0 0; }
dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
dd { margin: .18rem 0 0; }
.label { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: .25rem .55rem; font-size: .68rem; font-weight: 800; border: 1px solid currentColor; white-space: nowrap; }
.recommendation, .confirmed { color: var(--accent); }
.decision, .risk { color: var(--warning); }
.observed { color: var(--info); }
.external { color: #d2a5ff; }
.primary, .secondary { border-radius: 999px; padding: .72rem 1.1rem; font-weight: 600; }
.primary { border: 1px solid var(--button); color: #ffffff; background: var(--button); }
.primary:hover, .primary:focus-visible { border-color: var(--button-hover); background: var(--button-hover); }
.secondary { border: 1px solid var(--border); color: var(--text); background: transparent; }
.secondary:hover, .secondary:focus-visible { border-color: #707070; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.form-grid label, .stack label { display: grid; gap: .38rem; color: var(--muted); font-size: .82rem; }
.full { grid-column: 1 / -1; }
input, textarea, select { width: 100%; border: 1px solid var(--border); border-radius: 9px; background: #0d131a; color: var(--text); padding: .7rem .75rem; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgb(116 214 178 / .18); border-color: var(--accent); }
fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
legend { color: var(--text); padding: 0 .4rem; font-weight: 750; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: step; }
.stepper li { color: var(--muted); border-bottom: 2px solid var(--border); padding: .65rem; font-size: .78rem; }
.stepper li.active { color: var(--accent); border-color: var(--accent); }
.notice { border-left: 3px solid var(--info); background: rgb(143 197 255 / .08); padding: .8rem; border-radius: 0 8px 8px 0; }
.warning-box { border-left-color: var(--warning); background: rgb(255 210 125 / .08); }
.danger-box { border-left-color: var(--danger); background: rgb(255 143 150 / .08); }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .8rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: .75rem; border-radius: 10px; background: #090d12; color: #bfd0df; font-size: .75rem; }
.login-shell { display: grid; place-items: center; padding: 1rem; }
.login-card { width: min(100%, 430px); padding: 2rem; border: 1px solid var(--border); border-radius: 22px; background: rgb(18 24 33 / .94); box-shadow: var(--shadow); }
.login-card .brand-mark { margin-bottom: 1.2rem; }
.tagline { margin: .45rem 0 .65rem; color: var(--text); font-weight: 650; line-height: 1.45; }
.powered-by, .app-footer { color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.login-card .powered-by { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); text-align: center; }
.app-footer { margin-top: 2rem; text-align: right; }
#global-message:not(:empty) { margin-bottom: 1rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.empty { color: var(--muted); padding: 1.2rem 0; text-align: center; }
.optional { color: var(--muted); font-size: .7rem; font-weight: 500; }
.advanced-information { border: 1px solid var(--border); border-radius: 12px; padding: .85rem; background: rgb(9 13 18 / .35); }
.advanced-information summary { cursor: pointer; color: var(--text); font-weight: 750; }
.advanced-information label { margin-top: .9rem; }
.proposal-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin-bottom: 1rem; }
.proposal-summary span { display: grid; gap: .15rem; padding: .7rem; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: rgb(9 13 18 / .35); font-size: .75rem; }
.proposal-summary strong { color: var(--text); font-size: 1.2rem; }
.proposal-tree { display: grid; gap: 1.1rem; }
.proposal-context { display: grid; gap: .65rem; }
.proposal-context .notice p { margin-bottom: 0; }
.proposal-card { border: 1px solid var(--border); border-radius: 13px; padding: .9rem; background: rgb(11 15 20 / .58); }
.proposal-card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.proposal-card h3, .proposal-card h4, .proposal-card h5 { margin: 0 0 .45rem; }
.proposal-card.deliverable { border-left: 3px solid var(--info); }
.proposal-card.work-package { border-left: 3px solid var(--accent); }
.proposal-card.activity { border-left: 3px solid var(--border); padding: .75rem; }
.proposal-card.rejected { border-color: var(--danger); opacity: .62; }
.proposal-children { display: grid; gap: .75rem; margin: .9rem 0 0 1rem; }
.proposal-children.activities { margin-left: .5rem; }
.proposal-actions { margin-top: .65rem; }
.proposal-actions button { padding: .48rem .7rem; font-size: .75rem; }
.proposal-final-actions { justify-content: flex-end; padding-top: 1rem; border-top: 1px solid var(--border); }
.execution-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.today-workspace { align-items: start; }
.recommendation-hero { border-color: var(--border); background: var(--surface); }
.recommendation-hero h2 { max-width: 24ch; margin-bottom: .25rem; font-size: clamp(1.45rem, 3vw, 2.25rem); letter-spacing: -.03em; }
.recommendation-body { margin-top: .85rem; }
.recommendation-detail header, .work-row header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.recommendation-detail header h3, .work-row header h3 { margin-bottom: .35rem; }
.recommendation-detail header p, .work-row header p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.recommendation-detail header > strong, .work-row header > strong { flex: 0 0 auto; color: var(--accent-strong); font-size: 1.1rem; }
.recommendation-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0 0; }
.recommendation-facts > div { padding: .7rem; border: 1px solid var(--border); border-radius: 10px; background: rgb(9 13 18 / .3); }
.evidence-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.evidence-chip { padding: .25rem .48rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .65rem; letter-spacing: .03em; }
.execution-actions { padding-top: .8rem; border-top: 1px solid var(--border); }
.execution-actions .ghost { border: 1px solid var(--border); text-align: center; }
.quick-checkin { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.quick-checkin p { margin-bottom: .7rem; }
.checkin-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.checkin-options button { padding: .55rem .75rem; }
.work-row { padding: .85rem 0; border-bottom: 1px solid var(--border); }
.work-row:first-child { padding-top: 0; }
.work-row:last-child { padding-bottom: 0; border-bottom: 0; }
.deadline-row, .health-row, .forecast-row { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.deadline-row:last-child, .health-row:last-child, .forecast-row:last-child { border-bottom: 0; }
.deadline-row, .health-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.deadline-row div, .health-row div { display: grid; gap: .2rem; }
.deadline-row span, .health-row span:not(.label), .forecast-row small { color: var(--muted); font-size: .75rem; }
.deadline-row time { color: var(--warning); font-weight: 750; }
.forecast-row p { margin: .3rem 0; color: var(--muted); }
.timeline { display: grid; gap: .2rem; }
.timeline-item { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: .7rem; padding: .45rem 0 .8rem; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: -4px; width: 1px; background: var(--border); }
.timeline-marker { position: relative; z-index: 1; width: 15px; height: 15px; margin-top: 2px; border: 3px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline-item p { margin: .2rem 0; color: var(--muted); }
.timeline-item time { color: var(--muted); font-size: .7rem; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .navigation-shell { position: sticky; z-index: 10; width: 100%; min-width: 0; max-width: 100vw; height: auto; overflow: hidden; border-right: 0; border-bottom: 1px solid var(--border); padding: .7rem 1rem; gap: .7rem; }
  .brand small, .navigation-shell-meta .status-dot { display: none; }
  .navigation-shell nav { display: flex; min-width: 0; max-width: calc(100vw - 2rem); overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; }
  .navigation-shell nav button, .navigation-shell nav a { white-space: nowrap; }
  .navigation-shell-meta { position: absolute; top: .75rem; right: 1rem; }
  .navigation-shell-meta .ghost { padding: .55rem; }
  main { padding-top: 1rem; }
}
@media (max-width: 680px) {
  .metric-grid, .content-grid, .form-grid { grid-template-columns: 1fr; }
  .span-2, .full { grid-column: 1; }
  .topbar, .toolbar, .list-card header { align-items: flex-start; flex-direction: column; }
  .stepper { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

.agent-pairing-panel { margin-bottom: 1rem; border-color: rgb(116 214 178 / .55); }
.agent-platform-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.agent-platform-choice legend { grid-column: 1 / -1; }
.agent-platform-choice label { display: flex; align-items: flex-start; gap: .65rem; padding: .8rem; border: 1px solid var(--border); border-radius: 11px; background: rgb(9 13 18 / .34); cursor: pointer; }
.agent-platform-choice label:has(input:checked) { border-color: var(--accent); background: rgb(116 214 178 / .08); }
.agent-platform-choice input { width: 1rem; margin-top: .2rem; accent-color: var(--accent); }
.agent-platform-choice strong, .agent-platform-choice small { display: block; }
.agent-platform-choice small { margin-top: .25rem; color: var(--muted); line-height: 1.4; }
.agent-pairing-result { display: grid; gap: .9rem; }
.agent-pairing-steps { display: grid; gap: .55rem; padding-left: 1.25rem; }
.agent-pairing-secret { padding: .9rem; border: 1px solid var(--warning); border-radius: 11px; background: rgb(255 210 125 / .07); }
.agent-pairing-secret code { display: block; margin-top: .5rem; padding: .65rem; border-radius: 8px; background: #090d12; overflow-wrap: anywhere; color: var(--text); }
.agent-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .65rem; }
.agent-status-grid > div { padding: .55rem .65rem; border: 1px solid var(--border); border-radius: 9px; background: rgb(9 13 18 / .28); }
.agent-status-grid strong, .agent-status-grid small { display: block; }
.agent-status-grid small { margin-top: .2rem; color: var(--muted); }
.permission-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.permission-list span { padding: .25rem .45rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .7rem; }
@media (max-width: 680px) {
  .agent-platform-choice, .agent-status-grid { grid-template-columns: 1fr; }
}

/* Personal assistant homepage — decision-first hierarchy */
#view-today { max-width: 1120px; }
.today-briefing { max-width: 820px; margin: .4rem 0 1.25rem; }
.today-briefing h2 { margin-bottom: .45rem; font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.02em; }
.assistant-briefing { margin-bottom: .35rem; color: var(--text); font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.45; font-weight: 680; text-wrap: balance; }
.briefing-context { margin: 0; max-width: 72ch; color: var(--muted); line-height: 1.6; }

#view-today .recommendation-hero { margin-bottom: 1rem; padding: clamp(1.2rem, 3vw, 2rem); border-color: rgb(116 214 178 / .58); box-shadow: 0 28px 80px rgb(0 0 0 / .34); }
#view-today .recommendation-hero > .panel-head { align-items: center; }
#view-today .recommendation-hero > .panel-head h2 { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 700; letter-spacing: 0; }
.primary-recommendation-card .recommendation-kicker { margin-bottom: .55rem; color: var(--accent); font-size: .78rem; font-weight: 760; }
.primary-recommendation-card > h3 { max-width: 28ch; margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.recommendation-context { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.recommendation-context span { padding: .34rem .58rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: rgb(9 13 18 / .28); font-size: .73rem; }
.why-now { max-width: 760px; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.why-now .eyebrow { margin-bottom: .35rem; }
.why-now > p:last-child { margin: 0; color: var(--text); font-size: 1.02rem; line-height: 1.65; }
#view-today .execution-actions { margin-top: 1.2rem; padding-top: 1rem; }
#view-today .execution-actions .primary { min-width: 9rem; text-align: center; }

.today-session-strip { margin: 0 0 1.4rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 14px; background: rgb(18 24 33 / .58); }
.today-session-strip h2 { margin-bottom: .25rem; }
.today-session-strip #active-execution h3 { margin-top: .75rem; }

.today-follow-through { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 1rem 1.5rem; margin: 1.6rem 0; }
.today-secondary-section { min-width: 0; padding: 1rem 0 0; border-top: 1px solid var(--border); }
.today-secondary-section .section-heading { align-items: flex-start; padding: 0 0 .75rem; border: 0; }
.today-secondary-section .section-heading h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.today-secondary-section .section-heading .eyebrow { margin-bottom: .25rem; }
.section-note { align-self: center; color: var(--muted); font-size: .72rem; }
.attention-section { grid-column: 1 / -1; }
.attention-list { display: grid; gap: .65rem; }
.attention-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0 .85rem 1rem; border-left: 3px solid var(--warning); }
.attention-item.attention-critical { border-left-color: var(--danger); }
.attention-item.attention-waiting { border-left-color: var(--info); }
.attention-item h3 { margin: .12rem 0 .25rem; font-size: 1rem; }
.attention-item p { margin: 0; color: var(--muted); line-height: 1.5; }
.attention-item .attention-type { color: var(--warning); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.attention-item.attention-critical .attention-type { color: var(--danger); }
.attention-item.attention-waiting .attention-type { color: var(--info); }
.attention-item .ghost { flex: 0 0 auto; border: 1px solid var(--border); text-align: center; }

.next-actions-list .work-row { padding: .8rem 0; }
.next-actions-list .work-row header h3 { font-size: .98rem; }
.next-actions-list .work-row header p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.week-outlook-section { align-self: start; }
.outlook-conclusion { margin-bottom: .8rem; font-weight: 680; line-height: 1.55; }
.outlook-facts { display: grid; gap: .55rem; margin: 0 0 .85rem; }
.outlook-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--border); }
.outlook-facts dt { text-transform: none; letter-spacing: 0; }
.outlook-facts dd { margin: 0; text-align: right; }
.outlook-limitation { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }

.today-supporting-details { margin-top: 1.75rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.today-supporting-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; cursor: pointer; font-weight: 760; }
.today-supporting-details > summary small { color: var(--muted); font-size: .72rem; font-weight: 500; text-align: right; }
.today-supporting-details[open] > summary { border-bottom: 1px solid var(--border); }
.today-supporting-content { padding: 1rem 0 0; }
.today-supporting-content .execution-metrics { margin-bottom: 1rem; }
.today-supporting-content .metric { padding: .85rem; box-shadow: none; background: rgb(18 24 33 / .56); }
.today-supporting-content .metric strong { font-size: 1.35rem; }
.supporting-grid .panel { box-shadow: none; background: rgb(18 24 33 / .56); }

@media (max-width: 760px) {
  .today-follow-through { grid-template-columns: 1fr; }
  .attention-section { grid-column: 1; }
  .attention-item { align-items: flex-start; flex-direction: column; }
  .attention-item .ghost { width: 100%; }
  .today-supporting-details > summary { align-items: flex-start; flex-direction: column; }
  .today-supporting-details > summary small { text-align: left; }
}

/* Frontend iteration 2 — personal assistant workspace */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
#view-today { max-width: 1240px; }
.assistant-workspace { position: relative; isolation: isolate; overflow: hidden; margin: .25rem 0 1.7rem; padding: clamp(1rem, 2.5vw, 1.7rem) 0 0; border-top: 1px solid rgb(116 214 178 / .42); border-bottom: 1px solid var(--border); }
.assistant-workspace__glow { display: none; }
.assistant-workspace__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.1rem, 2.4vw, 2rem); }
.assistant-workspace__header h2 { margin: 0; color: var(--muted); font-size: .82rem; font-weight: 650; letter-spacing: .02em; }
.assistant-status { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent-strong); font-size: .75rem; font-weight: 720; }
.assistant-status::before { content: ""; width: .52rem; height: .52rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 .3rem rgb(116 214 178 / .1); }
.assistant-workspace__body { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.45fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-bottom: clamp(1.65rem, 4vw, 3rem); }
.assistant-workspace__story { max-width: 36rem; padding-top: .35rem; }
.assistant-briefing { margin: 0 0 .8rem; color: var(--text); font-size: clamp(1.28rem, 2.5vw, 2rem); line-height: 1.34; font-weight: 690; letter-spacing: -.025em; text-wrap: balance; }
.briefing-context { margin: 0; max-width: 58ch; color: var(--muted); line-height: 1.65; }
.assistant-decision { min-width: 0; padding-left: clamp(1.4rem, 3vw, 2.6rem); border-left: 2px solid var(--accent); }
.assistant-decision__prompt { margin: 0 0 .65rem; color: var(--accent); font-size: .73rem; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
.assistant-recommendation .recommendation-kicker { margin-bottom: .65rem; color: var(--muted); font-size: .78rem; font-weight: 650; }
.assistant-recommendation > h3 { max-width: 20ch; margin: 0; font-size: clamp(2.25rem, 4.8vw, 4.25rem); line-height: 1; letter-spacing: -.055em; text-wrap: balance; }
.assistant-recommendation__reason { max-width: 64ch; margin: 1.2rem 0 0; color: var(--text); font-size: clamp(1rem, 1.45vw, 1.16rem); line-height: 1.65; }
.assistant-recommendation--empty > h3 { max-width: 18ch; font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.04; }
.assistant-recommendation--empty .actions { margin-top: 1.35rem; }
.assistant-recommendation--complete .recommendation-kicker { color: var(--muted); }
.assistant-recommendation--complete > h3 { max-width: 17ch; }
.assistant-recommendation--empty .primary { min-width: 11rem; padding: .9rem 1.35rem; border-radius: 12px; font-size: 1rem; text-align: center; box-shadow: 0 12px 34px rgb(116 214 178 / .16); }
.assistant-decision .recommendation-context { display: flex; flex-wrap: wrap; gap: .8rem 1.15rem; margin-top: 1.1rem; }
.assistant-decision .recommendation-context span { position: relative; padding: 0 0 0 .85rem; border: 0; border-radius: 0; color: var(--muted); background: transparent; font-size: .77rem; }
.assistant-decision .recommendation-context span::before { content: ""; position: absolute; left: 0; top: .45em; width: .3rem; height: .3rem; border-radius: 50%; background: var(--accent); }
.assistant-decision .recommendation-why { max-width: 46rem; margin-top: 1rem; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; }
.assistant-decision .recommendation-why summary { padding: .8rem 0; color: var(--muted); font-size: .8rem; }
.assistant-decision .recommendation-why[open] summary { border-bottom: 0; color: var(--text); }
.assistant-decision .recommendation-why > :not(summary) { margin-left: 0; margin-right: 0; }
.assistant-workspace .execution-actions { align-items: stretch; margin-top: 1.25rem; padding-top: 0; border-top: 0; }
.assistant-workspace .execution-actions .primary { min-width: 11rem; padding: .9rem 1.35rem; border-radius: 12px; font-size: 1rem; text-align: center; box-shadow: 0 12px 34px rgb(116 214 178 / .16); }
.assistant-workspace .execution-actions .secondary, .assistant-workspace .execution-actions .ghost { padding: .9rem 1.1rem; text-align: center; }
.assistant-session { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr); gap: 1rem 3rem; margin: 0 0 2.3rem; padding: 1.2rem 0 1.35rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: transparent; }
.assistant-session[hidden] { display: none; }
.assistant-session__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.assistant-session__heading h2 { margin: 0; font-size: 1rem; }
.assistant-session #active-execution h3 { margin: 0 0 .35rem; }
.assistant-session .observation-state, .assistant-session .quick-checkin { grid-column: 2; }
.day-flow-section { margin: 0 0 2.4rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.day-flow-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.day-flow-heading h2 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -.035em; }
.day-flow-heading > span { color: var(--muted); font-size: .75rem; }
.day-flow-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.day-flow-track[data-step-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 42rem; }
.day-flow-track[data-step-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 58rem; }
.day-flow-track[data-step-count="1"]::before { display: none; }
.day-flow-track::before { content: ""; position: absolute; left: 1.2rem; right: 1.2rem; top: 1.18rem; height: 1px; background: var(--border); }
.day-flow-step { position: relative; z-index: 1; display: grid; grid-template-columns: 2.4rem 1fr; gap: .75rem; min-width: 0; padding-right: clamp(1rem, 3vw, 2.8rem); }
.day-flow-marker { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); background: var(--bg); font-size: .72rem; font-weight: 800; }
.day-flow-step--current .day-flow-marker { border-color: var(--accent); color: #06100d; background: var(--accent); box-shadow: 0 0 0 .38rem rgb(116 214 178 / .09); }
.day-flow-stage { margin: 0 0 .35rem; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.day-flow-step--current .day-flow-stage { color: var(--accent); }
.day-flow-copy h3 { margin: 0 0 .35rem; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.35; }
.day-flow-copy > p:last-child { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.day-flow-empty { margin: 0; padding: 1rem 0; color: var(--muted); border-top: 1px solid var(--border); line-height: 1.6; }
.today-follow-through { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 1.5rem 4rem; margin: 0 0 2rem; }
.today-secondary-section { min-width: 0; padding: 1.25rem 0 0; border-top: 1px solid var(--border); }
.today-secondary-section .section-heading { align-items: flex-start; padding: 0 0 1rem; border: 0; }
.today-secondary-section .section-heading h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.02em; }
.attention-section { grid-column: 1; }
.week-outlook-section { grid-column: 2; grid-row: 1; }
.attention-section[hidden] + .week-outlook-section { grid-column: 1 / -1; }
.attention-list { display: grid; gap: 0; }
.attention-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: .95rem 0; border-left: 0; border-bottom: 1px solid var(--border); }
.attention-item:first-child { padding-top: 0; }
.attention-item:last-child { border-bottom: 0; }
.attention-item::before { content: ""; position: absolute; }
.attention-item h3 { margin: .12rem 0 .2rem; font-size: 1rem; }
.attention-item p { margin: 0; color: var(--muted); line-height: 1.5; }
.attention-item .ghost { flex: 0 0 auto; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: .45rem 0; color: var(--text); }
.week-outlook-section #week-outlook { max-width: 54ch; }
.outlook-conclusion { margin-bottom: .8rem; font-size: 1rem; font-weight: 680; line-height: 1.55; }
.today-supporting-details { margin-top: 1rem; }
@media (max-width: 980px) {
  .assistant-workspace__body { grid-template-columns: 1fr; gap: 1.8rem; }
  .assistant-workspace__story { max-width: 50rem; }
  .assistant-decision { padding: 1.6rem 0 0; border-left: 0; border-top: 2px solid var(--accent); }
  .assistant-recommendation > h3 { max-width: 24ch; }
  .today-follow-through { grid-template-columns: 1fr; gap: 1rem; }
  .attention-section, .week-outlook-section { grid-column: 1; grid-row: auto; }
}
@media (max-width: 680px) {
  main:has(#view-today.active) { padding-inline: 1rem; }
  main:has(#view-today.active) .topbar { flex-direction: row; align-items: center; margin-bottom: .7rem; }
  main:has(#view-today.active) .topbar #page-context,
  main:has(#view-today.active) .topbar #page-purpose { display: none; }
  main:has(#view-today.active) .topbar #page-title { font-size: 1.45rem; }
  main:has(#view-today.active) .topbar #refresh { padding: .5rem .7rem; font-size: .78rem; }
  .assistant-workspace { margin-top: 0; padding-top: 1rem; }
  .assistant-workspace__header { margin-bottom: 1.25rem; }
  .assistant-workspace__header h2 { display: none; }
  .assistant-workspace__body { gap: 1.25rem; padding-bottom: 1.5rem; }
  .assistant-briefing { font-size: 1.18rem; }
  .briefing-context { font-size: .9rem; }
  .assistant-decision { padding-top: 1.25rem; }
  .assistant-recommendation > h3 { font-size: clamp(2rem, 11vw, 3.1rem); }
  .assistant-recommendation__reason { margin-top: .9rem; font-size: .95rem; }
  .assistant-workspace .execution-actions { position: static; display: grid; grid-template-columns: 1fr; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .assistant-workspace .execution-actions .primary, .assistant-workspace .execution-actions .secondary, .assistant-workspace .execution-actions .ghost { width: 100%; }
  .assistant-session { grid-template-columns: 1fr; gap: .8rem; }
  .assistant-session .observation-state, .assistant-session .quick-checkin { grid-column: 1; }
  .day-flow-heading { align-items: flex-start; flex-direction: column; }
  .day-flow-track { grid-template-columns: 1fr; gap: 0; }
  .day-flow-track::before { left: 1.18rem; right: auto; top: 1.2rem; bottom: 1.2rem; width: 1px; height: auto; background: var(--border); }
  .day-flow-step { padding: 0 0 1.35rem; }
  .day-flow-step:last-child { padding-bottom: 0; }
  .attention-item { align-items: start; grid-template-columns: 1fr; }
  .attention-item .ghost { width: fit-content; }
}

/* Phase 8B — human-centered product clarity */
button:focus-visible, summary:focus-visible, [role="button"]:focus-visible, a:focus-visible {
  outline: 3px solid rgb(116 214 178 / .36);
  outline-offset: 3px;
}
.page-purpose { margin: .35rem 0 0; color: var(--muted); max-width: 58ch; }
.page-intro { margin-bottom: 1rem; }
.page-intro h2, .goal-toolbar h2 { margin-bottom: .35rem; font-size: 1.25rem; }
.toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; }
.toggle { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .82rem; cursor: pointer; }
.toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.back-button { margin-bottom: 1rem; border: 1px solid var(--border); }

.primary-recommendation-card .recommendation-kicker { color: var(--accent); font-weight: 750; margin-bottom: .55rem; }
.primary-recommendation-card header h3 { font-size: clamp(1.45rem, 3.5vw, 2.35rem); max-width: 28ch; letter-spacing: -.035em; }
.human-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem; }
.human-facts > div { display: flex; align-items: flex-start; gap: .65rem; padding: .8rem; border: 1px solid var(--border); border-radius: 11px; background: rgb(9 13 18 / .28); }
.human-facts strong, .human-facts small { display: block; }
.human-facts small { color: var(--muted); margin-top: .18rem; }
.fact-icon { color: var(--accent); font-weight: 900; }
.technical-subsection { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.technical-subsection h4 { margin-bottom: .5rem; }

.advanced-details { margin-top: .85rem; border: 1px solid var(--border); border-radius: 11px; background: rgb(9 13 18 / .34); }
.advanced-details summary { cursor: pointer; padding: .75rem .85rem; color: var(--text); font-weight: 750; list-style-position: inside; }
.advanced-details[open] summary { border-bottom: 1px solid var(--border); }
.advanced-details > :not(summary) { margin-left: .85rem; margin-right: .85rem; }
.advanced-details > :last-child { margin-bottom: .85rem; }
.advanced-details pre { max-height: 28rem; overflow: auto; }
.advanced-information { display: none; }

.empty-state { display: grid; justify-items: center; gap: .75rem; padding: 1.4rem; color: var(--muted); text-align: center; border: 1px dashed var(--border); border-radius: 12px; background: rgb(9 13 18 / .2); }
.empty-state p { margin: 0; max-width: 52ch; }
.empty-state .primary { width: fit-content; }

.goal-sections, .goal-section { display: grid; gap: 1rem; }
.goal-section + .goal-section { margin-top: 1.4rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-bottom: .55rem; border-bottom: 1px solid var(--border); }
.section-heading h2 { margin: 0; font-size: 1.15rem; }
.section-heading span { min-width: 1.8rem; text-align: center; color: var(--muted); }
.goal-card h3 { margin: .45rem 0 0; font-size: 1.15rem; }
.goal-card time { color: var(--warning); font-weight: 750; }
.card-labels { display: flex; flex-wrap: wrap; gap: .4rem; }
.technical-data-note { margin: 1rem 0 0; padding: .8rem; border-radius: 10px; color: var(--muted); background: rgb(143 197 255 / .06); border: 1px solid var(--border); }
.goal-hero { border-color: rgb(116 214 178 / .38); }

.decision-card { padding: 1.15rem; }
.decision-card > header h2 { margin: .5rem 0 .2rem; font-size: 1.28rem; }
.decision-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1rem; }
.decision-copy > div, .decision-impact > div { padding: .85rem; border: 1px solid var(--border); border-radius: 11px; background: rgb(9 13 18 / .24); }
.decision-copy h3, .decision-impact strong { margin-bottom: .35rem; }
.decision-copy p, .decision-impact p { margin: 0; color: var(--muted); line-height: 1.55; }
.decision-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; margin-top: .85rem; }
.decision-summary > div { display: grid; gap: .15rem; padding: .7rem; border-radius: 10px; background: var(--surface-2); text-align: center; }
.decision-summary strong { font-size: 1.2rem; }
.decision-summary span { color: var(--muted); font-size: .72rem; }
.decision-impact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: .85rem; }

.integration-card > header h2 { margin-bottom: .35rem; }
.capability-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .5rem; margin: 1rem 0; }
.capability-list > div { display: flex; align-items: center; gap: .55rem; padding: .65rem .75rem; border-radius: 9px; background: rgb(116 214 178 / .07); }
.capability-list span { color: var(--accent); font-weight: 900; }
.ownership-notice { margin-top: .75rem; }
.ownership-notice p { margin: .35rem 0 0; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.settings-section > h2 { margin-bottom: .35rem; }
.settings-list { display: grid; margin: 1rem 0 0; }
.settings-list > div { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(180px, 1.2fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.settings-list > div:last-child { border-bottom: 0; }
.settings-list dt { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.settings-list dd { text-align: right; line-height: 1.45; }
.readonly-label { display: block; margin-top: .2rem; color: var(--muted); font-size: .67rem; }
.developer-settings-toggle { margin-top: 1rem; }

.summary-list { display: grid; gap: .65rem; }
.summary-list > div { padding: .7rem; border: 1px solid var(--border); border-radius: 9px; }
.proposal-submit-note { margin-top: 1rem; padding: .85rem; border-left: 3px solid var(--accent); background: rgb(116 214 178 / .06); }
.proposal-submit-note p { margin: .3rem 0 0; color: var(--muted); }
.proposal-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.change-history { margin-bottom: 1rem; }

.observation-state {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  border-radius: .8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgb(116 214 178 / .06);
}
.observation-state p { margin: .2rem 0 0; color: var(--muted); }
.activity-device-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.activity-workspace ul { margin: .4rem 0 1rem; padding-left: 1.2rem; }
.activity-workspace li { margin: .3rem 0; }
.interpretation-card h3 { margin: .8rem 0 .35rem; }
.compact-card { display: grid; grid-template-columns: 1fr auto; gap: .45rem .8rem; }
.compact-card p { grid-column: 1 / -1; margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .human-facts { grid-template-columns: 1fr; }
  .decision-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-grid .span-2 { grid-column: 1; }
}
@media (max-width: 680px) {
  main { padding-left: .85rem; padding-right: .85rem; }
  .toolbar-actions { width: 100%; align-items: stretch; justify-content: flex-start; }
  .toolbar-actions .primary { width: 100%; }
  .decision-copy, .decision-impact, .decision-summary { grid-template-columns: 1fr; }
  .settings-list > div { grid-template-columns: 1fr; gap: .25rem; }
  .settings-list dd { text-align: left; }
  .proposal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proposal-children { margin-left: .35rem; }
  .recommendation-detail header, .work-row header { flex-direction: column; }
  .execution-actions { position: sticky; bottom: .5rem; z-index: 4; padding: .75rem; border: 1px solid var(--border); border-radius: 12px; background: rgb(18 24 33 / .96); box-shadow: var(--shadow); }
  .execution-actions .primary { flex: 1 1 100%; text-align: center; }
}

/* Personal intake — conversation before planning */
#view-today.needs-intake .day-flow-section,
#view-today.needs-intake .assistant-session,
#view-today.needs-intake .today-follow-through,
#view-today.needs-intake .today-supporting-details { display: none !important; }
#view-today.needs-intake .assistant-workspace { min-height: min(620px, calc(100vh - 10rem)); display: flex; flex-direction: column; justify-content: center; border-bottom: 0; }
#view-today.needs-intake .assistant-workspace__header { position: absolute; top: 1.2rem; left: 0; right: 0; }
#view-today.needs-intake .assistant-workspace__body { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); padding-bottom: 1rem; }

.intake-shell { width: min(100%, 1040px); margin: 0 auto; padding: .5rem 0 3rem; }
.intake-hero { max-width: 760px; margin-bottom: 2rem; }
.intake-hero h2 { margin: 0 0 .8rem; font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.055em; text-wrap: balance; }
.intake-hero > p:last-child { max-width: 62ch; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.intake-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 2.4rem; padding: 0; list-style: none; border-bottom: 1px solid var(--border); }
.intake-progress li { display: flex; align-items: center; gap: .55rem; padding: 0 0 .85rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.intake-progress li span { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border: 1px solid var(--border); border-radius: 50%; font-size: .68rem; }
.intake-progress li.active { color: var(--text); border-bottom: 2px solid var(--accent); }
.intake-progress li.active span, .intake-progress li.complete span { border-color: var(--accent); color: #06100d; background: var(--accent); }
.intake-progress li.complete { color: var(--accent); }
.intake-conversation { width: min(100%, 900px); }
.intake-step[hidden] { display: none; }
.intake-step { animation: enter .18s ease-out; }
.intake-question-number { margin-bottom: .45rem; color: var(--accent); font-size: .72rem; font-weight: 820; letter-spacing: .11em; text-transform: uppercase; }
.intake-step > h3 { max-width: 24ch; margin: 0 0 .65rem; font-size: clamp(1.65rem, 3.5vw, 2.65rem); line-height: 1.12; letter-spacing: -.04em; text-wrap: balance; }
.intake-guidance { margin-bottom: 1.25rem; color: var(--muted); }
.intake-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 0 0 1.4rem; padding: 0; border: 0; }
.intake-choice-grid legend:not(.visually-hidden) { grid-column: 1 / -1; margin: 1rem 0 .15rem; padding: 0; font-size: .95rem; }
.intake-choice-grid label { position: relative; display: block; min-width: 0; cursor: pointer; }
.intake-choice-grid input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.intake-choice-grid label > span { display: block; min-height: 86px; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: rgb(18 24 33 / .56); transition: border-color .15s ease, background .15s ease, transform .15s ease; pointer-events: none; }
.intake-choice-grid label:hover > span { border-color: rgb(116 214 178 / .55); transform: translateY(-1px); }
.intake-choice-grid input:focus-visible + span { outline: 3px solid rgb(116 214 178 / .36); outline-offset: 3px; }
.intake-choice-grid input:checked + span { border-color: var(--accent); background: rgb(116 214 178 / .1); box-shadow: inset 0 0 0 1px rgb(116 214 178 / .24); }
.intake-choice-grid input:checked + span::after { content: "✓"; position: absolute; top: .8rem; right: .9rem; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; color: #06100d; background: var(--accent); font-size: .7rem; font-weight: 900; }
.intake-choice-grid strong, .intake-choice-grid small { display: block; padding-right: 1.4rem; }
.intake-choice-grid small { margin-top: .35rem; color: var(--muted); line-height: 1.45; }
.intake-choice-grid.compact label > span { min-height: 72px; }
.intake-text-field { display: grid; gap: .5rem; margin-top: 1.1rem; color: var(--text); font-weight: 700; }
.intake-text-field textarea { min-height: 116px; padding: 1rem; border-radius: 14px; line-height: 1.55; resize: vertical; }
.intake-text-field small { color: var(--muted); font-weight: 500; }
.intake-scale-group { display: grid; gap: .2rem; }
.intake-summary { display: grid; gap: 1rem; margin: 1.3rem 0; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.intake-summary > p { margin: 0; color: var(--muted); line-height: 1.65; }
.intake-summary-lead { display: flex; align-items: center; gap: .9rem; }
.intake-summary-mark { flex: 0 0 auto; font-size: 1.35rem; }
.intake-summary-lead p { margin: .2rem 0 0; color: var(--muted); }
.intake-summary dl { display: grid; gap: 0; margin: 0; }
.intake-summary dl > div { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr); gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.intake-summary dl > div:last-child { border-bottom: 0; }
.intake-summary dd { margin: 0; line-height: 1.5; }
.intake-summary-outcome { padding-top: .25rem; color: var(--text) !important; }
.intake-confirmation { margin-top: 1rem; padding: 1rem; border-left: 3px solid var(--accent); background: rgb(116 214 178 / .06); }
.intake-confirmation label { display: flex; align-items: flex-start; gap: .65rem; font-weight: 700; }
.intake-confirmation input { width: 1.1rem; margin-top: .15rem; accent-color: var(--accent); }
.intake-confirmation p { margin: .55rem 0 0 1.75rem; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.intake-actions { display: flex; justify-content: space-between; gap: .7rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.intake-actions .primary { margin-left: auto; min-width: 8rem; text-align: center; }
#intake-error:not([hidden]) { margin: 1rem 0 0; padding: .8rem 1rem; border: 1px solid rgb(255 143 150 / .42); border-radius: 10px; background: rgb(255 143 150 / .08); }

@media (max-width: 760px) {
  #view-today.needs-intake .assistant-workspace { min-height: auto; padding-top: 4rem; }
  #view-today.needs-intake .assistant-workspace__body { grid-template-columns: 1fr; }
  .intake-progress li { font-size: 0; }
  .intake-progress li span { font-size: .68rem; }
  .intake-choice-grid { grid-template-columns: 1fr; }
  .intake-summary dl > div { grid-template-columns: 1fr; gap: .25rem; }
  .intake-actions { position: sticky; bottom: .5rem; z-index: 4; padding: .75rem; border: 1px solid var(--border); border-radius: 999px; background: rgb(5 5 5 / .97); box-shadow: none; }
}

/* Flow — monochrome interface with color reserved for primary actions */
.badge, .label, .assistant-status, .assistant-decision__prompt,
.day-flow-marker, .day-flow-stage, .attention-item .attention-type,
.intake-question-number, .intake-progress li, legend,
.today-supporting-details > summary, .advanced-details summary,
.advanced-information summary { font-weight: 500; }
.assistant-briefing, .assistant-recommendation > h3,
.assistant-recommendation--empty > h3, .outlook-conclusion,
.intake-hero h2, .intake-step > h3 { font-weight: 400; }
.recommendation, .confirmed, .decision, .risk, .observed, .external,
.primary-recommendation-card .recommendation-kicker,
.assistant-decision__prompt, .day-flow-step--current .day-flow-stage,
.attention-item .attention-type,
.attention-item.attention-critical .attention-type,
.attention-item.attention-waiting .attention-type { color: var(--muted); }
.label { border-color: #414141; }
.badge { color: #050505; background: #e6e6e3; font-weight: 600; }
.assistant-workspace { border-top-color: var(--border); }
.assistant-status::before { box-shadow: none; }
.assistant-decision { border-left-color: #4a4a4a; }
.assistant-recommendation--empty .primary,
.assistant-workspace .execution-actions .primary { box-shadow: none; }
.day-flow-step--current .day-flow-marker {
  border-color: #f5f5f3;
  color: #050505;
  background: #f5f5f3;
  box-shadow: none;
}
button:focus-visible, summary:focus-visible, [role="button"]:focus-visible, a:focus-visible {
  outline: 2px solid #f5f5f3;
  outline-offset: 3px;
}
.notice, .warning-box, .technical-data-note, .proposal-submit-note,
.observation-state, .capability-list > div {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface-2);
}
.panel, .list-card, .metric, .login-card,
.today-session-strip, .supporting-grid .panel,
.today-supporting-content .metric { box-shadow: none; }
input, textarea, select { background: #070707; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid #f5f5f3;
  border-color: #f5f5f3;
}

/* Minimal login */
.flow-login-page { min-height: 100vh; background: #050505; }
.flow-login-page .login-card {
  width: min(100%, 430px);
  padding: clamp(24px, 6vw, 48px) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.login-brand { display: flex; align-items: baseline; gap: .55rem; margin-bottom: 3rem; }
.login-wordmark { font-size: clamp(2.8rem, 10vw, 5rem); font-weight: 400; letter-spacing: -.065em; line-height: 1; }
.login-brand-by { color: #5e5e5e; font-size: .7rem; }
.flow-login-page .eyebrow { margin-bottom: .8rem; }
.flow-login-page h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 400; }
.flow-login-page .tagline { color: #c7c7c7; font-weight: 400; }
.flow-login-page .stack { margin-top: 2rem; }
.flow-login-page .stack label { font-weight: 400; }
.flow-login-page input { min-height: 48px; border-radius: 12px; }
.flow-login-page .primary { min-height: 48px; margin-top: .5rem; }
.flow-login-page a { color: #f5f5f3; text-decoration-color: #555; text-underline-offset: .2em; }
.flow-login-page .powered-by { color: #4e4e4e; text-align: left; }

/* Existing-user intake uses the same quiet visual language */
.intake-shell { width: min(100%, 760px); }
.intake-hero { max-width: 640px; }
.intake-hero h2 { font-size: clamp(2.2rem, 6vw, 4.8rem); }
.intake-progress li { color: #666; font-weight: 400; }
.intake-progress li.active { border-bottom-color: #f5f5f3; }
.intake-progress li.active span,
.intake-progress li.complete span {
  border-color: #f5f5f3;
  color: #050505;
  background: #f5f5f3;
}
.intake-progress li.complete { color: #888; }
.intake-question-number {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.intake-choice-grid { gap: 0 28px; }
.intake-choice-grid label > span {
  min-height: 0;
  padding: 15px 34px 15px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  transform: none;
}
.intake-choice-grid label:hover > span { border-bottom-color: #666; transform: none; }
.intake-choice-grid input:focus-visible + span { outline: 2px solid #f5f5f3; }
.intake-choice-grid input:checked + span {
  border-color: #f5f5f3;
  background: transparent;
  box-shadow: none;
}
.intake-choice-grid input:checked + span::after {
  top: 15px;
  right: 0;
  color: #050505;
  background: #f5f5f3;
  font-weight: 600;
}
.intake-choice-grid strong { font-weight: 450; }
.intake-text-field { font-weight: 400; }
.intake-summary { border-radius: 14px; }
.intake-summary strong, .intake-summary dt, .intake-summary dd { font-weight: 400; }
.intake-confirmation {
  border-left-color: #555;
  background: transparent;
}
.intake-confirmation label { font-weight: 400; }

@media (max-width: 680px) {
  .login-shell { padding: 1.25rem; }
  .login-brand { margin-bottom: 2.25rem; }
  .intake-choice-grid { grid-template-columns: 1fr; }
}

/* Guided product start — no chrome before the first small commitment. */
.nav-more {
  margin-top: .15rem;
  border-top: 1px solid #202020;
  padding-top: .45rem;
}
.nav-more > summary {
  padding: .75rem .85rem;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: '·'; float: right; color: #555; }
.nav-more[open] > summary { color: var(--text); background: var(--surface-2); }
.nav-more-items { display: grid; gap: .25rem; padding-top: .3rem; }
.refresh-button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; color: #777; font-size: 1.1rem; text-align: center; }

body.guided-mode .app-shell { display: block; }
body.guided-mode .navigation-shell,
body.guided-mode .topbar,
body.guided-mode .app-footer { display: none !important; }
body.guided-mode main {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
body.guided-mode #content:focus { outline: none; }
body.guided-mode #global-message:not(:empty) {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(calc(100% - 36px), 520px);
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
}
body.guided-mode .view.active {
  width: min(100%, 620px);
  margin: auto;
}

.starter-focus,
.starter-confirm,
.starter-proposal {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: clamp(28px, 7vw, 58px) 0;
  border: 0;
  background: transparent;
}
.starter-focus { text-align: center; }
.starter-focus > h2,
.starter-confirm > h2,
.starter-proposal > h2 {
  max-width: 15ch;
  margin: 0 auto 14px;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.starter-focus > .muted {
  max-width: 40ch;
  margin: 0 auto;
  line-height: 1.55;
}
.starter-focus-form {
  width: min(100%, 540px);
  display: grid;
  justify-items: center;
  gap: 18px;
  margin: 30px auto 0;
}
.starter-focus-form > input {
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid #353535;
  border-radius: 16px;
  background: #090909;
  font-size: 1.08rem;
  text-align: center;
}
.starter-focus-form > input::placeholder { color: #5f5f5f; }
.starter-focus-form > .primary { min-width: 138px; }
.starter-context {
  width: 100%;
  border: 0;
  border-top: 1px solid #242424;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.starter-context > summary {
  padding: 14px 0;
  color: #777;
  font-size: .8rem;
  text-align: center;
  cursor: pointer;
}
.starter-context[open] > summary { color: var(--text); border-bottom: 1px solid #242424; }
.starter-context .form-grid { padding-top: 20px; }
.starter-confirm { text-align: center; }
.starter-confirm #goal-draft-summary {
  width: min(100%, 520px);
  margin: 24px auto;
  padding: 20px 0;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}
.starter-confirm #goal-draft-summary p { margin-bottom: .55rem; }
.starter-summary-title { color: var(--text); font-size: 1.25rem; }
.starter-confirm > .primary { margin-top: 10px; }
.starter-proposal > .eyebrow,
.starter-proposal > h2,
.starter-proposal > .muted { text-align: center; }
.starter-proposal > .muted { max-width: 46ch; margin-inline: auto; }
.starter-proposal .proposal-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0;
}
.starter-proposal-details {
  margin-top: 20px;
  border: 0;
  border-top: 1px solid #282828;
  border-bottom: 1px solid #282828;
}
.starter-proposal-details > summary {
  padding: 16px 0;
  color: #8d8d8d;
  text-align: center;
  cursor: pointer;
}
.starter-proposal-details[open] > summary { color: var(--text); }
.starter-proposal .proposal-submit-note { display: none; }
.starter-proposal .proposal-final-actions { justify-content: center; border: 0; }

/* Today is a complete daily loop: orient, decide, continue, inspect exceptions. */
.assistant-workspace {
  width: min(100%, 780px);
  min-height: min(620px, calc(100dvh - 170px));
  display: grid;
  align-content: center;
  margin: 0 auto 20px;
  padding: 36px 0;
  border-top: 0;
  border-bottom: 0;
}
.assistant-workspace__header { display: none; }
.assistant-workspace__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 0;
  text-align: center;
}
.assistant-workspace__story {
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
}
.assistant-briefing {
  margin-bottom: 8px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: #9a9a9a;
}
.briefing-context { max-width: 48ch; margin-inline: auto; font-size: .9rem; }
.assistant-decision {
  padding: 0;
  border: 0;
}
.assistant-decision__prompt { margin-bottom: 14px; color: #777; text-transform: none; letter-spacing: 0; }
.assistant-recommendation > h3,
.assistant-recommendation--empty > h3 {
  max-width: 15ch;
  margin-inline: auto;
  font-size: clamp(2.35rem, 5.5vw, 4.2rem);
  font-weight: 400;
}
.assistant-recommendation__reason { max-width: 48ch; margin: 18px auto 0; color: #a5a5a5; font-size: .96rem; }
.assistant-recommendation .recommendation-kicker { display: none; }
.assistant-decision .recommendation-context { justify-content: center; }
.assistant-decision .recommendation-why { max-width: 520px; margin-inline: auto; text-align: left; }
.assistant-workspace .execution-actions,
.assistant-recommendation--empty .actions { justify-content: center; }

/* Guided intake inside the app remains a single centered conversation. */
body.guided-mode #view-intake .intake-shell { width: min(100%, 560px); padding: 0; }
body.guided-mode #view-intake .intake-hero,
body.guided-mode #view-intake .intake-progress { display: none; }
body.guided-mode #view-intake .intake-conversation { width: 100%; text-align: center; }
body.guided-mode #view-intake .intake-step > h3 { max-width: 15ch; margin-inline: auto; font-size: clamp(2rem, 7vw, 3.6rem); font-weight: 400; }
body.guided-mode #view-intake .intake-guidance,
body.guided-mode #view-intake .intake-step[data-intake-step="1"] .intake-text-field,
body.guided-mode #view-intake #intake-challenge { display: none; }
body.guided-mode #view-intake .intake-choice-grid { width: min(100%, 440px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-inline: auto; }
body.guided-mode #view-intake .intake-choice-grid label > span {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 14px 16px;
  border: 1px solid #303030;
  border-radius: 999px;
  text-align: center;
}
body.guided-mode #view-intake .intake-choice-grid small { display: none; }
body.guided-mode #view-intake .intake-text-field { display: block; font-size: 0; }
body.guided-mode #view-intake .intake-text-field textarea { width: min(100%, 500px); min-height: 150px; margin: 22px auto 0; font-size: 1rem; text-align: left; resize: none; }
body.guided-mode #view-intake .intake-actions { position: static; width: min(100%, 500px); justify-content: center; margin-inline: auto; padding: 0; border: 0; background: transparent; }
body.guided-mode #view-intake .intake-actions .secondary { position: absolute; margin-right: 170px; border: 0; color: #777; }

@media (max-width: 900px) {
  .nav-more { border-top: 0; padding-top: 0; }
  .nav-more > summary { white-space: nowrap; }
  .nav-more-items { position: fixed; inset: 70px 12px auto; z-index: 30; max-height: calc(100dvh - 90px); overflow-y: auto; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: #080808; }
  .nav-more-items button,
  .nav-more-items a { width: 100%; }
}
@media (max-width: 680px) {
  body.guided-mode main { padding: 18px; }
  .starter-proposal .proposal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assistant-workspace { min-height: calc(100dvh - 145px); padding: 24px 0; }
  .assistant-recommendation > h3,
  .assistant-recommendation--empty > h3 { font-size: clamp(2.15rem, 12vw, 3.6rem); }
  body.guided-mode #view-intake .intake-choice-grid { grid-template-columns: 1fr; }
}

/* Flow light product system — the main web app matches the first-login experience. */
body.entry-pending .app-shell { visibility: hidden; }

:root {
  color-scheme: light;
  --bg: #fbfbf9;
  --surface: #ffffff;
  --surface-2: #f3f3ef;
  --border: #deded8;
  --text: #171715;
  --muted: #6f6f69;
  --accent: #171715;
  --accent-strong: #171715;
  --danger: #9c2f3f;
  --warning: #735f19;
  --info: #355b73;
}
html,
body,
.app-shell,
main { background: var(--bg); color: var(--text); }
.navigation-shell {
  border-right-color: var(--border);
  background: #f5f5f1;
}
.brand small,
.login-brand-by,
.powered-by,
.app-footer { color: #777771; }
.navigation-shell nav button:hover,
.navigation-shell nav button:focus-visible,
.navigation-shell nav button[aria-current="page"],
.navigation-shell nav a:hover,
.navigation-shell nav a:focus-visible,
.nav-more[open] > summary { color: var(--text); background: #eaeae5; }
.nav-more,
.today-supporting-details,
.starter-context,
.starter-confirm #goal-draft-summary,
.starter-proposal-details { border-color: var(--border); }
.nav-more-items { background: #ffffff; }
.panel,
.list-card,
.metric,
.login-card,
.today-session-strip,
.supporting-grid .panel,
.today-supporting-content .metric,
.intake-summary,
.proposal-card,
.decision-copy > div,
.decision-impact > div,
.agent-status-grid > div,
.summary-list > div {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}
input,
textarea,
select,
.starter-focus-form > input {
  border-color: #d5d5cf;
  background: #ffffff;
  color: var(--text);
}
input::placeholder,
textarea::placeholder { color: #94948d; }
pre,
.agent-pairing-secret code {
  background: #f1f1ed;
  color: #30302d;
}
.advanced-details,
.advanced-information,
.proposal-summary span,
.recommendation-facts > div,
.recommendation-context span,
.empty-state,
.technical-data-note,
.today-session-strip,
.observation-state,
.capability-list > div,
.notice,
.warning-box,
.danger-box,
.proposal-submit-note {
  border-color: var(--border);
  background: #f5f5f1;
  color: var(--text);
}
.empty-state { background: #fafaf7; }
.day-flow-marker { background: var(--bg); }
.day-flow-step--current .day-flow-marker {
  border-color: #171715;
  color: #ffffff;
  background: #171715;
}
.assistant-briefing,
.assistant-recommendation__reason,
.briefing-context,
.starter-focus > .muted,
.starter-proposal > .muted { color: var(--muted); }
.assistant-decision { border-color: #b9b9b2; }
.primary { box-shadow: none; }
.secondary { border-color: #d2d2cc; color: var(--text); background: transparent; }
.secondary:hover,
.secondary:focus-visible { border-color: #777771; }
.ghost { color: var(--muted); }
.badge { color: #ffffff; background: #171715; }
.label { border-color: #aaa9a2; }
.timeline-marker { border-color: var(--surface); background: #171715; box-shadow: 0 0 0 1px #171715; }
.intake-choice-grid label > span {
  border-color: var(--border);
  background: #ffffff;
  color: var(--text);
}
.intake-choice-grid input:checked + span {
  border-color: #171715;
  color: #ffffff;
  background: #171715;
  box-shadow: none;
}
.intake-choice-grid input:checked + span::after {
  color: #171715;
  background: #ffffff;
}
.intake-summary > p,
.intake-summary-lead p,
.intake-confirmation p { color: var(--muted); }
.intake-confirmation { border-left-color: #9b9b94; background: transparent; }
body.guided-mode #view-intake .intake-choice-grid label > span { border-color: #d5d5cf; }
body.guided-mode #view-intake .intake-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
body.guided-mode #view-intake .intake-actions .primary,
body.guided-mode #view-intake .intake-actions .secondary {
  position: static;
  width: 200px;
  max-width: 200px;
  min-height: 48px;
  flex: 1 1 200px;
  margin: 0;
}
.flow-login-page { background: var(--bg); }
.flow-login-page .login-card { background: transparent; }
.flow-login-page a { color: var(--text); }
.flow-login-page .tagline { color: #4f4f4b; }
@media (max-width: 900px) {
  .navigation-shell {
    border-bottom-color: var(--border);
    background: #f5f5f1;
  }
  .nav-more-items { background: #ffffff; }
}
@media (max-width: 680px) {
  .execution-actions,
  .intake-actions {
    border-color: var(--border);
    background: rgb(251 251 249 / .97);
  }
}
/* Flow feature dock — the animated intro becomes the product language. */
body:not(.guided-mode) .app-shell { display: block; }
body:not(.guided-mode) .navigation-shell {
  position: static;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
body:not(.guided-mode) .brand {
  position: fixed;
  top: 22px;
  left: 26px;
  z-index: 42;
  gap: .42rem;
}
body:not(.guided-mode) .brand-name {
  font-size: 1.15rem;
  font-weight: 450;
}
body:not(.guided-mode) .brand small { font-size: .62rem; }
body:not(.guided-mode) .navigation-shell-meta {
  position: fixed;
  top: 27px;
  right: 76px;
  z-index: 42;
  margin: 0;
}
body:not(.guided-mode) #navigation {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  bottom: auto;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: auto;
  min-width: 0;
  max-width: calc(100vw - 24px);
  padding: 8px;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #ffffff;
}
body:not(.guided-mode) #navigation > .feature-launcher,
body:not(.guided-mode) #navigation > .nav-more > .feature-launcher {
  position: relative;
  display: grid;
  grid-template-rows: 43px 18px;
  place-items: center;
  width: 76px;
  min-width: 76px;
  min-height: 70px;
  padding: 5px 6px 4px;
  border: 0;
  border-radius: 17px;
  color: #70706a;
  background: transparent;
  text-align: center;
  text-decoration: none;
  list-style: none;
  transition: transform .18s ease, color .18s ease, background .18s ease;
}
body:not(.guided-mode) #navigation > .nav-more > summary::-webkit-details-marker { display: none; }
body:not(.guided-mode) #navigation > .nav-more > summary::after { content: none; }
body:not(.guided-mode) #navigation .feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
}
body:not(.guided-mode) #navigation .feature-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body:not(.guided-mode) #navigation .feature-label {
  font-size: .7rem;
  font-weight: 450;
  line-height: 1;
  white-space: nowrap;
}
body:not(.guided-mode) #navigation > .feature-launcher:hover,
body:not(.guided-mode) #navigation > .feature-launcher:focus-visible,
body:not(.guided-mode) #navigation > .nav-more > .feature-launcher:hover,
body:not(.guided-mode) #navigation > .nav-more > .feature-launcher:focus-visible {
  color: var(--text);
  background: #f3f3ef;
  transform: translateY(-4px);
}
body:not(.guided-mode) #navigation > .feature-launcher[aria-current="page"],
body:not(.guided-mode) #navigation > .nav-more.contains-current > .feature-launcher {
  color: #ffffff;
  background: #171715;
  transform: translateY(-10px);
}
body:not(.guided-mode) #navigation > .feature-launcher[aria-current="page"] .motion-line {
  animation: flow-dock-motion 1.15s ease-in-out infinite;
}
@keyframes flow-dock-motion {
  0%, 100% { transform: translateX(0); opacity: .45; }
  50% { transform: translateX(-3px); opacity: 1; }
}
body:not(.guided-mode) .nav-more {
  position: relative;
  flex: 0 0 76px;
  margin: 0;
  padding: 0;
  border: 0;
}
body:not(.guided-mode) .nav-more-items {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  bottom: auto;
  left: auto;
  inset: calc(100% + 16px) 0 auto auto;
  z-index: 70;
  display: grid;
  width: 240px;
  max-height: min(64vh, 520px);
  gap: 2px;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
}
body:not(.guided-mode) .nav-more-items button,
body:not(.guided-mode) .nav-more-items a {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  text-decoration: none;
}
body:not(.guided-mode) .nav-more-items button:hover,
body:not(.guided-mode) .nav-more-items button:focus-visible,
body:not(.guided-mode) .nav-more-items a:hover,
body:not(.guided-mode) .nav-more-items a:focus-visible {
  color: var(--text);
  background: #f3f3ef;
}
body:not(.guided-mode) .nav-more-items #logout {
  margin-top: 5px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
}
body:not(.guided-mode) main {
  width: min(100%, 1240px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 112px clamp(20px, 5vw, 64px) 64px;
}
body:not(.guided-mode) .topbar {
  position: fixed;
  top: 19px;
  left: 50%;
  z-index: 41;
  width: auto;
  margin: 0;
  transform: translateX(-50%);
}
body:not(.guided-mode) .topbar > div {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
body:not(.guided-mode) .topbar h1 {
  font-size: .78rem;
  font-weight: 450;
  letter-spacing: .01em;
}
body:not(.guided-mode) .topbar .refresh-button {
  position: fixed;
  top: 14px;
  right: 18px;
}
body:not(.guided-mode) #global-message:not(:empty) {
  position: fixed;
  top: 62px;
  left: 50%;
  z-index: 80;
  width: min(calc(100% - 32px), 560px);
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
}
body:not(.guided-mode) #view-planning,
body:not(.guided-mode) #view-goals,
body:not(.guided-mode) #view-new-goal,
body:not(.guided-mode) #view-cockpit,
body:not(.guided-mode) #view-decisions,
body:not(.guided-mode) #view-activity,
body:not(.guided-mode) #view-integrations,
body:not(.guided-mode) #view-settings {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding-top: clamp(12px, 3vw, 38px);
}
body:not(.guided-mode) .toolbar,
body:not(.guided-mode) .page-intro {
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  text-align: center;
}
body:not(.guided-mode) .toolbar-actions {
  justify-content: center;
}
body:not(.guided-mode) .view:not(#view-today) .panel,
body:not(.guided-mode) .view:not(#view-today) .list-card,
body:not(.guided-mode) .view:not(#view-today) .metric {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
body:not(.guided-mode) .view:not(#view-today) .panel,
body:not(.guided-mode) .view:not(#view-today) .list-card {
  padding: 22px 0;
}
body:not(.guided-mode) .view:not(#view-today) .metric {
  padding: 14px 4px 18px;
  text-align: center;
}
body:not(.guided-mode) .view:not(#view-today) .empty-state {
  border: 0;
  background: transparent;
}
body:not(.guided-mode) .starter-focus-form > input {
  border: 0;
  border-bottom: 1px solid #bdbdb6;
  border-radius: 0;
  background: transparent;
}
body:not(.guided-mode) .starter-focus-form > input:focus {
  outline: 0;
  border-bottom-color: #171715;
}
body:not(.guided-mode) .starter-context {
  border-color: var(--border);
}
body:not(.guided-mode) .app-footer {
  margin-bottom: 18px;
  text-align: center;
}
@media (max-width: 760px) {
  body:not(.guided-mode) .brand {
    top: 17px;
    left: 16px;
  }
  body:not(.guided-mode) .brand small,
  body:not(.guided-mode) .navigation-shell-meta { display: none; }
  body:not(.guided-mode) .topbar {
    top: 20px;
    left: auto;
    right: 57px;
    transform: none;
  }
  body:not(.guided-mode) .topbar .refresh-button {
    top: 10px;
    right: 9px;
  }
  body:not(.guided-mode) main {
    padding: 132px 16px 48px;
  }
  body:not(.guided-mode) #navigation {
    top: 48px;
    bottom: auto;
    width: calc(100vw - 20px);
    max-width: 520px;
    gap: 0;
    justify-content: space-between;
    padding: 6px;
    border-radius: 20px;
  }
  body:not(.guided-mode) #navigation > .feature-launcher,
  body:not(.guided-mode) #navigation > .nav-more > .feature-launcher {
    width: auto;
    min-width: 0;
    min-height: 62px;
    flex: 1 1 20%;
    grid-template-rows: 36px 16px;
    padding: 4px 2px;
    border-radius: 14px;
  }
  body:not(.guided-mode) #navigation .feature-icon {
    width: 34px;
    height: 34px;
  }
  body:not(.guided-mode) #navigation .feature-label { font-size: .62rem; }
  body:not(.guided-mode) .nav-more { flex: 1 1 20%; }
  body:not(.guided-mode) .nav-more-items {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    bottom: auto;
    left: auto;
    width: min(260px, calc(100vw - 28px));
    max-height: 62dvh;
  }
  body:not(.guided-mode) .view:not(#view-today) .content-grid,
  body:not(.guided-mode) .view:not(#view-today) .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* Flow feature stages — one quiet visual object, one purpose, details on demand. */
.flow-feature-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 780px);
  min-height: min(650px, calc(100dvh - 230px));
  margin: 0 auto;
  padding: 20px 0 42px;
  text-align: center;
}
.flow-feature-symbol {
  display: grid;
  place-items: center;
  width: clamp(128px, 14vw, 178px);
  height: clamp(108px, 12vw, 150px);
  margin: 0 auto 12px;
  color: #171715;
}
.flow-feature-symbol svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-feature-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 550;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.flow-feature-stage > h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.7rem, 5.2vw, 4.5rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.flow-feature-stage > p:not(.flow-feature-kicker):not(.eyebrow) {
  max-width: 48ch;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: balance;
}
.flow-feature-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.flow-feature-actions > button,
.flow-feature-stage > .primary,
.flow-feature-stage .starter-focus-form > .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 50px;
  padding: 13px 22px;
  text-align: center;
}
.flow-feature-state {
  margin-top: 14px;
  color: #85857f;
  font-size: .73rem;
}
.flow-feature-details {
  width: min(100%, 940px);
  margin: 8px auto 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.flow-feature-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 14px 4px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.flow-feature-details > summary::-webkit-details-marker { display: none; }
.flow-feature-details > summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 350;
}
.flow-feature-details[open] > summary::after { content: '−'; }
.flow-feature-details > summary span {
  font-size: .9rem;
  font-weight: 550;
}
.flow-feature-details > summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 400;
}
.flow-feature-details__content {
  padding: 14px 0 42px;
}
.direction-details-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

/* Nu uses the same stage language while preserving the deterministic recommendation. */
body:not(.guided-mode) #view-today {
  width: min(100%, 960px);
  margin: 0 auto;
}
body:not(.guided-mode) .assistant-workspace {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 820px);
  min-height: min(570px, calc(100dvh - 250px));
  margin: 0 auto 10px;
  padding: 0 0 18px;
  overflow: visible;
  border: 0;
}
body:not(.guided-mode) .assistant-workspace__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 0;
  text-align: center;
}
body:not(.guided-mode) .assistant-workspace__story {
  max-width: 48ch;
  margin: 0 auto;
  padding: 0;
}
body:not(.guided-mode) .assistant-briefing {
  display: none;
}
body:not(.guided-mode) .briefing-context { display: none; }
body:not(.guided-mode) .assistant-decision { width: 100%; }
body:not(.guided-mode) .assistant-decision__prompt {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 550;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body:not(.guided-mode) .assistant-recommendation > h3,
body:not(.guided-mode) .assistant-recommendation--empty > h3 {
  max-width: 20ch;
  margin: 0 auto;
  font-size: clamp(2.35rem, 3.8vw, 3rem);
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}
body:not(.guided-mode) .assistant-recommendation__reason {
  max-width: 46ch;
  margin: 12px auto 0;
  line-height: 1.5;
}
body:not(.guided-mode) .assistant-workspace .execution-actions,
body:not(.guided-mode) .assistant-recommendation--empty .actions {
  justify-content: center;
  margin-top: 16px;
}
body:not(.guided-mode) .assistant-workspace .execution-actions button,
body:not(.guided-mode) .assistant-recommendation--empty .actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 50px;
  text-align: center;
}
#view-today .flow-feature-symbol--runner {
  width: 102px;
  height: 84px;
  margin: 0 auto;
}
body[data-active-view="today"] .flow-feature-symbol--runner {
  animation: flow-feature-runner 1.05s ease-in-out infinite;
}
body[data-active-view="planning"] .flow-feature-symbol--calendar {
  animation: flow-feature-float 3s ease-in-out infinite;
}
body[data-active-view="new-goal"] .flow-feature-symbol--cloud {
  animation: flow-feature-float 3.4s ease-in-out infinite;
}
body[data-active-view="goals"] .flow-feature-symbol--compass svg {
  animation: flow-feature-compass 8s ease-in-out infinite;
  transform-origin: center;
}
.flow-feature-motion { animation: flow-feature-motion 1.05s ease-in-out infinite; }
@keyframes flow-feature-runner {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50% { transform: translateY(-4px) rotate(.6deg); }
}
@keyframes flow-feature-motion {
  0%, 100% { transform: translateX(0); opacity: .35; }
  50% { transform: translateX(-7px); opacity: 1; }
}
@keyframes flow-feature-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes flow-feature-compass {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(3deg); }
}

/* Idee stays small: capture first, structure only after explicit confirmation. */
body:not(.guided-mode) .starter-focus.flow-feature-stage {
  max-width: 780px;
  min-height: min(650px, calc(100dvh - 230px));
  padding: 20px 0 42px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body:not(.guided-mode) .starter-focus.flow-feature-stage > .muted {
  max-width: 46ch;
  margin: 18px auto 0;
}
body:not(.guided-mode) .starter-focus-form {
  width: min(100%, 620px);
  margin-top: 24px;
}
body:not(.guided-mode) .starter-focus-form > input {
  min-height: 58px;
  padding: 10px 2px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  text-align: center;
}
body:not(.guided-mode) .starter-focus-form > .primary { margin-top: 22px; }
body:not(.guided-mode) .starter-context { margin-top: 18px; text-align: left; }

@media (max-width: 760px) {
  .flow-feature-stage,
  body:not(.guided-mode) .assistant-workspace,
  body:not(.guided-mode) .starter-focus.flow-feature-stage {
    min-height: calc(100dvh - 205px);
    padding: 8px 0 28px;
  }
  .flow-feature-symbol {
    width: 116px;
    height: 100px;
    margin-bottom: 8px;
  }
  .flow-feature-stage > h2,
  body:not(.guided-mode) .assistant-recommendation > h3,
  body:not(.guided-mode) .assistant-recommendation--empty > h3 {
    font-size: clamp(2.3rem, 11vw, 3.15rem);
  }
  .flow-feature-stage > p:not(.flow-feature-kicker):not(.eyebrow),
  body:not(.guided-mode) .assistant-recommendation__reason {
    font-size: .92rem;
  }
  .flow-feature-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .flow-feature-actions > button,
  .flow-feature-stage > .primary,
  .flow-feature-stage .starter-focus-form > .primary,
  body:not(.guided-mode) .assistant-workspace .execution-actions button,
  body:not(.guided-mode) .assistant-recommendation--empty .actions button {
    width: min(100%, 320px);
    margin-inline: auto;
  }
  .flow-feature-details > summary {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3px 12px;
  }
  .flow-feature-details > summary small {
    width: calc(100% - 28px);
    margin: 0;
  }
  .flow-feature-details > summary::after {
    position: absolute;
    right: 18px;
  }
  .direction-details-toolbar { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-feature-symbol,
  .flow-feature-symbol svg,
  .flow-feature-motion { animation: none !important; }
}

/* Calendar-first home — quiet, useful and deliberately neutral. */
:root {
  --button: #171715;
  --button-hover: #000000;
  --accent: #171715;
  --accent-strong: #000000;
}
.primary {
  border-color: #171715;
  color: #ffffff;
  background: #171715;
  box-shadow: none;
}
.primary:hover,
.primary:focus-visible {
  border-color: #000000;
  background: #000000;
}
.secondary {
  border-color: #d2d2cc;
  color: #171715;
  background: #ffffff;
}
.secondary:hover,
.secondary:focus-visible {
  border-color: #777771;
  background: #f5f5f1;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #171715;
  outline-offset: 3px;
}
input[type="checkbox"],
input[type="radio"] { accent-color: #171715; }

body:not(.guided-mode) #view-planning {
  width: min(100%, 1120px);
  padding-top: 8px;
}
.calendar-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 26px;
}
.calendar-page-heading { min-width: 0; }
.calendar-page-heading .eyebrow { margin-bottom: 8px; }
.calendar-page-heading h2 {
  margin: 0;
  font-size: clamp(2.65rem, 5vw, 4.65rem);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.06em;
}
.calendar-page-heading > p:last-child {
  max-width: 48ch;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.calendar-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.calendar-date-navigation,
.calendar-view-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px;
  border: 1px solid #deded8;
  border-radius: 999px;
  background: #f6f6f2;
}
.calendar-icon-button,
.calendar-text-button,
.calendar-view-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: #666661;
  background: transparent;
  font-size: .78rem;
  font-weight: 550;
}
.calendar-icon-button { width: 34px; padding: 0; font-size: 1rem; }
.calendar-text-button { padding: 0 10px; }
.calendar-view-switch button { min-width: 58px; padding: 0 13px; }
.calendar-icon-button:hover,
.calendar-text-button:hover,
.calendar-view-switch button:hover { color: #171715; background: #ecece7; }
.calendar-view-switch button[aria-pressed="true"] {
  color: #ffffff;
  background: #171715;
}
.calendar-page-actions > .primary {
  min-height: 44px;
  padding: 0 18px;
}

.calendar-focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid #deded8;
  border-radius: 20px;
  background: #f7f7f3;
}
.calendar-focus-copy { min-width: 0; }
.calendar-focus-copy .eyebrow { margin-bottom: 6px; }
.calendar-focus-copy h3 {
  margin: 0;
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.calendar-focus-copy > p:last-child {
  max-width: 66ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}
.calendar-focus > button {
  flex: 0 0 auto;
  min-width: 132px;
  min-height: 44px;
}

.calendar-surface {
  overflow: hidden;
  border: 1px solid #deded8;
  border-radius: 24px;
  background: #ffffff;
}
.calendar-surface-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid #e4e4df;
}
.calendar-surface-meta > div { display: grid; gap: 3px; }
.calendar-surface-meta strong {
  font-size: .95rem;
  letter-spacing: -.012em;
}
.calendar-surface-meta span {
  color: var(--muted);
  font-size: .75rem;
}
.calendar-safety-label {
  padding: 7px 10px;
  border: 1px solid #d8d8d2;
  border-radius: 999px;
  color: #666661 !important;
  background: #fafaf7;
  white-space: nowrap;
}
.flow-calendar {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.calendar-boundary-note {
  margin: 0;
  padding: 13px 22px 16px;
  border-top: 1px solid #ededE8;
  color: #888883;
  font-size: .7rem;
  line-height: 1.45;
}

.calendar-day {
  position: relative;
  min-width: 650px;
  margin: 20px 22px 18px;
}
.calendar-hour {
  position: absolute;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  pointer-events: none;
}
.calendar-hour time {
  color: #9a9a94;
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  transform: translateY(-50%);
}
.calendar-hour span {
  height: 1px;
  background: #ebebe6;
}
.calendar-session {
  position: absolute;
  right: 10px;
  left: 72px;
  z-index: 2;
  display: grid;
  align-content: start;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  min-height: 42px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid #cacac4;
  border-left: 3px solid #171715;
  border-radius: 11px;
  color: #171715;
  background: #f4f4ef;
  box-shadow: 0 5px 16px rgba(23, 23, 21, .05);
}
.calendar-session time {
  grid-row: 1 / span 2;
  padding-top: 2px;
  color: #656560;
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
}
.calendar-session strong {
  overflow: hidden;
  font-size: .82rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-session span {
  overflow: hidden;
  color: #777772;
  font-size: .68rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-now {
  position: absolute;
  right: 0;
  left: 48px;
  z-index: 4;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.calendar-now time {
  width: 44px;
  color: #171715;
  font-size: .66rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.calendar-now span {
  position: relative;
  flex: 1;
  height: 1px;
  background: #171715;
}
.calendar-now span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #171715;
  transform: translateY(-50%);
}
.calendar-empty-state {
  position: absolute;
  top: 106px;
  left: 50%;
  z-index: 1;
  display: grid;
  width: min(360px, calc(100% - 160px));
  gap: 7px;
  padding: 20px;
  border: 1px dashed #cecec8;
  border-radius: 16px;
  color: #555550;
  background: rgba(255, 255, 255, .92);
  text-align: center;
  transform: translateX(-50%);
}
.calendar-empty-state strong { color: #171715; font-size: .9rem; }
.calendar-empty-state span { font-size: .76rem; line-height: 1.45; }

.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  min-width: 820px;
  min-height: 410px;
}
.calendar-week-day {
  min-width: 0;
  border-right: 1px solid #e8e8e3;
  background: #ffffff;
}
.calendar-week-day:last-child { border-right: 0; }
.calendar-week-day.is-today { background: #f7f7f3; }
.calendar-week-day > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 12px 13px;
  border-bottom: 1px solid #e8e8e3;
}
.calendar-week-day > header span {
  color: #777772;
  font-size: .7rem;
  text-transform: capitalize;
}
.calendar-week-day > header strong {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  font-size: .82rem;
}
.calendar-week-day.is-today > header strong {
  color: #ffffff;
  background: #171715;
}
.calendar-week-day__sessions {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 340px;
  padding: 10px;
}
.calendar-week-session {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #d2d2cc;
  border-left: 3px solid #171715;
  border-radius: 10px;
  background: #f4f4ef;
}
.calendar-week-session time {
  color: #6f6f69;
  font-size: .63rem;
  font-variant-numeric: tabular-nums;
}
.calendar-week-session strong {
  overflow: hidden;
  font-size: .74rem;
  line-height: 1.25;
  text-overflow: ellipsis;
}
.calendar-week-empty {
  padding: 12px 4px;
  color: #a0a09a;
  font-size: .68rem;
  text-align: center;
}
#view-planning .flow-feature-details { margin-top: 18px; }

@media (max-width: 900px) {
  .calendar-page-header { align-items: flex-start; flex-direction: column; }
  .calendar-page-actions { justify-content: flex-start; width: 100%; }
}
@media (max-width: 680px) {
  body:not(.guided-mode) #view-planning { padding-top: 4px; }
  .calendar-page-header { gap: 20px; margin-bottom: 20px; }
  .calendar-page-heading h2 { font-size: clamp(2.6rem, 14vw, 3.7rem); }
  .calendar-page-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .calendar-date-navigation { justify-content: space-between; min-width: 0; }
  .calendar-view-switch { justify-self: end; }
  .calendar-page-actions > .primary { grid-column: 1 / -1; width: 100%; }
  .calendar-focus { align-items: stretch; flex-direction: column; padding: 18px; }
  .calendar-focus > button { width: 100%; }
  .calendar-surface { border-radius: 18px; }
  .calendar-surface-meta { align-items: flex-start; padding: 15px 16px; }
  .calendar-safety-label { white-space: normal; text-align: right; }
  .calendar-day { margin-inline: 14px; }
  .calendar-boundary-note { padding-inline: 16px; }
}

/* CSP-safe day grid: no inline positioning or sizing is required. */
.calendar-day {
  position: relative;
  height: auto;
}
.calendar-day-grid { display: grid; }
.calendar-hour-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 56px;
}
.calendar-hour-label {
  padding-top: 3px;
  color: #9a9a94;
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
}
.calendar-hour-slot {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 6px 10px 7px 14px;
  border-top: 1px solid #ebebe6;
}
.calendar-hour-row.is-current-hour .calendar-hour-slot { border-top-color: #171715; }
.calendar-session {
  position: relative;
  inset: auto;
  right: auto;
  left: auto;
  width: 100%;
  height: auto;
}
.calendar-now {
  position: relative;
  inset: auto;
  right: auto;
  left: auto;
  width: 100%;
  margin: -11px 0 1px;
}
.calendar-now time { width: 48px; }
.calendar-empty-state {
  position: relative;
  inset: auto;
  top: auto;
  left: auto;
  width: min(360px, calc(100% - 100px));
  margin: 18px auto 20px;
  transform: none;
}

/* Activity follows the same progressive-disclosure pattern as the primary views. */
.activity-feature-stage { min-height: min(610px, calc(100dvh - 220px)); }
.activity-feature-state {
  width: min(100%, 620px);
  margin: 20px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}
.activity-feature-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: .86rem;
  font-weight: 550;
}
.activity-feature-state p { margin: 0; }
.activity-details .activity-workspace { margin-top: 24px; }
.activity-details #activity-metrics { margin-bottom: 18px; }

@media (max-width: 760px) {
  .activity-feature-stage { min-height: calc(100dvh - 215px); }
  .activity-feature-state { font-size: .78rem; }
}
