:root {
  --ink: #20332d;
  --ink-soft: #52665e;
  --paper: #f6f5f0;
  --surface: #fffef9;
  --surface-alt: #edf1eb;
  --line: #dbe1da;
  --moss: #3f6758;
  --moss-dark: #2f5145;
  --moss-soft: #dce9e1;
  --gold: #c79855;
  --danger: #9d493d;
  --shadow: 0 12px 38px rgba(42, 58, 51, 0.08);
}

* { box-sizing: border-box; }

html { color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 88% -10%, rgba(199, 152, 85, 0.09), transparent 26rem), var(--paper); }
a { color: inherit; }
button, input, textarea { font: inherit; }

.site-header { border-bottom: 1px solid rgba(32, 51, 45, 0.1); background: rgba(246, 245, 240, 0.88); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.nav-shell { max-width: 1180px; min-height: 68px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; font-weight: 700; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark, .empty-loop { display: inline-block; width: 28px; height: 18px; border: 2px solid var(--moss); border-radius: 50%; position: relative; transform: rotate(-8deg); }
.brand-mark::after, .empty-loop::after { content: ""; position: absolute; inset: -2px 7px -2px 7px; border: 2px solid var(--moss); border-radius: 50%; transform: rotate(16deg); }
.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.primary-nav a { padding: 10px 13px; border-radius: 9px; color: var(--ink-soft); font-size: 0.92rem; font-weight: 650; text-decoration: none; }
.primary-nav a:hover, .primary-nav a.active { color: var(--ink); background: rgba(63, 103, 88, 0.09); }
.nav-shell > form { margin-left: auto; }
.account-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.account-actions form { margin: 0; }
.account-name, .account-switch-link { max-width: 220px; overflow: hidden; padding: 8px 10px; color: var(--ink-soft); font-size: 0.78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-switch-link { border-radius: 8px; text-decoration: none; }
.account-switch-link:hover { color: var(--ink); background: rgba(63, 103, 88, 0.08); }

.page-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 80px; }
.page-heading { margin-bottom: 32px; }
.page-heading h1, .project-hero h1, .auth-card h1 { margin: 5px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.page-heading h1 { font-size: clamp(2.25rem, 4vw, 3.45rem); }
.eyebrow { margin: 0 0 6px; color: var(--moss); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.lede { margin: 0; max-width: 680px; color: var(--ink-soft); font-size: 1.07rem; line-height: 1.65; }
.split-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.count-note { margin: 0 0 9px; color: var(--ink-soft); white-space: nowrap; }
.count-note strong { color: var(--ink); font-size: 1.45rem; }

.flash { margin: -24px 0 28px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.flash.notice { border-left: 4px solid var(--moss); }
.flash.alert { border-left: 4px solid var(--danger); }

.capture-panel { padding: 26px; border: 1px solid #d5ded6; border-radius: 17px; background: linear-gradient(135deg, #eaf0e9, #f2f2ec); }
.capture-panel h2 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.capture-form { display: flex; gap: 10px; }
.capture-form input[type="text"] { flex: 1; min-width: 0; padding: 15px 16px; border: 1px solid #cdd7cf; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 2px 0 rgba(32, 51, 45, 0.02); }
.capture-form input[type="text"]:focus, .field input:focus, .field textarea:focus { outline: 3px solid rgba(63, 103, 88, 0.16); border-color: var(--moss); }
.form-hint { margin: 10px 0 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.5; }

.primary-button, .secondary-button, .quiet-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-weight: 750; text-decoration: none; cursor: pointer; }
.primary-button { padding: 13px 19px; border: 1px solid var(--moss); background: var(--moss); color: white; box-shadow: 0 3px 9px rgba(47, 81, 69, 0.18); }
.primary-button:hover { background: var(--moss-dark); }
.secondary-button { padding: 10px 15px; border: 1px solid #cbd4cd; background: var(--surface); color: var(--ink); }
.secondary-button:hover { border-color: var(--moss); }
.quiet-button { padding: 8px 10px; border: 0; background: transparent; color: var(--ink-soft); font-size: 0.85rem; }
.quiet-button:hover { color: var(--ink); background: rgba(63, 103, 88, 0.08); }
.danger-button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; border: 1px solid #dfc3bd; border-radius: 9px; background: #fffafa; color: var(--danger); font-weight: 750; cursor: pointer; }
.danger-button:hover { border-color: var(--danger); background: #faefec; }
.small-button { padding: 8px 11px; font-size: 0.78rem; }
.full-width { width: 100%; }

.section-block { margin-top: 46px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.section-heading span { color: var(--ink-soft); font-size: 0.78rem; }
.item-list { border-bottom: 1px solid var(--line); }
.item-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 4px; border-top: 1px solid var(--line); }
.item-row:first-child { border-top: 0; }
.item-row h3 { margin: 0 0 5px; font-size: 1rem; }
.item-row p { margin: 0; color: var(--ink-soft); font-size: 0.82rem; }
.item-title-link { text-decoration: none; }
.item-title-link:hover { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.item-list.compact .item-row { justify-content: flex-start; }
.action-icon { flex: 0 0 auto; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--moss-soft); color: var(--moss-dark); font-size: 0.77rem; font-weight: 800; }

.empty-state { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; border: 1px dashed #cad3cb; border-radius: 16px; background: rgba(255, 254, 249, 0.45); }
.empty-state .empty-loop { width: 45px; height: 28px; margin-bottom: 18px; opacity: 0.7; }
.empty-state h3, .inline-empty h3 { margin: 0 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.empty-state p, .inline-empty p { margin: 0 0 20px; color: var(--ink-soft); }

.narrow-page { max-width: 720px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--ink-soft); font-size: 0.86rem; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.container-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 34px; color: var(--ink-soft); font-size: 0.86rem; }
.container-breadcrumb a { text-decoration: none; }
.container-breadcrumb a:hover { color: var(--ink); }
.capture-quote { margin: 20px 0 0; padding: 18px 20px; border-left: 3px solid var(--gold); background: rgba(255, 254, 249, 0.7); color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; line-height: 1.5; }
.stack-form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label, .choice-set legend { color: var(--ink); font-size: 0.87rem; font-weight: 750; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #cbd4cd; border-radius: 9px; background: var(--surface); color: var(--ink); resize: vertical; }
.choice-set { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; border: 0; }
.choice-set legend { grid-column: 1 / -1; margin-bottom: 2px; }
.choice-card { display: flex; align-items: flex-start; gap: 11px; padding: 17px; border: 1px solid #ccd5ce; border-radius: 12px; background: var(--surface); cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--moss); box-shadow: inset 0 0 0 1px var(--moss); background: #f7fbf7; }
.choice-card input { margin-top: 3px; accent-color: var(--moss); }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { margin-top: 4px; color: var(--ink-soft); line-height: 1.45; }
.form-actions { display: flex; align-items: center; gap: 18px; }
.subtle-link { color: var(--ink-soft); font-size: 0.88rem; }

.ai-panel { margin-bottom: 34px; padding: 24px; border: 1px solid #cbd8cf; border-radius: 16px; background: linear-gradient(145deg, #edf4ef, #fffdf7); box-shadow: 0 8px 28px rgba(42, 58, 51, 0.05); }
.ai-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.ai-panel-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.allowance-note { color: var(--ink-soft); font-size: 0.76rem; white-space: nowrap; }
.ai-summary { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.6; }
.proposal-form { padding-top: 4px; }
.proposal-reason { padding: 16px 18px; border-left: 3px solid var(--gold); background: rgba(255, 254, 249, 0.76); }
.proposal-reason strong { display: block; font-size: 0.83rem; }
.proposal-reason p, .proposal-reason ul { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.87rem; line-height: 1.55; }
.proposal-reason ul { padding-left: 20px; }
.proposal-reason strong:not(:first-child) { margin-top: 15px; }
.ai-trust-copy { margin: 14px 0 0; color: var(--ink-soft); font-size: 0.76rem; line-height: 1.5; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 5px 0 28px; color: var(--ink-soft); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.item-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 38px; margin-bottom: 34px; }
.item-hero > div { max-width: 760px; }
.item-hero h1 { margin: 14px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 5vw, 3.7rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 600; }
.original-capture { margin: 0 0 42px; padding: 17px 19px; border-left: 3px solid var(--gold); background: rgba(255, 254, 249, 0.6); }
.original-capture h2 { margin: 0 0 5px; color: var(--ink-soft); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.original-capture p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.item-due-date { display: inline-flex; margin: 0 0 14px; padding: 7px 10px; border-radius: 8px; background: #f4ecde; color: #77582c; font-size: 0.8rem; font-weight: 750; }
.item-due-date.overdue { background: #f6e5e1; color: var(--danger); }
.item-context-panel { margin: 0 0 42px; padding: 25px; border: 1px solid #d2ddd5; border-radius: 17px; background: linear-gradient(145deg, #edf4ef, #fffdf7); }
.item-context-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.item-context-heading h2 { margin: 3px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.item-context-heading > p { max-width: 410px; margin: 0; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.5; text-align: right; }
.estimate-bars { display: grid; gap: 15px; }
.estimate-bar { display: grid; grid-template-columns: minmax(135px, 0.42fr) minmax(220px, 1fr); gap: 8px 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 254, 249, 0.82); }
.estimate-bar-label { display: grid; gap: 3px; }
.estimate-bar-label strong { font-size: 0.82rem; }
.estimate-bar-label span { color: var(--ink-soft); font-size: 0.76rem; }
.estimate-segments { display: grid; grid-template-columns: repeat(5, minmax(18px, 1fr)); gap: 5px; }
.estimate-segments i { height: 20px; border: 1px solid #d3dcd5; border-radius: 5px; background: var(--surface-alt); }
.complexity-bar .estimate-segments i.filled { border-color: var(--moss); background: var(--moss); }
.effort-bar .estimate-segments i.filled { border-color: var(--gold); background: var(--gold); }
.estimate-bar > p { grid-column: 2; margin: -1px 0 0; color: var(--ink-soft); font-size: 0.73rem; line-height: 1.4; }
.item-context-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 14px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.item-context-details > div { padding: 13px 15px; background: var(--surface); }
.item-context-details dt { color: var(--ink-soft); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.item-context-details dd { margin: 4px 0 0; font-size: 0.84rem; line-height: 1.45; }
.item-signal-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.item-signal { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #ccd8d0; border-radius: 999px; background: #f0f5f1; color: var(--moss-dark); font-size: 0.7rem; font-weight: 650; line-height: 1; }
.item-signal strong { font-size: 0.72rem; }
.effort-signal { border-color: #e1d3bc; background: #faf5ea; color: #75572d; }
.decision-signal { border-color: #d9d2e5; background: #f6f2fa; color: #5c4d70; }
.mini-segments { display: inline-flex; gap: 2px; }
.mini-segments i { width: 6px; height: 7px; border-radius: 2px; background: #cbd5ce; }
.complexity-signal .mini-segments i.filled { background: var(--moss); }
.effort-signal .mini-segments i.filled { background: var(--gold); }
.item-summary { max-width: 720px; margin-top: 9px !important; line-height: 1.45; }
.lifecycle-panel { display: grid; grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr); gap: 42px; margin: 0 0 44px; padding: 26px; border: 1px solid #d5ded6; border-radius: 16px; background: linear-gradient(145deg, #edf4ef, #fffdf7); }
.lifecycle-panel h2 { margin: 3px 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.lifecycle-panel > div > p:last-child { margin: 0; color: var(--ink-soft); font-size: 0.86rem; line-height: 1.55; }
.lifecycle-controls { display: grid; gap: 12px; }
.work-controls, .due-date-controls { display: grid; gap: 12px; }
.due-date-controls { padding-bottom: 12px; border-bottom: 1px solid #d5ded6; }
.clear-due-date-form { display: flex; justify-content: flex-end; margin-top: -8px; }
.lifecycle-form { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(150px, 1fr) auto; align-items: end; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.lifecycle-form > label:not(.choice-card) { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.75rem; font-weight: 750; }
.lifecycle-form input[type="date"], .lifecycle-form select { min-width: 0; padding: 10px 11px; border: 1px solid #cbd4cd; border-radius: 8px; background: white; color: var(--ink); }
.lifecycle-form .choice-card { grid-column: 1 / -1; padding: 11px 13px; font-size: 0.8rem; }
.next-explanation { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 17px 19px; border-left: 3px solid var(--moss); background: rgba(255, 254, 249, 0.62); }
.next-explanation strong { font-size: 0.84rem; white-space: nowrap; }
.next-explanation p { margin: 0; color: var(--ink-soft); font-size: 0.84rem; line-height: 1.55; }
.fit-panel { display: grid; grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr); gap: 30px; margin-top: 18px; padding: 22px 24px; border: 1px solid #d2ddd5; border-radius: 15px; background: var(--surface); }
.fit-panel h2 { margin: 3px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.fit-panel > div > p:last-child { margin: 0; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.5; }
.fit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto; gap: 10px; align-items: end; }
.fit-field { display: grid; gap: 6px; }
.fit-field label { color: var(--ink-soft); font-size: 0.7rem; font-weight: 800; }
.fit-field select { min-width: 0; width: 100%; padding: 11px 12px; border: 1px solid #cbd4cd; border-radius: 8px; background: white; color: var(--ink); }
.fit-form .subtle-link { padding: 12px 2px; }
.next-lane { margin-top: 38px; }
.next-list { display: grid; gap: 10px; padding-top: 14px; }
.next-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.next-card.overdue { border-color: #e2c5be; border-left: 4px solid var(--danger); }
.next-card.due-today { border-color: #dfc79f; border-left: 4px solid var(--gold); }
.next-card.upcoming { border-left: 4px solid #b89660; }
.next-card-copy { min-width: 0; }
.next-card h3 { margin: 4px 0 5px; font-size: 1.02rem; }
.next-card p { margin: 0; color: var(--ink-soft); font-size: 0.78rem; }
.next-reason { color: var(--moss); font-size: 0.73rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.next-card.overdue .next-reason { color: var(--danger); }
.availability { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 750; }
.availability.ready { background: var(--moss-soft); color: var(--moss-dark); }
.availability.attention { background: #f4ecde; color: #77582c; }
.lane-empty { margin: 0; padding: 24px 4px 5px; color: var(--ink-soft); font-size: 0.86rem; }
.ai-help-section { margin-top: 44px; }
.help-heading { align-items: flex-end; }
.help-heading h2 { font-size: 1.65rem; }
.ai-help-section > .lede { margin-top: 15px; }
.help-action { display: flex; align-items: center; gap: 18px; margin: 24px 0 30px; }
.help-action p { max-width: 480px; margin: 0; color: var(--ink-soft); font-size: 0.79rem; line-height: 1.45; }
.help-card { margin-top: 18px; padding: 28px; border: 1px solid #d0dad2; border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.help-card.previous-card { margin-top: 14px; opacity: 0.86; box-shadow: none; }
.help-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.help-card-heading h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.help-card-heading time { color: var(--ink-soft); font-size: 0.74rem; }
.help-summary { margin: 13px 0 22px; color: var(--ink-soft); line-height: 1.65; }
.first-move { display: grid; gap: 5px; padding: 18px 20px; border-radius: 12px; background: var(--moss-dark); color: white; }
.first-move span { color: #d6e4dc; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.first-move strong { line-height: 1.45; }
.starting-points { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: help-step; }
.starting-points li { position: relative; min-height: 44px; padding: 0 0 22px 48px; counter-increment: help-step; }
.starting-points li::before { content: counter(help-step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--moss-soft); color: var(--moss-dark); font-size: 0.78rem; font-weight: 800; }
.starting-points li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 31px; bottom: 0; width: 1px; background: var(--line); }
.starting-points strong { font-size: 0.92rem; }
.starting-points p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.55; }
.dependency-notes { margin-top: 4px; padding: 18px 20px; border: 1px solid #e2d7c5; border-radius: 11px; background: #faf6ed; }
.dependency-notes h4, .search-links h4 { margin: 0 0 10px; font-size: 0.8rem; }
.dependency-notes ul { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 0.84rem; line-height: 1.6; }
.search-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.search-links h4 { flex-basis: 100%; }
.search-links a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-alt); font-size: 0.82rem; font-weight: 650; text-decoration: none; }
.search-links a:hover { border-color: var(--moss); }
.search-links a span { color: var(--moss); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { display: block; min-height: 235px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); text-decoration: none; box-shadow: 0 2px 0 rgba(32, 51, 45, 0.02); transition: transform 150ms ease, box-shadow 150ms ease; }
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.project-card-top, .status-line { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8f9b94; }
.status-dot.active, .status-dot.started { background: var(--moss); box-shadow: 0 0 0 4px var(--moss-soft); }
.status-dot.blocked { background: var(--danger); }
.status-dot.archived { background: #7d817e; }
.project-card h2 { margin: 23px 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.project-card > p { min-height: 52px; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.project-card .context-line, .context-line { min-height: 0; margin: 8px 0; color: var(--moss-dark); font-size: 0.78rem; font-weight: 750; }
.project-card-foot { display: flex; justify-content: space-between; margin-top: 24px; color: var(--ink-soft); font-size: 0.82rem; }
.project-card-foot strong { color: var(--moss); }
.area-card { border-top: 3px solid var(--moss); }
.area-index-section { margin-top: 34px; }
.area-index-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.area-index-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--moss); border-radius: 11px; background: rgba(255, 254, 249, 0.75); text-decoration: none; transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease; }
.area-index-row:hover { border-color: #bfcac2; background: var(--surface); box-shadow: 0 6px 20px rgba(42, 58, 51, 0.06); }
.area-index-row.archived { border-left-color: #8f9b94; }
.area-index-copy { min-width: 0; }
.area-index-title { display: flex; align-items: center; gap: 10px; }
.area-index-title h3 { overflow: hidden; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; font-weight: 600; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.area-index-copy > p { overflow: hidden; margin: 5px 0 0 18px; color: var(--ink-soft); font-size: 0.76rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.area-index-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; color: var(--ink-soft); }
.area-open-count { padding: 5px 8px; border-radius: 999px; background: var(--moss-soft); color: var(--moss-dark); font-size: 0.72rem; white-space: nowrap; }
.area-open-count strong { font-size: 0.8rem; }
.area-open-count.empty { background: var(--surface-alt); color: var(--ink-soft); }
.area-index-arrow { color: var(--moss); font-size: 1rem; font-weight: 800; }
.area-actions-heading { margin-top: 34px; }
.area-manage-button { margin-top: 12px; }
.area-manage-button form { margin: 0; }
.archive-panel, .organize-panel { display: grid; grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr); gap: 34px; margin: 0 0 44px; padding: 23px 25px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.archive-panel h2, .organize-panel h2 { margin: 2px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.archive-panel p, .organize-panel > div > p:last-child { margin: 0; color: var(--ink-soft); font-size: 0.84rem; line-height: 1.5; }
.archive-form, .placement-form { display: grid; gap: 11px; align-content: start; }
.archive-confirmation { padding: 13px 14px; }
.placement-form label { color: var(--ink-soft); font-size: 0.75rem; font-weight: 750; }
.placement-form select { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #cbd4cd; border-radius: 8px; background: white; color: var(--ink); }

.work-groups { display: grid; gap: 22px; }
.work-group { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 254, 249, 0.5); }
.work-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.work-group-heading h3 { margin: 3px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.work-group-heading h3 a { text-decoration: none; }
.work-group-heading > span { color: var(--ink-soft); font-size: 0.76rem; }
.work-group > .item-list { padding: 0 20px; }
.work-group > .muted-copy { display: block; margin: 0; padding: 22px 20px; }

.project-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 38px; margin-bottom: 48px; }
.project-hero-copy { max-width: 700px; }
.project-hero h1 { margin-top: 14px; }
.trust-note { max-width: 305px; padding: 17px 18px; border: 1px solid #d3dbd4; border-radius: 12px; background: var(--surface-alt); }
.trust-note strong, .trust-note span { display: block; }
.trust-note strong { margin-bottom: 5px; font-size: 0.84rem; }
.trust-note span { color: var(--ink-soft); font-size: 0.78rem; line-height: 1.5; }
.trust-note .subtle-link { display: block; margin-top: 10px; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr); gap: 48px; }
.project-layout .section-block { margin-top: 0; }
.planning-panel { margin-top: 38px; }
.inline-empty { padding: 32px 4px 18px; }
.history-panel { padding-left: 24px; border-left: 1px solid var(--line); }
.timeline { margin: 8px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 15px 1fr; gap: 12px; padding: 16px 0; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 29px; bottom: -8px; width: 1px; background: var(--line); }
.timeline-mark { width: 9px; height: 9px; margin-top: 5px; border: 2px solid var(--moss); border-radius: 50%; background: var(--paper); z-index: 1; }
.timeline strong { font-size: 0.85rem; }
.timeline p { margin: 3px 0; color: var(--ink-soft); font-size: 0.8rem; }
.timeline time { color: #75847e; font-size: 0.72rem; }
.muted-copy { color: var(--ink-soft); font-size: 0.85rem; }

.auth-shell { min-height: calc(100vh - 200px); display: grid; place-items: center; }
.auth-card { width: min(100%, 460px); padding: 38px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2.5rem; }
.auth-card .lede { margin-bottom: 28px; font-size: 0.98rem; }
.auth-card .subtle-link { display: block; margin-top: 20px; text-align: center; }
.account-choice-card { width: min(100%, 560px); }
.account-choice-list { display: grid; gap: 10px; }
.account-choice-list form { margin: 0; }
.account-choice { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 18px; border: 1px solid #cbd4cd; border-radius: 11px; background: var(--surface); color: var(--ink); font-weight: 750; text-align: left; cursor: pointer; }
.account-choice:hover { border-color: var(--moss); background: #f7fbf7; }
.account-choice span:first-child { min-width: 0; overflow-wrap: anywhere; }
.account-choice span:last-child { flex: 0 0 auto; color: var(--moss); font-size: 0.78rem; }
.account-choice.current-account { border-color: var(--moss-soft); background: var(--surface-alt); cursor: default; }
.account-choice.current-account span:last-child { color: var(--ink-soft); }

.admin-heading { margin-bottom: 34px; }
.admin-grid { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr); gap: 22px; align-items: start; }
.platform-admin-grid { grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr); }
.admin-panel { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 3px 16px rgba(42, 58, 51, 0.04); }
.admin-panel-wide { grid-column: 1 / -1; }
.admin-panel > h2 { margin: 4px 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.panel-copy { margin: 0 0 24px; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.55; }
.compact-stack-form { gap: 16px; }
.admin-section-heading { padding-bottom: 14px; }
.access-list { display: grid; }
.access-row { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.access-row:last-child { padding-bottom: 0; border-bottom: 0; }
.access-identity { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.access-identity strong { min-width: 0; overflow-wrap: anywhere; }
.access-identity > span:not(.status-pill), .access-identity small { flex-basis: 100%; color: var(--ink-soft); font-size: 0.78rem; }
.status-pill { padding: 4px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; }
.status-pill.active { background: var(--moss-soft); color: var(--moss-dark); }
.status-pill.pending { background: #f4ecde; color: #77582c; }
.status-pill.inactive { background: #edeae7; color: #6f6963; }
.row-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.row-actions form { margin: 0; }
.row-note { flex: 0 0 190px; margin: 2px 0 0; color: var(--ink-soft); font-size: 0.76rem; line-height: 1.4; text-align: right; }
.admin-empty { margin: 24px 0 0; }
.ai-route-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-settings-grid { grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr); }
.ai-settings-value { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; color: var(--moss-dark); }
.connection-status { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; }
.connection-status small { color: var(--ink-soft); }
.remove-connection-choice { display: flex; align-items: center; gap: 9px; color: var(--danger); font-size: 0.84rem; font-weight: 700; }
.remove-connection-choice input { accent-color: var(--danger); }
.inline-alert { margin: 0 0 20px; padding: 13px 14px; border-left: 3px solid var(--danger); border-radius: 8px; background: #faefec; color: var(--ink); font-size: 0.85rem; line-height: 1.5; }
.inline-alert p { margin: 5px 0 0; color: var(--ink-soft); }

.invitation-token-result { margin: 0 0 28px; padding: 25px; border: 1px solid #bfcfc3; border-radius: 16px; background: linear-gradient(135deg, #e6f0e9, #fffdf7); box-shadow: var(--shadow); }
.invitation-token-result h2 { margin: 3px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.invitation-token-result > div:first-child > p:last-child { margin: 0 0 18px; max-width: 760px; color: var(--ink-soft); line-height: 1.55; }
.invitation-link-field { display: grid; gap: 7px; margin-bottom: 11px; }
.invitation-link-field label { font-size: 0.82rem; font-weight: 750; }
.invitation-link-field input { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #bfcac2; border-radius: 8px; background: var(--surface); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; }
.copy-status { min-height: 1.2em; margin: 8px 0 0; color: var(--moss-dark); font-size: 0.78rem; }
.invitation-code-details { margin-top: 12px; color: var(--ink-soft); font-size: 0.78rem; }
.invitation-code-details summary { cursor: pointer; }
.invitation-code-details code { display: block; margin-top: 8px; padding: 10px; overflow-wrap: anywhere; border-radius: 7px; background: rgba(255, 254, 249, 0.72); color: var(--ink); }
.invitation-acceptance-card { width: min(100%, 520px); }
.invitation-acceptance-card .inline-alert { margin-bottom: 26px; }
.signed-in-note { margin: -4px 0 0; padding: 13px 14px; border-radius: 9px; background: var(--surface-alt); color: var(--ink-soft); font-size: 0.83rem; line-height: 1.5; }

@media (max-width: 760px) {
  .nav-shell { min-height: 62px; padding: 8px 16px; gap: 5px 10px; flex-wrap: wrap; }
  .brand { font-size: 1.08rem; }
  .brand-mark { width: 23px; height: 15px; }
  .primary-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .primary-nav a { padding: 8px 9px; font-size: 0.82rem; }
  .nav-shell > form { margin-left: auto; }
  .account-actions { margin-left: auto; }
  .account-name, .account-switch-link { max-width: 145px; }
  .account-actions .quiet-button { font-size: 0; width: 34px; height: 34px; }
  .account-actions .quiet-button::after { content: "↗"; font-size: 1rem; }
  .page-shell { width: min(100% - 28px, 1120px); padding-top: 36px; }
  .split-heading, .project-hero { align-items: flex-start; flex-direction: column; gap: 18px; }
  .capture-form { flex-direction: column; }
  .capture-form .primary-button { width: 100%; }
  .choice-set, .project-grid, .area-index-list, .project-layout, .lifecycle-panel, .lifecycle-form, .next-explanation, .archive-panel, .organize-panel, .fit-panel, .fit-form, .item-context-details { grid-template-columns: minmax(0, 1fr); }
  .project-layout > *, .history-panel, .capture-panel { min-width: 0; }
  .project-layout { gap: 44px; }
  .history-panel { padding-left: 0; border-left: 0; }
  .trust-note { max-width: none; width: 100%; }
  .project-card { min-height: 0; }
  .area-index-row { min-height: 68px; padding: 12px 13px; }
  .area-index-copy > p { margin-left: 18px; }
  .item-row { align-items: flex-start; }
  .next-card { align-items: flex-start; flex-direction: column; gap: 12px; }
  .ai-panel-heading, .item-hero, .help-action { align-items: flex-start; flex-direction: column; gap: 12px; }
  .item-context-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .item-context-heading > p { text-align: left; }
  .estimate-bar { grid-template-columns: minmax(0, 1fr); }
  .estimate-bar > p { grid-column: 1; }
  .fit-form .primary-button { width: 100%; }
  .allowance-note { white-space: normal; }
  .compact-choice-set { grid-template-columns: minmax(0, 1fr); }
  .help-card { padding: 22px 18px; }
  .help-card-heading { align-items: flex-start; }
  .auth-card { padding: 28px 22px; }
  .admin-grid, .platform-admin-grid, .ai-route-choices, .ai-settings-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-panel-wide { grid-column: auto; }
  .admin-panel { padding: 22px 18px; }
  .access-row { align-items: flex-start; flex-direction: column; gap: 13px; }
  .row-actions { width: 100%; flex-wrap: wrap; }
  .row-actions form { flex: 1; }
  .row-actions form > * { width: 100%; }
  .row-note { flex-basis: auto; text-align: left; }
}
