/* Shared control sizes and spacing. Cards and navigation remain distinct surfaces. */
:root{--control-height:48px;--control-gap:12px}
button{min-height:var(--control-height);max-width:100%;padding:11px 18px;border-radius:999px;font-size:14px;line-height:1.4;vertical-align:middle;white-space:normal;overflow-wrap:break-word}
button.subtle{min-height:var(--control-height);padding:11px 12px}
input,select{min-height:var(--control-height)}
button:disabled:hover{text-decoration:none}
.toolbar,.actions,.quick-actions,.finance-filter,.meeting-tabs,.prep-mode{gap:var(--control-gap)}
.toolbar,.actions,.finance-filter,.prep-mode{flex-wrap:wrap}
.toolbar{align-items:center}
.toolbar label{min-width:0}
.desktop-nav{gap:8px;align-items:center;padding:4px 0 16px}
.desktop-nav button{min-height:44px;border:1px solid transparent;border-radius:999px;padding:10px 14px;line-height:1.4;font-size:13px;text-align:center}
.desktop-nav button[aria-current=page]{border-color:var(--ink);box-shadow:none}
.app-header #sign-out{min-width:80px;min-height:44px;padding:10px 14px;border:1px solid var(--line);text-decoration:none}
.quick-grid{align-items:stretch}
.quick-grid>.panel{margin:0;display:flex;flex-direction:column;min-width:0}
.quick-grid>.panel>.status{align-self:flex-start;margin:4px 0 10px}
.card-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:auto;padding-top:16px;align-items:center}
.card-actions button{margin:0;min-height:48px;flex:1 1 115px}
.card-actions .history-button{display:inline-block;padding:11px 18px;text-decoration:none}
.status{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:4px 10px;border-radius:999px;font-size:12px;line-height:1.4;white-space:normal}
.history-track{flex-wrap:wrap;gap:10px}
.history-dot{flex:0 0 32px}
.theme{grid-template-columns:150px minmax(0,1fr) 115px 68px;gap:16px}
.theme>button,.expense>button{min-width:48px;padding-left:10px;padding-right:10px}
.expense{grid-template-columns:minmax(0,1fr) 170px 64px}
.record-bottom{flex-wrap:wrap}
.planner-row{grid-template-columns:140px 120px minmax(0,1fr) minmax(0,.7fr) 100px}
.planner-row>*,.members-title>*,.qol-trend-heading>*{min-width:0}
.planner-row p,.planner-row span,.panel p{overflow-wrap:anywhere}
.contribution>strong{align-items:center;flex-wrap:wrap}
.home-intro>button{margin:12px 12px 0 0}
.next-card>button{margin-top:14px}
.prep-actions{flex-wrap:wrap;gap:12px}
.prep-actions button{flex:1 1 140px}
.prep-print-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.prep-print-actions button{margin:0}
.prep-print-actions p{flex-basis:100%;margin:0}
.prep-suggestion button{margin:8px 8px 0 0}
.prep-steps button{min-height:48px;line-height:1.4;font-size:14px}
.prep-meta{align-items:flex-end}
.prep-meta label{margin:12px 0}
.prep-private{margin-bottom:0;min-height:48px;display:flex;align-items:center;justify-content:center}
.reflection-shell .section-hero{padding:24px;margin-bottom:16px}
.reflection-shell .section-hero h1{font-size:32px}
.reflection-shell .section-hero p:last-child{margin:0}
.guide-progress{margin:18px 0}
.guide-send{flex-wrap:wrap;gap:12px}
.guide-send .help{flex:1 1 150px;margin:0}
.guide-send button{margin-left:auto}
.guide-paper>button{min-height:48px;margin-top:12px}
.check{align-items:flex-start}
.check input{flex:0 0 20px;width:20px;height:20px;min-height:20px;margin:1px 0 0;padding:0}
.rating-options{gap:10px}
.rating-options label{margin:8px 0}
.rating-options span{min-width:44px;height:48px}
.dialog-head{align-items:center}
.dialog-head .close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;line-height:1;border-radius:50%}
.more-menu button{border-radius:16px;font-size:16px;line-height:1.4}
.sync-review>button{margin:12px 12px 0 0}
@media(max-width:1100px) and (min-width:761px){.planner-row{grid-template-columns:120px 100px minmax(0,1fr) 100px}.planner-row>span:nth-last-child(2){grid-column:3}.planner-row>button{grid-column:4;grid-row:1 / span 2}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .app-header{padding:18px 20px;gap:20px}.app-header img{width:145px;height:auto}.app-header>div{gap:8px;flex-shrink:0;max-width:140px}.app-header #sign-out{min-height:44px;padding:10px 14px}
 .workspace{padding-left:20px;padding-right:20px}
 .toolbar{gap:12px;align-items:stretch}.toolbar>button{flex:1 1 140px}.toolbar>label{flex:1 1 100%;max-width:100%}
 .toolbar label{justify-content:space-between;flex-wrap:wrap;gap:8px}
 .toolbar label input,.toolbar label select{max-width:100%;min-width:0}
 .page-head{flex-wrap:wrap;align-items:center;gap:16px}.page-head>div{flex:1 1 200px}.page-head>button{padding:11px 18px;font-size:14px;white-space:normal;min-height:48px;margin:0}
 .planner-row{grid-template-columns:1fr}.planner-row>button{width:100%}
 .theme{grid-template-columns:minmax(0,1fr) auto;gap:12px}.theme>button{grid-column:2;grid-row:1}.theme .theme-body{grid-column:1/-1;grid-row:2}.theme>.status{grid-column:1;grid-row:3;justify-self:start}
 .expense{grid-template-columns:minmax(0,1fr) auto}
 .home-intro>button{width:100%;margin:12px 0 0}.home-intro{margin-bottom:28px}
 .card-actions button{flex:1 1 110px}
 .finance-filter{display:flex;gap:10px}.finance-filter button{flex:1 1 80px}
 .members-title{flex-wrap:wrap;align-items:center;gap:12px}.members-title button{font-size:14px;padding:11px 18px;white-space:normal}
 .compact-date{max-width:none}.compact-date input{width:100%}
 .agenda-controls>button{flex:1 1 140px}.agenda-controls>label{display:block;width:100%;flex-basis:100%}.agenda-controls select{width:100%;margin-top:8px}
 .score-fields{gap:12px}.score-fields label{min-width:0}
 .prep-mode{display:grid;grid-template-columns:1fr 1fr;gap:10px}.prep-mode button{padding:11px 10px;font-size:13px}
 .prep-meta{gap:12px}.prep-meta label{min-width:0;flex:1 1 140px}.prep-meta input,.prep-meta select{width:100%;max-width:100%}
 .prep-private{min-height:36px;font-size:12px;padding:8px 12px}
 .reflection-shell .section-hero{padding:22px}.reflection-shell .section-hero h1{font-size:28px}
 .guide-layout{gap:20px}.guide-conversation,.guide-paper{padding:18px}
 .guide-compose>label{margin-top:12px}.guide-send .help{flex-basis:100%}.guide-send button{width:100%;margin:0}
 .mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;height:auto;min-height:76px;padding:8px 8px max(8px,env(safe-area-inset-bottom))}
 .mobile-nav button,.mobile-nav .round-nav{width:100%;min-width:0;height:56px;min-height:56px;margin:0;padding:8px 2px;border:0;border-radius:14px;font-size:12px;line-height:1.2}
 .mobile-nav .round-nav{font-size:22px}
 .mobile-nav button[aria-current=page]{box-shadow:none}
 .mobile-nav .round-nav[aria-current=page]{box-shadow:none}
 #main{padding-bottom:24px}.workspace{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
 .sticky-save{bottom:calc(72px + env(safe-area-inset-bottom,0px))}.sticky-save button{min-width:0;width:100%}
 .sheet-save{bottom:calc(72px + env(safe-area-inset-bottom,0px))}
 #toast{bottom:calc(88px + env(safe-area-inset-bottom,0px))}
 .history-track{gap:8px}
}
@media(max-width:360px){.app-header{gap:12px}.app-header img{width:130px}.app-header>div{max-width:125px}.guide-progress{flex-wrap:wrap}.guide-progress progress{min-width:100%}.rating-options{gap:8px}.rating-options span{min-width:0}}
@media print{.card-actions,.prep-mode{display:none!important}.reflection-shell .section-hero{padding:0}}
.login-card .secondary{background:transparent;color:var(--paper);border-color:var(--paper)}

/* A small inset marker keeps selection clear without tracing the pill edge. */
.desktop-nav button{position:relative;padding:9px 16px 15px;transition:background-color .18s ease,color .18s ease}
.desktop-nav button::after,.mobile-nav button::after{content:"";position:absolute;left:50%;bottom:6px;width:18px;height:3px;border-radius:999px;background:var(--orange);transform:translateX(-50%);opacity:0;pointer-events:none;transition:opacity .18s ease}
.desktop-nav button[aria-current=page]::after,.mobile-nav button[aria-current=page]::after{opacity:1}
.desktop-nav button:hover:not([aria-current=page]){background:#eee9df}
@media(max-width:760px){.mobile-nav button,.mobile-nav .round-nav{position:relative;padding-bottom:14px;border-top:0}.mobile-nav button[aria-current=page]{background:#ffffff12;color:var(--paper);box-shadow:none}.mobile-nav .round-nav[aria-current=page]{background:var(--orange);color:var(--ink);box-shadow:none}.mobile-nav .round-nav::after{background:var(--ink)}.mobile-nav button::after{bottom:5px;width:16px;height:3px}}
.desktop-nav button:hover,.mobile-nav button:hover{text-decoration:none}

.meeting-journey{margin:0 0 52px;padding-top:24px;border-top:1px solid var(--line)}.journey-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.journey-heading h2{font-size:28px;letter-spacing:-.03em;margin:0}.journey-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.journey-steps button{text-align:left;display:flex;flex-direction:column;gap:12px;border:1px solid var(--line);border-radius:20px;padding:24px;background:transparent;color:var(--ink)}.journey-steps small{font-size:11px;letter-spacing:.12em;color:#625c54}.journey-steps strong{font-size:20px}.journey-steps span{font-size:14px;line-height:1.5;font-weight:400}.round-progress{display:flex;align-items:center;gap:20px;margin:24px 0}.round-progress progress{accent-color:var(--orange);height:8px;width:150px;max-width:40%}.first-use h3{margin-top:24px}.first-use p{line-height:1.6}.section-hero{background:var(--ink)}.next-meeting,.panel,.home-tool,.guide-conversation,.guide-paper{box-shadow:none}@media(max-width:760px){.journey-steps{grid-template-columns:1fr;gap:12px}.journey-steps button{padding:20px;gap:8px}.journey-heading{align-items:flex-start}.journey-heading h2{font-size:24px}.journey-heading button{flex-shrink:0}.round-progress{font-size:14px;gap:12px}}

.member-choice .member-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#eee9df;font-size:14px;font-weight:600;letter-spacing:.02em}.member-choice.is-captured{border-color:#d24b1b;background:#fff7ef}.member-choice.is-captured .member-avatar{background:var(--orange);color:var(--ink);font-size:22px}.quick-grid .member-choice{gap:12px}.member-choice:hover{border-color:#d24b1b;text-decoration:none}.journey-steps button:hover{background:#eee9df;text-decoration:none}.home-tool:hover,.resource-button:hover{color:var(--ink)}dialog[open]{animation:dialog-arrive .16s ease-out}@keyframes dialog-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){dialog[open]{animation:none}.desktop-nav button::after,.mobile-nav button::after{transition:none}}
