/* Action, navigation and disclosure have distinct visual affordances. */
:root {
 --action-glass:linear-gradient(155deg,#ffffffed 0%,#f8edffdc 43%,#e4c9f0dc 100%);
 --primary-glass:linear-gradient(155deg,#fff4e6f5 0%,#ffd5b5e8 45%,#f5b383e8 100%);
 --action-edge:#94719f;--action-shadow:0 5px 12px #43205224,0 2px 2px #43205218,inset 0 2px 1px #fffffff2,inset 0 -2px 2px #84618d26;
 --disclosure-fill:#e9def0;--disclosure-open:#f0e7f5;--disclosure-edge:#b19abc;
}
html.tg-dark {
 --action-glass:linear-gradient(155deg,#645371ed 0%,#473353ed 48%,#32223fed 100%);
 --primary-glass:linear-gradient(155deg,#74583eed 0%,#604337ed 48%,#46303aed 100%);
 --action-edge:#b198bd;--action-shadow:0 5px 14px #0005,0 2px 2px #0004,inset 0 2px 1px #ffffff38,inset 0 -2px 2px #0004;
 --disclosure-fill:#33283e;--disclosure-open:#40304d;--disclosure-edge:#80668c;
}
/* Preserve each control's existing size and layout, including map/calendar controls. */
body :is(button:not(.brand):not(.atlas-link):not(.text-button):not(.reading-toggle):not([aria-expanded]),a.primary-button,a.soft-button) {
 background:var(--action-glass)!important;color:var(--ink)!important;
 border:1px solid var(--action-edge)!important;box-shadow:var(--action-shadow)!important;
 backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
 text-decoration:none!important;cursor:pointer;transition:box-shadow .15s ease,filter .15s ease;
}
body :is(.primary-button,#checkout-pay,#checkout-telegram,button[type=submit]) {background:var(--primary-glass)!important;}
body .main-nav .nav-pill {border-radius:14px;}
body .main-nav .nav-pill.active {background:var(--primary-glass)!important;border-color:var(--atlas-accent)!important;color:var(--atlas-accent)!important;}
body :is(button:not(.brand):not(.atlas-link):not(.text-button):not(.reading-toggle):not([aria-expanded]),a.primary-button,a.soft-button):active {
 box-shadow:inset 0 2px 5px #35213e38,inset 0 -1px #fff5!important;
}
@media(hover:hover) {
 body :is(button:not(.brand):not(.atlas-link):not(.text-button):not(.reading-toggle):not([aria-expanded]),a.primary-button,a.soft-button):hover:not(:disabled) {filter:brightness(1.06);}
}
body button:disabled {background:var(--chip-fill)!important;color:var(--muted)!important;border-color:var(--atlas-rule)!important;box-shadow:none!important;backdrop-filter:none;cursor:not-allowed;filter:none!important;}
body :is(.atlas-link,.text-button,a:not(.primary-button):not(.soft-button)) {
 background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
 color:var(--atlas-accent);text-decoration-line:underline!important;text-decoration-thickness:1.5px!important;text-underline-offset:4px;
 cursor:pointer;font-weight:600;
}
/* Disclosure rows are flat, angular and marked consistently, never raised pills. */
body details:not(:where(#today *))>summary,body :is(.reading-toggle,button[aria-expanded]):not(:where(#today *)) {
 position:relative;background:var(--disclosure-fill)!important;color:var(--ink)!important;
 border:0!important;border-left:3px solid var(--disclosure-edge)!important;border-bottom:1px solid var(--disclosure-edge)!important;
 border-radius:6px!important;box-shadow:none!important;backdrop-filter:none!important;
 padding:10px 40px 10px 12px!important;min-height:44px;box-sizing:border-box;
 font-weight:600;line-height:1.4;text-decoration:none!important;list-style:none;cursor:pointer;
}
body details[open]:not(:where(#today *))>summary,body button[aria-expanded=true]:not(:where(#today *)) {background:var(--disclosure-open)!important;border-left-color:var(--atlas-accent)!important;}
body details:not(:where(#today *))>summary::-webkit-details-marker {display:none;}
body details:not(:where(#today *))>summary::marker {content:'';}
body details:not(:where(#today *))>summary::after,body :is(.reading-toggle,button[aria-expanded]):not(:where(#today *))::after {
 content:'+'!important;position:absolute;right:10px;top:50%;transform:translateY(-50%);
 width:24px;height:24px;display:grid;place-items:center;margin:0!important;
 border:1px solid var(--disclosure-edge);border-radius:4px;color:var(--ink)!important;
 font:600 20px/1 var(--font-ui);background:transparent;pointer-events:none;
}
body details[open]:not(:where(#today *))>summary::after,body button[aria-expanded=true]:not(:where(#today *))::after {content:'−'!important;}
body .natal-report-section-title::after {content:none;}
body .today-activity-expand {display:none!important;}
body .natal-report-section>summary .chapter-art {display:none;}
body #today .transit-overview-hint {text-decoration:none;color:var(--muted);}
/* The calendar remains compact; the plus does not become another grid column. */
body #today .today-activity-heading {padding:7px 30px 7px 6px!important;min-height:44px;}
body #today .today-activity-heading::after {right:4px;width:18px;height:22px;font-size:18px;}
body :is(button,a,summary):focus-visible {outline:3px solid var(--atlas-accent)!important;outline-offset:3px;}
@media(prefers-reduced-motion:reduce) {body button,body a {transition:none!important;}}
body button:is([aria-selected=true],[aria-pressed=true],.selected),body .route-card.active {
 background:var(--primary-glass)!important;border-color:var(--atlas-accent)!important;
 box-shadow:var(--action-shadow),inset 0 0 0 1px var(--atlas-accent)!important;
}
body button:disabled {cursor:not-allowed!important;}
