/* Carbon & Amber — approved direction 08. Shared theme and component hierarchy. */
:root{color-scheme:dark;--paper:#25282b;--surface:#33383d;--ink:#f6f5f0;--muted:#c3c7ca;--line:#565e64;--accent:#efbd6e;--on-accent:#30230e;--soft:#41474d;--green:var(--accent);--focus-ring:var(--accent);--error-surface:#4c2e31;--error-ink:#ffced0}
body{background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
h1,h2,h3,.brand,.welcome h2,.summary strong,.empty strong,.proposal-title,.idea-copy h2,.question-card h2,.discovery-aside>h2,.question-aside h2,.dialoghead h2{font-family:inherit;font-weight:650;letter-spacing:-.025em}
h1{font-size:32px;line-height:1.15;margin-bottom:0}h2{font-size:20px}h3{font-size:18px}.brand{font-size:28px}.brand small{font-weight:400;letter-spacing:0;color:var(--muted)}
button,input,select,textarea{background:var(--surface);border-color:var(--line);color:var(--ink);border-radius:12px}button{min-height:44px;transition:background-color 140ms,opacity 140ms}button:active:not(:disabled){transform:none;opacity:.75}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}select option{background:var(--surface);color:var(--ink)}input,textarea{caret-color:var(--accent)}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}
.primary,.primary:hover,.chips .active,.chips .active:hover{background:var(--accent);color:var(--on-accent);border-color:transparent;font-weight:650}
a,.text-button{color:var(--accent)}.text-button,.text-button:hover{background:transparent}.danger,.error{color:var(--error-ink)}
.shell{grid-template-columns:220px minmax(0,1fr)}.main{max-width:1320px;padding:24px 4vw 48px}.sidebar{background:var(--paper);border-color:var(--line);padding:30px 20px}.sidebar select{background:var(--surface)}.sidebar-bottom{color:var(--muted)}
.nav{gap:6px}.nav button{color:var(--muted);border-radius:12px}.nav button.active{background:var(--soft);color:var(--ink)}.nav button.active .ui-icon{color:var(--accent)}
.topbar{border:0;margin-bottom:10px;padding-bottom:6px}.topbar>.muted{visibility:hidden}.topbar .account{background:var(--soft);padding:6px 10px;border-radius:22px}.avatar{background:var(--soft);color:var(--ink)}.account .avatar{background:transparent}
.heading{align-items:center;margin:0 0 22px;gap:16px}.heading>div{min-width:0}.heading p{margin:8px 0 0;font-size:14px;line-height:1.5;max-width:48ch}.heading>.primary{flex-shrink:0}.sectionline{margin:24px 0 16px}.plan-tools{flex-direction:row;flex-wrap:wrap;gap:8px;margin:0 0 24px}.plan-tools>span{margin-left:auto;font-size:12px}.plan-tools button{background:transparent}.grid{gap:16px}.card,.welcome,.summary,.login{background:var(--surface);border:1px solid var(--line);border-radius:20px}.card{padding:20px}.welcome:after{display:none}.summary span,.card .notes,.ratings,.meta{color:var(--muted)}.card h3{font-size:20px;margin-bottom:10px;overflow-wrap:anywhere}.card .tag,.card.event .tag,.card.shopping .tag{background:transparent;color:var(--muted);padding:0;margin-bottom:12px;text-transform:none;letter-spacing:0;font-size:12px}.card.event .tag{color:var(--accent)}.cardfoot{border:0;padding-top:8px;margin-top:8px;align-items:center}.cardfoot>.meta{margin:0;overflow-wrap:anywhere}.cardfoot button{border-color:transparent;background:var(--soft);flex-shrink:0;font-size:13px}.card .notes{line-height:1.6}.ratings{font-size:12px}
.leisure-tabs{background:var(--surface);margin-bottom:16px}.leisure-tabs button{color:var(--muted)}.leisure-tabs button.active{background:var(--soft);color:var(--ink)}.idea-filters select{color:var(--ink)}.deck-controls{gap:10px}.deck-controls button{background:var(--surface);border-color:var(--line)}
.idea-card,.idea-card.city,.idea-card.home{background:var(--surface);border:1px solid var(--line);border-radius:20px;position:relative;isolation:isolate;overflow:hidden;min-height:360px}.idea-card-top,.idea-card-top>span:last-child,.home .idea-card-top{color:var(--muted);position:relative;z-index:1}.idea-copy,.idea-cta{position:relative;z-index:1}.idea-copy h2{font-size:32px;line-height:1.2;max-width:24ch}.idea-copy>p{color:var(--ink);font-size:15px;line-height:1.6}.idea-meta{color:var(--muted)}.idea-copy details,.home .idea-copy details{border-color:var(--line);font-size:14px}.idea-copy summary{min-height:44px}.idea-copy .checkhint{color:var(--muted)}
.idea-card.photo-card{min-height:460px;background:#222831}.idea-photo{position:absolute;inset:-12px 0;background:url('/static/waterfront.png') center/cover;z-index:-2;will-change:transform}.photo-card:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(13,18,25,.35),rgba(13,18,25,.05) 25%,rgba(13,18,25,.88) 63%,#151b23)}.photo-card .idea-copy{margin-top:auto;padding-top:115px}.photo-card .idea-copy>p{display:none}.photo-card .idea-card-top,.photo-card .idea-copy details p{color:var(--ink)}.art-note{font-size:11px;color:var(--muted);margin:10px 0 0}.question-link{display:flex;align-items:center;gap:14px;width:100%;padding:18px;margin-top:16px;text-align:left;background:var(--surface);border-color:var(--line);border-radius:16px}.question-link>span{flex:1}.question-link strong{display:block;font-size:17px}.question-link small{display:block;color:var(--muted);margin-top:4px}.discovery-aside{padding-top:56px}.proposal-status{background:var(--soft);color:var(--ink)}.proposal-note,.proposal-people{color:var(--muted)}
/* Dates are quiet; amber marks today only. Event buttons have their own hierarchy. */
.calendar{border:0;gap:4px;margin-bottom:28px}.calendar .day{background:transparent;border:0;color:var(--ink);min-height:104px;padding:4px}.calendar .day.off{opacity:1;color:var(--muted)}.calendar .day.today{background:transparent}.calendar .day button.day-number{display:grid;place-items:center;width:44px;max-width:100%;height:44px;min-height:44px;margin:0 auto 6px;padding:0;text-align:center;border:0;background:transparent;border-radius:50%;font-size:15px;color:inherit}.calendar .day.today button.day-number{background:var(--accent);color:var(--on-accent);font-weight:700}.calendar .day button.calendar-event{background:var(--surface);color:var(--ink);font-size:12px;line-height:1.35;padding:8px 6px;border:0;border-radius:8px;min-height:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}.calendar-event-dot{display:none}.weekday{color:var(--muted);font-size:12px}
.question-card{background:var(--surface);border-color:var(--line);color:var(--ink);border-radius:20px}.question-topic,.question-card p{color:var(--muted)}.question-slots button{background:var(--surface);color:var(--ink);border-color:var(--line)}.question-slots button.active{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.question-slots button:disabled,.reveal-button:disabled{color:var(--muted);background:var(--paper);border-color:var(--line)}.empty{color:var(--muted);border-color:var(--line);padding:32px 24px}.empty strong{color:var(--ink);font-size:22px}.count{background:var(--accent);color:var(--on-accent)}
dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:none}dialog::backdrop{background:rgba(9,13,18,.72);backdrop-filter:blur(6px)}.dialoghead{margin-bottom:24px;align-items:center}.dialoghead h2{font-size:24px;line-height:1.2}.close{background:var(--soft);color:var(--ink);min-width:44px;min-height:44px;border:0}.voting .selected{background:var(--accent);color:var(--on-accent)}.plan-details{border-top:1px solid var(--line);padding-top:4px}.plan-details>summary{cursor:pointer;min-height:48px;padding:12px 0;color:var(--muted)}.plan-details>.stack{padding:8px 0 12px}.stack{gap:16px}.formcols{gap:16px}#toast,.skip-link{background:var(--accent);color:var(--on-accent)}::selection{background:var(--accent);color:var(--on-accent)}html{scrollbar-color:var(--muted) var(--paper)}.login h1{font-size:30px}.login .brand{margin-bottom:24px}.filter-disclosure{margin:0 0 14px;color:var(--muted);font-size:14px}.filter-disclosure>summary{cursor:pointer;min-height:44px;padding:10px 0}.filter-disclosure .idea-filters{margin:8px 0}
.proposal-vote-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 6px}.proposal-vote-buttons button{min-height:44px;touch-action:manipulation;user-select:none;-webkit-user-select:none}.proposal-vote-buttons button[aria-pressed="true"]{outline:2px solid var(--accent);outline-offset:2px;font-weight:700}.proposal-vote-names{padding-left:20px;overflow-wrap:anywhere}
@media(hover:hover) and (pointer:fine){button:hover{background:var(--soft);color:var(--ink);border-color:var(--muted)}.primary:hover,.chips .active:hover{background:#f7cd8c;color:var(--on-accent)}.text-button:hover{background:transparent;color:var(--accent)}.leisure-tabs button:hover:not(.active),.deck-controls button:hover{background:var(--soft)}.calendar .day button.day-number:hover{background:var(--soft);color:var(--ink)}}
@media(max-width:1050px){.discovery-aside{padding-top:0}}
@media(max-width:760px){.shell{display:block}.sidebar-bottom{display:none}.sidebar{background:var(--paper)}.main{padding:16px max(18px,env(safe-area-inset-right)) calc(110px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}.topbar>.muted{visibility:visible}.topbar .account{width:44px;height:44px;padding:0;justify-content:center;background:var(--soft);border:0;border-radius:50%}.account .avatar{width:32px;height:32px}.sidebar .nav{position:fixed;display:flex;flex-direction:row;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));gap:2px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:18px;z-index:10}.nav button{display:flex;flex-direction:column;flex:1;min-width:0;min-height:52px;gap:4px;padding:6px 2px;background:transparent}.nav button span{font-size:10px;line-height:1.2;width:auto}.nav .ui-icon{width:21px;height:21px}.nav button.active{background:var(--soft)}h1,.leisure-heading h1{font-size:28px;line-height:1.18;max-width:none}.heading{gap:12px;margin-bottom:20px}.heading>.primary{font-size:13px;padding:10px 12px}.heading p,.leisure-heading p{font-size:13px;margin-top:8px}.plan-tools>span{flex-basis:100%;margin:6px 0 0}.grid{grid-template-columns:1fr;gap:14px}.card{padding:18px}.card h3{font-size:20px}.formcols{grid-template-columns:1fr}.leisure-heading{margin-bottom:16px}.idea-copy h2{font-size:28px}.idea-card.photo-card{min-height:410px}.photo-card .idea-copy{padding-top:100px}.question-card h2{font-size:26px}.calendar{gap:2px}.calendar .day{padding:0;min-height:70px}.calendar .day button.calendar-event{display:grid;place-items:center;font-size:11px;padding:0;min-height:44px;height:44px;background:transparent}.calendar-event-title{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.calendar-event-dot{display:block;width:7px;height:7px;border-radius:50%;background:var(--accent)}.calendar .day button.day-number{width:100%;height:44px;margin-bottom:4px}.weekday{font-size:11px}.sectionline h2{font-size:18px}.sectionline>button{min-width:44px;padding:8px}.login{margin:5dvh 18px;padding:26px}.login h1{font-size:28px}dialog{width:100%;max-width:none;max-height:88dvh;margin:auto 0 0;border-radius:24px 24px 0 0;padding:24px 20px max(24px,env(safe-area-inset-bottom))}input,select,textarea{font-size:16px}#toast{bottom:calc(85px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-transparency:reduce){dialog::backdrop{backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){.idea-photo{transform:none!important;will-change:auto}}

/* R2 leisure: one content column, supporting help on demand. */
.discovery-layout,.question-layout{grid-template-columns:minmax(0,680px);justify-content:center;gap:20px}.question-layout{margin-top:16px}.leisure-heading{margin-bottom:16px}.leisure-tabs{gap:24px;background:transparent}.idea-card,.idea-card.photo-card{min-height:0}.idea-copy h2{font-size:28px;line-height:1.2}.photo-card .idea-copy{padding-top:72px}.question-card{min-height:260px;padding:28px}.question-card h2{font-size:26px;line-height:1.3}.question-mark{display:none}.question-card p{margin:0}.question-help{font-size:14px;color:var(--muted);border-top:1px solid var(--line)}.question-help summary,.detail-disclosure summary{min-height:44px;padding:12px 0;cursor:pointer}.question-help p{margin-top:12px}.detail-disclosure{padding-top:4px}.detail-disclosure>form,.detail-disclosure>.voting{margin-top:12px}.detail-disclosure summary:focus-visible,.question-help summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.detail-toolbar{justify-content:space-between;margin-bottom:16px}.question-topic{margin-bottom:16px}.question-reset{line-height:1.5}
@media(max-width:600px){.leisure-heading{align-items:center}.leisure-heading h1{font-size:28px}.leisure-heading button{font-size:14px;white-space:nowrap}.question-card{min-height:240px;padding:24px 20px}.question-card h2{font-size:24px}.idea-copy h2{font-size:26px}.photo-card .idea-copy{padding-top:60px}.question-link{padding:14px;margin-top:16px}.discovery-layout{gap:16px}}

.history-page{max-width:680px;margin:auto}.history-page .heading{margin:12px 0 20px;align-items:center}.history-page h1{font-size:28px}.history-duration{font-size:22px;line-height:1.4;color:var(--accent);margin:20px 0 28px}.history-intro{margin:20px 0}.memory-entry{padding:22px 0;border-bottom:1px solid var(--line)}.memory-date{color:var(--muted);font-size:13px;margin-bottom:8px}.memory-entry h2{font-size:20px;margin-bottom:12px}.memory-entry .notes{white-space:pre-wrap;overflow-wrap:anywhere}.memory-entry summary,.history-archive>summary{cursor:pointer;min-height:44px;padding:12px 0;color:var(--muted)}.memory-entry .row{margin-bottom:12px}.history-page>.checkhint{margin-top:24px}.history-archive{margin-top:20px}.history-page summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Private memories: photos remain secondary to dates and context. */
.memory-gallery{display:flex;gap:12px;overflow-x:auto;padding:4px 0 12px;scroll-snap-type:x proximity}
.memory-photo{flex:0 0 180px;padding:0;border:0;overflow:hidden;border-radius:12px;scroll-snap-align:start}
.memory-photo img{width:180px;height:135px;object-fit:cover;display:block}
.memory-photo-manager{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;margin-bottom:24px}
.memory-photo-manager img{width:100%;height:150px;object-fit:cover;border-radius:12px}
.memory-full-photo{display:block;max-width:100%;max-height:65dvh;object-fit:contain;margin:auto}
.memory-recall{padding:20px 0;border-block:1px solid var(--line);margin:24px 0}
.memory-recall h2{font-size:20px;margin:0 0 12px}
.memory-recall-link{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:transparent;border:0;width:100%;padding:12px 0;gap:6px;white-space:normal;overflow-wrap:anywhere}
.memory-recall-link span{color:var(--muted);font-size:14px}
.memory-entry{scroll-margin-top:24px}

.memory-social{margin:16px 0;gap:12px}
