/* Owned layout. Light palette override is appended separately. */
.r14-home{max-width:1180px;margin:0 auto;padding:12px 0 32px;color:#172336;font-size:15px;line-height:1.55}.r14-home *{box-sizing:border-box}.r14-home [hidden],.r14-game-modal[hidden]{display:none!important}.r14-home h1{font-size:clamp(23px,3vw,32px);line-height:1.2;letter-spacing:-.04em;margin:8px 0}.r14-home h2{font-size:19px;line-height:1.4;letter-spacing:-.025em;margin:0}.r14-home h3{font-size:16px;line-height:1.4;margin:0}.r14-home p{margin:6px 0 12px}.r14-home a{text-decoration:none;color:#173b70}.r14-home a:hover{text-decoration:underline}.r14-home button,.r14-home select,.r14-home input{font:inherit;font-size:14px;border:1px solid #c9d4e1;border-radius:8px;min-height:38px;padding:7px 10px;background:#fff;color:#172336;max-width:100%}.r14-home button{cursor:pointer}.r14-home button:hover{background:#eaf1fc;border-color:#8eabd4}.r14-home :focus-visible,.r14-game-modal :focus-visible{outline:3px solid #2563eb;outline-offset:3px}.r14-home button:disabled{opacity:.65;cursor:wait}.r14-topline,.r14-section-line,.r14-feed-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.r14-topline{padding:8px 4px 12px}.r14-topline p{margin:0;color:#516176}.r14-eyebrow{display:block;font-size:12px;font-weight:650;letter-spacing:.02em;color:#56677c}.r14-clock{text-align:right;flex:none}.r14-clock time{display:block;font-size:clamp(23px,3.5vw,36px);font-variant-numeric:tabular-nums;font-weight:720;letter-spacing:-.04em;color:#152e55}.r14-clock span{display:block;font-size:11px;color:#62738a}.r14-quick-nav{display:flex;gap:7px;flex-wrap:wrap;padding:8px 2px 15px}.r14-quick-nav a{padding:6px 12px;border:1px solid #dce4ef;border-radius:20px;background:#fff;color:#304865;font-size:13px}.r14-weather,.r14-trends,.r14-feed,.r14-directory,.r14-game-teaser,.r14-side-links,.r14-products{background:#fff;border:1px solid #dce4ef;border-radius:14px;padding:17px;margin-bottom:17px;min-width:0}.r14-city-controls{display:flex;gap:6px;align-items:center;font-size:12px}.r14-city-controls label{color:#526279}.r14-city-controls select{min-width:74px}.r14-city-controls button{font-size:12px}.r14-weather-body{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;align-items:start;margin-top:12px}.r14-weather-current{padding:13px 10px 0 0;border-right:1px solid #e2e8f0;min-width:0}.r14-weather-current strong{display:block;font-size:42px;line-height:1.2;font-weight:700;letter-spacing:-.06em;margin:9px 0}.r14-weather-current strong span{font-size:20px;font-weight:500;margin-left:3px}.r14-weather-current>div>span:last-child{display:block;font-size:13px}.r14-weather-current p{font-size:11px;color:#61748b;margin-top:15px}.r14-weather-future{min-width:0}.r14-weather-future h3{font-size:13px}.r14-data-status{font-size:11px;color:#52667f}.r14-week{display:grid;grid-template-columns:repeat(7,minmax(65px,1fr));list-style:none;padding:0;margin:8px 0 0;overflow-x:auto;overscroll-behavior-inline:contain;border-radius:9px}.r14-day{text-align:center;border-left:1px solid #ebeff4;display:flex;align-items:center;flex-direction:column;padding:6px 3px 8px;min-width:0;gap:3px}.r14-day:first-child{border-left:0}.r14-day-label{font-size:13px;font-weight:700;color:#3b4f68}.r14-is-today{background:#edf4ff;border-radius:8px}.r14-day time{font-size:11px;color:#61748b}.r14-weather-icon{display:block;width:39px;height:39px;flex:none;margin:2px auto}.r14-condition{font-size:11px;white-space:nowrap}.r14-temperatures{display:flex;justify-content:center;gap:9px;font-variant-numeric:tabular-nums;font-size:14px;font-weight:700}.r14-min{color:#2864b6}.r14-max{color:#b64235}.r14-day small{font-size:10px;color:#61738b}.r14-source-note{font-size:11px!important;color:#627189!important;line-height:1.7!important;margin:8px 0 0!important;overflow-wrap:anywhere}.r14-source-note a{color:#42648c}.r14-trend-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:10px}.r14-trend-panel{min-width:0}.r14-trend-panel+.r14-trend-panel{border-left:1px solid #e0e7f0;padding-left:22px}.r14-trend-panel h3{font-size:15px}.r14-trend-panel .r14-section-line>a{font-size:11px;color:#63748b;flex:none}.r14-trend-list{list-style:none;margin:8px 0;padding:0}.r14-trend-list li{display:flex;gap:8px;align-items:center;min-width:0;min-height:30px;padding:3px 0}.r14-trend-list li>a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0;font-size:14px}.r14-trend-number{width:18px;text-align:center;font-variant-numeric:tabular-nums;color:#3468b4;font-weight:750;font-size:13px;flex:none}.r14-trend-list small{font-size:10px;color:#738098;flex:none}.r14-trends>.r14-section-line button{font-size:12px;min-height:32px}.r14-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:18px;align-items:start}.r14-content-grid>.r14-feed{margin-bottom:17px}.r14-sidebar{min-width:0}.r14-settings{position:relative;font-size:12px;flex:none}.r14-settings summary{cursor:pointer;border:1px solid #d5deeb;padding:7px 10px;border-radius:8px}.r14-settings[open]{z-index:4;max-width:300px}.r14-settings[open] label,.r14-settings[open] p{display:block;font-size:12px;margin-top:9px}.r14-settings input[type=checkbox]{min-height:auto;margin:0 5px 0 0;vertical-align:middle}.r14-kind-tabs{display:flex;gap:7px;margin:15px 0 12px}.r14-kind-tabs button{border-radius:20px;font-size:13px;min-height:33px;padding:5px 12px}.r14-kind-tabs button[aria-pressed=true],.r14-game-shortcuts button[aria-pressed=true]{background:#1b58b7!important;color:#fff!important;border-color:#1b58b7}.r14-feed-filters{display:grid;grid-template-columns:minmax(110px,1fr) minmax(88px,125px) minmax(84px,110px);gap:7px;margin:9px 0}.r14-feed-filters label{min-width:0}.r14-feed-filters input,.r14-feed-filters select{width:100%}.r14-feed-list{list-style:none;padding:0;margin:13px 0 0;border-top:1px solid #e1e7f0}.r14-feed-row{display:flex;align-items:center;gap:9px;min-height:45px;padding:10px 0;border-bottom:1px solid #e7edf4;min-width:0}.r14-source{border-radius:5px;background:#eef3f9;color:#4c617a;flex:none;font-size:10px;width:72px;text-align:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:4px}.r14-post-main{min-width:0;flex:1}.r14-post-title{display:block;color:#192d49!important;font-weight:500;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.r14-feed-row time{flex:none;min-width:52px;color:#748195;font-size:10px;text-align:right}.r14-credit{display:block;font-size:10px;color:#63748b}.r14-feed-bottom{padding-top:12px;font-size:12px;color:#62748c}.r14-feed-bottom button{font-size:12px}.r14-source-details{font-size:12px;margin-top:13px;border-top:1px solid #e4eaf3;padding-top:10px}.r14-source-details summary{cursor:pointer;color:#536b8a}.r14-source-details ul{line-height:1.8;padding-left:18px}.r14-source-details p{color:#60738b}.r14-empty{padding:25px 12px!important;color:#697a92;font-size:13px;line-height:1.8}.r14-ad{border:1px solid #dce4ec;border-radius:12px;background:#fafcff;margin-bottom:17px;padding:13px;text-align:center;overflow-wrap:anywhere;min-width:0}.r14-ad-label{font-size:10px;color:#596d89;letter-spacing:.05em;font-weight:700;text-align:left}.r14-ad p{font-size:10px;line-height:1.7;color:#65758c;margin:7px 0 12px}.r14-ad-mount{display:flex;justify-content:center;align-items:center;min-width:0}.r14-ad iframe{border:0;display:block;max-width:100%}.r14-ad img{display:block;border:0;max-width:100%;object-fit:contain}.r14-ad small{display:block;font-size:10px;color:#697a90;line-height:1.7;margin-top:10px}.r14-side-links{display:flex;flex-direction:column;gap:5px}.r14-side-links h2{font-size:16px;margin-bottom:6px}.r14-side-links>a{display:block;padding:8px 0;border-bottom:1px solid #edf1f6;font-size:13px}.r14-directory>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}.r14-directory>div>a{padding:7px 11px;background:#f1f5fa;border-radius:7px;font-size:12px;color:#425b7c}.r14-section-line small{font-size:11px;color:#6b7d96}.r14-game-teaser>p,.r14-games-page>p,.r14-game-detail>p{color:#52657f;font-size:13px;line-height:1.8}.r14-games-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,235px),1fr));gap:12px}.r14-game-card{border:1px solid #dce4ef;border-radius:12px;padding:15px;background:#fff;min-width:0;display:flex;flex-direction:column}.r14-game-card h3{font-size:16px;margin:5px 0}.r14-game-card p{font-size:12px;color:#64748b;line-height:1.7;flex:1}.r14-game-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.r14-game-actions button,.r14-game-actions a{font-size:11px;min-height:32px;padding:6px 9px}.r14-game-actions [data-r14-play],.r14-primary{background:#1b58b7!important;color:#fff!important;border:1px solid #1b58b7!important;display:inline-block;padding:8px 13px;border-radius:8px}.r14-game-actions button[aria-pressed=true]{background:#e7f0ff}.r14-game-shortcuts{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:17px 0}.r14-game-shortcuts button{font-size:12px}.r14-games-page>.r14-feed-filters{margin-bottom:16px}.r14-games-page .r14-ad{margin-top:20px;max-width:430px}.r14-game-detail h2{margin:25px 0 10px}.r14-products{margin-top:18px}.r14-products>div{display:inline-block;vertical-align:top;width:49%;padding-right:15px;margin-top:12px}.r14-products h3{font-size:14px}.r14-products p{font-size:11px;color:#66758b;line-height:1.7}.r14-game-modal{position:fixed;inset:0;background:rgba(15,28,48,.72);z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px;color:#16243a}.r14-game-shell{display:flex;flex-direction:column;background:#fff;border-radius:14px;box-shadow:0 20px 80px #0005;width:min(100%,1100px);max-height:calc(100dvh - 40px);min-width:0;overflow:auto}.r14-game-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid #dce5f1}.r14-game-toolbar h2,.r14-game-toolbar h3{font-size:16px;flex:1;min-width:100px;margin:0}.r14-game-toolbar button,.r14-game-toolbar a{font:inherit;font-size:12px;line-height:1.5;padding:8px 11px;border:1px solid #c9d4e5;border-radius:8px;color:#243e63;background:#fff;cursor:pointer;text-decoration:none}.r14-game-mount{background:#0b1320;min-height:200px;aspect-ratio:4/3;width:100%;flex:1}.r14-game-mount iframe{display:block;border:0;width:100%;height:100%;min-height:200px;max-height:calc(100dvh - 165px)}.r14-game-status{font-size:12px;line-height:1.7;padding:9px 14px;margin:0;color:#50637e}.r14-game-expanded{padding:0!important}.r14-game-expanded .r14-game-shell{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0}.r14-game-expanded .r14-game-mount{aspect-ratio:auto}.r14-game-expanded .r14-game-mount iframe{max-height:none;height:100%}.lh-nav{max-width:100%;overflow-x:auto;flex-wrap:nowrap!important;white-space:nowrap}.ht-global{max-width:100%;flex-wrap:wrap}.hdr button#theme-toggle{display:none!important}@media(max-width:760px){.r14-home{padding-top:5px}.r14-topline{align-items:flex-start;gap:8px}.r14-topline h1{font-size:24px}.r14-topline p{font-size:11px}.r14-clock time{font-size:23px}.r14-clock span{font-size:9px;max-width:130px}.r14-content-grid{grid-template-columns:minmax(0,1fr)}.r14-sidebar{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:15px}.r14-weather,.r14-trends,.r14-feed,.r14-directory,.r14-game-teaser,.r14-products{padding:13px;border-radius:11px}.r14-weather>.r14-section-line{align-items:flex-start;flex-wrap:wrap}.r14-weather-body{grid-template-columns:minmax(0,1fr);gap:5px}.r14-weather-current{border-right:0;border-bottom:1px solid #e3eaf3;display:flex;justify-content:space-between;align-items:center;padding:0 0 9px}.r14-weather-current>div{display:flex;gap:10px;align-items:center}.r14-weather-current strong{font-size:29px;margin:0}.r14-weather-current strong span{font-size:13px}.r14-weather-current>div>span:last-child{font-size:11px}.r14-weather-current p{font-size:9px;margin:0;max-width:100px;text-align:right}.r14-weather-current .r14-eyebrow{font-size:10px}.r14-trend-grid{gap:12px}.r14-trend-panel+.r14-trend-panel{padding-left:12px}.r14-trend-panel h3{font-size:13px}.r14-trend-list li>a{font-size:12px}.r14-trend-list li{gap:5px;min-height:29px}.r14-trend-number{width:13px;font-size:11px}.r14-trend-list small{font-size:9px}.r14-feed-row{gap:7px;padding:10px 0}.r14-source{width:56px;font-size:9px}.r14-post-title{font-size:13px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.r14-feed-row time{min-width:40px;max-width:42px;font-size:9px}.r14-feed-filters{grid-template-columns:minmax(80px,1fr) 92px 87px;gap:5px}.r14-feed-filters input,.r14-feed-filters select{font-size:11px;padding:7px 6px}.r14-home h2{font-size:17px}.r14-city-controls button{font-size:10px;padding:6px}.r14-products>div{display:block;width:100%;padding:0}.r14-game-modal{padding:5px}.r14-game-shell{max-height:calc(100dvh - 10px);border-radius:9px}.r14-game-toolbar{gap:5px;padding:8px}.r14-game-toolbar button,.r14-game-toolbar a{font-size:10px;padding:7px}.r14-game-toolbar h2{font-size:14px}.r14-game-status{font-size:10px;padding:7px 9px}.r14-weather .r14-source-note{font-size:10px!important}.r14-settings[open]{max-width:230px}}@media(max-width:360px){.r14-topline p{font-size:10px}.r14-clock span{max-width:90px}.r14-clock time{font-size:20px}.r14-source{width:48px}.r14-feed-filters{grid-template-columns:1fr 83px}.r14-feed-filters label:first-child{grid-column:1/-1}.r14-city-controls label{display:none}.r14-trend-list small{display:none}.r14-week{grid-template-columns:repeat(7,65px)}}@media(prefers-reduced-motion:reduce){.r14-home *,.r14-game-modal *{scroll-behavior:auto!important;transition:none!important}}@media print{.r14-ad,.r14-game-modal,.r14-sidebar,.r14-feed-filters,.r14-settings,.r14-kind-tabs,.r14-game-actions{display:none!important}.r14-content-grid{display:block}.r14-week{overflow:visible}}

.r14-ad p{font-size:12px!important;color:#3d5069!important;line-height:1.8}.r14-ad-label{font-size:12px}.r14-ad small{font-size:11px}

/* R14 final dashboard: one overview on desktop, readable source-first order on phones. */
@media(min-width:901px){main.wrap:has(>.r14-home){padding-top:20px!important}.r14-sidebar #r14-trends{margin:0 0 16px}.r14-sidebar .r14-trend-grid{grid-template-columns:minmax(0,1fr)}.r14-sidebar #r14-trends>.r14-section-line{display:block}.r14-sidebar #r14-refresh{margin-top:8px}.r14-sidebar #r14-trends h2{font-size:18px}}
@media(max-width:900px){.r14-content-grid{display:flex;flex-direction:column;align-items:stretch}.r14-content-grid>.r14-feed{order:0;width:100%;min-width:0}.r14-content-grid>.r14-sidebar{display:contents}.r14-content-grid #r14-trends{order:-1;width:100%;min-width:0}.r14-content-grid>.r14-sidebar>.r14-ad{order:1;width:100%}.r14-content-grid>.r14-sidebar>.r14-side-links{order:2;width:100%}}
@media(min-width:561px) and (max-width:900px){.r14-content-grid .r14-trend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.r14-content-grid .r14-trend-grid{grid-template-columns:minmax(0,1fr)}}

@media(max-width:560px){.r14-weather-current{display:block!important}.r14-weather-current>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0}.r14-weather-current>div>.r14-eyebrow{flex:0 0 100%}.r14-weather-current strong{display:inline-flex;align-items:baseline;white-space:nowrap;font-size:36px;line-height:1.2}.r14-weather-current>div>span:last-child{flex:1 1 auto;font-size:13px}.r14-weather-current>p{margin:8px 0 0}}

/* R14 light-only override. Append LAST in head, outside any @layer.
 * First paint contract: the server prepends <meta name="color-scheme" content="light">
 * and a synchronous dataset.theme='light' bootstrap before the legacy storage reader.
 * This stylesheet deliberately never changes canvas pixels, game boards, playfield,
 * mount/iframe contents, swatches, chart series, or native puzzle state colors.
 * Sources: worker-live-final.mjs /assets/css/style.css + native/arcade/hot/live-hub.css.
 */
:root,:root[data-theme],:root:not([data-theme=light]){
  color-scheme:only light!important;
  --bg:#f6f8fb!important;--card:#fff!important;--soft:#eef2f6!important;
  --ink:#172033!important;--ink2:#344054!important;--line:#cbd5e1!important;--muted:#526175!important;
  --accent:#087b4b!important;--accent-d:#07683f!important;--accent-ink:#075536!important;
  --accent-soft:#e8f6ee!important;--on-accent:#fff!important;
  --up:#b4232e!important;--down:#175bb5!important;--ok:#12633e!important;--warn:#8a4808!important;
  --shadow:0 1px 2px rgb(16 24 40 / .04),0 6px 18px rgb(16 24 40 / .05)!important;
}
html,body{background:var(--bg)!important;color:var(--ink)!important;color-scheme:only light!important}
/* Hide immediately, before the parser reaches JS. Do not match generic menu controls. */
#theme-toggle,[data-theme-toggle],[data-action="toggle-theme"],button.theme-toggle{display:none!important}
/* Shared tool forms, native selects, modal forms, and autofill. No width resets here. */
:root :is(input:not([type=button]):not([type=submit]):not([type=reset]):not([type=color]):not([type=range]):not([type=hidden]),select,textarea){
  background-color:#fff!important;color:#172033!important;border-color:#8392a7!important;
  color-scheme:only light!important;accent-color:#087b4b;max-width:100%;min-width:0;
}
:root :is(select option,select optgroup){background:#fff!important;color:#172033!important}
:root :is(input,textarea)::placeholder{color:#5a687b!important;opacity:1!important}
:root :is(input,textarea):autofill{color:#172033!important;caret-color:#172033!important}
:root :is(input,textarea):-webkit-autofill{-webkit-text-fill-color:#172033!important;box-shadow:0 0 0 1000px #fff inset!important;caret-color:#172033!important}
:root :is(input,select,textarea):disabled{background-color:#eef2f6!important;color:#526175!important;-webkit-text-fill-color:#526175!important;opacity:1}
:root :is(input,select,textarea)[aria-invalid=true]{border-color:#b4232e!important}
:root :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #175bb5!important;outline-offset:3px}
/* Core 79-tool UI uses the root variables above. Keep compact/data-visualization colors. */
:root :is(.site-header,.site-footer,.drawer,.search-pop,.card,.tcard,.lcard,.article,.tbl,.pcard,.rcard,.empty,.aff-note){background-color:var(--card)!important;color:var(--ink)!important;border-color:var(--line)!important}
:root :is(.lead,.hint,.note,.muted,.tdesc,.crumbs,.fld,.row-h,.rsum,.disclose,.aff-note){color:var(--ink2)!important}
:root :is(.btn,.icon-btn,.fav-btn,.x,.seg button){color:var(--ink)!important;background:var(--soft)!important;border-color:#8392a7!important}
:root :is(.btn:not(.ghost):not(.toss):not(.coupang),.seg button.on,.fav-btn[aria-pressed=true]){background:#087b4b!important;color:#fff!important;border-color:#087b4b!important}
:root .btn.toss{background:#175bb5!important;color:#fff!important}
:root .btn.coupang{background:#b4232e!important;color:#fff!important}
:root :is(.article,.faq,.note,.hint,.lead,.sources,.toc) a{color:#0753a6!important}
:root :is(.toast,.skip){background:#e8f0fb!important;color:#172033!important;border:1px solid #8392a7}
:root :is(dialog,[role=dialog],[role=alertdialog]){background:#fff!important;color:#172033!important;border-color:#8392a7!important;max-width:calc(100% - 24px);box-sizing:border-box}
:root dialog::backdrop{background:rgb(23 32 51 / .4)}
/* Native game shell and HUD only. .ng-playfield/.ng-puzzle/.ng-canvas and all
 * ng-cell/ng-tube/ng-ball/ng-stone state palettes stay exactly as authored. */
:root :is(.ng-page,.ng-hero,.ng-note,.ng-filters,.ng-card,.ng-toolbar,.ng-hud,.ng-controls,.ng-choices,.ng-confirm,.ng-result,.ng-record,.ng-home-teaser,.ng-noscript,.ng-page .ng-expanded){background:#fff!important;color:#172033!important;border-color:#cbd5e1!important}
:root :is(.ng-hero,.ng-home-teaser){background:linear-gradient(120deg,#e9f7f0,#edf3fd)!important}
:root :is(.ng-note,.ng-result){background:#e8f6ee!important}
:root :is(.ng-confirm,.ng-noscript){background:#fff5df!important;color:#633b0a!important}
:root :is(.ng-toolbar,.ng-hud,.ng-controls,.ng-filters){background:#eef2f6!important}
:root :is(.ng-page .ng-small,.ng-card-body p,.ng-field label,.ng-hud dt,.ng-status,.ng-home-teaser p){color:#44546a!important}
:root :is(.ng-hud dd,.ng-time,.ng-toolbar strong){color:#172033!important}
:root :is(.ng-eyebrow,.ng-meta,.ng-note strong){color:#075536!important}
:root .ng-page a{color:#0753a6!important}
:root :is(.ng-page button:not(.ng-cell):not(.ng-tube),.ng-page .ng-btn){background:#e8eef6!important;color:#172033!important;border-color:#8392a7!important}
:root :is(.ng-page .ng-primary,.ng-home-teaser a,.ng-page button:not(.ng-cell):not(.ng-tube)[aria-pressed=true],.ng-page .ng-action-pad,.ng-page .ng-held:not(.ng-cell):not(.ng-tube)){background:#087b4b!important;color:#fff!important;border-color:#087b4b!important}
/* Intentional gameplay art is retained. Light shell cannot leak dark text into it. */
:root :is(.ng-stage,.ng-playfield,.ng-puzzle){color:#dbe8f7}
:root .ng-curtain{color:#f4f8ff!important}
:root :is(.ng-board-note,.ng-clue,.ng-tube-label){color:#c1d7ec!important}
/* Arcade chrome is light, but .ga-mount and external iframe remain untouched. */
:root :is(.ga-stage-toolbar,.ga-stage button){background:#eef2f6!important;color:#172033!important;border-color:#8392a7!important}
:root :is(.ga-page button,.ga-btn){background:#eef2f6!important;color:#172033!important;border-color:#8392a7!important}
:root :is(.ga-btn-primary,.ga-page button.ga-primary,.ga-page button[aria-pressed=true]){background:#175bb5!important;color:#fff!important;border-color:#175bb5!important}
:root :is(.ga-meta,.ga-small,.ga-eyebrow){color:#526175!important}
:root :is(.ga-mount,.r14-game-mount){color:#e2e8f0}
:root .ga-placeholder{color:#c5d6ee!important}
/* Hot: explicit dark declarations in hot.css do not use the common variables. */
:root :is(.ht-page,.ht-global,.ht-hero,.ht-filters,.ht-highlight,.ht-item,.ht-source,.ht-install-card,.ht-note,.ht-home-teaser){background:#fff!important;color:#172033!important;border-color:#cbd5e1!important}
:root :is(.ht-hero,.ht-home-teaser){background:linear-gradient(120deg,#e9f7f0,#edf3fd)!important}
:root :is(.ht-filters,.ht-global,.ht-note){background:#eef2f6!important}
:root :is(.ht-page a,.ht-global a,.ht-home-teaser a){color:#0753a6!important}
:root :is(.ht-item h3 a,.ht-home-teaser h2){color:#172033!important}
:root :is(.ht-small,.ht-filters small,.ht-highlight small,.ht-topics span,.ht-meta,.ht-times,.ht-credit,.ht-source p,.ht-loading){color:#44546a!important}
:root :is(.ht-eyebrow,.ht-highlight>p,.ht-fresh){color:#075536!important}
:root :is(.ht-page button,.ht-home-teaser a,.ht-entrances a){background:#eef2f6!important;color:#172033!important;border-color:#8392a7!important}
:root .ht-page button[aria-pressed=true]{background:#087b4b!important;color:#fff!important;border-color:#087b4b!important}
:root .ht-type{background:#e8f6ee!important;color:#075536!important}
:root .ht-stale{color:#8a4808!important}:root .ht-unavailable{color:#b4232e!important}
:root .ht-ad{background:#fff6e5!important;color:#533d18!important;border-color:#a77d38!important}
:root :is(.ht-ad-label,.ht-ad .ht-disclosure,.ht-ad-grid p){color:#654914!important}
:root .ht-ad-grid h3 a{color:#0753a6!important}:root .ht-ad-grid h3 span{color:#075536!important}
/* Live hub and newer tool overlays inherit light root tokens. */
:root :is(.lh-page,.lh-home,.lh-common-shop,.lh-tool-helper,.lh-nav){color:#172033!important}
:root :is(.lh-card,.lh-link-card,.lh-tool-helper,.lh-sponsored,.lh-product,.lh-home-grid>section){background:#fff!important;border-color:#cbd5e1!important}
:root .lh-notice{background:#eef3fc!important;color:#344054!important}
:root :is(.lh-page,.lh-home,.lh-common-shop,.lh-tool-helper,.lh-nav) a{color:#0753a6!important}
:root :is(.lh-page button,.lh-home button,.lh-tool-helper button){background:#eef2f6!important;color:#172033!important;border-color:#8392a7!important}
:root :is(.lh-credit,.lh-small){color:#526175!important;opacity:1!important}
:root :is(.mkt-panel,.mkt-card,.ap-panel,.ap-result-section,.ap-comparison,.buyer-panel,.buyer-context,.growth-card,.affiliate-card,.commerce-card){background:#fff!important;color:#172033!important;border-color:#cbd5e1!important}
:root :is(.ap-error,.ap-loss strong){color:#b4232e!important}
:root .ap-link-button{color:#0753a6!important}
/* R14 home vocabulary supplied by the parent: semantic surfaces only.
 * r14-clock/week/day/trend-list/feed-list/feed-row inherit; game-mount untouched. */
:root :is(.r14-home,.r14-shell,.r14-page){background:var(--bg)!important;color:var(--ink)!important;min-width:0}
:root :is(.r14-card,.r14-panel,.r14-section,.r14-product,.r14-tool,.r14-widget,.r14-modal,.r14-search,.r14-nav,.r14-weather,.r14-trends,.r14-feed,.r14-settings,.r14-ad,.r14-directory,.r14-game-modal,.r14-game-shell){background:#fff!important;color:#172033!important;border-color:#cbd5e1!important}
:root .r14-hero{background:linear-gradient(120deg,#e9f7f0,#edf3fd)!important;color:#172033!important;border-color:#cbd5e1!important}
:root :is(.r14-home,.r14-shell,.r14-page) a:not(.r14-button):not(.r14-cta):not(.r14-btn){color:#0753a6!important}
:root :is(.r14-muted,.r14-meta,.r14-credit,.r14-caption,.r14-desc,.r14-source){color:#526175!important}
:root :is(.r14-button,.r14-cta,.r14-btn){background:#087b4b!important;color:#fff!important;border-color:#087b4b!important}
:root :is(.r14-filter,.r14-chip,.r14-tab){background:#eef2f6!important;color:#172033!important;border-color:#8392a7!important}
:root :is(.r14-filter,.r14-chip,.r14-tab):is([aria-pressed=true],[aria-selected=true],.on,.active){background:#087b4b!important;color:#fff!important}
/* Long labels/data stay inside their own columns; wide tables scroll locally. */
:root :is(.main,.wrap,.hdr-search,.card,.widget,.tool,.fld,.row>*,.grid2>*,.grid3>*,.ng-card,.ga-card,.ht-page,.ht-global,.lh-page,[class^="r14-"],[class*=" r14-"]){min-width:0;box-sizing:border-box}
:root :is(.table-wrap,.mkt-table-wrap,.ap-table-wrap,.commerce-table-wrap,.ga-source-table-wrap){max-width:100%;overflow-x:auto}
:root :is(.ng-page,.ga-page,.ht-page,.lh-page,.lh-home,.r14-home,.r14-shell,.r14-page){max-width:100%;overflow-wrap:anywhere}
@media(max-width:560px){
  :root :is(.tgrid,.cards4,.lgrid,.trends,.pgrid.wide){grid-template-columns:minmax(0,1fr)}
  :root .grid2{grid-template-columns:minmax(0,1fr)}
  :root :is(.hdr-search,.toolbar input,.toolbar select){min-width:0}
  :root .ht-home-teaser div{min-width:0}
  :root :is(.ng-controls,.ng-board-actions,.ng-toolbar,.ga-stage-toolbar){flex-wrap:wrap}
  :root :is(.r14-grid,.r14-columns,.r14-topline){grid-template-columns:minmax(0,1fr)}
  :root :is(.r14-actions,.r14-filters,.r14-tabs,.r14-nav,.r14-week){flex-wrap:wrap}
  :root :is(.widget .wlist a,.r14-home a){white-space:normal;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* R16 owned UI. No overlays, sticky ad rails, game-surface ads or theme preference writes. */
.r16-extra-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}.r16-extra-filters label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px;color:#485d76}.r16-extra-filters input,.r16-extra-filters select{width:100%;min-width:0}.r16-extra-filters .r16-date-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;grid-column:1/-1}.r16-stream{min-width:0}.r16-feed-chunk{margin:0;padding:0;border:0;min-width:0}.r16-chunk-posts{margin:0!important}.r16-topic-badges{display:flex;gap:4px;flex-wrap:wrap;margin-top:3px}.r16-topic-badges small{font-size:10px;line-height:1.4;color:#52647a;background:#f0f4f9;border-radius:4px;padding:1px 5px}.r16-infeed-ad{margin:15px 0!important;background:#f8faff!important;border:1px dashed #c4d1e1!important;clear:both}.r16-infeed-ad .r14-ad-mount{display:flex;justify-content:center;align-items:center;max-width:100%}.r16-infeed-ad img,.r16-content-ad img{display:block;max-width:100%;height:auto;object-fit:contain;margin:auto}.r16-infeed-ad iframe,.r16-content-ad iframe{max-width:100%;border:0}.r16-feed-sentinel{height:1px;width:100%;pointer-events:none}.r16-content-ad{margin:24px 0!important;padding:14px!important;border:1px dashed #c4d1e1!important;background:#f8faff!important;border-radius:10px!important;text-align:center;clear:both;max-width:100%;overflow:hidden;color:#53657c}.r16-content-ad p{font-size:11px!important;line-height:1.6!important;margin:5px 0 10px!important}.r16-content-ad small{font-size:10px;line-height:1.6}.r16-content-ad .r14-ad-mount{display:flex;align-items:center;justify-content:center;max-width:100%}.r16-content-ad a{display:block;max-width:100%}.r16-content-ad .r14-ad-label{font-size:11px;font-weight:700;color:#52647a}.r16-content-ad[hidden],.r16-feed-chunk[hidden],.r16-infeed-ad[hidden],.r16-empty[hidden],.r16-feed-sentinel[hidden]{display:none!important}.r16-stream[aria-busy=true]{cursor:progress}
@media(max-width:560px){.r16-extra-filters{gap:7px}.r16-content-ad{padding:10px!important;margin:19px 0!important}.r16-infeed-ad{padding:10px!important}.r16-topic-badges small{font-size:9px}.r16-extra-filters input[type=date]{font-size:12px;min-height:38px;padding:6px}}

/* Parent wrapper only. Provider document and game controls are not modified. */
.r14-game-modal,.r14-game-shell{overscroll-behavior:contain}
.r14-game-toolbar{position:sticky;top:0;z-index:2;background:#fff}
.r14-game-shell>h2{padding:12px 14px 0;margin:0;font-size:18px;line-height:1.45}
.r16-game-keyboard-status{font-size:11px;line-height:1.65;margin:0;padding:8px 14px;color:#355373;background:#f2f6fc;border-block:1px solid #dce5f1}
.r14-game-mount iframe:focus-visible{outline:3px solid #2563eb;outline-offset:-3px}
@media(max-width:760px){.r14-game-toolbar button,.r14-game-toolbar a{min-height:36px}.r16-game-keyboard-status{font-size:10px;padding:7px 9px}.r14-game-shell>h2{font-size:15px;padding:8px 9px 0}}
