/* Stone + Powder Blue: shared app and public-page color roles.
   Powder blue is an accent surface; navy carries text and primary actions. */
:root,body{
 --av-canvas:#EFE7DA!important;--av-surface:#FAF7F1!important;--av-surface-soft:#E7E2DA!important;
 --av-ink:#26343F!important;--av-muted:#59636B!important;--av-subtle:#636B70!important;--av-disabled:#737B80!important;
 --av-blue:#26343F!important;--av-blue-soft:#DFE5E8!important;--av-powder:#A8B4BC!important;
 --av-yellow:#F3E2A0!important;--av-yellow-soft:#F7EFCE!important;
 --av-coral:#536977!important;--av-green:#536977!important;--av-sage:#A8B4BC!important;--av-olive:#536977!important;--av-lavender:#A8B4BC!important;--av-flax:#D4CEC3!important;
 --av-border:#D4CEC3!important;--av-hairline:#DDD6CB!important;--av-border-accent:#A8B4BC!important;
 --av-on-primary:#FAF7F1!important;--av-focus:#536977!important;--av-success:#536B59!important;--av-danger:#8D4350!important;
 --bg:var(--av-canvas)!important;--paper:var(--av-surface)!important;--paper-alt:var(--av-surface-soft)!important;
 --ink:var(--av-ink)!important;--ink-soft:var(--av-muted)!important;--border:var(--av-border)!important;--hairline:var(--av-hairline)!important;
 --fjord:var(--av-blue)!important;--fjord-deep:var(--av-blue)!important;--fjord-soft:var(--av-blue-soft)!important;
 --sun:var(--av-yellow)!important;--sun-soft:var(--av-yellow-soft)!important;--gold:var(--av-yellow)!important;--gold-deep:#62531E!important;
 --sage:var(--av-blue-soft)!important;--sage-deep:var(--av-blue)!important;--rose:var(--av-powder)!important;--rose-deep:#536977!important;
 --terracotta:var(--av-blue-soft)!important;--terracotta-deep:var(--av-danger)!important;--nordic-coral:#536977!important;
 --clay:#D4CEC3!important;--clay-deep:#625F58!important;--dusty-blue:var(--av-blue-soft)!important;--dusty-blue-deep:#536977!important;
 --olive:var(--av-blue-soft)!important;--olive-deep:#536977!important;--cornflower:#536977!important;
 --btn-ink:var(--av-on-primary)!important;--cta-ink:#26343F!important;--focus-accent:var(--av-focus)!important;
 --resource-bg:var(--av-canvas)!important;--resource-paper:var(--av-surface)!important;--resource-paper-soft:var(--av-surface-soft)!important;
 --resource-fjord:var(--av-blue)!important;--resource-fjord-deep:var(--av-blue)!important;--resource-fjord-soft:var(--av-blue-soft)!important;
 --resource-sun:var(--av-yellow)!important;--resource-sun-soft:var(--av-yellow-soft)!important;--resource-coral:#536977!important;--resource-green:#536977!important;
 --resource-ink:var(--av-ink)!important;--resource-muted:var(--av-muted)!important;--resource-subtle:var(--av-subtle)!important;--resource-disabled:var(--av-disabled)!important;
 --resource-line:var(--av-border)!important;--resource-hairline:var(--av-hairline)!important;
}
body[data-theme="dark"]{
 --av-canvas:#202B33!important;--av-surface:#2B3842!important;--av-surface-soft:#34434D!important;
 --av-ink:#EFE7DA!important;--av-muted:#C1CBCF!important;--av-subtle:#B7C2C8!important;--av-disabled:#99A5AD!important;
 --av-blue:#A8B4BC!important;--av-blue-soft:#3D505D!important;--av-on-primary:#202B33!important;
 --av-border:#657580!important;--av-hairline:#465761!important;--av-border-accent:#A8B4BC!important;
 --av-yellow-soft:#494433!important;--av-focus:#F3E2A0!important;--av-success:#B2C6B5!important;--av-danger:#E9AFB8!important;
 --rose-deep:#A8B4BC!important;--nordic-coral:#A8B4BC!important;--dusty-blue-deep:#A8B4BC!important;--olive-deep:#A8B4BC!important;--cornflower:#A8B4BC!important;
 --gold-deep:#F3E2A0!important;--clay-deep:#D4CEC3!important;
}
html body.auth-gated #authGate{
 --landing-canvas:#EFE7DA!important;--landing-surface:#FAF7F1!important;--landing-logo-cream:#EFE7DA!important;
 --landing-ink:#26343F!important;--landing-muted:#59636B!important;--landing-blue:#26343F!important;
 --landing-yellow:#F3E2A0!important;--landing-coral:#536977!important;--landing-sage:#536977!important;--landing-olive:#536977!important;--landing-lavender:#A8B4BC!important;--landing-flax:#D4CEC3!important;--landing-line:#D4CEC3!important;
}
html:has(body.auth-gated),html body.auth-gated{background:#EFE7DA!important;}
body[data-view] .tabs :is(.tab,.adv-tab).active{color:var(--av-ink)!important;}
body[data-view] .tabs :is(.tab,.adv-tab).active::after{background:var(--av-powder)!important;}
body[data-view] :is(.pill.active,.chip.active,.seg button.active,.seg-btn.active){background:var(--av-blue-soft)!important;color:var(--av-ink)!important;border-color:var(--av-powder)!important;}
body[data-view] #qcFab{background:var(--av-blue)!important;color:var(--av-on-primary)!important;border-color:var(--av-blue)!important;}
body[data-view] #qcFab::before,body[data-view] #qcFab::after{background:var(--av-on-primary)!important;}
/* Quick Capture shares the current palette, including every expanded option. */
body #qcOverlay .qc-create{background:var(--av-surface);color:var(--av-ink);border-color:var(--av-border);}
body #qcOverlay .qc-create::before{background:var(--av-powder)!important;}
body #qcOverlay .qc-create:hover{background:var(--av-blue-soft);border-color:var(--av-powder);box-shadow:none;}
body #qcOverlay .qc-create:focus-visible,body #qcOverlay .qc-quick-note textarea:focus{outline:2px solid var(--av-blue);outline-offset:2px;border-color:var(--av-blue);box-shadow:none;}
body #qcOverlay .qc-more>summary,body #qcOverlay .qc-more>summary::after,body #qcOverlay .qc-create-label{color:var(--av-ink);}
body #qcOverlay .qc-quick-note textarea{background:var(--av-surface-soft);color:var(--av-ink);border-color:var(--av-border);}
body[data-view] .brand-tag{color:var(--av-ink)!important;}
body .tier.member{background:var(--resource-fjord-soft)!important;border-color:var(--resource-line)!important;box-shadow:inset 0 3px 0 var(--av-powder)!important;}
body .resource-nav__link:focus-visible{outline:2px solid var(--av-focus);outline-offset:3px;}

/* The unchanged Today photograph stays pale in both themes. */
html body[data-view="today"].top-photo .brand-tag,
html body[data-theme="dark"][data-view="today"].top-photo .brand-tag{color:#26343F!important;}
html body[data-view="today"].top-photo .brand-logo::after{color:#26343F!important;}

@media(prefers-color-scheme:dark){
body:not([data-view]):not(.auth-gated){
 --av-canvas:#202B33!important;--av-surface:#2B3842!important;--av-surface-soft:#34434D!important;
 --av-ink:#EFE7DA!important;--av-muted:#C1CBCF!important;--av-subtle:#B7C2C8!important;--av-disabled:#99A5AD!important;
 --av-blue:#A8B4BC!important;--av-blue-soft:#3D505D!important;--av-on-primary:#202B33!important;
 --av-border:#657580!important;--av-hairline:#465761!important;--av-border-accent:#A8B4BC!important;
 --av-yellow-soft:#494433!important;--av-focus:#F3E2A0!important;--av-success:#B2C6B5!important;--av-danger:#E9AFB8!important;
 --rose-deep:#A8B4BC!important;--nordic-coral:#A8B4BC!important;--dusty-blue-deep:#A8B4BC!important;--olive-deep:#A8B4BC!important;--cornflower:#A8B4BC!important;
 --gold-deep:#F3E2A0!important;--clay-deep:#D4CEC3!important;
}
}

/* Approved photograph-first Today composition; title treatment is deferred. */
html body[data-view="today"][data-view="today"].top-photo .app-top{background-image:url('./avelle-today-centered-branch-v1.png?rev=20260920-stone')!important;background-position:center center!important;background-size:cover!important;height:300px!important;min-height:0!important;}
body[data-view="today"] :is(.brand-logo,.brand-tag,.today-classic-logo,.hero-greet){visibility:hidden!important;}
body[data-view="today"] .app-top::after{display:none!important;}
@media(min-width:700px){html body[data-view="today"][data-view="today"].top-photo .app-top{height:480px!important;}}

/* Editorial cleanup: functional controls stay; decorative motifs retire. */
html body :is(.lp-filigree,.lp-filigree-art,.lp-close-filigree,.folk-divider,.page-folk-signature,.page-title-icon,.pantry-folk-art,.ceo-start-filigree,.leaf-ic){display:none!important;}
html body svg:has(use[href^="#folk-"]){display:none!important;}
html body .tabs>.tab>.bottom-nav-icon{display:none!important;}
html body :is(.quote-bar,.section-title)::before,
html body .quote-bar::after,
html body #authGate .lp-sec::before,
html body:not([data-view]) .brand::before{content:none!important;display:none!important;}
html body .quote-bar{padding-bottom:24px!important;}
html body .page-title-with-icon{gap:0!important;}
html body .today-overview-summary-cell{grid-template-columns:minmax(0,1fr)!important;}
html body .tabs>.tab{justify-content:center!important;gap:0!important;}
html body .tq-fil{display:none!important;}
html body #authGate .lp-wm{display:block!important;}
@media(max-width:600px){
 html body .tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-flow:row!important;flex-wrap:nowrap!important;}
 html body .tabs>#qcFab{position:relative!important;inset:auto!important;right:auto!important;bottom:auto!important;align-self:center!important;justify-self:center!important;}
}

/* Keep the compact goal control inside its grid track. The global 44px touch-target rule
   otherwise expands the ring across the title on narrow phones. The row remains tappable through
   its explicit keyboard/click semantics while the visible ring keeps its intended scale. */
html body[data-view="goals"] .goal-row{grid-template-columns:22px minmax(0,1fr) 38px 38px!important;}
html body[data-view="goals"] .goal-row>.check{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;max-width:18px!important;max-height:18px!important;padding:0!important;place-self:start center!important;}
html body[data-view="goals"] .goal-row>.goal-copy{min-width:0!important;overflow:hidden;}
html body[data-view="goals"] .goal-row>.goal-copy>.goal-text{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
