@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/InterVariable.woff2') format('woff2');
}

:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  color: #202a36;
  background: #f5f5f3;
  font-size: 15px;
  line-height: 1.5;
  --ink: #202a36;
  --muted: #606b78;
  --subtle: #687480;
  --line: #e3e7eb;
  --canvas: #f5f5f3;
  --surface: #fff;
  --blue: #436885;
  --blue-soft: #edf3f8;
  --accent: #263849;
  --warning: #88612a;
  --focus: #4f7698;
  --chrome-height: 68px;
  --header-height: var(--chrome-height);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 580; }
ul { list-style: none; padding: 0; margin: 0; }
.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex: 0 0 auto; }

/* The chrome stays quiet; the selected idea is the working surface. */
.site-header { height: var(--header-height); border-bottom: 1px solid #dfe3e5; background: #fafaf9; }
.header-inner { height: var(--chrome-height); padding: 0 30px; display: flex; align-items: center; gap: 46px; }
body:has(.project-breadcrumb) { --header-height: calc(var(--chrome-height) + 44px); }
.project-breadcrumb { height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 30px; border-top: 1px solid #e7eaec; font-size: 12px; }
.project-breadcrumb a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 0; color: var(--muted); }
.project-breadcrumb a .icon { width: 14px; height: 14px; }
.project-breadcrumb .project-current { color: var(--ink); font-weight: 540; overflow-wrap: anywhere; }
.breadcrumb-divider { color: #8b959e; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 630; letter-spacing: -.045em; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; color: #fff; background: var(--ink); border-radius: 9px; }
.brand-mark .icon { width: 23px; height: 23px; }
.main-nav { display: flex; align-items: center; gap: 3px; padding: 3px; background: #ededeb; border: 1px solid #e5e5e2; border-radius: 8px; font-size: 12px; color: var(--muted); }
.main-nav a { display: flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 14px; border: 1px solid transparent; border-radius: 5px; }
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.main-nav a[aria-current] { color: var(--ink); background: #fff; border-color: #dedfdd; font-weight: 550; }
.account { margin-left: auto; display: flex; align-items: center; gap: 21px; font-size: 12px; }
.account-name { font-weight: 540; }
.account-menu { position: relative; }
.account-menu > summary { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 7px; color: var(--muted); list-style: none; font-size: 12px; border-radius: 7px; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary .icon { width: 12px; height: 12px; transform: rotate(90deg); }
.account-menu[open] > summary { background: #edf0ef; color: var(--ink); }
.account-menu[open] > summary .icon { transform: rotate(-90deg); }
.account-panel { position: absolute; top: calc(100% + 5px); right: 0; z-index: 5; width: 230px; max-width: calc(100vw - 24px); padding: 9px; background: #fff; border: 1px solid #d6dde4; border-radius: 9px; }
.account-person { padding: 10px 11px 12px; color: var(--ink); font-size: 13px; font-weight: 550; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.account-panel > a, .account-panel .text-button { display: flex; align-items: center; min-height: 44px; width: 100%; padding: 10px 11px; color: var(--muted); font-size: 13px; text-align: left; border-radius: 6px; }
.account-panel > a:hover, .account-panel .text-button:hover { background: #f1f4f5; text-decoration: none; color: var(--ink); }
.text-button { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 10px 0; }
.text-button:hover { color: var(--ink); }
main.shell { min-height: calc(100dvh - var(--header-height)); }
main.shell:not(:has(.workbench)) { width: min(880px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 80px; }
.workbench { height: calc(100dvh - var(--header-height)); display: grid; grid-template-columns: 344px minmax(0, 1fr); }
.workbench[data-view=overview] .capture-workspace { grid-column: 2; grid-row: 1; }
.workbench[data-view=overview] .idea-queue { grid-column: 1; grid-row: 1; }

/* Project selection is the quiet overview above each work queue. */
main.shell:has(.projects-page) { width: min(1060px, calc(100% - 64px)); padding-top: 58px; }
.projects-page .page-heading { margin-bottom: 34px; }
.projects-page .page-heading h1 { font-size: 34px; margin-bottom: 12px; }
.projects-page .intro { margin-bottom: 0; }
.project-list { display: grid; gap: 14px; }
.project-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 20px; align-items: center; gap: 23px; padding: 27px; border: 1px solid #dbe1e6; border-radius: 12px; background: #fff; transition: border-color .12s ease, background-color .12s ease; }
.project-row:hover { border-color: #9baebf; background: #fdfefe; text-decoration: none; }
.project-symbol { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dce4eb; border-radius: 10px; color: #526e85; background: #f5f8fa; }
.project-symbol .icon { width: 23px; height: 23px; }
.project-description { min-width: 0; }
.project-description h2 { font-size: 22px; line-height: 1.4; font-weight: 570; letter-spacing: -.035em; overflow-wrap: anywhere; }
.project-description p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.project-state { display: grid; gap: 5px; justify-items: end; font-size: 13px; color: var(--muted); }
.project-state-label { display: inline-flex; align-items: center; gap: 7px; }
.project-state-label .icon { width: 16px; height: 16px; }
.needs-attention .project-state-label { color: var(--warning); font-weight: 530; }
.project-state-detail { font-size: 12px; color: var(--muted); }
.needs-attention .project-state-detail { color: var(--warning); }
.project-open { display: inline-flex; color: #687f92; }
.project-open .icon { width: 18px; height: 18px; }
.projects-meta { margin-top: 25px; font-size: 11px; color: var(--subtle); }

/* The work queue: readable activity, precise selection, no ornamental cards. */
.idea-queue { background: var(--canvas); border-right: 1px solid #dfe3e5; overflow-y: auto; overscroll-behavior: contain; padding: 28px 14px 22px; scrollbar-width: thin; scrollbar-color: #cbd0d2 transparent; }
.queue-header { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 27px; }
.queue-header h1, .queue-header h2 { font-size: 17px; letter-spacing: -.035em; font-weight: 590; }
.quiet-button { display: inline-flex; align-items: center; gap: 5px; padding: 8px; border-radius: 6px; font-size: 12px; font-weight: 490; color: #586777; }
.quiet-button .icon { width: 14px; height: 14px; }
.quiet-button:hover { background: #e9ecee; color: var(--ink); text-decoration: none; }
.queue-group { margin-bottom: 28px; }
.queue-group > h2, .queue-group > h3 { display: flex; align-items: center; gap: 9px; padding: 0 12px; margin-bottom: 10px; font-size: 12px; letter-spacing: -.01em; color: #606c79; font-weight: 550; }
.count { color: var(--subtle); font-size: 11px; font-weight: 450; font-variant-numeric: tabular-nums; }
.queue-empty { color: var(--subtle); font-size: 12px; padding: 0 12px; }
.queue-item { display: block; position: relative; border: 1px solid transparent; border-radius: 9px; padding: 13px 12px 15px; margin-bottom: 5px; transition: background-color .12s ease, border-color .12s ease; }
.queue-item:hover { background: #ecefee; text-decoration: none; }
.queue-item.is-selected { background: #fff; border-color: #dbe1e6; }
.queue-item.is-selected::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 2px; background: #66829b; border-radius: 2px; }
.queue-item-title { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; font-weight: 560; line-height: 1.55; letter-spacing: -.015em; }
.queue-item-title > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.work-symbol { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 17px; color: #74818d; padding-top: 2px; }
.work-symbol .icon { width: 17px; height: 17px; }
.work-symbol.in_progress, .work-symbol.shipped { color: var(--blue); }
.work-symbol.blocked { color: var(--warning); }
.queue-state { display: block; font-size: 13px; color: var(--muted); margin: 4px 0 0 26px; }
.queue-state.blocked { color: var(--warning); }
.queue-author { display: block; margin: 5px 0 0 26px; color: var(--muted); font-size: 13px; }
.queue-work, .queue-blocker { display: flex; gap: 8px; font-size: 13px; margin-top: 12px; margin-left: 24px; line-height: 1.55; }
.queue-work > span:last-child, .queue-blocker > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.work-branch { position: relative; flex: 0 0 10px; align-self: flex-start; height: 15px; }
.work-branch::before { content: ""; position: absolute; left: 1px; top: 1px; width: 7px; height: 10px; border-left: 1px solid #c2cbd2; border-bottom: 1px solid #c2cbd2; border-bottom-left-radius: 3px; }
.queue-person { display: block; font-size: 13px; color: #596b7c; font-weight: 490; }
.queue-verb { display: block; color: #485562; overflow-wrap: anywhere; }
.queue-blocker .queue-person, .queue-blocker .queue-verb { color: var(--warning); }
.queue-blocker .work-branch::before { border-color: #ceb98f; }
.queue-archive, .queue-report { display: flex; align-items: center; justify-content: space-between; margin: 3px 12px 0; padding-top: 17px; border-top: 1px solid #dce1e3; font-size: 12px; color: var(--muted); }
.queue-archive .icon, .queue-report .icon { width: 14px; height: 14px; }
.queue-report { border-top: 0; margin-top: 12px; padding-top: 0; }
.source-queue-group { padding-bottom: 18px; border-bottom: 1px solid #dce1e3; }
.source-idea-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.source-idea-topline > a, .source-evidence-link { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.source-idea-topline .icon, .source-evidence-link .icon { width: 14px; height: 14px; }
.source-idea-summary { margin-top: 20px; font-size: 16px; line-height: 1.8; color: #495968; }
.source-idea-section { margin-top: 30px; }
.source-idea-section h3 { font-size: 14px; }
.source-idea-section p, .source-idea-section ul { font-size: 14px; color: #526373; line-height: 1.8; margin-top: 10px; }
.source-idea-section ul { padding-left: 18px; list-style: disc; }
.source-idea-section li + li { margin-top: 7px; }
.source-idea-caution { margin-top: 25px; border-left: 2px solid #c6d3de; padding-left: 15px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.source-idea-action { margin-top: 30px; }
.source-idea-action p, .source-idea-date { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 12px; }
.source-idea-date { padding-top: 22px; }
.source-form-note { color: var(--muted); font-size: 13px; line-height: 1.8; margin-top: 16px; }
.tracked-source-link { margin-top: 14px; }
.queue-source-work { display: block; font-size: 12px; color: #526578; margin: 6px 0 0 26px; }
.source-linked-work { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.8; }

/* Progress compares the project with its plan; ideas remain their own queue. */
main.shell:has(.progress-page) { width: min(980px, calc(100% - 64px)); padding-top: 44px; }
.progress-page-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; }
.progress-page-heading h1 { font-size: 34px; line-height: 1.25; font-weight: 570; letter-spacing: -.045em; }
.progress-review-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.progress-review-status .icon { width: 15px; height: 15px; }
.progress-reference { margin-top: 13px; font-size: 12px; color: var(--subtle); }
.progress-reference > a { display: inline-flex; align-items: center; gap: 4px; margin-left: 16px; color: var(--muted); }
.progress-reference .icon { width: 13px; height: 13px; }
.project-focus { margin-top: 30px; padding: 26px 28px; border: 1px solid #dce3e9; border-radius: 12px; background: #fff; }
.project-focus h2 { margin-top: 12px; font-size: 25px; letter-spacing: -.035em; }
.project-focus > p { margin-top: 14px; font-size: 15px; color: #495968; line-height: 1.8; max-width: 760px; }
.project-focus .source-evidence-link { margin-top: 17px; }
.project-delivered { margin-top: 35px; }
.project-delivered > h2 { font-size: 15px; margin-bottom: 15px; }
.project-deliverable { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 19px 0; border-top: 1px solid #d9e0e6; }
.project-deliverable h3 { font-size: 15px; }
.project-deliverable p { max-width: 660px; font-size: 14px; color: var(--muted); line-height: 1.8; margin-top: 7px; }
.project-deliverable > a { flex-shrink: 0; display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: #526578; }
.project-deliverable > a .icon { width: 14px; height: 14px; }
.project-deferred { font-size: 13px; color: var(--muted); }
.project-deferred summary { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; }
.project-deferred ul { list-style: disc; padding-left: 18px; margin-top: 5px; line-height: 1.8; }
.project-deferred li + li { margin-top: 7px; }
.plan-outcome { margin-top: 30px; padding: 26px 28px; border: 1px solid #dce3e9; border-radius: 12px; background: #fff; }
.plan-outcome h2 { margin-top: 12px; font-size: 23px; line-height: 1.4; letter-spacing: -.035em; }
.plan-outcome > p { margin-top: 10px; max-width: 760px; font-size: 15px; color: #495968; line-height: 1.75; }
.plan-outcome .plan-agreement-note { margin-top: 15px; font-size: 13px; color: var(--muted); }
.plan-stages { margin-top: 36px; }
.plan-stages-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.plan-stages-heading h2 { font-size: 15px; font-weight: 570; }
.plan-stages-heading > span { font-size: 12px; color: var(--muted); }
.plan-stages ol { list-style: none; margin: 0; padding: 0; }
.plan-stage { display: flex; align-items: flex-start; gap: 17px; padding: 23px 0; border-top: 1px solid #d9e0e6; }
.plan-stage-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; height: 28px; border: 1px solid #adb9c4; border-radius: 50%; color: #627687; font-size: 12px; font-variant-numeric: tabular-nums; }
.plan-stage-content { flex: 1; min-width: 0; }
.plan-stage-content h3 { font-size: 16px; line-height: 1.6; letter-spacing: -.02em; }
.plan-stage-content p { margin-top: 7px; max-width: 660px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.plan-criterion-label { color: #495968; }
.plan-stage-status { flex-shrink: 0; padding-top: 5px; color: var(--muted); font-size: 12px; }
.plan-next-decision { margin-top: 16px; padding-top: 24px; border-top: 1px solid #d9e0e6; }
.plan-next-decision h2 { font-size: 13px; color: #526578; font-weight: 550; }
.plan-next-decision p { margin-top: 9px; font-size: 14px; line-height: 1.75; color: #455565; }
.plan-sources { margin-top: 26px; font-size: 12px; color: var(--muted); }
.plan-sources summary { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; }
.plan-sources > p { margin-top: 12px; line-height: 1.7; }
.plan-sources ul { padding: 0 0 0 17px; list-style: disc; margin-top: 12px; line-height: 1.9; }
.progress-empty { max-width: 580px; margin-top: 52px; }
.progress-empty h2 { font-size: 25px; line-height: 1.4; letter-spacing: -.035em; }
.progress-empty p { margin-top: 14px; font-size: 14px; line-height: 1.8; color: var(--muted); }

/* One clear content edge ties the chosen idea to the queue. */
.idea-workspace { background: #fff; overflow-y: auto; padding: 44px 52px 72px; scrollbar-width: thin; scrollbar-color: #cbd0d2 transparent; overscroll-behavior: contain; }
.workspace-content { max-width: 840px; margin: 0; }
.ideas-back { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.ideas-back .icon { width: 14px; height: 14px; }
.capture-panel { max-width: 800px; }
.capture-heading h1 { font-size: clamp(28px, 2.4vw, 34px); font-weight: 570; letter-spacing: -.045em; line-height: 1.25; }
.capture-heading > p { margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.capture-form { margin-top: 27px; }
.capture-form textarea { padding: 20px; font-size: 18px; line-height: 1.7; min-height: 280px; border-color: #bfcbd4; background: #fdfdfc; border-radius: 10px; }
.capture-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.capture-actions .button { flex-shrink: 0; }
.capture-panel .capture-notice { margin: 22px 0 0; justify-content: space-between; flex-wrap: wrap; }
.capture-notice a { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; font-weight: 550; }
.capture-notice .icon { width: 14px; height: 14px; }
.workspace-topline { display: flex; justify-content: space-between; align-items: center; min-height: 36px; margin-bottom: 14px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 490; color: var(--muted); }
.status .icon { width: 16px; height: 16px; }
.status.in_progress, .status.shipped { color: var(--blue); }
.status.blocked { color: var(--warning); }
.workspace-title { max-width: 790px; font-size: clamp(28px, 2.35vw, 34px); line-height: 1.22; letter-spacing: -.045em; font-weight: 570; overflow-wrap: anywhere; }
.idea-context { margin-top: 18px; font-size: 14px; line-height: 1.75; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 730px; }
.idea-options { position: relative; }
.idea-options > summary { display: flex; align-items: center; justify-content: center; list-style: none; color: #687786; width: 38px; height: 38px; border-radius: 7px; }
.idea-options[open] summary, .idea-options summary:hover { background: #f0f3f5; }
.idea-options > div { position: absolute; right: 0; top: 43px; z-index: 3; width: 188px; padding: 5px; background: #fff; border: 1px solid #d6dde4; border-radius: 9px; }
.idea-options a { display: block; padding: 11px; font-size: 13px; border-radius: 5px; }
.idea-options a:hover { background: #f2f5f8; text-decoration: none; }
.next-step { margin: 32px 0 34px; border: 1px solid #e0e6ec; border-left: 2px solid #7d97ad; border-radius: 10px; padding: 23px 25px 25px; background: #fafbfd; }
.next-step.is-blocker { border-left-color: #b99457; }
.next-step-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 17px; }
.section-label { font-size: 12px; font-weight: 530; color: #5f6e7d; }
.is-blocker .section-label { color: var(--warning); }
.owner { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 48%; font-size: 14px; color: #526578; overflow-wrap: anywhere; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid #d4dfe8; border-radius: 50%; background: #eef3f7; color: #526b81; font-size: 10px; font-weight: 550; }
.owner .avatar { flex-shrink: 0; }
.next-step h3 { font-size: 20px; line-height: 1.4; letter-spacing: -.025em; font-weight: 580; overflow-wrap: anywhere; }
.finish-line { margin-top: 8px; font-size: 14px; color: #606d7b; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 640px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; padding: 11px 17px; min-height: 44px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 550; letter-spacing: -.005em; transition: background-color .12s ease, border-color .12s ease; }
.button .icon { width: 16px; height: 16px; }
.button:hover { text-decoration: none; }
.button:active { transform: translateY(1px); }
.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.primary:hover { background: #354d63; border-color: #354d63; }
.next-step .button { margin-top: 23px; }
.board-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.board-heading h3 { font-size: 14px; font-weight: 580; letter-spacing: -.015em; }
.board-heading a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; padding: 8px 0; }
.board-heading a .icon { width: 14px; height: 14px; }
.work-task { display: flex; align-items: flex-start; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.task-mark { display: inline-flex; flex: 0 0 18px; color: #74818d; padding-top: 3px; }
.task-mark .icon { width: 18px; height: 18px; }
.work-task.in_progress .task-mark, .work-task.completed .task-mark { color: var(--blue); }
.work-task-content { flex: 1; min-width: 0; }
.task-title-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.task-title-line h4 { font-size: 15px; line-height: 1.55; letter-spacing: -.015em; font-weight: 520; overflow-wrap: anywhere; }
.work-task.is-focused .task-title-line h4 { font-weight: 590; }
.task-owner { max-width: 42%; flex-shrink: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.task-state { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.task-waiting { margin-top: 9px; font-size: 13px; color: var(--warning); line-height: 1.7; }
.task-waiting a { text-decoration: underline; text-decoration-color: #cbb48e; text-underline-offset: 3px; }
.task-details { margin-top: 8px; font-size: 13px; color: var(--muted); }
.task-details p { padding: 7px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-tools { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }
.review-task { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0; padding: 4px 0 4px 8px; color: #4d647a; font-size: 13px; }
.review-task .icon { width: 14px; height: 14px; }
.completed-work { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.completed-work .count { margin-left: 3px; }
.completed-work > div { margin-top: 15px; }
.resolution { display: flex; align-items: center; gap: 17px; padding: 28px 0; margin: 34px 0; border-block: 1px solid var(--line); }
.resolution > span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #d4dfe8; border-radius: 50%; color: var(--blue); background: #f5f8fa; }
.resolution > span .icon { width: 22px; height: 22px; }
.resolution h3 { font-size: 18px; letter-spacing: -.025em; }
.resolution p { margin-top: 5px; font-size: 14px; color: var(--muted); }
.resolution.closed > span { color: var(--muted); }
.workspace-meta { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 30px; font-size: 11px; color: var(--subtle); }
.history { margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.history .count { margin-left: 3px; }
.history ol { list-style: none; padding: 0; margin: 15px 0; }
.history li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.history li time { font-size: 11px; white-space: nowrap; color: var(--subtle); }
.history li p { margin-top: 5px; }
.workspace-empty { max-width: 400px; margin: 14vh auto 0; }
.empty-symbol { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; color: #6c8296; background: #f2f5f7; border: 1px solid #d9e1e8; border-radius: 12px; margin-bottom: 22px; }
.empty-symbol .icon { width: 26px; height: 26px; }
.workspace-empty h2 { font-size: 31px; letter-spacing: -.045em; }
.workspace-empty p { color: var(--muted); font-size: 14px; margin-top: 11px; line-height: 1.7; }
.workspace-empty .button { margin-top: 25px; }
.mobile-back { display: none; }

/* Disclosures use the same line geometry as the work states. */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.task-details > summary, .completed-work > summary, .history > summary, .more-details > summary { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; width: fit-content; font-size: 12px; color: var(--muted); }
.disclosure-icon { width: 13px; height: 13px; transition: transform .12s ease; }
details[open] > summary > .disclosure-icon { transform: rotate(90deg); }

/* Focused forms share the same typography, edges, and control geometry. */
.form-wrap { max-width: 540px; margin: 0 auto; padding: 34px; background: #fff; border: 1px solid #dce2e7; border-radius: 14px; }
.form-wrap h1, .page-heading h1 { font-size: 29px; line-height: 1.2; letter-spacing: -.04em; font-weight: 570; margin-bottom: 27px; }
.form-context { font-size: 12px; color: var(--muted); margin-bottom: 10px; padding-right: 20px; overflow-wrap: anywhere; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.back-link .icon { width: 15px; height: 15px; }
.stack { display: grid; gap: 23px; }
.field { display: grid; gap: 9px; }
.field label, legend { font-size: 13px; font-weight: 550; color: #344353; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; border: 1px solid #8b96a2; border-radius: 8px; background: #fff; color: var(--ink); padding: 11px 13px; min-height: 44px; font-size: 14px; line-height: 1.65; transition: border-color .12s ease, box-shadow .12s ease; }
input:not([type=checkbox]):not([type=radio]):hover, select:hover, textarea:hover { border-color: #637588; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px #edf3f8; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #6e7a87; }
.field-help { font-size: 12px; color: var(--muted); line-height: 1.65; }
.optional { color: var(--muted); font-size: 11px; font-weight: 400; margin-left: 4px; }
.owner-choice { padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.owner-choice legend { margin-bottom: 11px; }
.owner-choice label { display: flex; align-items: center; min-height: 44px; font-size: 13px; cursor: pointer; padding: 10px 13px; border: 1px solid #b5c0ca; border-radius: 8px; gap: 9px; }
.owner-choice label:has(input:checked) { background: #f1f5f9; border-color: #7f96ac; }
input[type=radio], input[type=checkbox] { accent-color: var(--blue); width: 16px; height: 16px; margin: 0; }
.more-details { font-size: 13px; color: var(--muted); }
.more-details > .stack, .more-details > .field { margin-top: 19px; }
.dependencies { padding: 0; border: 0; display: grid; gap: 13px; }
.dependencies legend { margin-bottom: 12px; }
.check-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13px; }
.check-label input { margin-top: 3px; flex-shrink: 0; }
.check-label small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.form-actions { display: flex; align-items: center; gap: 23px; margin-top: 5px; }
.muted-link { color: var(--muted); font-size: 13px; }
.error-message { color: #963c31; background: #fdf3ef; border: 1px solid #e5b9aa; padding: 13px 15px; border-radius: 7px; font-size: 13px; line-height: 1.6; margin: 16px 0 22px; }
.context-note { border-left: 2px solid #b59a6a; padding: 11px 13px; background: #faf8f3; font-size: 13px; }
.decision-context { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin: -7px 0 24px; }
.decision-context strong { display: block; font-size: 17px; font-weight: 550; letter-spacing: -.02em; }
.decision-context > span { display: block; font-size: 13px; margin-top: 7px; color: var(--muted); }
.decision-context p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.intro { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 27px; }
.action-dialog { padding: 35px; max-width: 552px; width: calc(100% - 40px); max-height: calc(100dvh - 60px); border: 1px solid #d1d9e1; border-radius: 16px; box-shadow: 0 24px 80px #17232e2b, 0 4px 16px #17232e10; overflow-y: auto; color: var(--ink); background: #fff; }
.action-dialog::backdrop { background: #20293438; backdrop-filter: blur(4px); }
.action-dialog .form-wrap { max-width: none; padding: 0; border: 0; border-radius: 0; }
.action-dialog .back-link { display: none; }
.dialog-close { position: absolute; display: flex; align-items: center; justify-content: center; right: 12px; top: 10px; border: 0; background: none; color: var(--muted); width: 36px; height: 36px; border-radius: 7px; }
.dialog-close .icon { width: 18px; height: 18px; }
.dialog-close:hover { color: var(--ink); background: #f0f3f5; }
.login-wrap { max-width: 404px; margin: 7vh auto 60px; padding: 36px; background: #fff; border: 1px solid #dce2e7; border-radius: 16px; }
.login-wrap h1 { font-size: 32px; font-weight: 570; letter-spacing: -.045em; margin-bottom: 10px; }
.login-wrap .intro { margin-bottom: 30px; }
.login-wrap .context-note { margin-bottom: 18px; }
.password-setup-wrap { max-width: 460px; }
.setup-person { color: var(--muted); font-size: 13px; margin-bottom: 15px; }
.password-setup-wrap h1 { font-size: 30px; }
.password-change-wrap .back-link { margin-bottom: 24px; }
.password-change-wrap .success-notice { margin: 20px 0 24px; }
.password-change-wrap form { margin-top: 26px; }
.invite-wrap .back-link { margin-bottom: 24px; }
.invite-copy[hidden] { display: none; }
.invite-wrap .more-details { margin-top: 24px; }
.account-invite { display: inline-block; max-width: 17ch; margin-right: 14px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); white-space: nowrap; }
.success-notice { display: flex; align-items: center; gap: 8px; margin: -10px 0 24px; padding: 12px 15px; border: 1px solid #cadbd2; background: #f4f8f5; color: #42634e; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.full { width: 100%; }
.page-heading { margin-bottom: 34px; }
.page-heading h1 { margin-bottom: 11px; }
.archive-row { padding: 22px 0; border-bottom: 1px solid #d9e0e6; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.archive-row > a { display: flex; align-items: baseline; flex-wrap: wrap; gap: 15px; font-size: 14px; }
.archive-time { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.empty-row { color: var(--muted); font-size: 13px; padding: 20px 0; display: flex; gap: 15px; }
.week-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-block: 1px solid #d9e0e6; font-size: 13px; }
.week-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; border-radius: 7px; }
.week-nav a:hover { background: #e9eef2; }
.weekly-result { padding: 44px 0; }
.eyebrow { font-size: 12px; color: var(--muted); }
.weekly-result h2 { font-size: 34px; letter-spacing: -.04em; margin-top: 12px; }
.weekly-result p { font-size: 14px; color: var(--muted); margin-top: 12px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 15px; border-radius: 6px; }

@media (min-width: 1600px) {
  .workbench { grid-template-columns: 370px minmax(0, 1fr); }
  .idea-workspace { padding: 50px 64px 80px; }
  .workspace-content { max-width: 900px; }
}
@media (max-width: 1100px) {
  .workbench { grid-template-columns: 304px minmax(0, 1fr); }
  .idea-workspace { padding: 34px 34px 64px; }
  .workspace-title { font-size: 30px; }
  .next-step { padding: 21px; }
  .task-title-line { display: block; }
  .task-owner { display: block; max-width: none; margin-top: 4px; }
}
@media (max-width: 720px) {
  :root { --chrome-height: 62px; --header-height: var(--chrome-height); }
  .project-breadcrumb { padding-inline: 18px; gap: 10px; }
  .project-breadcrumb a { min-height: 44px; }
  .project-breadcrumb .project-current { max-width: calc(100% - 120px); line-height: 1.3; }
  main.shell:has(.projects-page) { width: calc(100% - 36px); padding-top: 34px; }
  .projects-page .page-heading h1 { font-size: 30px; }
  .project-row { grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 12px; padding: 22px 18px; }
  .project-symbol { width: 38px; height: 38px; border-radius: 9px; }
  .project-description h2 { font-size: 20px; }
  .project-description p { font-size: 13px; }
  .project-open { grid-column: 3; grid-row: 1; }
  .project-state { grid-column: 2 / 4; justify-items: start; font-size: 14px; margin-top: 2px; }
  main.shell:has(.progress-page) { width: calc(100% - 40px); padding-top: 30px; }
  .progress-page-heading h1 { font-size: 29px; }
  .progress-review-status { font-size: 13px; }
  .progress-reference { margin-top: 12px; line-height: 1.7; }
  .progress-reference > a { margin: 5px 0 0; display: flex; min-height: 36px; }
  .project-focus { padding: 22px; margin-top: 25px; }
  .project-focus h2 { font-size: 22px; }
  .project-focus > p { font-size: 14px; }
  .project-focus .source-evidence-link { min-height: 44px; margin-top: 8px; }
  .project-deliverable { flex-direction: column; gap: 8px; }
  .project-deliverable > a { min-height: 44px; font-size: 13px; }
  .source-idea-topline { align-items: flex-start; flex-wrap: wrap; gap: 6px 15px; }
  .source-idea-topline > a { min-height: 44px; }
  .source-idea-summary { font-size: 15px; }
  .tracked-source-link { min-height: 44px; }
  .source-idea-action .primary { width: 100%; }
  .plan-outcome { padding: 22px; margin-top: 25px; }
  .plan-outcome h2 { font-size: 21px; }
  .plan-outcome > p { font-size: 14px; }
  .plan-stages-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .plan-stage { position: relative; flex-wrap: wrap; gap: 7px 13px; }
  .plan-stage-number { flex-basis: 26px; height: 26px; }
  .plan-stage-content { flex-basis: calc(100% - 39px); }
  .plan-stage-content h3 { font-size: 15px; }
  .plan-stage-status { margin-left: 39px; padding-top: 0; font-size: 13px; }
  .plan-sources summary { min-height: 44px; }
  .queue-report { min-height: 44px; margin-top: 4px; }
  .header-inner { gap: 15px; padding: 0 17px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 27px; height: 27px; border-radius: 8px; }
  .brand-mark .icon { width: 21px; height: 21px; }
  .main-nav { font-size: 11px; padding: 2px; gap: 1px; }
  .main-nav a { min-height: 36px; padding: 0 9px; }
  .main-nav .nav-prefix { display: none; }
  .main-nav .nav-progress { text-transform: capitalize; }
  .account { gap: 0; }
  .account-name { display: none; }
  .account-menu > summary { font-size: 11px; }
  .text-button { min-height: 44px; font-size: 11px; }
  .workbench { display: block; }
  .idea-queue { height: 100%; border-right: 0; padding: 24px 14px; }
  .queue-header { padding-bottom: 25px; }
  .queue-header h1, .queue-header h2 { font-size: 20px; }
  .queue-group > h2, .queue-group > h3 { font-size: 13px; }
  .quiet-button { min-height: 44px; font-size: 13px; }
  .queue-item { padding: 15px 13px; }
  .queue-item-title, .queue-state, .queue-person, .queue-work, .queue-blocker { font-size: 14px; }
  .idea-workspace { display: none; height: 100%; padding: 23px 24px 55px; }
  .workbench[data-view=detail] .idea-queue { display: none; }
  .workbench[data-view=detail] .idea-workspace { display: block; }
  .workbench[data-view=overview]:has(.workspace-empty) .idea-queue { height: auto; max-height: 45%; }
  .workbench[data-view=overview]:has(.workspace-empty) .idea-workspace { display: block; height: auto; }
  .workbench[data-view=overview] { display: flex; flex-direction: column; height: auto; min-height: calc(100dvh - var(--header-height)); }
  .workbench[data-view=overview] .idea-workspace { display: block; order: -1; height: auto; overflow: visible; padding: 30px 24px 32px; border-bottom: 1px solid #dfe3e5; }
  .workbench[data-view=overview] .idea-queue { height: auto; overflow: visible; }
  .workbench[data-view=overview] .queue-header { padding-bottom: 18px; }
  .capture-heading h1 { font-size: 28px; }
  .capture-heading > p { font-size: 14px; margin-top: 9px; }
  .capture-form { margin-top: 21px; }
  .capture-form textarea { min-height: 210px; padding: 15px; font-size: 16px; }
  .capture-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .capture-actions .button { width: 100%; }
  .queue-author { font-size: 14px; }
  .workspace-empty { margin: 25px auto 50px; }
  .workspace-empty h2 { font-size: 29px; }
  .mobile-back { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: 13px; color: var(--muted); margin-bottom: 17px; }
  .mobile-back .icon { width: 15px; height: 15px; }
  .workspace-topline { margin-bottom: 13px; }
  .workspace-title { font-size: 29px; line-height: 1.24; }
  .idea-context { font-size: 14px; margin-top: 16px; }
  .next-step { margin-top: 27px; padding: 19px; }
  .next-step-top { gap: 12px; }
  .next-step h3 { font-size: 19px; }
  .owner { font-size: 14px; }
  .finish-line, .button { font-size: 14px; }
  .task-title-line { display: block; }
  .task-title-line h4 { font-size: 15px; }
  .task-owner, .task-state, .task-waiting, .task-details, .status { font-size: 14px; }
  .quiet-button, .review-task, .task-details > summary, .idea-options > summary, .board-heading > a, .task-tools > a, .more-details > summary, .history > summary, .completed-work > summary { min-height: 44px; display: inline-flex; align-items: center; }
  .idea-options > summary { min-width: 44px; justify-content: center; }
  .review-task { padding: 0 2px 0 10px; font-size: 13px; }
  .field label, legend, .owner-choice label { font-size: 14px; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
  .workspace-meta { display: grid; gap: 7px; }
  .history li { display: block; }
  .history li time { display: block; margin-top: 7px; }
  .action-dialog { padding: 32px 24px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .dialog-close { width: 44px; height: 44px; right: 5px; top: 5px; }
  .form-wrap { padding: 27px 23px; border-radius: 12px; }
  .form-wrap h1 { font-size: 27px; padding-right: 10px; }
  .login-wrap { padding: 29px 26px; margin-top: 5vh; }
  main.shell:not(:has(.workbench)) { padding-top: 28px; }
  .archive-row { display: block; }
  .archive-time { display: block; margin-top: 9px; }
}
@media (max-width: 370px) {
  .header-inner { gap: 11px; padding-inline: 12px; }
  .brand { font-size: 15px; gap: 6px; }
  .main-nav { font-size: 10px; }
  .main-nav a { padding-inline: 7px; }
  .text-button { font-size: 10px; }
  .account-menu > summary { padding-inline: 4px; }
  .account-menu > summary .icon { display: none; }
  .idea-workspace { padding-inline: 20px; }
  .workbench[data-view=overview] .idea-workspace { padding-inline: 20px; }
  .task-title-line h4 { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .button:active { transform: none; }
}
