:root {
    --ink: #252b28;
    --muted: #6d746f;
    --paper: #f7f4ed;
    --surface: #fffefb;
    --sage: #667c6b;
    --sage-dark: #43594b;
    --sage-pale: #e8eee7;
    --line: #deddd5;
    --warm: #c88168;
    --shadow: 0 18px 55px rgba(43, 51, 45, .08);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
button, textarea, input { font: inherit; }
a { color: inherit; }

.landing-body { display: grid; place-items: center; background: radial-gradient(circle at 50% 25%, #fff 0, var(--paper) 56%); }
.landing { width: min(560px, calc(100% - 40px)); text-align: center; padding: 80px 0; }
.brand-mark { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 36px; border-radius: 24px; color: var(--sage-dark); background: var(--sage-pale); transform: rotate(-2deg); }
.brand-mark svg { width: 48px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { color: var(--sage); font-size: .74rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 9px; }
.landing h1 { font-family: Georgia, serif; font-size: clamp(3.6rem, 12vw, 6.5rem); line-height: .9; letter-spacing: -.055em; margin: 0; font-weight: 500; }
.landing-copy { font-family: Georgia, serif; color: #505751; font-size: clamp(1.45rem, 5vw, 2rem); line-height: 1.32; margin: 30px 0 42px; }
.google-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 8px 30px rgba(43,51,45,.08); text-decoration: none; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.google-button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.google-button svg { width: 22px; }
.privacy-note { color: var(--muted); font-size: .82rem; margin-top: 22px; }
.notice { padding: 13px 16px; border-radius: 12px; margin: 0 0 20px; font-size: .9rem; }
.notice.error { background: #fae8e3; color: #854c3b; }

.site-header { border-bottom: 1px solid rgba(95,104,98,.16); background: rgba(247,244,237,.96); }
.topbar { height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 64px); }
.wordmark { font: 500 1.7rem/1 Georgia, serif; text-decoration: none; letter-spacing: -.04em; }
.navigation-band { padding: 7px clamp(20px, 5vw, 64px) 9px; border-top: 1px solid rgba(95,104,98,.1); background: rgba(232,238,231,.42); }
.global-nav { width: min(1060px,100%); margin: 0 auto; display: flex; align-items: center; gap: 5px; min-width: 0; }
.global-nav a { min-height: 36px; padding: 9px 15px; border-radius: 11px; display: grid; place-items: center; color: #515c55; text-decoration: none; white-space: nowrap; font-size: .84rem; font-weight: 720; }
.global-nav a:hover { color: var(--sage-dark); background: rgba(255,255,255,.58); }
.global-nav a.active { color: var(--sage-dark); background: var(--surface); box-shadow: 0 1px 0 rgba(67,89,75,.08), 0 5px 16px rgba(43,51,45,.055); }
.account { display: flex; align-items: center; gap: 10px; }
.account img, .avatar-fallback { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--sage-pale); color: var(--sage-dark); font-weight: 800; }
.text-button { appearance: none; border: 0; color: var(--muted); background: transparent; font-size: .8rem; cursor: pointer; }
.shell { width: min(1060px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 80px; }

.dashboard-greeting { max-width: 780px; margin: 0 auto 18px; }
.subpage-header { max-width: 780px; margin: 0 auto 18px; }
.subpage-header h1 { margin: 0; font: 500 clamp(2rem, 6vw, 3.3rem)/1.08 Georgia, serif; letter-spacing: -.04em; }
.dashboard-greeting h1 { margin: 0; font: 500 clamp(1.7rem, 4vw, 2.55rem)/1.08 Georgia, serif; letter-spacing: -.04em; }
[data-live-memory-top-fragment] { max-width: 780px; margin: 0 auto; }
.capture-panel { max-width: 780px; margin: 28px auto 0; }
.capture-panel-compact { margin-top: 16px; }
.capture-panel-compact #capture-text { min-height: 88px; }
.capture-panel h1, .topic-header h1 { font: 500 clamp(2rem, 6vw, 3.7rem)/1.08 Georgia, serif; letter-spacing: -.045em; margin: 0 0 24px; }
.capture-panel > h2 { margin: 0 0 12px; font: 600 clamp(1.18rem, 3vw, 1.48rem)/1.2 Georgia, serif; letter-spacing: -.02em; }
#capture-form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 12px; box-shadow: var(--shadow); }
#capture-text { display: block; width: 100%; min-height: 132px; max-height: 420px; padding: 16px 17px; resize: none; overflow-y: hidden; background: transparent; border: 0; outline: 0; color: var(--ink); line-height: 1.58; font-size: 1.02rem; transition: height .16s ease; }
#capture-text::placeholder { color: #9ca19d; }
.capture-status { min-height: 22px; padding: 0 16px; font-size: .84rem; color: var(--sage-dark); }
.capture-status.error { color: #a24d42; }
.capture-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 7px; border-top: 1px solid #efeee9; }
.mic-button { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--sage-pale); color: var(--sage-dark); cursor: pointer; }
.mic-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mic-button.recording { color: white; background: var(--warm); }
.mic-button.recording .pulse-ring { position: absolute; inset: -5px; border: 2px solid rgba(200,129,104,.45); border-radius: 50%; animation: pulse 1.5s infinite; }
.record-time { position: absolute; left: 58px; white-space: nowrap; color: var(--warm); font-size: .8rem; font-weight: 750; }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1 } 80%,100% { transform: scale(1.35); opacity: 0 } }
.save-button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--sage-dark); color: white; padding: 0; display: grid; place-items: center; cursor: pointer; }
.save-button:disabled { opacity: .45; cursor: default; }
.save-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
[data-composer-state="uploading"] .mic-button,
[data-composer-state="transcribing"] .mic-button { box-shadow: inset 0 0 0 2px rgba(72,97,81,.12); }
[data-composer-state="uploading"] .mic-button::after,
[data-composer-state="transcribing"] .mic-button::after { content: ''; position: absolute; width: 12px; height: 12px; right: 1px; bottom: 1px; border: 2px solid rgba(72,97,81,.24); border-top-color: var(--sage-dark); border-radius: 50%; animation: composer-spin .8s linear infinite; background: var(--surface); }
@keyframes composer-spin { to { transform: rotate(360deg); } }

.adaptive-nav { display: flex; gap: 7px; max-width: 780px; margin: 32px auto 0; overflow-x: auto; scrollbar-width: none; }
.adaptive-nav a { white-space: nowrap; padding: 9px 14px; border-radius: 100px; color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 650; }
.adaptive-nav a.active { color: var(--sage-dark); background: var(--sage-pale); }
.prominent-topics { max-width: 780px; margin: 17px auto 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--muted); }
.prominent-topics > span { margin-right: 3px; text-transform: uppercase; letter-spacing: .09em; font-size: .67rem; }
.prominent-topics a, .topic-pill { color: var(--sage-dark); background: rgba(255,255,255,.75); border: 1px solid var(--line); padding: 6px 10px; border-radius: 100px; text-decoration: none; }
.content-section { max-width: 780px; margin: 56px auto 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.section-heading h2, .topic-block h2 { font: 500 2rem/1.1 Georgia, serif; margin: 0; letter-spacing: -.03em; }
.section-heading > span { color: var(--muted); font-size: .8rem; }
.card-list { display: grid; gap: 14px; }
.memory-card { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 17px; padding: 20px; }
.memory-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .72rem; margin-bottom: 9px; }
.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 100px; background: var(--sage-pale); color: var(--sage-dark); font-size: .68rem; font-weight: 750; }
.retry-button { margin-top: 12px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--sage-dark); font-size: .75rem; cursor: pointer; }
.memory-card h3 { font: 600 1.23rem/1.25 Georgia, serif; margin: 0; }
.card-title-link { text-decoration: none; }
.summary { color: #555d57; margin: 9px 0 0; line-height: 1.5; }
.topic-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.topic-pill { font-size: .7rem; padding: 4px 8px; }
.memory-card details { margin-top: 14px; color: var(--muted); font-size: .8rem; }
.memory-card summary { cursor: pointer; }
.original-text { color: var(--ink); white-space: pre-wrap; line-height: 1.6; font-size: .92rem; }
.day-heading { color: var(--muted); font-size: .83rem; margin: 27px 0 9px; font-weight: 650; }
.empty-state { text-align: center; color: var(--muted); padding: 24px 20px 10px; }
.empty-state svg { width: 54px; fill: none; stroke: #9aa69d; stroke-width: 1.6; }
.empty-state h2 { color: var(--ink); font: 500 1.6rem Georgia, serif; margin: 12px 0 6px; }
.empty-state p { max-width: 430px; margin: 0 auto; line-height: 1.55; }

.daily-timeline { display: grid; gap: 30px; }
.timeline-day { display: grid; gap: 11px; }
.timeline-day-header { display: flex; align-items: end; justify-content: space-between; padding: 0 3px; }
.timeline-day-header > div { display: grid; gap: 2px; }
.timeline-day-header strong { font: 600 1.35rem/1.2 Georgia, serif; }
.timeline-day-header span { color: var(--muted); font-size: .74rem; }
.day-digest { padding: 14px 16px; border-left: 3px solid var(--sage); border-radius: 0 12px 12px 0; background: var(--sage-pale); }
.day-digest small { color: var(--sage-dark); font-size: .68rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.day-digest p { margin: 5px 0 0; line-height: 1.45; font-size: .9rem; }
.daily-personal-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(67,89,75,.16); color: var(--sage-dark); font: italic .9rem/1.5 Georgia, serif; }
.task-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.task-badges em { padding: 3px 7px; border-radius: 999px; color: var(--sage-dark); background: var(--sage-pale); font-size: .65rem; font-style: normal; font-weight: 700; }
.task-row.overdue .task-badges em:first-child { color: #854c3b; background: #fae8e3; }
.completed-tasks, .project-sources { margin-top: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.55); }
.completed-tasks > summary, .project-sources > summary { padding: 14px 16px; cursor: pointer; color: var(--sage-dark); font-weight: 700; }
.completed-tasks .task-list, .project-sources .card-list { padding: 0 12px 12px; }
.event-list { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.event-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto 16px; align-items: center; gap: 12px; min-height: 64px; padding: 11px 15px; text-decoration: none; border-bottom: 1px solid #efeee9; }
.event-row:last-child { border-bottom: 0; }
.event-row:hover { background: #faf9f4; }
.event-row time { color: var(--muted); font-size: .73rem; font-variant-numeric: tabular-nums; }
.event-copy { display: grid; gap: 3px; min-width: 0; }
.event-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .91rem; }
.event-copy small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-badge { padding: 4px 8px; border-radius: 100px; color: var(--sage-dark); background: var(--sage-pale); font-size: .65rem; font-weight: 720; }
.event-chevron { color: #99a09b; font-size: 1.35rem; }
.capture-day-list { display: grid; gap: 14px; }
.capture-block { padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.capture-block > header { display: flex; align-items: center; gap: 10px; }
.capture-block > header time { color: var(--muted); font-size: .75rem; padding-top: 4px; }
.capture-time-link { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; text-decoration: none; }
.capture-working { color: var(--sage-dark); font-size: .72rem; }
.capture-block h3 { margin: 0; font: 600 1.2rem/1.25 Georgia, serif; }
.capture-block h3 a, .journal-card h3 a { text-decoration: none; }
.capture-block-narrative { margin: 14px 0 0; color: #4f5852; font: 500 1rem/1.58 Georgia, serif; }
.capture-block-note { margin: 12px 0 0; padding: 10px 13px; border-left: 3px solid var(--sage); border-radius: 0 10px 10px 0; background: var(--sage-pale); color: var(--sage-dark); font-size: .86rem; line-height: 1.5; }
.capture-counts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.capture-counts span { padding: 5px 9px; border-radius: 100px; background: #f1f1eb; color: var(--muted); font-size: .7rem; font-weight: 700; }
.capture-objects { margin-top: 14px; border-top: 1px solid #efeee9; padding-top: 11px; }
.capture-objects > summary { cursor: pointer; color: var(--sage-dark); font-size: .76rem; font-weight: 700; }
.capture-result-group { margin-top: 13px; }
.capture-result-group h3 { margin: 0 0 7px; font: 650 .78rem/1.25 system-ui, sans-serif; color: var(--sage-dark); letter-spacing: .055em; text-transform: uppercase; }
.capture-result-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.capture-result-group h3 a { color: inherit; text-decoration: none; }
.capture-result-group > ul a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); background: #f5f5ef; text-decoration: none; font-size: .86rem; line-height: 1.35; }
.capture-result-group > ul a:hover { background: var(--sage-pale); }
.object-link-list { margin-top: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.object-link-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; border-bottom: 1px solid #efeee9; text-decoration: none; }
.object-link-row:last-child { border-bottom: 0; }
.object-link-row:hover { background: #faf9f4; }
.object-link-row > span:first-child { display: grid; gap: 3px; min-width: 0; }
.object-link-row strong { font-size: .87rem; }
.object-link-row small { color: var(--muted); font-size: .72rem; line-height: 1.35; }
.semantic-object-groups { display: grid; gap: 24px; }
.semantic-object-group > h3 { margin: 0; color: var(--sage-dark); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.episode-display-list { display: grid; gap: 12px; }
.episode-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.episode-card > header { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 14px; }
.episode-card h3 { margin: 0; font: 600 1.14rem/1.25 Georgia, serif; }
.episode-card header p { margin: 7px 0 0; color: #555d57; font-size: .84rem; line-height: 1.5; }
.episode-mark { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--sage-dark); background: var(--sage-pale); font-size: 1.15rem; }
.episode-card details { border-top: 1px solid #efeee9; }
.episode-card summary { padding: 11px 18px; cursor: pointer; color: var(--sage-dark); font-size: .76rem; font-weight: 720; }
.episode-children { border-top: 1px solid #efeee9; }
.standalone-object { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.compact-episode > header { padding-bottom: 13px; }
.journal-card { padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.journal-card > time { color: var(--muted); font-size: .72rem; }
.journal-card h3 { margin: 7px 0 10px; font: 600 1.3rem Georgia, serif; }
.journal-card > p { margin: 0; font: 500 1rem/1.6 Georgia, serif; color: #4f5852; }
.journal-card > aside { margin-top: 13px; padding: 10px 13px; border-left: 3px solid var(--sage); background: var(--sage-pale); color: var(--sage-dark); font-size: .85rem; }
.journal-read-link { display: inline-block; margin-top: 14px; color: var(--sage-dark); font-size: .78rem; font-weight: 700; text-decoration: none; }

.two-week-overview { margin-bottom: 0; padding: 9px 12px 10px; border-block: 1px solid rgba(95,104,98,.16); background: rgba(255,255,255,.28); }
.two-week-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 5px; }
.two-week-header .eyebrow { display: none; }
.two-week-header h2 { margin: 0; font: 600 .88rem/1.1 Georgia, serif; letter-spacing: -.015em; }
.streak-note { margin: 0; color: var(--sage-dark); font-size: .68rem; font-weight: 650; }
.calendar-weeks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.calendar-week h3 { margin: 0 0 2px; color: var(--muted); font-size: .55rem; text-transform: uppercase; letter-spacing: .08em; }
.calendar-days { display: grid; grid-template-columns: repeat(7,minmax(38px,1fr)); gap: 3px; }
.calendar-day { min-width: 0; min-height: 39px; padding: 1px; border: 1px solid transparent; border-radius: 9px; display: grid; grid-template-rows: 8px 14px 11px; justify-items: center; align-items: center; color: var(--ink); background: transparent; cursor: pointer; }
.calendar-day:hover { background: var(--sage-pale); }
.calendar-day:focus-visible { outline: 3px solid rgba(102,124,107,.35); outline-offset: 2px; }
.calendar-day.weekend { background: rgba(232,238,231,.45); }
.calendar-day.today { border-color: #a7b4a9; }
.calendar-day.selected { color: white; background: var(--sage-dark); border-color: var(--sage-dark); }
.calendar-weekday { color: var(--muted); font-size: .49rem; font-weight: 750; text-transform: uppercase; }
.calendar-day.selected .calendar-weekday { color: rgba(255,255,255,.74); }
.calendar-date { font: 600 .8rem/1 Georgia, serif; font-variant-numeric: tabular-nums; }
.calendar-markers { min-height: 13px; display: flex; align-items: center; justify-content: center; gap: 1px; }
.calendar-markers svg { width: 10px; height: 10px; }
.activity-marker { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.task-marker, .plan-marker { display: inline-flex; align-items: center; gap: 1px; color: var(--sage-dark); }
.task-marker svg { fill: currentColor; }
.plan-marker svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
.calendar-day.selected .task-marker, .calendar-day.selected .plan-marker { color: white; }
.calendar-markers small { font-size: .52rem; font-weight: 800; }
.urgency-marker { width: 13px; height: 13px; display: inline-grid; place-items: center; border-radius: 50%; color: #6f3d2f; background: #f4c9b7; font-size: .63rem; line-height: 1; font-weight: 900; }
.calendar-details { margin-top: 18px; }
.calendar-day-detail { padding: 16px; border-radius: 16px; background: var(--sage-pale); }
.calendar-day-detail[hidden] { display: none; }
.calendar-day-detail > header { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-bottom: 11px; border-bottom: 1px solid rgba(67,89,75,.16); }
.calendar-day-detail > header div { display: grid; gap: 2px; }
.calendar-day-detail > header strong { font: 600 1.2rem Georgia, serif; }
.calendar-day-detail > header span, .calendar-day-detail > header small { color: var(--muted); font-size: .7rem; }
.calendar-detail-group { margin-top: 14px; }
.calendar-detail-group h4 { margin: 0 0 5px; color: var(--sage-dark); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.calendar-detail-group.urgent h4 { color: #7b4939; }
.calendar-entry { min-height: 43px; padding: 7px 3px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(67,89,75,.11); text-decoration: none; }
.calendar-entry:last-child { border-bottom: 0; }
.calendar-entry > span:first-child { display: grid; gap: 2px; }
.calendar-entry strong { font-size: .83rem; }
.calendar-entry small { color: var(--muted); font-size: .68rem; }
.calendar-day-empty { margin: 14px 0 0; color: var(--muted); font-size: .8rem; }
.calendar-counters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.calendar-counters details { min-width: 170px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); font-size: .74rem; }
.calendar-counters summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.calendar-counters a { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; text-decoration: none; }
.personal-annotation { max-width: 780px; margin: 22px auto 14px; padding: 13px 16px; border-left: 3px solid var(--sage); border-radius: 4px 13px 13px 4px; background: var(--sage-pale); color: var(--sage-dark); font: 500 .96rem/1.5 Georgia, serif; }
.personal-annotation.inline { margin: 13px 0; }
.pending-actions { max-width: 780px; margin: 18px auto; padding: 16px; border: 1px solid #d8cbb8; border-radius: 16px; background: #f5efe4; }
.pending-actions h2 { margin: 0 0 10px; font: 600 1.15rem Georgia, serif; }
.pending-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(104,88,61,.14); }
.pending-action p { margin: 0 0 3px; font-size: .86rem; }
.pending-action a { color: var(--muted); font-size: .76rem; }
.pending-action-buttons { display: flex; gap: 6px; flex: none; }
.pending-action button { padding: 7px 12px; border: 1px solid var(--sage-dark); border-radius: 9px; background: var(--sage-dark); color: white; cursor: pointer; }
.pending-action button.quiet { background: transparent; color: var(--sage-dark); }
.memory-components { margin-top: 16px; padding: 13px 15px; border-radius: 12px; background: var(--sage-pale); }
.memory-components h4 { margin: 0 0 7px; color: var(--sage-dark); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.memory-components ul { margin: 0; padding-left: 18px; line-height: 1.55; font-size: .84rem; }

.project-grid, .idea-grid, .idea-plan-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.project-card { display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; }
.project-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--sage-pale); color: var(--sage-dark); }
.project-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.project-card h3 { margin: 0; font: 600 1.1rem Georgia, serif; }
.project-card p { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.project-card .arrow { margin-left: auto; color: var(--muted); }
.task-list { display: grid; gap: 8px; }
.task-row { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.task-row input { position: absolute; opacity: 0; }
.checkmark { flex: none; width: 21px; height: 21px; border: 1.5px solid #9aa39d; border-radius: 7px; position: relative; }
.task-row input:checked + .checkmark { background: var(--sage); border-color: var(--sage); }
.task-row input:checked + .checkmark::after { content: ''; position: absolute; width: 8px; height: 4px; left: 5px; top: 5px; border: solid white; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.task-copy { display: grid; gap: 4px; line-height: 1.35; }
.task-copy strong { font-size: .92rem; font-weight: 620; }
.task-copy small { color: var(--muted); }
.task-row.completed .task-copy strong { text-decoration: line-through; color: var(--muted); }
.idea-card { min-height: 160px; display: flex; flex-direction: column; background: #f0eadf; padding: 20px; border-radius: 17px; }
.idea-card > span { color: #a47c3e; }
.idea-card p { line-height: 1.5; margin: 14px 0; }
.idea-card small { color: var(--muted); margin-top: auto; }
.plan-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.plan-card { display: block; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); text-decoration: none; }
.plan-card-head { display: flex; gap: 12px; align-items: center; }
.plan-card-head > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--sage-dark); background: var(--sage-pale); font-size: 1.35rem; }
.plan-card h3 { margin: 0; font: 600 1.12rem Georgia, serif; }
.plan-card small { color: var(--muted); }
.plan-card ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.plan-step-list { display: grid; gap: 25px; }
.plan-day h3 { margin: 0 0 10px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.plan-step { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.plan-step:first-of-type { border-radius: 13px 13px 0 0; }
.plan-step:last-child { border-bottom: 0; border-radius: 0 0 13px 13px; }
.plan-step > span { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); }
.plan-step.muted { color: var(--muted); text-decoration: line-through; }

.back-link { color: var(--muted); font-size: .8rem; text-decoration: none; }
.topic-header { padding: 40px 0; max-width: 760px; }
.topic-header h1 { margin-bottom: 15px; }
.topic-header > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.capture-detail-header { padding: 38px 0 24px; max-width: 760px; }
.capture-detail-header h1 { font: 500 clamp(2rem, 6vw, 3.4rem)/1.08 Georgia, serif; letter-spacing: -.04em; margin: 0 0 12px; }
.capture-detail-header time { color: var(--muted); font-size: .8rem; }
.capture-detail-header > p:not(.eyebrow) { max-width: 680px; color: var(--muted); line-height: 1.55; }
.source-panel, .current-state-panel { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.source-collapsed { margin-top: 32px; }
.source-collapsed > summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.detail-narrative { max-width: 72ch; line-height: 1.7 !important; }
.detail-metadata { display: grid; gap: 10px; margin: 16px 0 0; }
.detail-metadata div { display: grid; grid-template-columns: minmax(7rem, 10rem) 1fr; gap: 16px; }
.detail-metadata dt { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.detail-metadata dd { margin: 0; line-height: 1.45; }
.positive-note { color: var(--sage-dark); font-weight: 600; }
.current-state-panel { background: linear-gradient(145deg, var(--surface), var(--sage-pale)); }
.state-summary { font: 500 1.25rem/1.45 Georgia, serif; max-width: 760px; }
.state-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 26px; }
.state-grid h3 { margin: 0 0 6px; font-size: .72rem; color: var(--sage-dark); text-transform: uppercase; letter-spacing: .07em; }
.state-grid ul, .project-day-sections ul { margin: 0; padding-left: 18px; line-height: 1.5; font-size: .85rem; }
.event-detail-list, .project-day-list { display: grid; gap: 12px; }
.event-detail, .project-day { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.event-detail.quiet-event { opacity: .72; border-style: dashed; }
.event-detail h3 { margin: 0; font: 600 1.15rem Georgia, serif; }
.event-detail > p { line-height: 1.55; }
.event-detail blockquote { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--line); color: var(--muted); font-size: .82rem; }
.history-line { color: var(--muted); font-size: .75rem; }
.project-day > header { display: flex; justify-content: space-between; color: var(--muted); font-size: .76rem; }
.project-day > p { font: 500 1.05rem/1.45 Georgia, serif; }
.project-day-sections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 22px; margin-top: 15px; }
.project-day-sections strong { display: block; margin-bottom: 5px; font-size: .72rem; color: var(--sage-dark); }
.source-count { display: block; margin-top: 15px; color: var(--muted); }
.topic-block { margin-top: 32px; }
.topic-block > h2 { margin-bottom: 18px; }
.source-backlink { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 34px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); font-size: .8rem; }
.source-backlink a { color: var(--sage-dark); font-weight: 700; text-decoration: none; }
.supporting-list { margin: 0; padding: 17px 20px 17px 38px; border-radius: 14px; background: var(--sage-pale); line-height: 1.65; }
.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ''; position: absolute; left: 72px; top: 5px; bottom: 10px; width: 1px; background: var(--line); }
.timeline-entry { display: grid; grid-template-columns: 60px 1fr; gap: 26px; align-items: start; }
.timeline-entry > time { color: var(--muted); font-size: .7rem; padding-top: 19px; text-align: right; }
.timeline-entry > div { position: relative; }
.timeline-entry > div::before { content: ''; position: absolute; left: -31px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px var(--paper); }

@media (max-width: 650px) {
    .topbar { height: 55px; padding: 0 17px; }
    .navigation-band { padding: 6px 12px 8px; }
    .global-nav { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; overflow: visible; }
    .global-nav a { min-height: 40px; padding: 7px 5px; font-size: .76rem; text-align: center; }
    .text-button { display: none; }
    .shell { width: min(100% - 22px, 780px); padding-top: 28px; }
    .capture-panel h1 { font-size: 2.25rem; }
    #capture-form { border-radius: 18px; }
    #capture-text { min-height: 158px; max-height: 58vh; }
    .capture-panel-compact #capture-text { min-height: 112px; }
    .content-section { margin-top: 42px; }
    .dashboard-greeting h1 { font-size: 2rem; }
    .two-week-overview { margin-inline: -2px; padding: 9px 8px 10px; }
    .two-week-header { align-items: center; margin-bottom: 6px; }
    .two-week-header h2 { font-size: .9rem; }
    .streak-note { max-width: 105px; text-align: right; }
    .calendar-weeks { grid-template-columns: 1fr; gap: 7px; }
    .calendar-days { gap: 3px; }
    .calendar-day { min-height: 39px; border-radius: 9px; }
    .calendar-day-detail { padding: 13px; }
    .calendar-day-detail > header { align-items: start; }
    .pending-action { align-items: flex-start; }
    .project-grid, .idea-grid, .idea-plan-grid, .plan-grid { grid-template-columns: 1fr; }
    .event-row { grid-template-columns: 42px minmax(0,1fr) 15px; gap: 8px; }
    .event-badge { display: none; }
    .state-grid, .project-day-sections { grid-template-columns: 1fr; }
    .detail-metadata div { grid-template-columns: 1fr; gap: 3px; }
    .timeline::before { left: 7px; }
    .timeline-entry { grid-template-columns: 1fr; gap: 7px; padding-left: 27px; }
    .timeline-entry > time { text-align: left; padding: 0; }
    .timeline-entry > div::before { left: -24px; top: 20px; }
    .capture-block { padding: 16px; }
    .capture-block > header { gap: 8px; }
    .source-backlink { align-items: flex-start; flex-direction: column; gap: 8px; }
}
.noscript-note {
    margin: .65rem 0 0;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.45;
}

.memory-settings-panel { max-width: 760px; margin-inline: auto; }
.memory-settings-form { display: grid; gap: 18px; }
.memory-settings-form label { display: grid; gap: 7px; color: var(--ink); font-weight: 650; }
.memory-settings-form input,
.memory-settings-form select {
    width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
    background: rgba(255,255,255,.78); color: var(--ink); font: inherit;
}
.memory-settings-form .save-button { width: auto; height: auto; justify-self: start; min-width: 150px; padding: 12px 17px; border-radius: 13px; }

.memory-notifications {
    max-width: 780px; margin: 0 auto 18px; padding: 17px 19px;
    border: 1px solid #d8cbb8; border-radius: 16px; background: #f5efe4;
}
.memory-notifications h2 { margin: 2px 0 9px; font: 600 1.12rem Georgia, serif; }
.memory-notification { display: flex; align-items: center; gap: 11px; padding-top: 9px; border-top: 1px solid rgba(104,88,61,.14); }
.memory-notification p { margin: 0; line-height: 1.45; }
