/* Shared masthead rhythm. Life Overview deliberately retains its own layout. */
#root .independent-main { --lifeos-module-hero-height: 360px; }
#root .independent-main:not([data-lifeos-path="/overview"]):not([data-lifeos-path="/home"]) :is(
 .independent-content .independent-hero, .lifeos-calendar-header,
 .lifeos-finances-hero, .lifeos-fitness-hero, .lifeos-brief-masthead,
 .lifeos-travel-hero, .sports-hero, .lifeos-receipt-masthead,
 .orders-hero, .orbit-hero, .lifeos-weather-hero, .lifeos-connect-hero,
 .lifeos-page-hero, .independent-projects > .independent-section-heading:first-child
) {
 box-sizing:border-box; width:100%; height:var(--lifeos-module-hero-height);
 min-height:var(--lifeos-module-hero-height); max-height:none;
 margin-inline:0; padding:32px; border-radius:24px;
 align-content:center;
}
#root .independent-main:not([data-lifeos-path="/overview"]):not([data-lifeos-path="/home"]) :is(
 .independent-content .independent-hero, .lifeos-calendar-header,
 .lifeos-finances-hero, .lifeos-fitness-hero, .lifeos-brief-masthead,
 .lifeos-travel-hero, .sports-hero, .lifeos-receipt-masthead, .orders-hero,
 .lifeos-connect-hero, .lifeos-page-hero, .independent-projects > .independent-section-heading:first-child
) h1 { font-size:clamp(38px,4vw,60px); line-height:1.06; letter-spacing:-.025em; margin-block:8px 12px; overflow-wrap:break-word; }
#root .lifeos-travel-hero { display:flex; flex-direction:column; justify-content:center; gap:18px; }
#root .lifeos-travel-hero > div { width:100%; }
#root .lifeos-finances-hero { align-items:center; }
#root .independent-projects > .independent-section-heading:first-child { align-items:center; }
#root .lifeos-today-hero { align-items:center; }
#root .lifeos-wardrobe > .lifeos-wardrobe-hero { align-items:center; }
#root .lifeos-brief-page > .lifeos-brief-masthead { align-items:center; }
#root .household-studio .household-hero { align-items:center; }
#root .lifeos-receipt-masthead-copy { width:100%; }
#root .sports-hero { display:flex; flex-direction:column; justify-content:space-between; gap:16px; }
#root .sports-hero-copy { margin:0; padding:0; }
#root .sports-hero-copy h1 { font-size:52px; margin:0 0 10px; }
#root .sports-hero-copy > p { margin:0; }
#root .sports-hero-footer { margin:0; padding-top:12px; }
#root .sports-hero-top { gap:12px; }

/* Calendar joins the photographic mastheads; controls stay fully operable. */
#root [data-lifeos-path="/calendar"] .lifeos-calendar-header {
 display:flex; align-items:center; justify-content:space-between; gap:24px;
 color:#fff9ef; border:1px solid #b99b67;
 background:linear-gradient(100deg,#10243af5 8%,#112a43d9 44%,#16334d38 100%),url('/assets/lifeos-hero-today.jpg') center 53%/cover;
 box-shadow:0 16px 36px #172c4920,inset 0 1px #f3dcaa30;
}
#root .lifeos-calendar-header h1 { color:#fff9ef; }
#root .lifeos-calendar-header .ot-gold { color:#eed59c; }
#root .lifeos-calendar-header p.ot-muted { color:#e2eaf2; }
#root .lifeos-calendar-header .ot-chip { color:#fff8e9; border:1px solid #d8bc7a88; background:#152d49c9; min-height:44px; }
#root .lifeos-calendar-header .ot-chip:hover:not(:disabled) { background:#355775; }
#root .lifeos-calendar-header .ot-chip:focus-visible { outline:2px solid #f3d68e; outline-offset:3px; }

/* Orbit retains its signature artwork within the shared module dimensions. */
#root .independent-main .orbit-hero { padding:0!important; grid-template-rows:minmax(0,1fr) auto; }
#root .orbit-hero-copy { align-self:center; padding:26px 32px; }
#root .orbit-hero h1 { margin-bottom:12px; }
#root .orbit-hero-statement { font-size:clamp(38px,4vw,56px); line-height:1.04; margin-bottom:12px; }
#root .orbit-hero-description { font-size:15px; line-height:1.5; }
#root .orbit-hero-art { min-height:0; }
#root .orbit-hero-footer { padding:13px 32px; }

/* Weather keeps live conditions, motion and all seven readings visible. */
#root .independent-main .lifeos-weather-hero { padding:0!important; }
#root .lifeos-weather-hero > .relative { height:100%; display:flex; flex-direction:column; justify-content:space-between; gap:12px; padding:24px; }
#root .lifeos-weather-hero > .relative > * { margin-block:0; }
#root .lifeos-weather-current { flex:1; min-height:0; }
#root .lifeos-weather-current [aria-label$="degrees"] { font-size:80px; }
#root [data-lifeos-path="/weather"] .lifeos-weather-hero .wx-stats { flex-shrink:0; grid-template-columns:repeat(7,minmax(0,1fr)); }
#root [data-lifeos-path="/weather"] .lifeos-weather-hero .wx-stat { padding:9px 10px; min-width:0; }
#root [data-lifeos-path="/weather"] .lifeos-weather-hero .wx-stat dd { font-size:16px; }

/* Explanations are a consistent, compact disclosure, never an error wrapper. */
#root .lifeos-page-info { width:fit-content; max-width:100%; color:#344d66; font-size:14px; margin-block:6px; }
#root .lifeos-page-info > summary { display:flex; align-items:center; gap:8px; width:fit-content; min-height:40px; padding:6px 12px; border:1px solid #bdab7e70; border-radius:999px; background:#fffdf5b5; cursor:pointer; list-style:none; font-weight:600; }
#root .lifeos-page-info > summary::-webkit-details-marker { display:none; }
#root .lifeos-page-info > summary:hover { background:#f4ead1; border-color:#b9973f; }
#root .lifeos-page-info > summary:focus-visible { outline:2px solid #9b7632; outline-offset:3px; }
#root .lifeos-info-icon { display:inline-grid; place-items:center; width:17px; height:17px; border:1px solid #9d7e3e; border-radius:50%; font:italic 600 12px/1 Georgia,serif; color:#86662b; }
#root .lifeos-info-chevron { margin-left:5px; transition:transform .15s; }
#root .lifeos-page-info[open] .lifeos-info-chevron { transform:rotate(180deg); }
#root .lifeos-page-info[open] { width:100%; }
#root .lifeos-page-info-content { margin-top:8px; padding:16px 18px; border:1px solid #d6c6a4; border-radius:14px; background:var(--studio-glass-card,#fffdf5ed); max-width:74ch; line-height:1.65; overflow-wrap:anywhere; }
#root .lifeos-page-info-content p { margin:0; color:inherit; }

/* Health follows the shared canvas; its metrics retain distinct color accents. */
#root :is(.lifeos-fitness,.lifeos-fitness-dialog) {
 --fitness-bg:#f8f7f2; --fitness-panel:#fffdf7; --fitness-line:#d6c8aa;
 --fitness-fg:#19334e; --fitness-muted:#526477; --fitness-gold:#8f6b27;
 --fitness-lavender:#8564bd; --fitness-blue:#397ca6;
 color:var(--fitness-fg);
}
#root .independent-content .lifeos-fitness { padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
#root .independent-content .lifeos-fitness :is(.lifeos-fitness-card,.lifeos-fitness-tile) { background:var(--studio-glass-card); border-color:#d5c5a1; box-shadow:0 8px 24px #16334f0c; }
#root .lifeos-fitness .lifeos-fitness-hero h1 { color:#fff7e8; }
#root .lifeos-fitness :is(.lifeos-fitness-nav,.lifeos-fitness-metric-switch) { background:#fdfbf4c9; border-color:#d7c8a7; }
#root .lifeos-fitness :is(.lifeos-fitness-nav,.lifeos-fitness-metric-switch) button[aria-pressed="true"] { background:linear-gradient(140deg,#254969,#142b44); color:#fff4db; border-color:#c4a469; }
#root .lifeos-fitness :is(.lifeos-fitness-nav,.lifeos-fitness-metric-switch) button:not([aria-pressed="true"]):hover { background:#e8edf3; color:#19334e; }
#root .lifeos-fitness .lifeos-fitness-bars button:is(:hover,[aria-pressed="true"]) { background:#e8edf3; color:#19334e; }
#root .lifeos-fitness .lifeos-fitness-text-action:hover { color:#6d4f17; }
#root :is(.lifeos-fitness,.lifeos-fitness-dialog) .independent-small-btn { background:#fffcf5; color:#19334e; border-color:#bca97e; }
#root .lifeos-fitness-dialog { color-scheme:light; background:#fffdf7; }
#root .lifeos-fitness-dialog .lifeos-meals-field :is(input,select,textarea) { background:#fff; color:#19334e; border-color:#bcae91; }

@media(max-width:1000px) {
 #root [data-lifeos-path="/weather"] .lifeos-weather-hero .wx-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
 #root .lifeos-weather-current [aria-label$="degrees"] { font-size:62px; }
 #root .lifeos-weather-current > svg { width:64px; height:64px; }
}
@media(max-width:700px) {
 #root .independent-main:not([data-lifeos-path="/overview"]):not([data-lifeos-path="/home"]) :is(
  .independent-content .independent-hero,.lifeos-calendar-header,.lifeos-finances-hero,
  .lifeos-fitness-hero,.lifeos-brief-masthead,.lifeos-travel-hero,.sports-hero,
  .lifeos-receipt-masthead,.orders-hero,.lifeos-connect-hero,.lifeos-page-hero,
  .independent-projects > .independent-section-heading:first-child
 ) { padding:24px; border-radius:20px; }
 #root .independent-main:not([data-lifeos-path="/overview"]):not([data-lifeos-path="/home"]) :is(
  .independent-content .independent-hero,.lifeos-calendar-header,.lifeos-finances-hero,
  .lifeos-fitness-hero,.lifeos-brief-masthead,.lifeos-travel-hero,.sports-hero,
  .lifeos-receipt-masthead,.orders-hero,.lifeos-connect-hero,.lifeos-page-hero,
  .independent-projects > .independent-section-heading:first-child
 ) h1 { font-size:38px; }
 #root .lifeos-calendar-header { flex-direction:column; align-items:flex-start!important; justify-content:center!important; }
 #root .lifeos-finances-hero { justify-content:center; align-items:flex-start; }
 #root .household-studio .household-hero { grid-template-columns:1fr; gap:18px; }
 #root .household-studio .household-hero-deck { margin-bottom:10px; }
 #root .household-studio .household-hero-stats { padding:10px; }
 #root .sports-hero-copy h1 { font-size:38px; }
 #root .sports-hero-footer { flex-wrap:wrap; gap:12px; }
 #root .sports-hero-tag { display:none; }
 #root .sports-stats { gap:18px; }
 #root .sports-hero-button { min-height:44px; }
 #root .lifeos-receipt-start-actions { display:flex; flex-wrap:wrap; gap:8px; }
 #root .lifeos-receipt-start-actions button { flex:1 1 auto; }
 #root .orbit-hero { grid-template-columns:minmax(0,1fr) 80px; }
 #root .orbit-hero-copy { padding:22px 0 22px 22px; }
 #root .orbit-hero-statement { font-size:36px; }
 #root .orbit-hero-description { font-size:14px; }
 #root .orbit-hero-footer { padding:12px 22px; }
 #root .lifeos-weather-hero > .relative { padding:18px; gap:8px; }
 #root [data-lifeos-path="/weather"] .lifeos-weather-hero .wx-stat { padding:6px 7px; }
 #root [data-lifeos-path="/weather"] .lifeos-weather-hero .wx-stat dt { font-size:9px; letter-spacing:0; gap:3px; flex-wrap:wrap; }
 #root [data-lifeos-path="/weather"] .lifeos-weather-hero .wx-stat dd { font-size:14px; line-height:1.3; }
 #root [data-lifeos-path="/weather"] .wx-masthead { gap:8px; }
 #root [data-lifeos-path="/weather"] .wx-place span { font-size:18px; line-height:1.2; }
 #root .lifeos-weather-current [aria-label$="degrees"] { font-size:54px; }
 #root .lifeos-weather-current > svg { width:48px; height:48px; }
 #root .lifeos-weather-current .lifeos-weather-motion-toggle { min-height:32px; margin-top:3px; font-size:11px; }
}
@media(max-width:380px) {
 #root .orbit-hero { grid-template-columns:minmax(0,1fr) 50px; }
 #root .orbit-hero-statement { font-size:32px; }
 #root .orbit-hero-description { font-size:13px; }
 #root [data-lifeos-path="/weather"] .lifeos-weather-hero .wx-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
 #root [data-lifeos-path="/weather"] .lifeos-weather-hero .wx-stat { padding:4px; }
 #root [data-lifeos-path="/weather"] .lifeos-weather-hero .wx-stat dt { font-size:8.5px; }
 #root [data-lifeos-path="/weather"] .lifeos-weather-hero .wx-stat dt svg { display:none; }
 #root [data-lifeos-path="/weather"] .lifeos-weather-hero .wx-stat dd { font-size:12.5px; }
}
@media print { #root .independent-main { --lifeos-module-hero-height:auto; } }

/* Big Picture keeps its live milestone counts in the same fixed masthead. */
@media(max-width:900px) {
 #root .lifeos-timeline .lifeos-timeline-hero { grid-template-columns:1fr; gap:12px; }
 #root .lifeos-timeline .lifeos-timeline-hero h1 { font-size:38px!important; margin-block:6px; }
 #root .lifeos-timeline .lifeos-timeline-eyebrow { margin:0; font-size:10px; }
 #root .lifeos-timeline .lifeos-timeline-deck { margin:4px 0 6px; font-size:18px; }
 #root .lifeos-timeline .lifeos-timeline-intro { font-size:14px; line-height:1.5; }
 #root .lifeos-timeline-context { margin-top:8px; padding:4px 10px; }
 #root .lifeos-timeline-window { padding:10px 12px; }
 #root .lifeos-timeline-window > :is(p,strong) { display:none; }
 #root .lifeos-timeline-window dl { margin:0; padding:0; border:0; gap:8px; }
 #root .lifeos-timeline-window dd { font-size:26px; }
 #root .lifeos-timeline-window dt { font-size:10.5px; line-height:1.3; }
}
