/* Keep personalization controls inside Settings and the daily spaces quiet. */
body:not(.appearance-page) .photo-pick,.sidebar .sidebar-foot,.header-actions .badge,.sidebar .brand-sub{display:none}
body.rhythm-scene main > .topbar,body.rhythm-scene main > #header-photo{display:none}
body.rhythm-scene main,body.rhythm-scene{background:#fcfaf6;color:#302d25}
body.rhythm-scene main::before{display:none}
body.night.rhythm-scene,body.night.rhythm-scene main{background:#26231f;color:#f4eadd}
.rhythm-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 18px}
.rhythm-wordmark{font:500 1.7rem/1 'Clash Display',system-ui,sans-serif;letter-spacing:-.045em}
.rhythm-switch{display:flex;gap:4px;border-block-end:1px solid currentColor}
.rhythm-switch button{color:inherit;background:transparent;font-size:.9rem;border-radius:0;min-height:44px;padding:6px 12px}
.rhythm-switch button[aria-current]{box-shadow:inset 0 -3px currentColor;font-weight:700}
.rhythm-return{margin-bottom:15px}
body:has(.ritual-quiet) .rhythm-bar,body:has(.ritual-quiet) .sidebar,body:has(.ritual-quiet) .focus-live-link{display:none}
body:has(.ritual-quiet) .shell{grid-template-columns:1fr}
@media(min-width:641px){.rhythm-wordmark{visibility:hidden}}
@media(max-width:640px){.rhythm-bar{padding:3px 4px 12px}}

/* A flat navigation rail keeps the active destination legible in both palettes. */
.personalized .sidebar .sidebar-identity,.personalized .sidebar .nav button {
  background:transparent!important;backdrop-filter:none;box-shadow:none;border:1px solid transparent;
}
.personalized .sidebar .nav button.active {background:var(--soft)!important;color:var(--ink)!important}
.personalized .sidebar .nav button:hover {border-color:var(--line)}
body.rhythm-scene .sidebar {background-color:#fcfaf6}
body.rhythm-scene.night .sidebar {background-color:#26231f}
body.rhythm-scene .sidebar .nav button .icon {color:inherit}
@media(max-width:599px) and (min-height:700px){
  .ritual-morning:not(.ritual-quiet) .ritual-landscape,.ritual-night:not(.ritual-quiet) .ritual-landscape{height:clamp(200px,32svh,310px)}
}
.today-space{max-width:46rem;margin:clamp(24px,5vh,56px) auto}
.today-space h1{font-size:clamp(30px,5vw,52px);margin:0 0 20px}
.today-space .today-intention{position:static;min-height:0;border-radius:0;border-block:1px solid var(--line);padding:clamp(22px,4vw,44px) 0;background:transparent;color:var(--ink)}
.today-intention p{margin:0;color:var(--muted);font-size:1rem}
.today-space .today-intention h2{max-width:100%;margin:10px 0 24px;color:inherit;font-size:clamp(24px,4vw,38px);overflow-wrap:anywhere}
.today-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
.today-links button,.today-records summary{color:var(--ink);background:transparent;text-align:start;border-radius:0;padding:14px 0;min-height:48px;cursor:pointer}
.today-links button{border-bottom:1px solid var(--line)}
.today-records{margin-top:12px}
