/* Planner uses the same foundations as Today, Progress and Research. */
#planner-journey{font:400 15px/1.55 var(--font-body);color:var(--ink)}
.pm-screen{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}





.pm-icon{display:block;width:24px;height:24px;flex:none}
.pm-round{border:1px solid var(--line);border-radius:50%;width:44px;min-width:44px;height:44px;background:var(--surface);display:grid;place-items:center;padding:0;color:var(--ink)}
.pm-chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:28px;padding:5px 11px;border-radius:999px;background:var(--chip-bg,var(--surface-soft));color:var(--chip-ink,#193c30);font:600 12px/18px var(--font-body)}
.pm-chip i{width:8px;height:8px;border-radius:50%;flex:none}
.pm-forecast,.pm-discovery{display:flex;flex-direction:column;gap:18px;min-width:0;align-self:start}
.pm-toggle{display:flex;padding:5px;background:var(--surface-soft);border:1px solid var(--line);border-radius:18px;flex:none}
.pm-toggle button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;flex:1;border-radius:13px;background:transparent;font:600 14px/22px var(--font-body);color:var(--muted);padding:0 12px}
.pm-toggle .pm-icon{width:20px;height:20px}
.pm-toggle button[aria-pressed=true]{background:var(--forest);color:var(--on-action);box-shadow:var(--shadow)}
.pm-toggle button[aria-pressed=true] img{filter:var(--action-icon-filter)}
.pm-indoor{border:1px solid var(--line);border-radius:16px;background:var(--surface);font:400 13px/20px var(--font-body);color:var(--muted)}
.pm-indoor summary{cursor:pointer;min-height:44px;padding:12px;list-style:none;text-align:center}
.pm-indoor summary::-webkit-details-marker{display:none}.pm-indoor summary span{text-decoration:underline;font-weight:600;margin-left:6px}
.pm-indoor>div{padding:0 16px 14px}.pm-indoor label{display:block;margin:8px 0}.pm-indoor input{font:400 16px var(--font-body);padding:9px 12px;border:1px solid var(--line);border-radius:10px;width:100%;background:var(--surface-raised);color:var(--ink)}.pm-indoor p{font-size:13px;line-height:20px;margin-top:8px}
.pm-chart-card{padding:22px 20px 18px;background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}
.pm-chart-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:20px}
.pm-chart-heading h2{font-size:18px}.pm-chart-heading span{font-size:11px;color:var(--muted);text-align:right}
.pm-callout-row{position:relative;height:54px}
.pm-callout{position:absolute;top:0;left:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;padding:6px 12px;border-radius:12px;background:var(--forest);color:var(--on-action);white-space:nowrap;transition:left 120ms ease;box-shadow:var(--shadow)}
.pm-callout b{font:600 13px/20px var(--font-body)}.pm-callout span{font:500 11px/16px var(--font-body)}
#j-timeline{width:100%;touch-action:none;user-select:none;outline-offset:4px;border-radius:12px;cursor:ew-resize}
#j-timeline-svg{display:block;width:100%;height:auto;overflow:visible;font-family:var(--font-body)}
#j-timeline-svg image{filter:var(--icon-filter)}
.pm-chart-key{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 14px;font:400 12px/20px var(--font-body);color:var(--muted);margin-top:12px}
.pm-chart-key>span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.pm-chart-key i{width:8px;height:8px;border-radius:50%;background:var(--exposure-green)}.pm-chart-key i.pm-diamond{border-radius:2px;background:var(--xp);transform:rotate(45deg);width:7px;height:7px}
#j-chart-status{font-size:14px;text-align:center;padding:8px 0;color:var(--muted)}
.pm-reading-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:24px;min-height:112px;box-shadow:var(--shadow)}
.pm-reading-label{display:block;font-size:11px;font-weight:600;letter-spacing:.8px;margin-bottom:7px;color:var(--muted)}
.pm-number{display:flex;align-items:baseline;gap:5px}.pm-number strong{font:600 42px/1 var(--font-heading);letter-spacing:-1px}.pm-number>span{font:400 12px/20px var(--font-body);color:var(--muted)}
#j-selected-band{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.pm-delta{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;font:600 12px/20px var(--font-body);background:var(--surface-soft);white-space:nowrap}
.pm-delta.up{background:var(--exposure-red-soft)}.pm-delta.down{background:var(--exposure-green-soft)}.pm-delta i{font-style:normal;font-size:11px}.pm-delta.up i{color:var(--exposure-red-ink)}.pm-delta.down i{color:var(--exposure-green-ink)}.pm-delta>span{font-weight:400;color:var(--muted)}
.pm-activities-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.pm-activities-heading h2{font-size:20px}.pm-activities-heading>span{font-size:12px;color:var(--muted)}
.pm-zone-key{display:flex;flex-wrap:wrap;gap:8px 16px;color:var(--muted);font:400 12px/20px var(--font-body)}
.pm-zone-key span{display:inline-flex;align-items:center;gap:6px}.pm-zone-key i{width:16px;height:7px;border-radius:4px}.pm-zone-key .green{background:var(--exposure-green)}.pm-zone-key .yellow{background:var(--exposure-yellow)}
.pm-tiles{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pm-tile{position:relative;display:flex;flex-direction:column;gap:10px;min-height:178px;padding:20px;text-align:left;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);transition:transform 150ms,border-color 150ms;min-width:0}
.pm-tile:hover{border-color:var(--forest);transform:translateY(-2px)}.pm-tile:active{transform:scale(.98)}.pm-tile:disabled{opacity:.55}
.pm-exercise-icon{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:14px;background:var(--surface-soft)}.pm-exercise-icon .pm-icon{width:26px;height:26px}
.pm-tile-name{font:600 16px/22px var(--font-body)}.pm-tile-name .pm-icon{display:inline-block;width:14px;height:14px;vertical-align:middle}
.pm-tile-value{margin-top:auto;font:400 12px/20px var(--font-body);color:var(--muted)}.pm-tile-value b{font:600 28px/32px var(--font-heading);color:var(--ink);margin-right:4px}
.pm-tile-bar{position:relative;height:7px;border-radius:99px;background:var(--track);overflow:hidden}.pm-tile-bar i{position:absolute;top:0;bottom:0;left:0;width:0;border-radius:99px;transition:width 200ms ease}.pm-tile-bar .g{background:var(--exposure-green)}.pm-tile-bar .y{background:var(--exposure-yellow)}.pm-tile-bar .r{background:var(--exposure-red)}
.pm-tile-met{display:block;margin-top:3px;color:var(--muted);font:400 12px/16px var(--font-body)}
.pm-your-plan{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:22px}.pm-your-plan .eyebrow{display:none}.pm-your-plan .j-card-heading{margin-bottom:12px}.pm-your-plan h2{font-size:20px}.pm-your-plan .j-card-heading>span{font-size:12px}.pm-your-plan .j-plan-link{display:none}
.pm-footnote{grid-column:1/-1;text-align:center;font:400 12px/20px var(--font-body);color:var(--muted)}.pm-footnote a{text-decoration:underline}.pm-attribution{grid-column:1/-1;text-align:center;font:400 11px/18px var(--font-body);color:var(--muted);margin-top:-18px}
.pm-demo-editor{grid-column:1/-1;justify-self:center;margin-bottom:18px}.pm-demo-editor[hidden]{display:none}
.pm-tile-planned{position:absolute;top:18px;right:18px;padding:3px 9px;border-radius:999px;background:var(--xp-soft);color:var(--xp);font:600 11px/16px var(--font-body)}
.pm-aqi-advice{padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft);color:var(--muted);font:400 13px/1.65 var(--font-body)}
.pm-aqi-advice[data-tone=caution]{background:var(--exposure-yellow-soft);border-color:var(--exposure-yellow-soft);color:var(--exposure-yellow-ink)}
.pm-aqi-advice[data-tone=high]{background:var(--exposure-red-soft);border-color:var(--exposure-red-soft);color:var(--exposure-red-ink)}
.pm-concentration{flex-basis:100%;font:400 12px/18px var(--font-body);color:var(--muted)}
/* One responsive dialog family: centred on desktop, a sheet on mobile. */
#j-session{width:560px;max-width:calc(100% - 32px);max-height:calc(100dvh - 40px);margin:auto;padding:26px;border:1px solid var(--line);border-radius:28px;background:var(--surface);color:var(--ink);font:400 15px/1.5 var(--font-body);box-shadow:var(--dialog-shadow)}
#j-session::backdrop,.pm-help::backdrop{background:#0a1c1580;backdrop-filter:blur(5px)}
#j-session .j-sheet-grab{display:none}
#j-session .j-sheet-heading{display:flex;align-items:center;gap:12px}#j-session .j-sheet-heading>div{flex:1;min-width:0}#j-session h2{font:700 22px/28px var(--font-heading);letter-spacing:-.5px}
#j-session-icon{width:48px;height:48px;border-radius:16px;background:var(--surface-soft);display:grid;place-items:center;flex:none}#j-session-icon .pm-icon{width:28px;height:28px}
#j-session-when{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:6px;font:400 12px/18px var(--font-body);color:var(--muted)}
#j-session-when .pm-concentration{flex-basis:auto}#j-session-when>span:first-child,#j-session-when>span:last-child{flex-basis:100%}
#j-session .j-round{width:40px;min-width:40px;height:40px;border:1px solid var(--line);background:var(--surface);padding:0;display:grid;place-items:center}
#j-session .j-round .pm-icon{width:18px;height:18px}
#j-session .j-session-body{display:flex;align-items:center;gap:24px;margin:24px 0}
#j-session .j-ring,#j-session .j-ring canvas{width:160px;height:160px;flex:none}#j-session .j-ring{position:relative}
#j-session .j-ring>div{position:absolute;inset:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border-radius:50%;background:var(--surface-soft);box-shadow:inset 0 2px 6px #113c2510,0 2px 4px #113c2508;pointer-events:auto}
#j-duration{appearance:textfield;-moz-appearance:textfield;font:700 40px/44px var(--font-heading);padding:0;border:0;background:transparent;color:var(--ink);width:92px;max-width:92px;text-align:center;border-radius:8px;height:46px;box-shadow:none;letter-spacing:-1px}#j-duration::-webkit-inner-spin-button,#j-duration::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#j-session .j-ring span{font:500 12px/18px var(--font-body);color:var(--muted)}
#j-session .j-session-side{display:flex;flex-direction:column;align-items:flex-start;gap:9px;font:400 12px/18px var(--font-body);color:var(--muted);min-width:0}
#j-session .j-zone-label{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;font:600 12px/18px var(--font-body);color:var(--muted);background:var(--surface-soft)}
#j-session .j-zone-label:before{content:'';height:7px;width:7px;border-radius:50%;background:var(--muted);flex:none}
#j-session .j-zone-label.green{background:var(--exposure-green-soft);color:var(--exposure-green-ink)}#j-session .j-zone-label.green:before{background:var(--exposure-green)}
#j-session .j-zone-label.yellow{background:var(--exposure-yellow-soft);color:var(--exposure-yellow-ink)}#j-session .j-zone-label.yellow:before{background:var(--exposure-yellow)}
#j-session .j-zone-label.red{background:var(--exposure-red-soft);color:var(--exposure-red-ink)}#j-session .j-zone-label.red:before{background:var(--exposure-red)}
#j-session-xp{display:inline-flex;padding:5px 12px;border-radius:12px;background:var(--xp-soft);color:var(--xp);font:700 22px/28px var(--font-heading)}
#j-session .pm-duration-label{display:block;margin:0;font:600 14px/22px var(--font-body);color:var(--ink)}
#j-duration-range{display:block;width:100%;height:44px;margin:0;accent-color:var(--forest);padding:0;background:transparent;cursor:pointer}
#j-session .j-sheet-actions{display:flex;gap:10px;margin-top:12px}#j-session .j-sheet-actions .button{border-radius:14px;min-height:50px;font:600 14px/22px var(--font-body);gap:8px;padding:0 16px;justify-content:center;white-space:nowrap}
#j-session .j-sheet-actions .button:first-child{flex:none;border:1px solid var(--line);background:var(--surface);color:var(--muted)}#j-session .j-sheet-actions .button:first-child[aria-pressed=true]{background:var(--xp-soft);color:var(--xp)}#j-session .j-sheet-actions .button:last-child{flex:1;background:var(--forest);color:var(--on-action)}#j-favourite .pm-icon{width:18px;height:18px}
#j-actual-time{margin:12px 0;font:400 13px/20px var(--font-body)}#j-actual-time p{margin-top:6px;color:var(--muted)}#j-start{font:400 16px var(--font-body);border:1px solid var(--line);border-radius:10px;padding:10px;margin-top:6px;width:100%;background:var(--surface-raised);color:var(--ink)}#j-session-error:empty{display:none}#j-session-error{font-size:13px;margin:6px 0}
.pm-help{font:400 15px/24px var(--font-body);border:1px solid var(--line);border-radius:24px;width:calc(100% - 32px);max-width:440px;padding:26px;color:var(--ink);background:var(--surface)}.pm-help>button{float:right;margin:-6px -6px 12px 12px}.pm-help h2{font:700 24px/30px var(--font-heading)}.pm-help p{margin:16px 0}.pm-help a{color:var(--forest);text-decoration:underline}
#j-session-boundaries{display:flex;flex-direction:column;gap:4px}
#j-session-credit{font:400 12px/18px var(--font-body);color:var(--muted)}
#j-session-exposure{font:400 12px/18px var(--font-body);color:var(--muted)}
#j-session #j-save-workout:disabled{background:var(--track);color:var(--muted);opacity:.7;cursor:not-allowed}
#j-session-air-advice{margin-top:18px;font-size:12px;padding:12px 14px}
@media(max-width:1000px){.pm-screen{gap:20px}.pm-tile{padding:16px}.pm-chart-card{padding:18px 16px}}
@media(max-width:760px){
  .pm-screen{grid-template-columns:1fr;gap:22px}.pm-forecast,.pm-discovery{gap:16px}
  .pm-chart-card{padding:20px 16px 16px}.pm-reading-card{padding:20px}.pm-chart-heading h2{font-size:17px}.pm-activities-heading h2{font-size:20px}.pm-tile{padding:18px;min-height:180px}
  #j-session{max-width:100%;width:100%;margin:auto auto 0;max-height:94dvh;padding:12px 22px calc(22px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0}
  #j-session .j-sheet-grab{display:block;width:36px;height:4px;border-radius:4px;background:var(--line);margin:0 auto 20px}
  #j-session .j-session-body{gap:20px}#j-session .j-ring,#j-session .j-ring canvas{width:150px;height:150px}#j-session .j-ring>div{inset:26px}
}
@media(max-width:380px){.pm-round{width:38px;min-width:38px;height:38px}.pm-chip{font-size:11px;padding:4px 8px}.pm-number strong{font-size:36px}.pm-tile{padding:15px}.pm-tile-name{font-size:14px}#j-session{padding-left:16px;padding-right:16px}#j-session .j-session-body{gap:12px}#j-session .j-ring,#j-session .j-ring canvas{width:136px;height:136px}#j-session .j-sheet-actions .button{font-size:13px;padding:0 12px}}
@media(prefers-reduced-motion:reduce){.pm-callout,.pm-tile,.pm-tile-bar i{transition:none}}

.pm-timeline-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--forest) var(--track);padding:4px 0 8px}
.pm-chart-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;color:var(--muted);font-size:12px}
.pm-chart-navigation button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);color:var(--ink);font-size:20px}
.pm-chart-navigation button:hover:not(:disabled){background:var(--track)}
.pm-chart-card{min-width:0}

.pm-timeline-scroll[data-mode="indoor"]{overflow:visible;padding:0}

/* Text wordmark inspired by the supplied image's heavy geometric lettering. */
.app-header .brand{gap:7px;font-family:'Manrope',-apple-system,BlinkMacSystemFont,sans-serif;font-size:32px;font-weight:800;line-height:1.1;letter-spacing:-1.2px;white-space:nowrap}
.brand-aqi{color:#134a35}
.brand-rx{color:#278b13}
:root[data-theme=dark] .brand-aqi{color:#d7eedb}
:root[data-theme=dark] .brand-rx{color:#86df4a}

/* Align every page to one shell; stack columns before cards become cramped. */
main,.app-header{width:calc(100% - 48px);max-width:1120px;margin-inline:auto}
.app-header{padding-inline:0}
.today-layout,.pm-screen{grid-template-columns:minmax(0,1fr);gap:24px}
.today-layout>*,.pm-screen>*,.j-progress-layout>*,.nr-grid>*,.j-today-intro>*{min-width:0}
.air-hero,.week-card{align-self:start}
.pm-activities-heading{flex-wrap:wrap}
.pm-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
.pm-tile-name,.pm-tile-value,.air-intelligence-context,.nr-card h2{overflow-wrap:anywhere}
.week-card{width:100%}
@media(min-width:1100px){
 .today-layout{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pm-screen{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:28px}
}
@media(min-width:961px){
 body{padding-bottom:0}
 .header-right .demo-tag{display:none}
 .main-nav{gap:4px;margin-left:0}.main-nav a{padding:10px 12px;white-space:nowrap}
 .profile-label{display:none}
}
@media(min-width:761px) and (max-width:1099px){
 .j-today-intro{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
 .j-today-earned{padding:0;border:0;gap:16px}
 .j-today-intro-action{grid-column:1/-1;align-items:stretch}
 .j-today-intro-action .button{justify-content:center}
}
@media(max-width:960px){.nr-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){main,.app-header{width:calc(100% - 32px)}.app-header{gap:12px}}


/* Optional phone-width layout on desktop. Real phones use existing breakpoints. */
.layout-switch{display:none}
@media(min-width:961px){
 .layout-switch{display:flex;align-items:center;justify-content:flex-end;gap:4px;max-width:1120px;width:calc(100% - 48px);margin:12px auto 0;font-size:12px}
 .layout-switch>span{color:var(--muted);margin-right:8px}
 .layout-switch button{min-height:36px;padding:8px 14px;border:1px solid var(--line);border-radius:10px;color:var(--muted);background:var(--surface);font:inherit;cursor:pointer}
 .layout-switch button[aria-pressed=true]{background:var(--forest);color:var(--on-action);border-color:var(--forest)}
 .layout-switch button:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
 html[data-layout=mobile] body{padding-bottom:88px}
 html[data-layout=mobile] main,html[data-layout=mobile] .app-header{width:408px;max-width:calc(100% - 32px);margin-inline:auto}
 html[data-layout=mobile] .app-header{height:76px;gap:12px;padding:0}
 html[data-layout=mobile] .header-right{margin-left:auto;gap:12px}
 html[data-layout=mobile] .main-nav{display:none}
 html[data-layout=mobile] main{padding-top:24px}
 html[data-layout=mobile] .today-layout,html[data-layout=mobile] .pm-screen,html[data-layout=mobile] .j-progress-layout,html[data-layout=mobile] .nr-grid,html[data-layout=mobile] .research-cards{grid-template-columns:minmax(0,1fr)}
 html[data-layout=mobile] .page-heading{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:22px}
 html[data-layout=mobile] h1{font-size:30px}
 html[data-layout=mobile] .air-hero{padding:22px 20px}
 html[data-layout=mobile] .air-metrics{gap:12px}
 html[data-layout=mobile] .air-metric+.air-metric{padding-left:12px}
 html[data-layout=mobile] .air-metric-value{font-size:29px}
 html[data-layout=mobile] .air-metric-aqi .air-metric-value{font-size:64px}
 html[data-layout=mobile] .week-card.window-card{padding:24px}
 html[data-layout=mobile] .week-card h2{font-size:26px}
 html[data-layout=mobile] .j-today-intro{grid-template-columns:1fr;gap:20px;padding:22px}
 html[data-layout=mobile] .j-today-earned{justify-content:space-between;padding:16px 0 0;border:0;border-top:1px solid var(--line)}
 html[data-layout=mobile] .j-today-intro-action{align-items:stretch}
 html[data-layout=mobile] .pm-forecast,html[data-layout=mobile] .pm-discovery{gap:16px}
 html[data-layout=mobile] .pm-chart-card{padding:20px 16px 16px}
 html[data-layout=mobile] .pm-reading-card{padding:20px}
 html[data-layout=mobile] .pm-tile{padding:18px;min-height:180px}
 html[data-layout=mobile] .pm-activities-heading h2{font-size:20px}
 html[data-layout=mobile] #j-progress-summary{grid-template-columns:1fr}
 html[data-layout=mobile] .j-progress-layout>aside{display:grid;grid-template-columns:1fr}
 html[data-layout=mobile] .j-total-card{display:none}
 html[data-layout=mobile] .j-history-item{flex-wrap:wrap}
 html[data-layout=mobile] .nr-switch button{padding:15px 12px;font-size:15px}
 html[data-layout=mobile] .nr-switch button span{font-size:11px}
 html[data-layout=mobile] .nr-card{padding:22px}
 html[data-layout=mobile] .nr-topics{gap:6px}
 html[data-layout=mobile] .nr-topics button{padding:10px 12px}
 html[data-layout=mobile] .app-footer{flex-wrap:wrap;gap:12px;font-size:10px}
 html[data-layout=mobile] .app-footer>div{width:100%;justify-content:space-between;gap:12px}
 html[data-layout=mobile] .mobile-nav{position:fixed;inset:auto 0 0;z-index:40;display:flex;justify-content:center;width:440px;max-width:100%;margin-inline:auto;padding:8px 12px;background:var(--surface);border:1px solid var(--line);border-radius:18px 18px 0 0;box-shadow:0 -4px 24px #10291c08}
 html[data-layout=mobile] .mobile-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:7px 4px;border-radius:14px;font-size:11px;font-weight:600;color:var(--muted);min-height:54px}
 html[data-layout=mobile] .mobile-nav img{width:22px;height:22px;filter:var(--icon-filter)}
 html[data-layout=mobile] .mobile-nav a[aria-current=page]{background:var(--surface-soft);color:var(--ink)}
 html[data-layout=mobile] dialog{max-width:408px}
 html[data-layout=mobile] #j-session{width:440px;max-width:440px;margin:auto auto 0;padding:12px 22px 22px;border-radius:28px 28px 0 0}
 html[data-layout=mobile] #j-session[data-mode=outdoor] .j-session-body{--activity-clock-size:180px;column-gap:10px}
 html[data-layout=mobile] .toast{bottom:88px}
}

/* Keep the AQI and history panels level; generated text grows below the pair. */
.today-layout>.today-insight{grid-column:1/-1;background:var(--surface);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px}
.today-insight .air-insight-copy{min-width:0}
.today-insight small{display:block;margin-top:10px}
.today-insight [data-insight-action]{width:auto;max-width:300px;padding:12px 20px}
@media(min-width:1100px){
 html:not([data-layout=mobile]) .today-layout>.air-hero,html:not([data-layout=mobile]) .today-layout>.week-card{align-self:stretch}
 html:not([data-layout=mobile]) .today-layout>.air-hero{display:flex;flex-direction:column}
 html:not([data-layout=mobile]) .air-hero .aqi-severity{margin-bottom:20px}
 html:not([data-layout=mobile]) .air-hero .hero-bottom{margin-top:auto}
 html:not([data-layout=mobile]) .week-clock-face{width:220px}
}
@media(max-width:960px){.today-layout>.today-insight{grid-template-columns:1fr;gap:18px}.today-insight [data-insight-action]{width:100%;max-width:none}}
html[data-layout=mobile] .today-layout>.today-insight{grid-template-columns:1fr;gap:18px}
html[data-layout=mobile] .today-insight [data-insight-action]{width:100%;max-width:none}

/* Movement summary and the PM forecast share a desktop row. */
.today-movement-forecast{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin-top:24px}
.today-movement-forecast>section{min-width:0;margin:0}
@media(min-width:1100px){
 html:not([data-layout=mobile]) .today-movement-forecast{grid-template-columns:repeat(2,minmax(0,1fr))}
 html:not([data-layout=mobile]) .today-movement-forecast .j-today-intro{height:100%;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:24px;padding:28px}
 html:not([data-layout=mobile]) .today-movement-forecast .j-today-earned{justify-content:space-between;padding:24px 0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
 html:not([data-layout=mobile]) .today-movement-forecast .j-today-intro-action{align-items:stretch}
 html:not([data-layout=mobile]) .today-movement-forecast .j-today-intro-action .button{justify-content:space-between}
 html:not([data-layout=mobile]) .today-movement-forecast .j-today-intro-action>span{text-align:center}
 .today-movement-forecast .day-preview .section-title{flex-wrap:wrap;gap:12px}
}

/* Explanations span the row rather than lengthening one Planner column. */
.pm-screen>#j-air-intelligence{grid-column:1/-1}
@media(min-width:1100px){
 html:not([data-layout=mobile]) .pm-screen{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
 html:not([data-layout=mobile]) .pm-discovery{align-self:stretch}
 html:not([data-layout=mobile]) .pm-discovery .pm-tiles{flex:1;grid-auto-rows:1fr}
 html:not([data-layout=mobile]) #j-air-intelligence .air-intelligence-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 html:not([data-layout=mobile]) #j-air-intelligence .air-intelligence-facts>div:last-child{grid-column:auto}
 html:not([data-layout=mobile]) #j-air-intelligence [data-pi-action]{width:auto;min-width:300px}
}
