/* One visual system for the private planner. Public invitation colors are independent. */
:root {
  color-scheme:light;
  --bg:#f7f8f4; --bg-2:#eef2ed; --sidebar:#fff; --panel:#fff; --panel-2:#f5f7f3;
  --ink:#243c32; --muted:#64736b; --subtle:#849188; --soft:#e8eee8; --line:#e0e7df;
  --accent:#32634e; --accent-2:#6e8d70; --accent-soft:#eaf2eb; --green:#32634e; --red:#b04949;
  --input-bg:#fff; --table-head:#f6f8f4; --on-accent:#fff; --hero:#eaf0e3; --hero-ink:#2f4938;
  --shadow:0 3px 14px #203c2b04; --shadow-soft:none; --radius:14px;
  --font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
:root[data-appearance="dark"] {
  color-scheme:dark;
  --bg:#14211b; --bg-2:#1e3026; --sidebar:#17251f; --panel:#1c2d24; --panel-2:#22362b;
  --ink:#edf3ec; --muted:#b0c1b4; --subtle:#91a396; --soft:#30463a; --line:#33483b;
  --accent:#a7caaa; --accent-2:#b9cdaa; --accent-soft:#2c4433; --green:#a7caaa; --red:#ffaaa4;
  --input-bg:#1a2b22; --table-head:#203429; --on-accent:#172c1c; --hero:#293e2c; --hero-ink:#e2efd6;
  --shadow:none;
}
* { box-sizing:border-box; }
[hidden],.hidden { display:none!important; }
html { scroll-behavior:smooth; }
html,body { margin:0; min-height:100%; font-family:var(--font); color:var(--ink); background:var(--bg); font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased; }
button,input,select,textarea { font:inherit; }
button,a,input,textarea,select,summary { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a { color:var(--accent); text-underline-offset:3px; }
button:disabled { opacity:.55; cursor:not-allowed; }
:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
h1,h2,h3,h4,p { margin-top:0; }
h2,h3,h4 { font-weight:650; letter-spacing:-.025em; }
.ui-icon { width:20px; height:20px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.app { display:grid; grid-template-columns:244px minmax(0,1fr); min-height:100dvh; }
.sidebar { position:sticky; top:0; height:100dvh; display:flex; flex-direction:column; padding:28px 16px 16px; background:var(--sidebar); border-right:1px solid var(--line); z-index:30; }
.brand { display:flex; align-items:center; gap:11px; padding:0 10px 24px; }
.brand-mark { width:38px; height:42px; display:grid; place-items:center; flex-shrink:0; color:var(--on-accent); background:var(--accent); border-radius:12px 12px 12px 3px; font-family:Georgia,serif; font-size:28px; line-height:1; }
.brand-wordmark { display:grid; font-size:15px; letter-spacing:-.4px; font-weight:700; line-height:1.2; }
.brand-wordmark small { font-size:10px; font-weight:500; text-transform:uppercase; letter-spacing:1.6px; color:var(--muted); margin-bottom:3px; }
.sidebar-scroll { overflow:auto; min-height:0; flex:1; scrollbar-width:thin; }
.nav { display:grid; gap:21px; padding-bottom:22px; }
.nav-group { display:grid; gap:3px; }
.nav-group-label { margin:0 12px 6px; color:var(--subtle); font-size:10px; text-transform:uppercase; letter-spacing:1.4px; font-weight:650; }
.nav button { display:flex; align-items:center; gap:11px; width:100%; min-height:38px; padding:9px 12px; color:var(--muted); font-size:12px; font-weight:500; border:0; border-radius:7px; background:transparent; text-align:left; }
.nav button .ui-icon { width:17px; height:17px; opacity:.85; }
.nav button:hover { background:var(--panel-2); color:var(--ink); }
.nav button.active { color:var(--accent); background:var(--accent-soft); font-weight:650; }
.nav button.active::after { content:""; width:5px; height:5px; border-radius:50%; margin-left:auto; background:var(--accent); }
.sidebar-tools { border-top:1px solid var(--line); padding:15px 10px 0; }
.sidebar-tools summary { display:flex; align-items:center; gap:9px; list-style:none; cursor:pointer; font-size:12px; font-weight:550; }
.sidebar-tools summary::-webkit-details-marker { display:none; }
.sidebar-tools summary::after { content:"+"; margin-left:auto; color:var(--muted); }
.sidebar-tools[open] summary::after { content:"−"; }
.sidebar-tools .settings-grid { padding-top:14px; }
.sidebar-actions { display:grid; gap:7px; margin-top:12px; }
.sidebar-actions .btn { font-size:11px; min-height:34px; padding:7px 9px; }
.sidebar-footnote { font-size:10px; color:var(--subtle); margin:14px 0 0; }
.main { min-width:0; padding:0 clamp(24px,3.4vw,58px); }
.topbar { display:flex; align-items:center; gap:16px; justify-content:space-between; min-height:78px; border-bottom:1px solid var(--line); margin-bottom:34px; }
.breadcrumb { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:12px; }
.breadcrumb::before { content:"Workspace"; color:var(--subtle); }
.breadcrumb::after { content:none; }
.breadcrumb span { color:var(--ink); padding-left:12px; border-left:1px solid var(--line); }
.topbar-actions,.cloud-chip-row { display:flex; align-items:center; gap:14px; min-width:0; }
.meta { font-size:11px; color:var(--muted); display:flex; align-items:center; gap:7px; }
.meta::before { content:""; display:block; width:6px; height:6px; border-radius:50%; background:var(--accent-2); }
.meta.warn::before { background:var(--red); }
.meta.warn { color:var(--red); }
#syncStatus { display:none; }
#syncStatus.warn { display:block; font-size:11px; color:var(--red); }
#userBadge { font-size:11px; color:var(--muted); max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#signOutBtn { font-size:11px; min-height:32px; padding:6px 10px; }
#content { max-width:1400px; margin:0 auto; }
.page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:22px; margin-bottom:28px; }
.page-head h2 { font-size:30px; line-height:1.2; margin:0 0 9px; font-weight:650; letter-spacing:-1px; }
.page-head h2:focus { outline:none; }
.page-head p { color:var(--muted); max-width:650px; font-size:13px; margin:0; line-height:1.7; }
.page-head .toolbar { margin:0; flex-shrink:0; }
.page-eyebrow { display:block; text-transform:uppercase; letter-spacing:1.6px; font-size:10px; color:var(--subtle); font-weight:600; margin-bottom:8px; }
.btn { display:inline-flex; justify-content:center; align-items:center; gap:7px; min-height:38px; padding:9px 14px; border:1px solid var(--line); border-radius:7px; color:var(--ink); background:var(--panel); text-decoration:none; font-size:12px; font-weight:600; line-height:1.3; transition:background .15s,border-color .15s; }
.btn:hover { border-color:var(--accent-2); background:var(--panel-2); }
.btn.primary { background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.btn.primary:hover { filter:brightness(.94); }
.btn.ghost { background:transparent; }
.btn.danger { color:var(--red); }
.btn .ui-icon { width:16px; height:16px; }
.text-button { background:none; border:0; padding:0; color:var(--accent); font-size:12px; font-weight:600; display:inline-flex; gap:7px; align-items:center; }
.text-button .ui-icon { width:15px; height:15px; }
.toolbar,.guided-actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin:14px 0; }
.guided-actions { margin-bottom:0; }
.grid,.app-flow { display:grid; gap:20px; }
.grid.two,.feature-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.grid.four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.card,.feature-panel,.soft-panel,.app-accordion,.calendar-shell { border:1px solid var(--line); border-radius:var(--radius); background:var(--panel); box-shadow:var(--shadow); min-width:0; }
.card,.feature-panel,.soft-panel,.calendar-shell { padding:24px; }
.card h3,.feature-panel h3,.soft-panel h3 { font-size:15px; margin:0 0 14px; }
.card .hint,.note,.sub,.footer-note { color:var(--muted); font-size:12px; line-height:1.65; }
.note { white-space:pre-wrap; }
.hint { margin-bottom:14px; }
.section-kicker { display:block; text-transform:uppercase; color:var(--accent); font-size:10px; letter-spacing:1.4px; font-weight:650; margin:0 0 12px; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.panel-heading h3 { margin:0; }
.panel-heading p { font-size:12px; line-height:1.5; color:var(--muted); margin:6px 0 0; }
.panel-heading>.btn { flex-shrink:0; }
.panel-title { display:flex; align-items:center; gap:9px; }
.panel-title .ui-icon { color:var(--accent-2); width:18px; height:18px; }
.feature-panel.accent { background:var(--hero); border-color:transparent; }
.feature-panel .hero-title { font-size:36px; letter-spacing:-1.2px; line-height:1.15; font-weight:600; }
.hero-title .unit { display:block; font-size:14px; font-weight:500; letter-spacing:0; line-height:1.6; color:var(--muted); margin-top:10px; }
.hero-copy { color:var(--muted); font-size:13px; line-height:1.7; margin:14px 0; }
.hero-stat-row,.metric-river { display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }
.stat-pill,.metric-pill { display:grid; gap:5px; padding:14px 18px; border:1px solid var(--line); background:var(--panel); border-radius:10px; flex:1 1 100px; }
.stat-pill strong,.metric-pill strong { font-size:24px; font-weight:600; letter-spacing:-.6px; }
.stat-pill span,.metric-pill span { font-size:11px; color:var(--muted); }
.home-summary { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr); gap:20px; }
.journey-card { position:relative; display:flex; flex-direction:column; padding:30px 34px; min-height:270px; background:var(--hero); color:var(--hero-ink); border-radius:var(--radius); overflow:hidden; }
.journey-top { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:16px; }
.journey-top .section-kicker { margin:0; color:inherit; opacity:.8; }
.journey-badge { display:inline-flex; align-items:center; gap:5px; padding:5px 9px; border:1px solid color-mix(in srgb,var(--hero-ink) 16%,transparent); border-radius:5px; font-size:10px; }
.journey-body { display:grid; grid-template-columns:1fr auto; align-items:center; gap:22px; margin:auto 0 22px; }
.journey-card h3 { font-size:34px; font-weight:550; line-height:1.18; letter-spacing:-1px; margin:0 0 10px; max-width:470px; }
.journey-card p { font-size:12px; opacity:.85; margin:0; }
.journey-count { text-align:right; padding-left:22px; border-left:1px solid color-mix(in srgb,var(--hero-ink) 15%,transparent); }
.journey-count strong { display:block; font-size:48px; line-height:1; font-weight:450; letter-spacing:-2px; }
.journey-count span { display:block; font-size:11px; margin-top:8px; }
.journey-track { height:5px; border-radius:4px; background:color-mix(in srgb,var(--hero-ink) 10%,transparent); overflow:hidden; }
.journey-track span { display:block; height:100%; background:var(--accent); border-radius:4px; }
.journey-labels { display:flex; justify-content:space-between; font-size:10px; opacity:.75; margin-top:9px; }
.next-visit { display:flex; flex-direction:column; }
.next-visit .empty-soft { margin:auto 0; }
.next-visit .text-button { margin-top:auto; padding-top:20px; }
.visit-date { display:flex; align-items:center; gap:16px; margin:5px 0 18px; }
.date-tile { display:grid; place-items:center; width:58px; min-height:64px; border-radius:10px; background:var(--accent-soft); color:var(--accent); flex-shrink:0; padding:9px; }
.date-tile span { text-transform:uppercase; letter-spacing:1px; font-size:9px; }
.date-tile strong { font-weight:550; font-size:25px; line-height:1.2; }
.visit-date h4 { margin:0 0 5px; font-size:15px; }
.visit-date p { margin:0; color:var(--muted); font-size:12px; }
.overview-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.overview-stat { display:flex; gap:14px; align-items:center; background:var(--panel); border:1px solid var(--line); padding:20px; border-radius:11px; text-align:left; color:var(--ink); }
.overview-stat:hover { border-color:var(--accent-2); }
.stat-icon { display:grid; place-items:center; width:40px; height:40px; background:var(--panel-2); border-radius:10px; color:var(--accent-2); flex-shrink:0; }
.overview-stat strong { display:block; font-size:21px; font-weight:600; letter-spacing:-.6px; }
.overview-stat small { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.home-columns { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:20px; }
.planning-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.planning-shortcut { display:flex; align-items:center; gap:13px; text-align:left; padding:20px; border:1px solid var(--line); border-radius:11px; background:var(--panel); color:var(--ink); }
.planning-shortcut:hover { border-color:var(--accent-2); background:var(--panel-2); }
.planning-shortcut>.ui-icon { color:var(--accent); }
.planning-shortcut span { flex:1; }
.planning-shortcut strong { display:block; font-size:12px; font-weight:600; }
.planning-shortcut small { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.field { display:grid; gap:7px; margin-bottom:16px; min-width:0; }
.field label { font-size:11px; font-weight:600; color:var(--muted); }
input,select,textarea { width:100%; min-width:0; background:var(--input-bg); color:var(--ink); border:1px solid var(--line); border-radius:7px; padding:10px 11px; min-height:40px; outline:none; transition:border-color .15s,box-shadow .15s; }
input:focus,select:focus,textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
input::placeholder,textarea::placeholder { color:var(--subtle); opacity:1; }
textarea { resize:vertical; min-height:78px; line-height:1.65; }
input[type="checkbox"] { width:17px; height:17px; min-height:17px; accent-color:var(--accent); margin:0; flex-shrink:0; }
input[type="color"] { padding:3px; }
.toolbar+.tablewrap { margin-top:16px; }
.tablewrap { overflow-x:auto; border:1px solid var(--line); border-radius:10px; margin-top:18px; }
table { border-collapse:collapse; width:100%; min-width:700px; font-size:12px; }
th,td { padding:13px 12px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); background:var(--table-head); font-size:10px; font-weight:650; letter-spacing:.5px; text-transform:uppercase; }
td input,td select,td textarea { font-size:12px; min-height:36px; padding:8px; }
tr:last-child td { border-bottom:0; }
td .field { margin:0; }
td.checkcell { width:40px; vertical-align:middle; text-align:center; }
.actions { width:40px; text-align:right; }
.actions .btn { min-width:32px; padding:7px; }
.empty-row td { padding:32px 24px; text-align:center; color:var(--muted); }
.progress { height:5px; background:var(--soft); border-radius:9px; overflow:hidden; margin:10px 0 6px; }
.progress>span { display:block; height:100%; background:var(--accent); border-radius:9px; }
.progress+.sub { font-size:10px; }
.pillrow { display:flex; flex-wrap:wrap; gap:7px; }
.pill { display:inline-flex; align-items:center; border:1px solid var(--line); padding:5px 9px; border-radius:5px; font-size:10px; color:var(--muted); background:var(--panel-2); }
.done-text { text-decoration:line-through; color:var(--subtle); }
.kpi { display:grid; gap:7px; min-height:88px; }
.kpi .value { font-size:30px; font-weight:600; letter-spacing:-1px; }
.kpi .label { font-size:11px; font-weight:500; color:var(--muted); }
.kpi .sub { font-size:11px; }
.planner-list,.timeline-list,.response-list,.slot-list { display:grid; }
.planner-list-item { display:grid; grid-template-columns:auto minmax(0,1fr) 136px auto; gap:10px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); }
.planner-list-item:last-child { border-bottom:0; }
.planner-list-item input { font-size:12px; }
.timeline-item,.response-item,.slot-card { display:grid; grid-template-columns:75px minmax(0,1fr) auto; gap:13px; align-items:center; padding:17px 0; border-bottom:1px solid var(--line); }
.timeline-item:last-child,.response-item:last-child,.slot-card:last-child { border-bottom:0; }
.timeline-date,.slot-date { color:var(--accent); font-size:10px; font-weight:650; line-height:1.7; }
.timeline-item strong,.response-item strong,.slot-card strong { display:block; font-size:12px; font-weight:600; }
.timeline-item span,.response-item span,.slot-card span { display:block; font-size:11px; color:var(--muted); margin-top:4px; }
.event-dot { width:28px; height:28px; display:grid; place-items:center; border-radius:7px; background:var(--panel-2); color:var(--accent-2); font-size:10px; }
.empty-soft { padding:26px 14px; text-align:center; color:var(--muted); background:var(--panel-2); border-radius:9px; font-size:12px; line-height:1.7; }
.empty-soft .ui-icon { display:block; width:24px; height:24px; margin:0 auto 12px; color:var(--accent-2); }
.empty-soft strong { display:block; color:var(--ink); font-weight:550; margin-bottom:5px; }
.empty-soft .btn { margin-top:14px; }
.app-accordion { overflow:hidden; }
.app-accordion+.app-accordion { margin-top:14px; }
.app-accordion>summary { display:flex; align-items:center; gap:12px; justify-content:space-between; padding:20px 24px; list-style:none; cursor:pointer; font-weight:600; font-size:13px; }
.app-accordion>summary::-webkit-details-marker { display:none; }
.app-accordion>summary::after { content:"+"; font-size:18px; font-weight:400; color:var(--subtle); margin-left:auto; }
.app-accordion[open]>summary::after { content:"−"; }
.app-accordion[open]>summary { border-bottom:1px solid var(--line); }
.app-accordion-body { padding:24px; }
.app-accordion-body .tablewrap { margin-top:0; }
.app-accordion .grid.two>.field:last-child { margin-bottom:0; }
.birth-chips,.birth-chip-row { display:flex; flex-wrap:wrap; gap:8px; }
.birth-chip { background:var(--panel); color:var(--muted); border:1px solid var(--line); border-radius:6px; font-size:11px; padding:7px 10px; }
.birth-chip.active { background:var(--accent); color:var(--on-accent); border-color:var(--accent); }
.birth-body { padding:20px; }
.section-save { margin-top:20px; padding-top:16px; gap:12px; }
.section-save p { font-size:10px; }
.section-save .btn { min-width:108px; min-height:34px; padding:8px 12px; font-size:11px; background:var(--panel); border-color:var(--line); color:var(--accent); }
#content>section>.section-save { justify-content:flex-end; border:0; padding:0; margin:24px 0 0; }
#content>section>.section-save p { flex:0 1 auto; order:-1; }
.save-conflict { background:var(--panel-2); border-radius:9px; margin-bottom:20px; font-size:12px; }
.registry-link-preview { font-size:12px; }
.date-control { color-scheme:light; }
:root[data-appearance="dark"] .date-control { color-scheme:dark; }
.calendar-planner,.shower-layout,.meal-layout,.question-mode,.symptom-insights,.kick-live { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:20px; align-items:start; }
.calendar-feature { display:grid; gap:10px; }
.calendar-feature .field { margin-bottom:0; }
.calendar-actions { display:flex; gap:8px; flex-wrap:wrap; }
.calendar-actions .btn { flex:1; }
.segmented { display:inline-flex; padding:4px; background:var(--panel-2); border:1px solid var(--line); border-radius:8px; gap:3px; }
.segmented button { flex:1; border:0; background:transparent; color:var(--muted); padding:7px 16px; border-radius:5px; font-size:11px; font-weight:550; }
.segmented button.active { background:var(--panel); box-shadow:0 1px 4px #00000012; color:var(--accent); }
.calendar-shell { display:grid; gap:20px; }
.calendar-strip { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.calendar-title { font-size:17px; font-weight:600; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; }
.calendar-weekday { padding:8px 3px; color:var(--muted); font-size:10px; text-align:center; font-weight:550; }
.calendar-day { border:1px solid var(--line); border-radius:6px; padding:7px; min-height:125px; }
.calendar-day.muted { background:var(--panel-2); opacity:.6; }
.calendar-day.today { border-color:var(--accent); background:var(--accent-soft); }
.calendar-date { display:flex; justify-content:space-between; font-size:10px; color:var(--muted); margin-bottom:7px; }
.calendar-date span:first-child { display:none; }
.calendar-events { display:grid; gap:5px; }
.calendar-event { padding:5px; border-radius:4px; background:var(--panel-2); border-left:2px solid var(--accent); font-size:9px; overflow-wrap:anywhere; }
.calendar-event strong { display:block; font-size:9px; font-weight:600; }
.calendar-event span { color:var(--muted); font-size:9px; }
.calendar-event.symptoms { border-left-color:#bb7772; }.calendar-event.meals { border-left-color:#8884a1; }.calendar-event.registryBudget { border-left-color:#b18f64; }
.filter-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:8px; }
.filter-toggle { display:flex; align-items:center; gap:8px; padding:9px 10px; border:1px solid var(--line); border-radius:7px; font-size:11px; color:var(--muted); }
.setup-panel { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(250px,1fr); gap:24px; max-width:980px; }
.setup-list { display:grid; gap:20px; }
.setup-list .note { margin-bottom:0; }
.setup-step { display:flex; gap:14px; padding:17px 0; border-bottom:1px solid var(--line); }
.setup-step:last-child { border-bottom:0; }
.setup-step .ui-icon { color:var(--accent-2); }
.setup-step strong { display:block; font-size:12px; margin-bottom:4px; }
.setup-step p { color:var(--muted); font-size:12px; margin:0; }
.public-share { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; }
.share-status { display:grid; gap:10px; }
.share-link code { overflow-wrap:anywhere; font-size:11px; color:var(--muted); }
.share-qr { width:120px; height:120px; padding:5px; background:white; margin-top:16px; border:1px solid var(--line); border-radius:6px; }
.share-qr svg { width:100%; height:100%; }
.share-link { position:relative; }
.sms-compose { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; }
.personal-invite-steps { display:flex; flex-wrap:wrap; gap:8px; }
.personal-invite-steps span { padding:8px 12px; border-radius:20px; background:var(--soft); border:1px solid var(--line); font-size:12px; }
.personal-invite-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.personal-invite-actions .btn { text-decoration:none; }
.personal-invite-body { width:100%; box-sizing:border-box; resize:vertical; line-height:1.65; }
.personal-invite-review { scroll-margin-top:20px; }
#smsInvitations input, #smsInvitations textarea, #smsInvitations select { box-sizing:border-box; max-width:100%; min-width:0; }
#smsInvitations .btn { white-space:normal; text-align:center; }
#smsInvitations .sms-recipient > div { min-width:0; overflow-wrap:anywhere; }
#smsInvitations .sms-recipient > .btn { flex-shrink:0; }
.invite-wizard { overflow:hidden; }
.invite-wizard .panel-heading { margin-bottom:18px; }
.invite-wizard .panel-heading h3 { margin-bottom:0; }
.invite-stepper { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0 0 26px; padding:0; list-style:none; }
.invite-stepper li { display:flex; align-items:center; gap:8px; padding:10px 12px; color:var(--muted); border-bottom:2px solid var(--line); font-size:12px; }
.invite-stepper li > span { display:grid; place-items:center; flex-shrink:0; width:24px; height:24px; border-radius:50%; background:var(--soft); }
.invite-stepper li[aria-current] { color:var(--accent); font-weight:650; border-color:var(--accent); }
.invite-stepper li[aria-current] > span { background:var(--accent); color:var(--on-accent); }
.invite-phase { display:grid; gap:16px; min-width:0; }
.invite-phase > h3,.invite-phase > p,.invite-phase h4 { margin:0; }
.invite-phase > h3 { font-size:22px; scroll-margin-top:24px; }
.invite-phase > h3:focus,.invite-send-heading h3:focus { outline:none; }
.invite-phase-enter { animation:invite-phase-in .24s ease-out both; }
@keyframes invite-phase-in { from { opacity:0; transform:translateX(18px); } to { opacity:1; transform:translateX(0); } }
.invite-toolbar,.invite-footer,.invite-guest-heading,.invite-send-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.invite-footer { padding-top:16px; border-top:1px solid var(--line); }
.invite-footer > p { margin:0; }
.invite-toolbar { justify-content:flex-start; }
.invite-single,.invite-message-example,.invite-help { border:1px solid var(--line); border-radius:10px; padding:12px 16px; }
.invite-phase summary { cursor:pointer; font-size:13px; }
.invite-single-fields { display:grid; gap:12px; padding-top:16px; }
.invite-single-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.invite-single-grid label { display:grid; gap:6px; }
.invite-single-fields > .btn,.invite-history,.invite-phase > .btn { justify-self:start; }
.invite-guest-list { display:grid; gap:8px; max-height:340px; overflow-y:auto; overscroll-behavior:contain; padding:3px; }
.invite-guest-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) 38px; gap:10px; align-items:end; padding:12px; background:var(--panel-2); border:1px solid var(--line); border-radius:10px; }
.invite-guest-row label { display:grid; min-width:0; gap:5px; }
.invite-guest-row .invite-error { grid-column:1/-1; margin:0; }
.invite-guest-row [aria-invalid="true"] { border-color:var(--red); }
.invite-error { color:var(--red); font-size:12px; line-height:1.5; }
.invite-remove { height:40px; font-size:20px; padding:0!important; }
.invite-send-card { display:grid; gap:14px; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--panel-2); }
.invite-recipient { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 16px; }
.invite-recipient h4 { font-size:18px; }
.invite-recipient > span { color:var(--muted); }
.invite-send-heading h3,.invite-send-heading p,.invite-send-card p { margin:0; }
.invite-progress { width:100%; height:8px; accent-color:var(--accent); border:0; border-radius:8px; overflow:hidden; }
.invite-progress::-webkit-progress-bar { background:var(--soft); }
.invite-progress::-webkit-progress-value { background:var(--accent); }
.invite-message-example .sms-preview { margin:14px 0 0; }
.invite-help p { margin:12px 0 0; }
.invite-notice { margin:16px 0 0; }
.invite-notice:empty { display:none; }
.invite-save-note { margin:18px 0 0; }
.invite-complete { background:var(--accent-soft); padding:24px; border-radius:12px; }
@media (max-width:600px) {
  .invite-stepper { gap:4px; }
  .invite-stepper li { flex-direction:column; align-items:flex-start; gap:6px; padding:8px 4px; font-size:11px; }
  .invite-phase > h3 { font-size:20px; }
  .invite-guest-row { padding:10px; gap:7px; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) 30px; }
  .invite-guest-row input { padding:9px 7px; }
  #smsInvitations input,#smsInvitations textarea,#smsInvitations select { font-size:16px; }
  .invite-send-card { padding:14px; }
  .invite-footer .btn { flex:1; }
  .invite-footer > p { flex-basis:100%; }
}
@media (prefers-reduced-motion:reduce) { .invite-phase-enter { animation:none; } }
.sms-recipient-list { display:grid; gap:8px; }
.sms-recipient { display:flex; gap:12px; justify-content:space-between; align-items:center; padding:12px; border:1px solid var(--line); border-radius:8px; }
.sms-recipient strong,.sms-recipient span { display:block; font-size:12px; }
.sms-recipient span { color:var(--muted); margin-top:4px; }
.sms-preview { white-space:pre-wrap; overflow-wrap:anywhere; font:12px/1.7 var(--font); padding:16px; border:1px solid var(--line); border-radius:8px; }
.rsvp-designer-layout { grid-template-columns:minmax(0,1fr) minmax(260px,360px); }
.rsvp-theme-choice { border-radius:8px; padding:12px; }
.rsvp-theme-choice strong { font-size:12px; }
.rsvp-theme-choice>span:last-child { font-size:11px; }
.rsvp-theme-choice[aria-pressed="true"] { outline:2px solid var(--accent); }
.rsvp-design-group legend { font-size:12px; font-weight:600; }
.rsvp-design-group .note { font-size:11px; }
.rsvp-preview-panel { border-radius:12px; top:20px; }
.rsvp-preview-label { font-size:10px; padding:14px; }
.rsvp-photo-row { grid-template-columns:80px minmax(0,1fr); }
.rsvp-photo-row img { height:80px; border-radius:8px; }
.range-row { display:grid; grid-template-columns:minmax(90px,1fr) 30px; align-items:center; gap:8px; }
.range-row input { padding:0; accent-color:var(--accent); }
.range-row span,.severity-chip { background:var(--accent-soft); padding:6px; border-radius:5px; text-align:center; font-weight:600; font-size:12px; }
.symptom-list,.session-meta,.budget-impact { display:grid; gap:10px; }
.symptom-row,.question-item { padding:14px; border:1px solid var(--line); border-radius:8px; background:var(--panel-2); }
.symptom-row { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.symptom-row strong { display:block; font-size:12px; }.symptom-row span { font-size:11px; color:var(--muted); }
.question-item { margin:10px 0; }.question-item strong { display:block; margin-bottom:8px; }
.kick-counter { display:grid; place-items:center; gap:14px; padding:24px; text-align:center; }
.kick-counter .count,.kick-counter .value { font-size:76px; font-weight:500; line-height:1.1; letter-spacing:-3px; }
.tap-button { min-height:72px; width:100%; font-size:17px; }
.swatches { display:flex; flex-wrap:wrap; gap:12px; }
.swatch { width:48px; height:48px; border-radius:8px; border:1px solid var(--line); margin-bottom:8px; }
.swatches>div { width:64px; }
.vision-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:16px; }
.vision { overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--panel); }
.vision img,.vision .img { width:100%; height:170px; object-fit:cover; }
.vision .img { display:grid; place-items:center; background:var(--panel-2); color:var(--subtle); font-size:12px; }
.vision .body { padding:14px; }
.encouragement { font-family:Georgia,serif; font-size:19px; line-height:1.8; }
.print-page { background:#fff; color:#202820; max-width:900px; padding:36px; border:1px solid var(--line); margin:auto; }
.print-page table { min-width:0; }.print-page th { background:#f1f4ef; color:#263c30; }
.main>footer { max-width:1400px; margin:32px auto 0; padding:20px 0 24px; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; color:var(--subtle); font-size:10px; }
.main>footer .legal-links { padding:0; gap:18px; font-size:10px; }
.main>footer .legal-links a { min-height:28px; text-decoration:none; }
.auth-shell { position:fixed; inset:0; z-index:60; display:grid; place-items:center; background:var(--bg); padding:36px; overflow-y:auto; }
.auth-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(350px,460px); width:min(1040px,100%); border:1px solid var(--line); border-radius:20px; overflow:hidden; background:var(--panel); }
.auth-intro { background:var(--hero); color:var(--hero-ink); padding:48px; display:flex; flex-direction:column; min-height:560px; }
.auth-intro .brand { padding:0; }
.auth-intro h1 { font-size:46px; font-weight:500; line-height:1.15; letter-spacing:-1.7px; margin:auto 0 24px; max-width:360px; }
.auth-intro p { font-size:14px; line-height:1.8; max-width:310px; opacity:.85; margin-bottom:auto; }
.auth-intro small { font-size:11px; margin-top:40px; opacity:.7; }
.auth-card { padding:48px 40px; align-self:center; }
.auth-card h2 { font-size:28px; line-height:1.2; margin:0 0 12px; letter-spacing:-.8px; }
.auth-card>p { font-size:13px; color:var(--muted); line-height:1.7; margin-bottom:26px; }
.auth-card .field { margin:0; }
.auth-card .grid { gap:18px; }
.auth-error { color:var(--red); font-size:12px; }.auth-error:empty { display:none; }
.auth-actions { display:grid; gap:9px; }
.auth-actions .btn { min-height:44px; }
.auth-card .legal-links { font-size:10px; gap:16px; padding:20px 0 0; }
.auth-card .legal-links a { min-height:28px; }
.mobile-menu,.mobile-backdrop,.bottom-nav,.drawer-close { display:none; }
@media(min-width:1650px) { .sidebar { padding-top:32px; }.nav button { min-height:42px; font-size:13px; }.nav { gap:25px; }.app { grid-template-columns:260px minmax(0,1fr); } }
@media(max-width:1200px) {
  .app { grid-template-columns:218px minmax(0,1fr); }.main { padding:0 26px; }.sidebar { padding-inline:12px; }
  .overview-stat { padding:15px; gap:9px; }.stat-icon { width:32px; height:36px; }.overview-stat strong { font-size:18px; }
  .rsvp-designer-layout { grid-template-columns:1fr; }.rsvp-preview-panel { position:static; width:min(390px,100%); margin:auto; }
  .journey-card { padding:26px; }.journey-card h3 { font-size:29px; }.journey-count strong { font-size:40px; }
  .planner-list-item { grid-template-columns:auto minmax(0,1fr) auto; }.planner-list-item input[type="date"] { grid-column:2; grid-row:2; }.planner-list-item .actions { grid-column:3; grid-row:1/3; }
  #userBadge { max-width:150px; }.meta { max-width:210px; font-size:10px; }
}
@media(max-width:980px) {
  .app { display:block; }.sidebar { position:fixed; inset:0 auto 0 0; z-index:45; width:min(300px,86vw); height:100dvh; transform:translateX(-100%); transition:transform .18s ease; padding-top:max(24px,env(safe-area-inset-top)); }
  body.nav-open .sidebar { transform:translateX(0); }body.nav-open { overflow:hidden; }
  .nav button { min-height:42px; font-size:13px; }.nav { gap:20px; }
  .drawer-close { display:grid; place-items:center; position:absolute; right:14px; top:27px; border:0; background:var(--panel-2); color:var(--muted); width:28px; height:28px; border-radius:7px; }
  .brand { padding-right:35px; }.brand-wordmark { font-size:14px; }
  .mobile-backdrop { position:fixed; inset:0; background:#10281e66; z-index:40; }
  body.nav-open .mobile-backdrop { display:block; }
  .mobile-menu { display:inline-flex; min-height:36px; padding:8px; border-color:var(--line); }
  .main { padding:0 28px; }.topbar { min-height:70px; gap:14px; margin-bottom:27px; }.breadcrumb { flex:1; }.topbar-actions { gap:10px; }
  .page-head h2 { font-size:28px; }.page-head p { max-width:520px; }
  .grid.four { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .auth-intro { padding:36px; }.auth-intro h1 { font-size:38px; }.auth-card { padding:36px 28px; }
}
@media(max-width:700px) {
  .main { padding:0 18px 78px; }.topbar { margin-bottom:24px; padding-top:env(safe-area-inset-top); min-height:68px; }.breadcrumb::before { display:none; }.breadcrumb span { padding:0; border:0; font-size:12px; }
  .topbar-actions { gap:6px; }.meta { font-size:9px; max-width:100px; line-height:1.4; }#userBadge { display:none; }#signOutBtn { font-size:10px; padding:5px 8px; }.cloud-chip-row { gap:0; }
  .page-head { gap:12px; margin-bottom:22px; }.page-head h2 { font-size:26px; letter-spacing:-.7px; }.page-head p { font-size:12px; line-height:1.6; }.page-head .toolbar { padding-top:2px; }.page-head .btn { font-size:10px; min-height:34px; padding:8px 10px; }
  .page-eyebrow { font-size:9px; margin-bottom:6px; }.page-head .toolbar { max-width:115px; }
  .home-summary,.home-columns,.feature-grid,.grid.two,.grid.three,.setup-panel,.calendar-planner,.shower-layout,.meal-layout,.question-mode,.symptom-insights,.kick-live,.sms-compose,.public-share { grid-template-columns:1fr; }
  .home-summary,.home-columns,.app-flow,.grid { gap:16px; }.journey-card { padding:24px; min-height:255px; }.journey-card h3 { font-size:29px; }.journey-count { padding-left:16px; }.journey-count strong { font-size:42px; }
  .overview-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.overview-stat { padding:16px; }.overview-stat strong { font-size:20px; }
  .planning-shortcuts { grid-template-columns:1fr; gap:10px; }.planning-shortcut { padding:17px 20px; }.planning-shortcut strong { font-size:13px; }
  .card,.feature-panel,.soft-panel,.calendar-shell { padding:20px; }.panel-heading { gap:12px; margin-bottom:16px; }.panel-heading h3 { font-size:14px; }.panel-heading .btn { padding:8px 10px; font-size:10px; }
  .next-visit .empty-soft { text-align:left; padding:18px; }.next-visit .empty-soft .ui-icon { display:none; }
  .next-visit .text-button { padding-top:16px; }
  input,select,textarea,td input,td select,td textarea { font-size:16px; min-height:44px; }.field label { font-size:12px; }.btn { min-height:40px; }
  .tablewrap { border:0; overflow:visible; border-radius:0; }table { min-width:0; }thead { display:none; }tbody,tr,td { display:block; width:100%; }
  tbody tr { border:1px solid var(--line); border-radius:10px; padding:12px; margin-bottom:14px; }td { border:0; padding:8px 0; }td[data-label]::before { content:attr(data-label); display:block; margin-bottom:7px; font-size:10px; font-weight:600; color:var(--muted); }td[data-label=""]::before,td.actions::before,td.checkcell::before { display:none; }td.checkcell,.actions { width:auto; text-align:left; }
  .empty-row td { padding:18px 8px; }.tablewrap .note { font-size:12px; }
  .app-accordion>summary { padding:19px 20px; }.app-accordion-body { padding:20px; }.app-accordion-body .section-save { flex-wrap:wrap; }
  .section-save p { font-size:10px; }.section-save .btn { min-height:38px; }
  .calendar-shell { padding:14px; }.calendar-grid { gap:3px; }.calendar-day { min-height:78px; padding:5px; }.calendar-event { padding:3px; font-size:8px; }.calendar-event strong { font-size:8px; }.calendar-event span { display:none; }.calendar-title { font-size:15px; }
  .rsvp-theme-choice { min-height:105px; }.rsvp-theme-choice strong { font-size:12px; }.rsvp-preview-panel { max-width:100%; }.rsvp-photo-row { grid-template-columns:70px minmax(0,1fr); }
  .timeline-item,.response-item,.slot-card { grid-template-columns:65px minmax(0,1fr) auto; gap:10px; }.timeline-date,.slot-date { font-size:9px; }
  .bottom-nav { position:fixed; display:grid; grid-template-columns:repeat(5,1fr); z-index:35; bottom:0; left:0; right:0; padding:8px 8px max(8px,env(safe-area-inset-bottom)); background:var(--sidebar); border-top:1px solid var(--line); box-shadow:0 -3px 20px #14291c05; }
  .bottom-nav button { border:0; background:transparent; color:var(--muted); display:grid; place-items:center; gap:5px; padding:5px; font-size:9px; min-height:43px; font-weight:550; border-radius:7px; }.bottom-nav button.active { color:var(--accent); background:var(--accent-soft); }.bottom-nav .ui-icon { width:20px; height:20px; }
  .main>footer { margin-top:26px; padding:20px 0; }.main>footer .legal-links { font-size:9px; gap:14px; }
  .auth-shell { padding:20px; }.auth-layout { display:block; max-width:460px; }.auth-intro { padding:26px 28px; min-height:0; }.auth-intro .brand { padding:0; }.auth-intro h1 { font-size:29px; line-height:1.2; margin:28px 0 0; max-width:300px; }.auth-intro p,.auth-intro small { display:none; }.auth-card { padding:30px 28px; }.auth-card h2 { font-size:23px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; }*,*::before,*::after { transition:none!important; animation:none!important; } }
@media print {
  :root { --ink:#111; --muted:#555; --bg:#fff; --panel:#fff; --line:#ddd; }
  body { background:white; }.sidebar,.topbar,.bottom-nav,.no-print,.page-head,.main>footer { display:none!important; }.app,.main { display:block; padding:0; }#content { max-width:none; }.card,.soft-panel,.feature-panel { box-shadow:none; break-inside:avoid; }.print-page { border:0; padding:0; max-width:none; }.print-page table { display:table; }.print-page tbody { display:table-row-group; }.print-page tr { display:table-row; }.print-page td,.print-page th { display:table-cell; }
}
