/* Bước 164 — trang chủ: card thời tiết hiện tại, chuyển từ theme.css theo owner; giữ cascade gốc. */
.ttv-current-wrap{display:block}.ttv-current{padding:var(--ttv-space-6) 26px;border-color:#cfe3f3;box-shadow:0 12px 34px rgba(29,86,132,.09);position:relative;overflow:hidden}.ttv-current__top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding-bottom:var(--ttv-space-4);border-bottom:1px solid #dceaf4}.ttv-current__top :is(h1,h2),.ttv-current-location{font-size:27px;margin:0;display:flex;align-items:center;gap:var(--ttv-space-2);letter-spacing:-.45px;line-height:1.22}.ttv-current__top :is(h1,h2) .ttv-icon,.ttv-current-location .ttv-icon{color:var(--ttv-blue)}.ttv-current__top p{margin:2px 0 0;color:var(--ttv-muted);font-size:var(--ttv-text-sm)}.ttv-current__top .ttv-current-location{margin:0;color:var(--ttv-ink);font-weight:700;display:flex;align-items:center;gap:6px;letter-spacing:-.3px}.ttv-current-location>span{min-width:0}.ttv-current-location a{color:inherit;text-decoration:none;display:inline}.ttv-current-location a:hover{color:var(--ttv-blue-700)}.ttv-current__detail-link{min-height:44px;padding:0 13px;border:1px solid #bcdcf3;border-radius:var(--ttv-radius-sm);display:inline-flex;align-items:center;gap:3px;color:var(--ttv-blue-800);background:#f7fbff;font-size:var(--ttv-text-compact);font-weight:700;white-space:nowrap}.ttv-current__detail-link:hover,.ttv-current__detail-link:focus-visible{background:var(--ttv-blue-50);border-color:#9bcff4}.ttv-current__detail-link .ttv-icon{width:14px;height:14px}.ttv-current__main{display:grid;grid-template-columns:minmax(280px,.78fr) minmax(0,1.22fr);align-items:center;gap:34px;margin-top:var(--ttv-space-5)}.ttv-current__visual{display:flex;align-items:center;gap:18px;padding:var(--ttv-space-2) 0}.ttv-weather-big{width:88px;height:80px;display:grid;place-items:center;position:relative;flex:0 0 auto;color:inherit}.ttv-weather-big>.ttv-icon{width:80px;height:80px}.ttv-current__visual>strong{font-size:72px;letter-spacing:-4px;line-height:.95;font-variant-numeric:tabular-nums;white-space:nowrap;color:#0d3153}.ttv-current__visual sup{font-size:var(--ttv-title-md);letter-spacing:0;vertical-align:top;margin-left:2px}.ttv-current__summary{min-width:0}.ttv-current__summary h2{font-size:var(--ttv-title-card);margin:0 0 7px;line-height:1.25;color:var(--ttv-ink-heading-soft)}.ttv-current__feels{margin:0;display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:var(--ttv-muted);font-size:var(--ttv-text-sm)}.ttv-current__feels span{display:inline-flex;align-items:baseline;gap:var(--ttv-space)}.ttv-current__feels strong{color:var(--ttv-ink);font-size:var(--ttv-text-sm)}.ttv-current__advice{margin:9px 0 0;color:var(--ttv-text-subtle);font-size:var(--ttv-text-sm);line-height:1.55;max-width:760px}.ttv-current__metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;border-top:0;margin-top:var(--ttv-space-5);padding-top:0}.ttv-current-metric{min-width:0;min-height:90px;padding:var(--ttv-space-3) 13px;border:1px solid #dbe8f1;border-radius:var(--ttv-radius-sm);background:var(--ttv-surface-muted);display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:var(--ttv-space) var(--ttv-space-2)}.ttv-current-metric>span{grid-column:1/-1;display:flex;align-items:center;gap:6px;color:var(--ttv-muted);font-size:var(--ttv-text-xs);font-weight:600;line-height:1.3}.ttv-current-metric>span .ttv-icon{width:15px;height:15px;color:var(--ttv-blue)}.ttv-current-metric>strong{font-size:var(--ttv-text-lg);line-height:1.2;color:var(--ttv-ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.ttv-current-metric>small{font-size:var(--ttv-text-xs);line-height:1.3;color:var(--ttv-muted);min-width:0}.ttv-current-metric>.ttv-pill{justify-self:end;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}.ttv-current__metrics--priority>.ttv-current-metric--uv>span .ttv-icon{color:var(--ttv-sun)}.ttv-current__metrics--priority>.ttv-current-metric--humidity>span .ttv-icon{color:var(--ttv-good)}
@media (max-width:1080px){.ttv-current__main{gap:18px;grid-template-columns:220px minmax(0,1fr)}.ttv-current-wrap{grid-template-columns:1fr}}
@media (max-width:980px){.ttv-current__metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.ttv-current{padding:var(--ttv-space-4)}.ttv-current__top{align-items:flex-start;gap:var(--ttv-space-2)}.ttv-current__top :is(h1,h2),.ttv-current-location{font-size:var(--ttv-text-lg);line-height:1.2;overflow-wrap:anywhere}.ttv-current__top p{font-size:var(--ttv-text-xs)}.ttv-current__detail-link{min-height:var(--ttv-control);font-size:var(--ttv-text-xs);width:var(--ttv-control);min-width:var(--ttv-control);height:var(--ttv-control);padding:0;justify-content:center}.ttv-current__main{margin-top:10px;align-items:center;grid-template-columns:auto minmax(0,1fr);gap:var(--ttv-space-2)}.ttv-weather-big{width:50px;height:50px}.ttv-weather-big>.ttv-icon{width:48px;height:48px}.ttv-current__visual{gap:7px;min-width:0}.ttv-current__visual>strong{font-size:46px;letter-spacing:-2.5px}.ttv-current__visual sup{font-size:var(--ttv-text-emphasis)}.ttv-current__summary h2{font-size:var(--ttv-text-body)}.ttv-current__feels{gap:var(--ttv-space-2);font-size:var(--ttv-text-xs)}.ttv-current__feels strong{font-size:var(--ttv-text-xs)}.ttv-current__advice{font-size:var(--ttv-text-xs);line-height:1.4}.ttv-current__summary .ttv-data-status{margin-top:6px;padding:var(--ttv-space) 7px;min-height:24px;font-size:var(--ttv-text-xs)}.ttv-current__metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:10px;padding-top:10px;gap:6px}.ttv-current-metric{min-height:64px;padding:var(--ttv-space-2);grid-template-columns:minmax(0,1fr)}.ttv-current-metric>.ttv-pill{grid-column:1;justify-self:start;font-size:var(--ttv-text-xs);padding-inline:5px}.ttv-current-metric>span{font-size:var(--ttv-text-xs)}.ttv-current-metric>small{font-size:var(--ttv-text-xs)}}
.ttv-weather-big>.ttv-weather-icon{width:68px;height:68px}
@media (max-width:640px){.ttv-weather-big>.ttv-weather-icon{width:48px;height:48px}}
.ttv-current__summary .ttv-data-status{margin-top:var(--ttv-space-2);max-width:520px}.ttv-current-metric,.ttv-current-metric strong{max-width:100%;overflow-wrap:anywhere}.ttv-current-metric small{white-space:normal;overflow-wrap:anywhere}
@media (max-width:640px){.ttv-current__top>div{min-width:0}.ttv-current__detail-link>span{display:inline}.ttv-current__summary{min-width:0}.ttv-current__summary h2,.ttv-current__summary p{overflow-wrap:anywhere}.ttv-current-metric>strong{font-size:var(--ttv-text-sm)}}
/* v1.1.186 — Phase 129 governed selector ownership migration. */

.ttv-home-page{padding-top:10px;padding-bottom:0;background:transparent}
:is(.ttv-home-page>.ttv-section,[data-ttv-home-weather-context]>.ttv-section),[data-ttv-home-weather-context]>.ttv-container>.ttv-section{scroll-margin-top:96px}
/* Bước 212: national page intent stays stable as the local weather fragment changes. */
.ttv-home-intro{margin-bottom:var(--ttv-space-3);padding-top:var(--ttv-space-2);padding-bottom:var(--ttv-space-2)}
.ttv-home-intro h1{margin:0;color:var(--ttv-ink-heading-soft);font-size:clamp(23px,2.6vw,34px);font-weight:750;line-height:1.22;letter-spacing:-.025em;overflow-wrap:anywhere}
.ttv-home-intro p{margin:7px 0 0;color:var(--ttv-muted);font-size:var(--ttv-text-sm);line-height:1.55;max-width:900px}
/* Step 258: homepage and location share the same section-title scale and reading measure. */
.ttv-home-page .ttv-section__head h2{font-size:var(--ttv-title-sm);line-height:1.28;letter-spacing:-.2px;text-wrap:balance;overflow-wrap:anywhere}
.ttv-home-page .ttv-section__head>div>p{margin-top:5px;max-width:68ch;color:var(--ttv-muted);font-size:var(--ttv-text-sm);line-height:1.65}
@media (max-width:640px){.ttv-home-page .ttv-section__head h2{font-size:var(--ttv-text-lg);line-height:1.3}.ttv-home-page .ttv-section__head>div>p{max-width:none;font-size:var(--ttv-text-compact);line-height:1.55}}

.ttv-home-kicker{display:block;margin:0 0 var(--ttv-space);color:var(--ttv-blue-800);font-size:var(--ttv-text-xs);line-height:1.3;font-weight:700;text-transform:uppercase;letter-spacing:.065em}
.ttv-home-context-bar{min-height:82px;margin-bottom:var(--ttv-space-4);padding:var(--ttv-space-3) var(--ttv-space-4);border:1px solid var(--ttv-line-card);border-radius:var(--ttv-radius);background:var(--ttv-surface);display:grid;grid-template-columns:minmax(340px,1.5fr) minmax(170px,.72fr) auto auto;grid-template-areas:"search current locate default";align-items:center;gap:var(--ttv-space-3);box-shadow:none}
.ttv-home-context-bar__current{grid-area:current;min-width:0;display:grid;gap:1px}
.ttv-home-context-bar__current>span{display:flex;align-items:center;gap:5px;color:var(--ttv-blue-800);font-size:var(--ttv-text-xs);font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.ttv-home-context-bar__current>span .ttv-icon{width:13px;height:13px;color:var(--ttv-blue)}
.ttv-home-context-bar__current>strong{min-width:0;font-size:var(--ttv-text-emphasis);line-height:1.28;color:var(--ttv-ink-heading-soft);white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.ttv-home-context-bar__current>small{min-width:0;color:var(--ttv-muted);font-size:var(--ttv-text-xs);line-height:1.4;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.ttv-home-context-search{grid-area:search;min-width:0;height:50px;position:relative;border:1px solid #bdd6e7;border-radius:var(--ttv-radius-sm);background:var(--ttv-surface-soft);display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:var(--ttv-space-2);padding-left:13px;color:var(--ttv-muted);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.ttv-home-context-search:focus-within{border-color:#7bbfee;background:var(--ttv-surface);box-shadow:var(--ttv-shadow-focus-accent)}
.ttv-home-context-search>.ttv-icon{width:17px;height:17px;color:var(--ttv-blue)}
.ttv-home-context-search>input{height:var(--ttv-control);min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--ttv-ink);font-size:var(--ttv-text-body)}
.ttv-home-context-search>button{height:44px;margin-right:var(--ttv-space);padding:0 var(--ttv-space-4);border:0;border-radius:var(--ttv-radius-xs);background:var(--ttv-blue-700);color:var(--ttv-on-accent);font-size:var(--ttv-text-compact);font-weight:700;cursor:pointer}
.ttv-home-context-search>button:is(:hover,:focus-visible){background:#0569b9}
.ttv-home-context-search>.ttv-location-suggestions{grid-column:1/-1;left:0;right:0;top:calc(100% + 7px);color:var(--ttv-ink)}
.ttv-home-context-bar__locate{grid-area:locate;max-width:none;white-space:nowrap;cursor:pointer}
.ttv-home-context-bar__default{grid-area:default;min-height:44px;padding:var(--ttv-space-3);text-decoration:none;text-align:center;border:1px solid #d2e0eb;border-radius:var(--ttv-radius-sm);background:var(--ttv-surface);color:var(--ttv-muted);font-size:var(--ttv-text-xs);font-weight:700;cursor:pointer;white-space:nowrap}
.ttv-home-context-bar__default:is(:hover,:focus-visible){background:var(--ttv-blue-50);border-color:#9bcff4;color:var(--ttv-blue-700)}
.ttv-home-context-bar.is-loading{border-color:#9fd1f4;background:#f8fcff}
.ttv-home-context-bar.is-loading .ttv-home-context-bar__current>strong{color:var(--ttv-blue-700)}
[data-ttv-home-weather-context]{transition:opacity .16s ease}
[data-ttv-home-weather-context].is-loading{opacity:.58;pointer-events:none}
.ttv-home-page .ttv-current-wrap--priority{margin-top:0}
.ttv-home-page .ttv-current-wrap--priority .ttv-current{position:relative;overflow:hidden;border:1px solid var(--ttv-line-card);border-top:2px solid var(--ttv-blue);border-radius:var(--ttv-radius);background:var(--ttv-surface);box-shadow:none}
.ttv-home-page .ttv-current-wrap--priority .ttv-current:before{content:none}
.ttv-home-page .ttv-current__top{position:relative;z-index:1;align-items:flex-start}
.ttv-home-page .ttv-current-location{font-size:clamp(20px,2vw,28px)}
.ttv-home-hero-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:wrap}
.ttv-home-hero-action,.ttv-home-page .ttv-current__detail-link{min-height:44px;padding:0 11px;border:1px solid #bed8e9;border-radius:var(--ttv-radius-sm);background:rgba(255,255,255,.86);display:inline-flex;align-items:center;gap:6px;color:#234d6b;font-size:var(--ttv-text-xs);font-weight:700;cursor:pointer;text-decoration:none}
:is(.ttv-home-hero-action:hover,.ttv-home-hero-action:focus-visible,.ttv-home-hero-action.is-active),:is(.ttv-home-page .ttv-current__detail-link:hover,.ttv-home-page .ttv-current__detail-link:focus-visible){border-color:#83bfe8;background:var(--ttv-surface);color:var(--ttv-blue-800)}
.ttv-home-hero-action .ttv-icon,.ttv-home-page .ttv-current__detail-link .ttv-icon{width:15px;height:15px}
.ttv-home-page .ttv-current__main{position:relative;z-index:1}
.ttv-home-page .ttv-current__metrics--priority{position:relative;z-index:1;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}
.ttv-home-horizon-wrap{margin-bottom:-2px;margin-top:10px;}
.ttv-home-page .ttv-home-hourly{background:var(--ttv-surface);border-color:#d3e1eb;box-shadow:none}
.ttv-home-hourly .ttv-section__head{padding-bottom:13px;border-bottom:1px solid var(--ttv-line-soft)}
.ttv-home-hourly .ttv-section__head h2{display:flex;align-items:center;gap:7px}
.ttv-home-hourly h2 .ttv-icon{width:20px;height:20px;color:var(--ttv-blue)}
.ttv-home-data-suite{background:var(--ttv-surface);border-color:var(--ttv-line-card);box-shadow:none}
.ttv-home-data-suite .ttv-section__head{align-items:flex-start}
.ttv-home-data-suite__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ttv-space-3)}
.ttv-home-data-tool{min-width:0;min-height:142px;padding:17px;border:0;border-top:1px solid var(--ttv-line-soft);border-radius:0;background:transparent;display:grid;grid-template-columns:48px minmax(0,1fr) 18px;align-items:center;gap:var(--ttv-space-3);box-shadow:none;transition:border-color .15s ease,background-color .15s ease}
:is(.ttv-home-data-tool:hover,.ttv-home-data-tool:focus-visible){border-color:#8fc4e8;background:var(--ttv-blue-50);box-shadow:none}
.ttv-home-data-tool--priority{min-height:150px}
.ttv-home-data-tool--rain{border-color:var(--ttv-line-soft);background:transparent}
.ttv-home-data-tool--aqi{border-color:var(--ttv-line-soft);background:transparent}
.ttv-home-data-tool__icon{width:48px;height:48px;border-radius:var(--ttv-radius);background:#e8f5ff;color:var(--ttv-blue-800);display:grid;place-items:center}
.ttv-home-data-tool__icon .ttv-icon{width:23px;height:23px}
.ttv-home-data-tool--aqi .ttv-home-data-tool__icon{color:#24764f;background:#e6f6ed}
.ttv-home-data-tool__body{min-width:0;display:grid;gap:3px}
.ttv-home-data-tool__body>small{color:var(--ttv-muted-strong);font-size:var(--ttv-text-compact);font-weight:700}
.ttv-home-data-tool__body>strong{font-size:var(--ttv-text-lead);line-height:1.28;color:#153853}
.ttv-home-data-tool__body>span{color:var(--ttv-muted);font-size:var(--ttv-text-compact);line-height:1.5}
.ttv-home-data-tool__arrow{color:var(--ttv-muted);display:grid;place-items:center}
.ttv-home-data-tool__arrow .ttv-icon{width:16px;height:16px}

/* Risk cards use the shared alert component. Only the multi-signal
   homepage layout stacks its numeric badges to preserve readable copy. */
.ttv-home-alerts--multiple .ttv-risk-card{grid-template-columns:36px minmax(0,1fr)}
.ttv-home-alerts--multiple .ttv-risk-card__metric{grid-column:2;justify-self:start;max-width:100%;white-space:normal}
/* The provider-disagreement label can be longer than a mobile card. */
.ttv-home-page .ttv-weather-alerts__state{max-width:100%;white-space:normal;overflow-wrap:anywhere}

.ttv-home-decisions{background:var(--ttv-surface);border-color:var(--ttv-line-soft)}
.ttv-home-decision-dashboard .ttv-section__head{padding-bottom:var(--ttv-space-3);border-bottom:0}
.ttv-home-human-summary{margin:var(--ttv-space-3) 0 14px;padding:0 0 13px;border-bottom:1px solid var(--ttv-line-soft);display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:10px}
.ttv-home-human-summary__icon{width:36px;height:36px;border-radius:var(--ttv-radius-sm);display:grid;place-items:center;background:var(--ttv-blue-50);color:var(--ttv-blue-800)}
.ttv-home-human-summary__icon .ttv-icon{width:19px;height:19px}
.ttv-home-human-summary>div{min-width:0;display:grid;gap:2px}
.ttv-home-human-summary strong{font-size:var(--ttv-text-xs);line-height:1.3;text-transform:uppercase;letter-spacing:.045em;color:var(--ttv-blue-800)}
.ttv-home-human-summary p{margin:0;max-width:980px;color:#173a54;font-size:var(--ttv-text-md);line-height:1.55;font-weight:600;overflow-wrap:anywhere}
.ttv-home-human-summary--warn .ttv-home-human-summary__icon{background:var(--ttv-warn-bg);color:var(--ttv-warn)}
.ttv-home-human-summary--danger .ttv-home-human-summary__icon{background:var(--ttv-danger-bg);color:var(--ttv-danger)}
:is(.ttv-home-human-summary--muted .ttv-home-human-summary__icon,.ttv-home-decision--muted .ttv-home-decision__icon){background:#edf2f5;color:#698092}
:is(.ttv-home-human-summary--muted strong,.ttv-home-human-summary--muted p){color:var(--ttv-muted)}
.ttv-home-decisions__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--ttv-space-5);row-gap:0}
.ttv-home-decision{min-width:0;min-height:0;padding:var(--ttv-space-4) 0;border:0;border-bottom:1px solid var(--ttv-line-soft);border-radius:0;background:transparent;display:flex;flex-direction:column;gap:5px}
.ttv-home-decision__top{display:flex;align-items:center;justify-content:space-between;gap:var(--ttv-space-2)}
.ttv-home-decision__icon{width:34px;height:34px;border-radius:var(--ttv-radius-sm);display:grid;place-items:center;background:var(--ttv-blue-50);color:var(--ttv-blue-800)}
:is(.ttv-home-decision__icon,.ttv-home-tool-card__icon) .ttv-icon{width:20px;height:20px}
.ttv-home-decision__status{font-size:var(--ttv-text-compact);line-height:1.4;font-weight:700;padding:0;background:transparent;border-radius:0;color:var(--ttv-muted-strong);text-align:right;overflow-wrap:anywhere}
.ttv-home-decision h3{margin:2px 0 0;font-size:var(--ttv-text-md);line-height:1.4;color:var(--ttv-muted-strong);font-weight:650}
.ttv-home-decision__answer{font-size:var(--ttv-text-emphasis);line-height:1.4;letter-spacing:-.1px;color:var(--ttv-ink);overflow-wrap:anywhere}
.ttv-home-decision__facts{margin:0;color:var(--ttv-muted);font-size:var(--ttv-text-compact);line-height:1.55}
.ttv-home-decision__links{margin-top:auto;padding-top:var(--ttv-space-2);display:flex;align-items:center;gap:var(--ttv-space-3);flex-wrap:wrap}
.ttv-home-decision__link{min-height:var(--ttv-control);display:inline-flex;align-items:center;gap:var(--ttv-space);font-size:var(--ttv-text-compact);font-weight:700;color:var(--ttv-blue-700);text-decoration:none}
.ttv-home-decision__link--secondary{color:var(--ttv-muted)}
:is(.ttv-home-decision__link,.ttv-home-secondary__link,.ttv-home-ten-day__rain) .ttv-icon{width:14px;height:14px}
.ttv-home-decision--good{background:transparent}
:is(.ttv-home-decision--good .ttv-home-decision__icon,.ttv-home-decision--good .ttv-home-decision__status){background:var(--ttv-good-bg);color:var(--ttv-good-ink)}
.ttv-home-decision--warn{background:transparent}
:is(.ttv-home-decision--warn .ttv-home-decision__icon,.ttv-home-decision--warn .ttv-home-decision__status){background:var(--ttv-warn-bg);color:var(--ttv-warn-ink)}
.ttv-home-decision--danger{background:transparent}
:is(.ttv-home-decision--danger .ttv-home-decision__icon,.ttv-home-decision--danger .ttv-home-decision__status){background:var(--ttv-danger-bg);color:var(--ttv-danger-ink)}
.ttv-home-decision--muted{background:transparent}
.ttv-home-decisions__note{margin:var(--ttv-space-3) 0 0;color:var(--ttv-muted);font-size:var(--ttv-text-compact);line-height:1.5}
.ttv-home-page [data-ttv-home-weather-context] > :is(.ttv-section,.ttv-home-secondary){margin-top:0}
.ttv-home-secondary__panel{overflow:hidden;border-radius:var(--ttv-radius);border:1px solid var(--ttv-line-strong);background:var(--ttv-surface)}
.ttv-home-secondary__head{min-height:66px;padding:11px 15px;display:flex;align-items:center;background:#f8fafc}
.ttv-home-secondary__title{min-width:0;display:flex;align-items:center;gap:9px}
.ttv-home-secondary__title>.ttv-icon{width:22px;height:22px;color:var(--ttv-blue-700);flex:0 0 auto}
.ttv-home-secondary__title>div{min-width:0;display:grid;gap:1px}
.ttv-home-secondary__title h2{margin:0;font-size:var(--ttv-text-sm);line-height:1.25;color:var(--ttv-ink);font-weight:700}
.ttv-home-secondary__title small{font-size:var(--ttv-text-xs);line-height:1.35;color:var(--ttv-muted)}
.ttv-home-secondary__grid{padding:var(--ttv-space-2) var(--ttv-space-3);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.ttv-home-secondary__grid>div{min-width:0;min-height:68px;padding:var(--ttv-space-3) var(--ttv-space-2);border:0;border-bottom:1px solid var(--ttv-line-soft);border-radius:0;background:transparent;display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:var(--ttv-space-2)}
.ttv-home-secondary__grid .ttv-icon{grid-row:1/3;width:18px;height:18px;color:var(--ttv-blue)}
.ttv-home-secondary__grid span{font-size:var(--ttv-text-xs);color:var(--ttv-muted)}
.ttv-home-secondary__grid strong{font-size:var(--ttv-text-sm);line-height:1.25;overflow-wrap:anywhere}
.ttv-home-secondary__link{margin:0 var(--ttv-space-3) 11px;min-height:var(--ttv-control);display:inline-flex;align-items:center;gap:3px;color:var(--ttv-blue-700);font-size:var(--ttv-text-xs);font-weight:700}
/* Homepage saved/recent locations: one flat section, two clearly labeled groups. */
.ttv-home-personal{padding:0;background:transparent;border:0;box-shadow:none}
.ttv-home-personal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ttv-space-4);margin-bottom:var(--ttv-space-4)}
.ttv-home-personal__head h2{margin:0;font-size:var(--ttv-title-md);line-height:1.3;color:var(--ttv-ink)}
.ttv-home-personal__head p{margin:var(--ttv-space) 0 0;font-size:var(--ttv-text-sm);line-height:1.5;color:var(--ttv-muted)}
.ttv-home-personal__head>a{min-height:var(--ttv-control);display:inline-flex;align-items:center;align-self:flex-start;gap:var(--ttv-space);padding:0 var(--ttv-space-3);border:1px solid var(--ttv-line-card);border-radius:var(--ttv-radius-sm);background:var(--ttv-surface);color:var(--ttv-blue-800);font-size:var(--ttv-text-compact);font-weight:700;white-space:nowrap}
.ttv-home-personal__head>a:is(:hover,:focus-visible){border-color:var(--ttv-line-focus);background:var(--ttv-blue-50)}
.ttv-home-personal__groups{display:grid;gap:var(--ttv-space-5)}
.ttv-home-personal__group{min-width:0}
.ttv-home-personal__group h3{display:flex;align-items:center;gap:var(--ttv-space-2);margin:0 0 var(--ttv-space-3);font-size:var(--ttv-text-body);line-height:1.4;color:var(--ttv-ink)}
.ttv-home-personal__group h3 span{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 var(--ttv-space);border-radius:var(--ttv-radius-pill);background:var(--ttv-muted-bg);color:var(--ttv-muted-strong);font-size:var(--ttv-text-xs)}
/* Odd counts must not leave a lonely half-width card in the final desktop row. */
.ttv-home-personal__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ttv-space-3)}
@media (min-width:980px){
  .ttv-home-personal__grid[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ttv-home-personal__grid[data-count="5"]{grid-template-columns:repeat(6,minmax(0,1fr))}
  .ttv-home-personal__grid[data-count="5"]>.ttv-home-personal-location{grid-column:span 2}
  .ttv-home-personal__grid:where([data-count="5"])>.ttv-home-personal-location:nth-last-child(-n+2){grid-column:span 3}
}
.ttv-home-personal-location{min-width:0;min-height:88px;padding:var(--ttv-space-4);border:1px solid var(--ttv-line-card);border-radius:var(--ttv-radius);background:var(--ttv-surface);display:grid;grid-template-columns:40px minmax(0,1fr) 16px;align-items:center;gap:var(--ttv-space-3);text-align:left;color:var(--ttv-ink);cursor:pointer;box-shadow:none;transition:background .16s ease,border-color .16s ease}
.ttv-home-personal-location:is(:hover,:focus-visible){background:var(--ttv-blue-50);border-color:var(--ttv-accent-line)}
.ttv-home-personal-location.is-current{border-color:var(--ttv-blue-700);background:var(--ttv-blue-50)}
.ttv-home-personal-location__icon{width:40px;height:40px;display:grid;place-items:center;background:var(--ttv-surface-muted);color:var(--ttv-muted-strong);border-radius:var(--ttv-radius-sm)}
.ttv-home-personal-location.is-saved .ttv-home-personal-location__icon{background:var(--ttv-blue-50);color:var(--ttv-blue-800)}
.ttv-home-personal-location__icon .ttv-icon{width:20px;height:20px}
.ttv-home-personal-location__body{min-width:0;display:grid;align-content:center;gap:var(--ttv-space)}
.ttv-home-personal-location__body strong{font-size:var(--ttv-text-body);line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.ttv-home-personal-location__meta{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ttv-space) var(--ttv-space-2)}
.ttv-home-personal-location__meta small{color:var(--ttv-muted-strong);font-size:var(--ttv-text-compact);line-height:1.5;overflow-wrap:anywhere}
.ttv-home-personal-location__current{justify-self:start;padding:1px var(--ttv-space-2);background:var(--ttv-blue-soft);border-radius:var(--ttv-radius-pill);font-size:var(--ttv-text-xs);color:var(--ttv-blue-800);font-weight:700}
.ttv-home-personal-location__arrow{display:grid;place-items:center;color:var(--ttv-muted-strong)}
.ttv-home-personal-location__arrow .ttv-icon{width:16px;height:16px}










.ttv-home-page .ttv-home-locations{background:var(--ttv-surface);border-color:#d6e2ea}
.ttv-home-page .ttv-home-locations .ttv-section__head{padding-bottom:14px;border-bottom:1px solid var(--ttv-line-soft)}
.ttv-home-locations .ttv-cities{grid-template-columns:repeat(6,minmax(0,1fr))}
/* Step 328 — six city links need more than ~145px each near 1024px. */
@media (min-width:981px) and (max-width:1180px){.ttv-home-locations .ttv-cities{grid-template-columns:repeat(3,minmax(0,1fr))}}
.ttv-home-inline-actions{min-height:0;margin-block-end:var(--ttv-space-4);display:flex;align-items:center;justify-content:space-between;gap:var(--ttv-space-4);padding:var(--ttv-space-4);border:1px dashed #b9d1e2;border-radius:var(--ttv-radius);background:var(--ttv-surface-muted)}
.ttv-home-inline-actions[hidden]{display:none}
.ttv-home-inline-actions strong{display:block;margin-bottom:3px;font-size:var(--ttv-text-sm);color:var(--ttv-ink)}
.ttv-home-inline-actions p{margin:0;max-width:68ch;color:var(--ttv-muted);font-size:var(--ttv-text-sm);line-height:1.5}

.ttv-home-tools{padding:var(--ttv-space-6);border:1px solid var(--ttv-line-soft);border-radius:var(--ttv-radius);background:var(--ttv-surface);display:grid;grid-template-columns:minmax(0,1fr);gap:var(--ttv-space-3);color:var(--ttv-ink);box-shadow:none}
.ttv-home-tools .ttv-home-kicker{color:var(--ttv-blue-700)}
.ttv-home-tools__intro{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:var(--ttv-space-4)}
.ttv-home-tools__intro> :is(.ttv-home-kicker,h2,p){grid-column:1}
.ttv-home-tools__intro>a{grid-column:2;grid-row:1/4;justify-self:end}
.ttv-home-tools__intro h2{margin:0;font-size:var(--ttv-title-sm);line-height:1.3;color:var(--ttv-ink)}
.ttv-home-tools__intro p{margin:var(--ttv-space-2) 0 0;max-width:72ch;color:var(--ttv-muted);font-size:var(--ttv-text-sm);line-height:1.5}
.ttv-home-tools__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--ttv-space-5);row-gap:0}
.ttv-home-tool-card{min-width:0;min-height:96px;padding:var(--ttv-space-3) 0;border:0;border-top:1px solid var(--ttv-line-soft);border-radius:0;background:transparent;display:grid;grid-template-columns:36px minmax(0,1fr) 16px;align-items:center;gap:10px;color:var(--ttv-ink);text-decoration:none}
:is(.ttv-home-tool-card:hover,.ttv-home-tool-card:focus-visible){background:var(--ttv-blue-50)}
.ttv-home-tool-card__icon{width:36px;height:36px;border-radius:var(--ttv-radius-sm);background:var(--ttv-blue-50);display:grid;place-items:center;color:var(--ttv-blue-700)}
.ttv-home-tool-card>span:nth-child(2),.ttv-home-tool-card__body{min-width:0;display:grid;gap:3px}
.ttv-home-tool-card__verdict{font-size:var(--ttv-text-sm);line-height:1.45;color:var(--ttv-ink);font-weight:600}
.ttv-home-tool-card em{color:var(--ttv-muted);font-size:var(--ttv-text-xs);line-height:1.45;font-style:normal}
.ttv-home-tool-card--good .ttv-home-tool-card__verdict{color:var(--ttv-good-ink)}
:is(.ttv-home-tool-card--warn .ttv-home-tool-card__verdict,.ttv-home-ten-day__rain.is-high){color:var(--ttv-warn-ink)}
.ttv-home-tool-card--danger .ttv-home-tool-card__verdict{color:var(--ttv-danger-ink)}
.ttv-home-tool-card--muted .ttv-home-tool-card__verdict{color:var(--ttv-muted)}
.ttv-home-tool-card strong{font-size:var(--ttv-text-sm);line-height:1.4;color:var(--ttv-ink)}
.ttv-home-tool-card small{color:var(--ttv-muted);font-size:var(--ttv-text-compact);line-height:1.5}
.ttv-home-tool-card>.ttv-icon{width:15px;height:15px;color:var(--ttv-icon-muted)}
.ttv-home-page .ttv-news{background:var(--ttv-surface);color:var(--ttv-ink);border-color:#d6e2ea;box-shadow:none}
.ttv-home-page .ttv-news .ttv-section__head{padding-bottom:13px;border-bottom:1px solid var(--ttv-line-soft)}
.ttv-home-page .ttv-news .ttv-section__head h2,.ttv-home-page .ttv-news h3 a{color:var(--ttv-ink)}
.ttv-home-page .ttv-news .ttv-section__head>a{color:var(--ttv-blue-700)}
.ttv-home-page .ttv-news p{color:var(--ttv-muted)}
.ttv-home-page .ttv-news__grid article{padding:10px;border:0;border-top:1px solid var(--ttv-line-soft);border-radius:0;background:transparent}
.ttv-home-page .ttv-news__thumb{border-radius:var(--ttv-radius-xs)}
.ttv-news-empty--public{justify-content:flex-start;color:var(--ttv-muted)}
.ttv-news-empty--public strong{color:var(--ttv-ink)}
.ttv-news-empty__actions{display:flex;gap:var(--ttv-space-3);flex-wrap:wrap;margin-top:var(--ttv-space-2)}
.ttv-news-empty__actions a{min-height:var(--ttv-control);display:inline-flex;align-items:center;color:var(--ttv-blue-700);font-size:var(--ttv-text-sm);font-weight:700;text-decoration:none}
:is(.ttv-news-empty__actions a:hover,.ttv-news-empty__actions a:focus-visible){text-decoration:underline}
.ttv-home-page .ttv-faq{background:var(--ttv-surface);border-color:var(--ttv-line-card);box-shadow:none}
.ttv-home-page .ttv-faq .ttv-section__head{padding-bottom:var(--ttv-space-3);border-bottom:1px solid var(--ttv-line-soft)}
.ttv-home-page .ttv-faq__grid{align-items:start}
@media (max-width:980px){
.ttv-home-decisions__grid{grid-template-columns:1fr 1fr}
.ttv-home-context-bar{grid-template-columns:minmax(0,1.2fr) minmax(180px,.8fr) auto;grid-template-areas:"search search locate" "current current default"}
:is(.ttv-home-context-bar__default,.ttv-home-context-bar__locate){justify-self:end}
.ttv-home-data-suite__grid{grid-template-columns:1fr 1fr}
.ttv-home-secondary__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ttv-home-locations .ttv-cities{grid-template-columns:repeat(3,minmax(0,1fr))}
.ttv-home-tools{grid-template-columns:minmax(0,1fr);padding:var(--ttv-space-5)}
}
@media (max-width:768px){
.ttv-home-context-bar{grid-template-areas:none;grid-template-columns:minmax(0,1fr) auto;gap:var(--ttv-space-2);padding:var(--ttv-space-3)}
.ttv-home-context-bar__current{grid-area:auto;grid-column:1;grid-row:2}
.ttv-home-context-search{grid-area:auto;grid-column:1/-1;grid-row:1}
.ttv-home-context-bar__locate{grid-area:auto;grid-column:2;grid-row:2;width:auto;min-width:106px;min-height:44px;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:normal;line-height:1.25}
.ttv-home-context-bar__locate .ttv-location-btn__label{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;text-align:center;font-size:var(--ttv-text-xs);line-height:1.25}
.ttv-home-context-bar__locate.has-message{width:auto;min-width:106px;max-width:190px;height:auto;min-height:44px;padding:7px 9px}
.ttv-home-context-bar__locate.has-message .ttv-location-btn__label{overflow-wrap:anywhere}
.ttv-home-context-bar__default{grid-area:auto;grid-column:1/-1;grid-row:3;justify-self:start}
.ttv-home-hero-actions{justify-content:flex-start}
.ttv-home-data-suite__grid{grid-template-columns:1fr}
.ttv-home-decisions__grid{grid-template-columns:1fr 1fr}
.ttv-home-personal__head{flex-direction:column;gap:var(--ttv-space-2)}
}
@media (max-width:640px){
.ttv-home-page{padding-top:6px;}
.ttv-home-page .ttv-current__top{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--ttv-space-3)}
.ttv-home-context-search{grid-template-columns:17px minmax(0,1fr) auto;gap:6px;padding-left:9px}
.ttv-home-context-search>button{height:44px;min-height:44px;padding-inline:11px}
.ttv-home-context-search>.ttv-location-suggestions{top:calc(100% + 5px)}
.ttv-home-page .ttv-current-wrap--priority .ttv-current{border-radius:var(--ttv-radius)}
.ttv-home-hero-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.ttv-home-hero-action,.ttv-home-page .ttv-current__detail-link{width:100%;min-width:0;height:auto;min-height:44px;padding:0 7px;justify-content:center;white-space:normal;line-height:1.25;text-align:center}
:is(.ttv-home-data-tool,.ttv-home-data-tool--priority){min-height:94px;padding:11px;grid-template-columns:38px minmax(0,1fr) 16px;gap:9px}
.ttv-home-data-tool__icon{width:38px;height:38px;border-radius:var(--ttv-radius-sm)}
.ttv-home-data-tool__icon .ttv-icon{width:20px;height:20px}
.ttv-home-data-tool__body>strong{font-size:var(--ttv-text-body)}
.ttv-home-decisions__grid{grid-template-columns:1fr}
.ttv-home-decision{grid-column:auto;min-height:0;padding:var(--ttv-space-3) 0}
.ttv-home-secondary__head{min-height:56px;padding:var(--ttv-space-2) 10px}
.ttv-home-secondary__title small{white-space:normal}
.ttv-home-secondary__grid{padding:var(--ttv-space-2);grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.ttv-home-secondary__link{margin:0 10px 10px}
.ttv-home-personal__grid{grid-template-columns:minmax(0,1fr)}
.ttv-home-personal-location{min-height:80px}

.ttv-home-locations .ttv-cities{grid-template-columns:repeat(2,minmax(0,1fr))}
.ttv-home-inline-actions{align-items:stretch;flex-direction:column}
.ttv-home-inline-actions .ttv-btn{width:100%;justify-content:center}
.ttv-home-tools{padding:var(--ttv-space-4);border-radius:var(--ttv-radius)}
.ttv-home-tools__grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0;overflow:visible}
.ttv-home-tool-card{min-height:86px;padding:var(--ttv-space-3) 0}
}
@media (max-width:390px){
.ttv-home-context-bar__current>small{font-size:var(--ttv-text-xs)}
.ttv-home-hero-action span,.ttv-home-page .ttv-current__detail-link span{font-size:var(--ttv-text-xs)}
.ttv-home-data-tool__body>span{line-height:1.4}
.ttv-home-secondary__title>.ttv-icon{display:none}

.ttv-home-secondary__grid>div:last-child{grid-column:auto}
.ttv-home-tools__intro h2{font-size:var(--ttv-title-sm)}
}
/* v1.1.135 — Phase 78: full-site density alignment. Keep the homepage hierarchy flat below the primary weather hero. */
.ttv-home-page :is(.ttv-section,.ttv-home-data-suite,.ttv-home-personal){box-shadow:none}
@media (max-width:640px){:is(.ttv-home-data-suite__grid,.ttv-home-decisions__grid){gap:9px}}

/* v1.1.136 — Phase 79: narrow-phone action density. Three equal hero actions are too compressed at 320–390px. */
@media (max-width:390px){
  .ttv-home-hero-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ttv-home-hero-action,.ttv-home-page .ttv-current__detail-link{padding-inline:9px}
  .ttv-home-context-bar__locate.has-message{max-width:min(180px,52vw)}
}

/* v1.1.173 — Phase 116 browser zoom / text scaling / 200% reflow.
   At an effective 640px viewport, controls must grow vertically instead of clipping labels. */
@media (max-width:640px){
  .ttv-home-context-bar__default,.ttv-home-personal__head>a{height:auto;min-height:44px;white-space:normal;line-height:1.3;text-align:center}
}

/* Homepage reference layout. This is the canonical homepage owner; no new stylesheet. */

.ttv-home-page [data-ttv-home-weather-context]{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:var(--ttv-space-4)}
/* Home weather hero — single editorial surface, visually separate live weather and supporting facts.
   Avoid nested cards, decorative gradients on every element and redundant CSS overrides. */
.ttv-home-hero-grid{display:grid;grid-template-columns:minmax(0,2.45fr) minmax(235px,.85fr);align-items:stretch;gap:var(--ttv-space-3)}
.ttv-home-hero-grid.ttv-home-hero-grid--solo{grid-template-columns:minmax(0,1fr)}
.ttv-home-hero-grid .ttv-current-wrap{width:100%;min-width:0;margin:0}
.ttv-home-page .ttv-home-hero-grid .ttv-current-wrap .ttv-current{height:100%;display:flex;flex-direction:column;gap:0;padding:0;overflow:hidden;border:1px solid #d9e6f1;border-radius:var(--ttv-radius-lg);background:var(--ttv-white);box-shadow:0 5px 20px rgba(19,65,106,.045)}
.ttv-home-page .ttv-home-hero-grid .ttv-current:before,.ttv-home-page .ttv-home-hero-grid .ttv-current:after{content:none}
.ttv-home-hero-grid .ttv-current__feature{position:relative;isolation:isolate;min-width:0;padding:22px var(--ttv-space-6) var(--ttv-space-6);background:#104b80;color:var(--ttv-white);flex:1;overflow:hidden}
.ttv-home-hero-grid .ttv-current__feature:before{content:'';position:absolute;z-index:-1;right:-106px;bottom:-202px;width:420px;height:420px;border-radius:var(--ttv-radius-circle);background:rgba(100,173,224,.13);pointer-events:none}
.ttv-home-hero-grid .ttv-current__feature:after{content:'';position:absolute;z-index:-1;right:64px;bottom:-152px;width:295px;height:295px;border:1px solid rgba(220,241,255,.14);border-radius:var(--ttv-radius-circle);pointer-events:none}
.ttv-home-hero-grid .ttv-current-wrap--pending .ttv-current__feature{background:#f2f7fb;color:var(--ttv-ink)}
.ttv-home-hero-grid .ttv-current-wrap--pending .ttv-current__feature:before,.ttv-home-hero-grid .ttv-current-wrap--pending .ttv-current__feature:after{content:none}
.ttv-home-hero-grid .ttv-current__top{padding:0;border:0;position:relative;z-index:1;gap:14px}
.ttv-home-page .ttv-home-hero-grid .ttv-current-location{font-size:clamp(20px,2.1vw,25px);line-height:1.27;letter-spacing:-.35px;color:var(--ttv-white)}
.ttv-home-hero-grid .ttv-current-wrap--pending .ttv-current-location{color:var(--ttv-ink)}
.ttv-home-hero-grid .ttv-current-location>.ttv-icon{flex:0 0 auto}
.ttv-home-hero-grid .ttv-current__top .ttv-icon{color:#a3dafc}
.ttv-home-hero-grid .ttv-current__top .ttv-current-location a{color:inherit;text-decoration:none;text-underline-offset:3px}
.ttv-home-hero-grid .ttv-current__top .ttv-current-location a:hover,.ttv-home-hero-grid .ttv-current__top .ttv-current-location a:focus-visible{text-decoration:underline;color:var(--ttv-white)}
.ttv-home-hero-grid .ttv-current__top p{margin:5px 0 0;color:#c3dff2;font-size:var(--ttv-text-xs);line-height:1.5}
.ttv-home-hero-grid .ttv-current-wrap--pending .ttv-current__top p{color:var(--ttv-muted)}
.ttv-home-hero-grid .ttv-current__top .ttv-access-hint{max-width:560px;color:#c3dff2}
.ttv-home-page .ttv-home-hero-grid .ttv-home-hero-action,.ttv-home-page .ttv-home-hero-grid .ttv-current__detail-link{min-height:40px;padding:0 11px;border:1px solid rgba(226,245,255,.3);border-radius:var(--ttv-radius-sm);background:rgba(255,255,255,.1);color:var(--ttv-white);font-weight:600;box-shadow:none}
.ttv-home-page .ttv-home-hero-grid .ttv-home-hero-action:is(:hover,:focus-visible,.is-active),.ttv-home-page .ttv-home-hero-grid .ttv-current__detail-link:is(:hover,:focus-visible){background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.64);color:var(--ttv-white)}
.ttv-home-hero-grid .ttv-current__main{position:relative;z-index:1;margin-top:var(--ttv-space-6);gap:var(--ttv-space-5);grid-template-columns:minmax(0,.90fr) minmax(0,1.10fr);align-items:center}
.ttv-home-hero-grid .ttv-current__visual{display:flex;align-items:center;gap:var(--ttv-space-3);padding:0;min-width:0;border:0;border-radius:0;background:none}
.ttv-home-hero-grid .ttv-weather-big{width:76px;height:76px}
.ttv-home-hero-grid .ttv-weather-big>.ttv-icon{width:72px;height:72px}
.ttv-home-hero-grid .ttv-current__visual>strong{font-size:clamp(68px,7.4vw,94px);letter-spacing:-4px;line-height:1;color:var(--ttv-white)}
.ttv-home-hero-grid .ttv-current__visual sup{font-size:var(--ttv-title-card);letter-spacing:0;margin-left:var(--ttv-space)}
.ttv-home-hero-grid .ttv-current__summary h2{font-size:clamp(20px,2.1vw,27px);line-height:1.2;margin-bottom:10px;color:var(--ttv-white)}
.ttv-home-hero-grid .ttv-current__feels,.ttv-home-hero-grid .ttv-current__advice{color:#cee3f1}
.ttv-home-hero-grid .ttv-current__feels strong{color:var(--ttv-white)}
.ttv-home-hero-grid .ttv-current__advice{margin-top:var(--ttv-space-3);line-height:1.55}
.ttv-home-hero-grid .ttv-current__summary .ttv-data-status{color:#c9e3f4;background:transparent;border:0;padding-left:0;max-width:100%}
.ttv-home-hero-grid .ttv-current__summary .ttv-data-status--stale,.ttv-home-hero-grid .ttv-current__summary .ttv-data-status--error{color:#ffda99}
.ttv-home-page .ttv-home-hero-grid .ttv-current__metrics{position:relative;z-index:1;flex:0 0 auto;margin:0;padding:11px 10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:0;background:var(--ttv-white)}
.ttv-home-hero-grid .ttv-current-metric{display:grid;align-content:center;grid-template-columns:minmax(0,1fr) auto;gap:5px 5px;min-width:0;min-height:77px;margin:0;padding:9px 13px;border:0;border-radius:0;background:transparent}
.ttv-home-hero-grid .ttv-current-metric+.ttv-current-metric{border-left:1px solid #e4ebf2}
.ttv-home-hero-grid .ttv-current-metric>span{font-weight:500;color:var(--ttv-muted);font-size:var(--ttv-text-xs);line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.ttv-home-hero-grid .ttv-current-metric>strong{font-size:var(--ttv-title-sm);line-height:1.2;color:#143d60}
.ttv-home-hero-grid .ttv-current-metric>small{color:var(--ttv-muted);font-size:11px}
.ttv-home-at-a-glance{min-width:0;display:grid;grid-template-rows:1fr 1fr;gap:var(--ttv-space-3)}
.ttv-home-at-a-glance .ttv-card{position:relative;min-width:0;overflow:hidden;box-shadow:none;border:1px solid var(--ttv-line-section);border-radius:var(--ttv-radius-lg)}
.ttv-home-sun{padding:18px var(--ttv-space-5);background:#fff8e9}
.ttv-home-sun:before{content:'';position:absolute;right:-35px;top:-40px;width:135px;height:135px;border-radius:var(--ttv-radius-circle);border:24px solid rgba(241,183,71,.11);pointer-events:none}
.ttv-home-sun h2{position:relative;margin:0 0 13px;color:#4f3e25;font-size:var(--ttv-text-sm);line-height:1.4}
.ttv-home-sun__grid{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.ttv-home-sun__grid>div{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:var(--ttv-space-2);min-width:0;min-height:53px;padding:9px 0;border:0;border-top:1px solid #eddfc5;border-radius:0;background:transparent;text-align:left}
.ttv-home-sun__grid .ttv-icon{width:23px;height:23px;color:#d89117}
.ttv-home-sun__grid small{font-size:var(--ttv-text-xs);color:#76654d;line-height:1.4}
.ttv-home-sun__grid strong{font-size:var(--ttv-text-emphasis);line-height:1.25;font-variant-numeric:tabular-nums;text-align:right;color:#493b27}
.ttv-home-air{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-height:0;padding:18px var(--ttv-space-5);background:#eaf6f5;color:#14494d}
.ttv-home-air:before{content:'';position:absolute;right:-42px;bottom:-60px;width:160px;height:160px;border-radius:var(--ttv-radius-circle);border:28px solid rgba(34,133,131,.09);pointer-events:none}
.ttv-home-air.is-unavailable{background:#f2f5f7;color:var(--ttv-ink)}
.ttv-home-air__head{position:relative;width:100%;display:flex;align-items:center;justify-content:space-between;gap:var(--ttv-space-2);font-size:var(--ttv-text-sm);font-weight:700;color:inherit}
.ttv-home-air__head .ttv-icon{width:15px;height:15px;color:inherit}
.ttv-home-air>strong{position:relative;font-size:46px;line-height:1.05;color:#125e63;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ttv-home-air--moderate>strong{color:#866000}
.ttv-home-air--sensitive>strong{color:#9a5708}
.ttv-home-air--unhealthy>strong,.ttv-home-air--very>strong,.ttv-home-air--hazard>strong{color:#9a3144}
.ttv-home-air.is-unavailable>strong{font-size:var(--ttv-text-emphasis);color:var(--ttv-muted-strong)}
.ttv-home-air>span:not(.ttv-home-air__head){position:relative;font-size:var(--ttv-text-sm);font-weight:700;color:inherit}
.ttv-home-air>small{position:relative;color:#526f73;font-size:var(--ttv-text-xs);line-height:1.45}
.ttv-home-air.is-unavailable>small{color:var(--ttv-muted)}
.ttv-home-air:is(:hover,:focus-visible){border-color:#89bec6;text-decoration:none}

.ttv-home-hourly__toolbar{display:flex;justify-content:space-between;align-items:center;gap:var(--ttv-space-2);margin-top:var(--ttv-space-3)}
.ttv-home-hourly__nav{display:none;align-items:center;gap:var(--ttv-space-2)}
.ttv-home-hourly.is-hour-ready .ttv-home-hourly__nav{display:flex}
.ttv-home-hourly__nav>button{width:44px;height:44px;padding:0;border:1px solid var(--ttv-line);border-radius:var(--ttv-radius-sm);background:var(--ttv-surface);color:var(--ttv-blue-700);display:grid;place-items:center;cursor:pointer}
.ttv-home-hourly__nav>button:is(:hover,:focus-visible){background:var(--ttv-blue-50);border-color:#8cbce1}
.ttv-home-hourly__nav>button:focus-visible{outline:2px solid var(--ttv-blue);outline-offset:2px}
.ttv-home-hourly__nav>button:disabled{opacity:.38;cursor:default;background:var(--ttv-surface);border-color:var(--ttv-line)}
.ttv-home-hourly__nav>button .ttv-icon{width:19px;height:19px}
.ttv-home-hourly__nav>button:first-child .ttv-icon{transform:rotate(180deg)}
.ttv-home-hour-strip{min-width:0;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 3 * var(--ttv-space-2)) / 4);gap:var(--ttv-space-2);overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scroll-snap-type:x mandatory;padding:var(--ttv-space-2) 0 var(--ttv-space-3)}
:is(.ttv-home-hour-strip,.ttv-home-ten-day__scroll):focus-visible{outline:2px solid var(--ttv-blue);outline-offset:2px;border-radius:var(--ttv-radius-sm)}
.ttv-home-hour-tile{min-width:0;min-height:240px;padding:var(--ttv-space-3) var(--ttv-space-2);border:0;border-inline-end:1px solid var(--ttv-line-soft);border-radius:0;background:transparent;display:flex;flex-direction:column;align-items:stretch;gap:var(--ttv-space-2);scroll-snap-align:start}
.ttv-home-hour-tile.is-current{background:var(--ttv-blue-50);border-inline-end-color:var(--ttv-line-soft)}
.ttv-home-hour-tile__head{min-height:25px;display:flex;align-items:center;justify-content:center;text-align:center}
.ttv-home-hour-tile__head strong{min-width:0;font-size:var(--ttv-text-compact);font-weight:700;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ttv-home-hour-tile__weather{display:flex;justify-content:center;align-items:center;gap:var(--ttv-space-2);min-height:42px}
.ttv-home-hour-tile__icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto}
.ttv-home-hour-tile__icon .ttv-weather-icon{width:38px;height:38px}
.ttv-home-hour-tile__weather>b{font-size:var(--ttv-title-lg);line-height:1.2;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ttv-ink)}
.ttv-home-hour-tile__condition{min-height:2.65em;max-width:100%;color:var(--ttv-muted-strong);font-size:var(--ttv-text-compact);line-height:1.4;text-align:center;overflow-wrap:anywhere}
.ttv-home-hour-tile__facts{display:grid;gap:5px;padding-top:var(--ttv-space-2);border-top:1px solid var(--ttv-line-soft)}
.ttv-home-hour-tile__fact{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ttv-space);font-size:var(--ttv-text-compact);line-height:1.45}
.ttv-home-hour-tile__fact>span{display:flex;align-items:center;gap:3px;color:var(--ttv-muted);white-space:nowrap}
:is(.ttv-home-hour-tile__fact,.ttv-home-hour-tile__signal) .ttv-icon{width:13px;height:13px;flex:0 0 auto}
.ttv-home-hour-tile__fact>strong{min-width:0;color:var(--ttv-ink);font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}
.ttv-home-hour-tile__rain-amount{font-size:var(--ttv-text-compact);line-height:1.4;color:var(--ttv-muted);text-align:right}
.ttv-home-hour-tile__signal{margin-top:auto;min-height:28px;padding:5px 6px;border-radius:var(--ttv-radius-xs);display:flex;align-items:center;justify-content:center;gap:var(--ttv-space);font-size:var(--ttv-text-sm);line-height:1.25;font-weight:700;text-align:center;background:var(--ttv-muted-bg);color:var(--ttv-muted-strong);overflow-wrap:anywhere}
.ttv-home-hour-tile__signal--danger{background:var(--ttv-danger-bg);color:var(--ttv-danger-ink)}
.ttv-home-hour-tile__signal--warn{background:var(--ttv-warn-bg);color:var(--ttv-warn-ink)}
.ttv-home-hour-tile__signal--good{background:var(--ttv-good-bg);color:#19683c}
.ttv-home-hourly__hint{margin:var(--ttv-space-2) 0 0;color:var(--ttv-muted);font-size:var(--ttv-text-xs);line-height:1.5}
.ttv-home-planning-grid{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:var(--ttv-space-4)}
.ttv-home-planning-grid>.ttv-card{min-width:0;min-height:0;margin:0;box-shadow:none}
.ttv-home-ten-day{min-width:0}
:is(.ttv-home-ten-day__notice,.ttv-home-ten-day__note){margin:var(--ttv-space-2) 0;color:var(--ttv-muted);font-size:var(--ttv-text-xs);line-height:1.55;overflow-wrap:anywhere}
.ttv-home-ten-day__notice{padding:var(--ttv-space-2) var(--ttv-space-3);border-radius:var(--ttv-radius-xs);background:var(--ttv-surface-soft)}
.ttv-home-ten-day__scroll{width:100%;overflow-x:auto;scrollbar-width:thin}
.ttv-home-ten-day__table{width:100%;min-width:625px;border-collapse:collapse;table-layout:auto;font-size:var(--ttv-text-sm)}
:is(.ttv-home-ten-day__table th,.ttv-home-ten-day__table td){padding:var(--ttv-space-3) var(--ttv-space-2);border-bottom:1px solid var(--ttv-line-soft);text-align:left;vertical-align:middle;white-space:nowrap;font-variant-numeric:tabular-nums}
.ttv-home-ten-day__table thead th{background:var(--ttv-surface-soft);font-size:var(--ttv-text-compact);color:var(--ttv-muted-strong);font-weight:700}
.ttv-home-ten-day__table tbody th{min-width:100px}
.ttv-home-ten-day__day-link{display:flex;align-items:center;justify-content:space-between;gap:var(--ttv-space);min-height:44px;color:var(--ttv-ink);text-decoration:none}
.ttv-home-ten-day__day-link>span{display:grid;gap:2px;min-width:0}
:is(.ttv-home-ten-day__day-link strong,.ttv-home-ten-day__day-link small){display:block;overflow-wrap:anywhere;line-height:1.35}
.ttv-home-ten-day__day-link small{color:var(--ttv-muted);font-weight:400}
.ttv-home-ten-day__day-link .ttv-icon{width:14px;height:14px;color:var(--ttv-blue-700);flex:0 0 auto}
.ttv-home-ten-day__day-link:is(:hover,:focus-visible){color:var(--ttv-blue-700)}
.ttv-home-ten-day__day-link:focus-visible{outline:2px solid var(--ttv-blue);outline-offset:2px;border-radius:var(--ttv-radius-xs)}
.ttv-home-ten-day__day-link .ttv-home-ten-day__far{font-size:var(--ttv-text-xs);color:var(--ttv-warn)}
.ttv-home-ten-day__weather{display:flex;align-items:center;gap:var(--ttv-space-2);min-width:125px;white-space:normal;line-height:1.4;overflow-wrap:anywhere}
.ttv-home-ten-day__weather .ttv-weather-icon{flex:0 0 27px;width:27px;height:27px}
.ttv-home-ten-day__rain{color:var(--ttv-blue-700);display:inline-flex;align-items:center;gap:var(--ttv-space);font-weight:700}
.ttv-home-ten-day__temperature{font-size:var(--ttv-text-sm);font-weight:700;color:var(--ttv-ink)}
.ttv-home-ten-day__temperature--low{color:var(--ttv-muted-strong)}
.ttv-home-ten-day__temperature--high{font-weight:700}
@media (max-width:1080px){.ttv-home-planning-grid{grid-template-columns:1fr}.ttv-home-hero-grid{grid-template-columns:minmax(0,1.8fr) minmax(210px,.75fr)}.ttv-home-page .ttv-home-hero-grid .ttv-current__metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ttv-home-hero-grid .ttv-current-metric:nth-child(3){border-left:0}.ttv-home-hero-grid .ttv-current-metric:nth-child(n+3){border-top:1px solid #e4ebf2}.ttv-home-hero-grid .ttv-current__main{grid-template-columns:minmax(0,1fr);gap:10px}.ttv-home-hero-grid .ttv-current__summary h2{font-size:var(--ttv-title-sm)}}
@media (min-width:960px) and (max-width:1080px){.ttv-home-hero-grid .ttv-current__main{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:var(--ttv-space-3)}.ttv-home-hero-grid .ttv-current__visual>strong{font-size:74px}.ttv-home-hero-grid .ttv-weather-big{width:62px;height:62px}.ttv-home-hero-grid .ttv-weather-big>.ttv-icon{width:60px;height:60px}}
@media (max-width:768px){.ttv-home-hour-strip{grid-auto-columns:calc((100% - 2 * var(--ttv-space-2)) / 3)}.ttv-home-hero-grid{grid-template-columns:minmax(0,1fr)}.ttv-home-hero-grid .ttv-current__main{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}.ttv-home-at-a-glance{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto}.ttv-home-air{min-height:150px}}
@media (max-width:640px){.ttv-home-hour-strip{grid-auto-columns:max(138px,calc((100% - var(--ttv-space-2)) / 2))}.ttv-home-page [data-ttv-home-weather-context]{gap:var(--ttv-space-3)}.ttv-home-hero-grid .ttv-current__feature{padding:18px var(--ttv-space-4) var(--ttv-space-5)}.ttv-home-hero-grid .ttv-current__main{grid-template-columns:minmax(0,1fr);gap:var(--ttv-space-3);margin-top:19px}.ttv-home-hero-grid .ttv-current__visual{gap:10px}.ttv-home-hero-grid .ttv-current__visual>strong{font-size:70px}.ttv-home-hero-grid .ttv-weather-big{width:62px;height:62px}.ttv-home-hero-grid .ttv-weather-big>.ttv-icon{width:59px;height:59px}.ttv-home-page .ttv-home-hero-grid .ttv-current__metrics{grid-template-columns:repeat(2,minmax(0,1fr));padding:var(--ttv-space-2)}.ttv-home-hero-grid .ttv-current-metric{min-height:69px;padding:10px}.ttv-home-at-a-glance{grid-template-columns:minmax(0,1fr)}:is(.ttv-home-sun,.ttv-home-air){padding:var(--ttv-space-4)}.ttv-home-sun__grid>div{min-height:54px}.ttv-home-air{min-height:150px}.ttv-home-air>strong{font-size:43px}}
@media (max-width:390px){.ttv-home-hero-grid .ttv-current__feature{padding:var(--ttv-space-4) 14px 18px}.ttv-home-hero-grid .ttv-current__visual>strong{font-size:62px}.ttv-home-page .ttv-home-hero-grid .ttv-home-hero-action,.ttv-home-page .ttv-home-hero-grid .ttv-current__detail-link{gap:3px;padding-inline:var(--ttv-space);font-size:11px}.ttv-home-page .ttv-home-hero-grid .ttv-home-hero-action .ttv-icon,.ttv-home-page .ttv-home-hero-grid .ttv-current__detail-link .ttv-icon{width:13px;height:13px}.ttv-home-hero-grid .ttv-current-metric{grid-template-columns:minmax(0,1fr)}.ttv-home-hero-grid .ttv-current-metric>small{grid-column:1}.ttv-home-air{min-height:130px}}
/* Step 303: home daily forecast keeps table semantics and all seven fields.
   Only the narrow-screen reading order changes; desktop columns stay untouched. */
.ttv-home-ten-day__missing{color:var(--ttv-muted);font-weight:400}
@media (max-width:640px){
  .ttv-home-ten-day__scroll{overflow:visible}
  .ttv-home-ten-day__table{min-width:0;display:block}
  .ttv-home-ten-day__table thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .ttv-home-ten-day__table tbody{display:grid;gap:0}
  .ttv-home-ten-day__table tr{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--ttv-space-2);padding:var(--ttv-space-2) 0;border-bottom:1px solid var(--ttv-line-soft);background:transparent}
  .ttv-home-ten-day__table tbody tr:last-child{border-bottom:0}
  :is(.ttv-home-ten-day__table th,.ttv-home-ten-day__table td){min-width:0;padding:0;border:0;white-space:normal;font-size:var(--ttv-text-sm);line-height:1.3;overflow-wrap:anywhere}
  .ttv-home-ten-day__table tbody th{grid-column:1/4;grid-row:1;min-width:0}
  .ttv-home-ten-day__table td:nth-of-type(1){grid-column:4/-1;grid-row:1;align-self:center}
  .ttv-home-ten-day__table td:nth-of-type(4){grid-column:1/4;grid-row:2}
  .ttv-home-ten-day__table td:nth-of-type(3){grid-column:4/-1;grid-row:2}
  .ttv-home-ten-day__table td:nth-of-type(2){grid-column:1/3;grid-row:3}
  .ttv-home-ten-day__table td:nth-of-type(5){grid-column:3/5;grid-row:3;font-variant-numeric:tabular-nums}
  .ttv-home-ten-day__table td:nth-of-type(6){grid-column:5/7;grid-row:3}
  .ttv-home-ten-day__table td:nth-of-type(n+2)::before{content:attr(data-label);display:block;margin-bottom:2px;color:var(--ttv-muted);font-size:var(--ttv-text-xs);font-weight:400;line-height:1.3}
  .ttv-home-ten-day__table td:nth-of-type(4)::before,.ttv-home-ten-day__table td:nth-of-type(3)::before{font-size:var(--ttv-text-xs)}
  .ttv-home-ten-day__day-link{align-items:flex-start;min-height:44px}
  .ttv-home-ten-day__weather{min-width:0;align-items:center;gap:var(--ttv-space);font-size:var(--ttv-text-compact)}
  .ttv-home-ten-day__weather .ttv-weather-icon{width:28px;height:28px;flex:0 0 28px}
  .ttv-home-ten-day__temperature{display:block;font-size:var(--ttv-text-emphasis);line-height:1.2;font-variant-numeric:tabular-nums}
  .ttv-home-ten-day__temperature--high{color:var(--ttv-ink)}
  .ttv-home-ten-day__rain{gap:3px}
  .ttv-home-ten-day__rain .ttv-icon{width:14px;height:14px}
}

/* City temperature preview: only show numbers for validated observations.
   When all readings are unavailable, show compact useful links instead of six fake temperature tiles. */
.ttv-home-locations .ttv-cities [data-ttv-city-reading][hidden]{display:none!important}
.ttv-home-locations .ttv-cities>a.is-pending{background:var(--ttv-surface)}
.ttv-home-locations .ttv-cities>a.is-pending [data-ttv-city-condition]{color:var(--ttv-blue-700);font-weight:600}
.ttv-home-locations.is-city-links-only .ttv-cities{grid-template-columns:repeat(3,minmax(0,1fr))}
.ttv-home-locations.is-city-links-only .ttv-cities>a{min-height:70px;padding:var(--ttv-space-3) 14px;justify-content:center;gap:var(--ttv-space)}
.ttv-home-locations.is-city-links-only .ttv-cities>a>strong{overflow-wrap:anywhere}
.ttv-home-personal[hidden]{display:none!important}
@media (max-width:640px){.ttv-home-locations.is-city-links-only .ttv-cities{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:359px){.ttv-home-locations.is-city-links-only .ttv-cities{grid-template-columns:1fr}}

/* Compact status belongs to the city-preview section; no extra empty-state card. */
.ttv-home-locations [data-ttv-city-notice]{margin:0 0 var(--ttv-space-3);padding:0;min-height:0;border:0;background:transparent;border-radius:0;display:block}
.ttv-home-locations [data-ttv-city-notice][hidden]{display:none}
.ttv-home-locations [data-ttv-city-notice]>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 9px}
.ttv-home-locations [data-ttv-city-notice] strong{margin:0;font-size:var(--ttv-text-xs);font-weight:700}
.ttv-home-locations [data-ttv-city-notice] p{margin:0;font-size:var(--ttv-text-xs);line-height:1.45}

/* Step 259: flat homepage groups, one reading hierarchy; shared owner only. */
@media (min-width:981px){.ttv-home-secondary__grid>div:nth-last-child(-n+4){border-bottom:0}}
@media (min-width:641px) and (max-width:980px){.ttv-home-secondary__grid>div:nth-last-child(-n+2){border-bottom:0}}
@media (max-width:768px){.ttv-home-secondary__grid>div:nth-last-child(-n+2){border-bottom:0}}
@media (max-width:640px){.ttv-home-tools__intro{grid-template-columns:minmax(0,1fr)}.ttv-home-tools__intro>a{grid-column:1;grid-row:auto;justify-self:start;margin-top:var(--ttv-space-2)}.ttv-home-secondary__grid>div:nth-last-child(-n+2){border-bottom:0}.ttv-home-hour-tile{min-height:230px}}
@media (max-width:359px){.ttv-home-hour-strip{grid-auto-columns:max(138px,100%)}.ttv-home-secondary__grid{grid-template-columns:minmax(0,1fr)}.ttv-home-secondary__grid>div{border-bottom:1px solid var(--ttv-line-soft)}.ttv-home-secondary__grid>div:last-child{border-bottom:0}}
/* Guide content: three concise reading columns, no boxes inside the section. */
.ttv-home-guide .ttv-entry-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--ttv-space-5);line-height:1.55}
.ttv-home-guide .ttv-entry-content>div{min-width:0;padding-top:var(--ttv-space-3);border-top:1px solid var(--ttv-line-soft)}
.ttv-home-guide .ttv-entry-content strong{display:block;font-size:var(--ttv-text-sm);color:var(--ttv-ink)}
.ttv-home-guide .ttv-entry-content p{margin:var(--ttv-space-2) 0 0;font-size:var(--ttv-text-sm);color:var(--ttv-muted);overflow-wrap:anywhere}
@media (max-width:768px){.ttv-home-guide .ttv-entry-content{grid-template-columns:minmax(0,1fr);gap:var(--ttv-space-3)}}
