/* R4: shared type scale, explicit desktop/mobile layouts, no per-screen fixed offsets. */
:root{--studio-header:72px;--studio-nav:72px;--studio-rail:540px;--studio-rank:432px;--studio-line:#dce5e3;--studio-ink:#102e35;--studio-muted:#587075}
*{box-sizing:border-box}html,body{margin:0;min-width:0;color:var(--studio-ink);background:#f3f7f6}button,input{font:inherit}button{touch-action:manipulation;cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #15877c;outline-offset:3px}[hidden]{display:none!important}.screen:not(.active){display:none!important}
.top{height:var(--studio-header);position:relative;top:auto;grid-template-columns:minmax(170px,1fr) minmax(320px,600px) minmax(230px,1fr);gap:16px;padding:0 20px}.search-shell{width:100%;min-width:0;justify-self:center}.search{height:48px}.search input{font-size:16px}.search button{min-height:40px}.actions{justify-self:end}.ghost{min-width:44px;min-height:44px}
.nav{height:var(--studio-nav);position:relative;top:auto;grid-template-columns:repeat(6,minmax(0,1fr))}.nav button{min-width:0;padding:10px;column-gap:8px;color:#183d43}.nav strong{font-size:18px;font-weight:800;color:inherit}.nav small{line-height:1.4}.nav button.active{color:white}
.screen.active{height:calc(100dvh - var(--studio-header) - var(--studio-nav));min-height:540px;display:grid;grid-template-columns:var(--studio-rail) minmax(0,1fr);overflow:hidden}#screen-local.active{grid-template-columns:var(--studio-rail) minmax(0,1fr) var(--studio-rank)}.screen.active>.rail{position:relative;inset:auto;transform:none;width:auto;height:100%;min-width:0;max-height:none;overflow:auto;border-radius:0;box-shadow:none;background:#fffdf8;border-right:1px solid var(--studio-line)}.screen .rail-inner{padding:26px 24px 36px;max-height:none;overflow:visible}.screen .mobile-handle{display:none}
.rail h1{font-size:28px;line-height:1.35;letter-spacing:-.04em;overflow-wrap:anywhere;margin:8px 0}.kicker{font-size:12px;line-height:1.5;letter-spacing:.08em}.sub{font-size:14px;line-height:1.6;margin-bottom:20px}.hero-temp{gap:14px;margin:24px 0}.hero-temp strong{font-size:64px;line-height:1.1;font-variant-numeric:tabular-nums}.hero-temp b{display:block;font-size:16px;line-height:1.5;margin-top:6px}.hero-temp .wx-icon .wx-svg{width:52px;height:52px}
.brief{padding:18px 0;margin-bottom:24px}.brief span{font-size:13px}.brief strong{display:block;font-size:22px;line-height:1.5;word-break:keep-all}.brief p{font-size:15px;line-height:1.65;margin:10px 0 0}.metrics{border-radius:12px;margin-bottom:24px}.metric{padding:16px;min-height:84px;min-width:0}.metric span{font-size:14px;line-height:1.45}.metric b{font-size:21px;line-height:1.4;margin-top:6px;overflow-wrap:anywhere}
.nowcast{margin-bottom:20px}.nowcast-head{gap:10px;flex-wrap:wrap;padding:14px}.nowcast-head strong{font-size:16px}.nowcast-head span{font-size:12px}.nowcast-strip{grid-template-columns:repeat(4,minmax(0,1fr))}.nowcast-strip .hour{min-width:0;padding:14px 4px}.nowcast-strip .hour strong{font-size:22px}.nowcast-strip .hour small{font-size:12px}.nowcast-strip .hour i .wx-svg{width:24px;height:24px}
.detail-link{display:block;width:100%;padding:14px 16px;min-height:48px;border:0;border-radius:10px;background:#0e5e63;color:#fff;font-weight:800;margin:16px 0}.favline{flex-wrap:wrap;gap:8px;overflow:visible;margin-bottom:24px}.favorite-chips{flex:1 1 140px;gap:8px}.favorite-chips button,.save-fav{min-height:44px;padding:10px 12px;font-size:13px}
.local-extras{display:block}.section{padding:22px 0}.section h3,.info-block h3{font-size:17px;line-height:1.5;margin:0 0 14px}.tiny,.source,.data-stamp{display:block;font-size:12px;line-height:1.6;color:var(--studio-muted);overflow-wrap:anywhere}.muted{color:var(--studio-muted);font-size:14px;line-height:1.6}.capture{font-size:14px;line-height:1.65;padding:16px}.air-values,.sun-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.air-values>div,.sun-values>div{padding:14px;background:#f2f7f6;border:1px solid #e0ebe8;border-radius:10px;min-width:0}.air-values span,.sun-values span{display:block;font-size:13px;color:var(--studio-muted);line-height:1.5}.air-values b,.sun-values b{display:block;font-size:21px;line-height:1.5;margin-top:4px}.air-values b small{font-size:12px;font-weight:500}.air-grade{margin:8px 0;font-size:14px;font-weight:700;color:#126953}
.maparea{min-width:0;min-height:0}.kakao-local-map,.leaflet-map,.hybrid-map,.windy-full{width:100%;height:100%;min-height:0}.map-title{max-width:min(300px,calc(100% - 32px));padding:12px 16px;pointer-events:none}.map-title strong{font-size:18px;line-height:1.4}.map-timebar{max-width:calc(100% - 24px);overflow-x:auto}.map-timebar button{min-height:44px;padding:10px 14px;font-size:13px;white-space:nowrap;flex-shrink:0}.map-timebar button:disabled{opacity:.4;cursor:default}.map-timebar span{white-space:nowrap}
.kakao-city-marker .city-orb,.glass-marker .orb{width:44px;height:44px;gap:0;box-shadow:0 3px 10px #102e3525}.kakao-city-marker .city-orb .wx-svg,.glass-marker .symbol .wx-svg{width:16px;height:16px}.glass-marker .symbol,.kakao-city-marker .city-symbol{height:17px;display:grid;place-items:center;margin:0}.kakao-city-marker .city-temp,.glass-marker .temp{font-size:14px;line-height:16px;font-weight:800;letter-spacing:-.03em}.kakao-city-marker .city-name,.glass-marker .name{font-size:12px;bottom:48px;line-height:16px}.glass-marker{height:60px;width:60px}
.local-right-rail{display:block;min-width:0;overflow:auto}.local-right-inner{padding:26px 18px}.local-right-inner h2{font-size:24px;line-height:1.35}.rank-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0}.rank-tabs button{min-height:44px;border:1px solid #cadbd8;border-radius:8px;background:#fff;color:#173e42;font-weight:700;font-size:14px;padding:8px 4px}.rank-tabs button.active{background:#0e5e63;color:#fff}.ranking{gap:8px}.rank{min-height:58px;padding:12px;gap:8px;grid-template-columns:22px minmax(0,1fr) auto}.ranking button.rank{width:100%;text-align:left;color:inherit}.rank b{font-size:15px;line-height:1.5}.rank strong{font-size:18px}.rank em{font-size:12px}.rank-summary{font-size:14px;line-height:1.6;background:#edf6f3;padding:12px;border-radius:10px;margin-bottom:12px}.layer-grid button,.windy-tabs button,.quick button{min-height:44px;font-size:14px;padding:10px 12px}.windy-tabs{overflow:auto}.windy-tabs button{flex-shrink:0}.windy-mini iframe{height:230px}.maparea iframe{pointer-events:auto;touch-action:auto}.map-controls{position:absolute;right:12px;bottom:12px;z-index:550;display:flex;gap:6px}.map-controls button{width:44px;height:44px;background:#fff;border:1px solid #cadbd8;border-radius:9px;font-size:22px}
/* Selected point: one coherent card; readable numbers and a fixed action row. */
#pointSheet{position:absolute;right:16px;bottom:76px;width:min(440px,calc(100% - 32px));max-height:calc(100% - 100px);z-index:650;display:flex;flex-direction:column;border:1px solid #ceded9;border-radius:18px;background:#fff;box-shadow:0 12px 40px #102e3533;overflow:hidden}
.point-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 14px;border-bottom:1px solid var(--studio-line)}.eyebrow-text{display:block;font-size:12px;color:#0e746a;font-weight:700;letter-spacing:.03em}.point-head h2{font-size:19px;line-height:1.45;letter-spacing:-.02em;margin:5px 0 0;overflow-wrap:anywhere}.point-head>button{flex:none;width:44px;height:44px;border:1px solid #dce5e3;border-radius:50%;font-size:24px;background:#f7faf9;color:#25464b}
.point-content{padding:18px 20px;min-height:0;overflow:auto;overscroll-behavior:contain}.point-current{display:flex;align-items:center;gap:12px;margin-bottom:18px}.point-current>strong{font-size:44px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.04em}.point-current>div:last-child b,.point-current>div:last-child span{display:block;font-size:14px;line-height:1.6}.point-current>div:last-child span{color:var(--studio-muted)}.point-weather-icon:empty{display:none}.point-weather-icon .wx-svg{width:40px;height:40px}.point-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.point-metrics>div{padding:10px 6px;background:#f2f7f6;border-radius:8px}.point-metrics span{display:block;color:var(--studio-muted);font-size:12px;margin-bottom:5px}.point-metrics b{font-size:16px;line-height:1.4}.point-info-grid{display:grid;grid-template-columns:1fr;gap:0}.point-content .info-block{padding:16px 0;border:0;border-top:1px solid var(--studio-line);border-radius:0;box-shadow:none;margin:16px 0 0}.point-content .info-block h3{font-size:15px;margin-bottom:10px}.point-content .air-values>div,.point-content .sun-values>div{padding:10px 12px}.point-content .air-values b,.point-content .sun-values b{font-size:20px}.point-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 16px;border-top:1px solid var(--studio-line);background:#fff}.point-actions button{min-height:46px;border:1px solid #0e5e63;border-radius:10px;font-size:15px;font-weight:700;color:#0e5e63;background:#fff}.point-actions button:first-child{color:#fff;background:#0e5e63}
.tide-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}.tide-events>div{padding:10px 12px;border-radius:9px;background:#edf6f5}.tide-events span{font-size:13px;color:#42676a}.tide-events b{display:block;font-size:20px;line-height:1.5}.tide-events small{font-size:12px;color:var(--studio-muted)}.alert-state{padding:14px;border-radius:10px;background:#f2f7f6;border:1px solid #e0ebe8;font-size:14px;line-height:1.6}.alert-state.warning{background:#fff5e8;border-color:#ebbc76;color:#774310}.alert-state strong{font-size:16px}.alert-state p{margin:8px 0}.alert-state a{display:inline-block;margin-top:10px;font-size:13px;color:#165f67;text-underline-offset:3px}.alert-state .data-stamp{margin-top:8px}
.current-provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.current-provider{padding:16px 12px;background:#f6f9f8;border:1px solid var(--studio-line);border-radius:12px;min-width:0}.current-provider b,.current-provider span,.current-provider small{display:block;overflow-wrap:anywhere}.current-provider b{font-size:14px;line-height:1.5}.current-provider span{font-size:12px;color:var(--studio-muted);line-height:1.5;margin-top:4px}.current-provider strong{display:block;font-size:30px;line-height:1.4;margin:14px 0 6px;font-variant-numeric:tabular-nums;letter-spacing:-.03em}.current-provider small{font-size:12px;line-height:1.6;color:var(--studio-muted)}.provider-note{font-size:13px;line-height:1.65;color:var(--studio-muted);margin:14px 0 0}
.detail-weather{padding:28px;overflow:auto;min-width:0}.detail-title{margin-bottom:24px}.detail-title h2{font-size:28px;line-height:1.4;margin:8px 0}.detail-title p{font-size:15px;color:var(--studio-muted);margin:0}.info-block{padding:22px;background:#fff;border:1px solid var(--studio-line);border-radius:14px;margin:0 0 18px;min-width:0}.rail-inner>.info-block{padding:20px 0;border:0;border-top:1px solid var(--studio-line);border-radius:0;background:transparent}.hourly{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:minmax(112px,1fr);overflow:auto;gap:10px;padding-bottom:6px}.hour{padding:16px 10px;min-width:0}.hour b{font-size:14px}.hour strong{font-size:25px}.hour small{font-size:13px}.daily-rows>div{display:grid;grid-template-columns:minmax(100px,1fr) 1fr 60px 60px;gap:12px;padding:16px 0;align-items:center;border-top:1px solid #e6edea;font-size:16px}.daily-rows>div:first-child{border:0}.daily-rows .low{color:#337fa5}
/* Comparison: five complete categories, no hidden data or horizontal card carousel. */
#screen-compare.active{grid-template-columns:1fr}#screen-compare.active>.rail{display:none}#screen-compare.active>.maparea{display:flex;flex-direction:column;overflow:auto}#compareMap{height:auto;flex:1 0 200px;min-height:200px}.compare-map-dock{position:relative;inset:auto;width:100%;flex:none;max-height:none;overflow:visible;border-radius:0;padding:18px 24px 24px;background:#f4f8f7;border-top:1px solid var(--studio-line);box-shadow:none}.compare-dock-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}.compare-dock-head strong{flex:1;font-size:18px}.compare-clear,.compare-map-toggle{min-height:44px;padding:9px 14px;border:1px solid #cadbd8;border-radius:9px;font-size:14px;color:#26484d;background:#fff}.compare-quick{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.compare-quick button{min-height:40px;padding:8px 14px;border:1px solid #cadbd8;background:#fff;border-radius:8px;font-size:14px}.compare-dock-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;overflow:visible}.compare-dock-card{display:block;min-width:0;padding:0;border:1px solid #d5e3df;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 2px 5px #102e3505}.compare-dock-card>header{display:flex;align-items:flex-start;gap:8px;padding:12px 10px;background:#edf5f2;min-height:72px}.compare-index{display:grid;place-items:center;flex:none;width:25px;height:25px;border-radius:50%;background:#0e5e63;color:white;font-size:13px;font-weight:800}.compare-dock-card h3{font-size:15px;line-height:1.5;margin:0;flex:1;min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.compare-dock-card .compare-remove{position:static;flex:none;width:32px;height:40px;border-radius:8px;background:#fff;border:1px solid #d5e3df;font-size:20px;color:#385a60}
.compare-categories{margin:0}.compare-categories>div{padding:12px;border-top:1px solid #e4ece9;min-height:70px}.compare-categories dt{font-size:12px;line-height:1.5;color:#587075;margin-bottom:5px;font-weight:600}.compare-categories dd{margin:0;font-size:14px;line-height:1.55;overflow-wrap:anywhere}.compare-categories dd>span,.compare-categories dd>small{display:block}.compare-categories dd>small{font-size:12px;color:var(--studio-muted)}.compare-weather dd>strong{font-size:26px;line-height:1.2;display:block;margin-bottom:6px}.compare-categories .tide-events{margin:0 0 4px;gap:6px}.compare-categories .tide-events>div{padding:5px 6px}.compare-categories .tide-events b{font-size:15px}.compare-categories .data-stamp{font-size:11px}.compare-alert.warning{background:#fff5e8;color:#774310}.compare-empty{grid-column:1/-1;padding:24px;text-align:center;font-size:16px}.compare-empty p{font-size:14px;line-height:1.6;color:var(--studio-muted)}#screen-compare.map-folded #compareMap,#screen-compare.map-folded .map-title,#screen-compare.map-folded .map-provider-note{display:none}.compare-number-marker{font-size:16px;width:36px;height:36px}
@media(min-width:1251px) and (max-width:1650px){:root{--studio-rail:405px;--studio-rank:324px}.current-provider-grid{grid-template-columns:1fr}.current-provider{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:14px}.current-provider strong{grid-column:2;grid-row:1/3;margin:0;align-self:center}.current-provider small{grid-column:1}.nav .eyebrow{display:none}.nav button{grid-template-columns:1fr}}
@media(min-width:981px) and (max-width:1250px){:root{--studio-rail:340px;--studio-rank:280px}.nav .eyebrow,.nav small{display:none}.nav button{grid-template-columns:1fr}.nav strong{align-self:center;font-size:16px}.top{grid-template-columns:150px minmax(0,1fr) auto}.status{display:none}.screen .rail-inner{padding:22px 18px}.current-provider-grid{grid-template-columns:1fr}.current-provider{display:grid;grid-template-columns:1fr auto;padding:12px}.current-provider strong{grid-column:2;grid-row:1/3;margin:0}.current-provider small{grid-column:1}.compare-dock-grid{gap:8px}.compare-map-dock{padding:16px}.compare-categories>div{padding:10px}}
@media(max-width:980px){
 :root{--studio-header:116px;--studio-nav:56px}.top{height:auto;min-height:116px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px 48px;gap:8px 12px;padding:8px 16px;z-index:1000}.brand{grid-column:1;grid-row:1;gap:8px}.brand div:last-child{display:block;font-size:14px}.brand small{font-size:9px}.logo{width:32px;height:32px}.actions{grid-column:2;grid-row:1;gap:8px}.actions .ghost{padding:8px 10px;font-size:13px}.actions .ghost span{display:inline}.status{display:none}.search-shell{grid-column:1/-1;grid-row:2;max-width:none}.search{height:48px;border-width:1px}.search input{font-size:16px}.search button{display:block;padding:0 14px;font-size:14px}.search span{padding:0 10px}.kakao-search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:55dvh}.search-result-item{padding:14px 12px;min-height:56px}.search-result-name{font-size:16px}.search-result-address,.search-result-category{font-size:13px;line-height:1.5;white-space:normal}.search-result-phone{display:none}
 .nav{display:flex;height:56px;overflow-x:auto;scrollbar-width:thin;gap:4px;padding:4px 12px}.nav button,.nav button.active{flex:0 0 auto;min-width:100px;min-height:44px;margin:0;padding:10px 14px;display:flex;align-items:center;justify-content:center;border:0;border-radius:10px}.nav strong{font-size:16px}.nav small,.nav .eyebrow{display:none}
 .screen.active,#screen-local.active,#screen-compare.active{display:flex;flex-direction:column;height:auto;min-height:0;overflow:visible}.screen.active>.rail{order:2;position:relative;inset:auto;width:100%;height:auto;max-height:none;transform:none;overflow:visible;box-shadow:none;border:0;border-top:1px solid var(--studio-line);border-radius:0}.screen .rail-inner{padding:24px 20px 32px}.screen.active>.maparea{order:1;flex:none;width:100%;height:clamp(280px,38svh,340px);min-height:0;overflow:hidden}#screen-local.active>.maparea{display:grid;grid-template-rows:minmax(0,1fr) 54px;height:clamp(304px,42svh,360px)}#localMap{grid-column:1;grid-row:1;min-height:0}#screen-local .map-timebar{position:relative;inset:auto;transform:none;grid-row:2;grid-column:1;width:100%;max-width:none;display:flex;justify-content:flex-start;gap:4px;padding:5px 10px;border:0;border-radius:0;box-shadow:none;background:#fff;overflow-x:auto}#screen-local .map-timebar button{flex:1 0 auto;padding:10px 12px}.map-timebar span,.map-timebar small{display:none}.map-title{left:12px;right:auto;top:12px;max-width:calc(100% - 24px);padding:8px 12px}.map-title span,.map-title small{display:none}.map-title strong{margin:0;font-size:15px;line-height:1.5}#screen-local .risk-banner{left:12px;right:12px;top:62px;max-width:none;padding:12px}.risk-banner b{font-size:14px;line-height:1.5}.risk-banner>span{display:none}#screen-local.active>.local-right-rail{order:3;width:100%;height:auto;overflow:visible;border:0;border-top:1px solid var(--studio-line)}.local-right-inner{padding:24px 20px 32px}.rail h1{font-size:26px}.hero-temp{margin:20px 0}.hero-temp strong{font-size:58px}.metric b{font-size:20px}.windy-mini iframe{height:220px}
 #pointSheet{position:fixed;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));width:auto;max-height:68dvh;z-index:1500;border-radius:18px}.point-head{padding:14px 16px 12px}.point-head h2{font-size:18px}.point-content{padding:16px}.point-current>strong{font-size:40px}.point-content .info-block{padding:14px 0}.point-actions{padding:10px 14px}.point-current{gap:10px}.point-weather-icon .wx-svg{width:32px;height:32px}.point-current>div:last-child b{font-size:13px}
 .current-provider-grid{grid-template-columns:1fr;gap:8px}.current-provider{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:14px}.current-provider strong{grid-column:2;grid-row:1/3;margin:0;align-self:center;font-size:29px}.current-provider small{grid-column:1}.current-provider b{font-size:15px}
 .screen.active>.detail-weather{order:1;height:auto;overflow:visible;min-width:0;padding:22px 16px}.detail-title h2{font-size:25px}.info-block{padding:18px 16px;margin-bottom:16px}.daily-rows>div{grid-template-columns:1.3fr 1fr 44px 44px;gap:6px;font-size:14px}.screen.active>.moon-stage{order:1;height:340px;flex:none}.detail-grid{grid-template-columns:1fr}
 #screen-compare.active>.maparea{display:flex;flex-direction:column;height:auto;overflow:visible}#compareMap{height:180px;min-height:180px;flex:none}.compare-map-dock{padding:14px 12px 20px;max-height:none;overflow:visible;flex:none}.compare-dock-head{gap:8px;flex-wrap:wrap}.compare-dock-head strong{font-size:16px}.compare-clear,.compare-map-toggle{padding:8px 10px;font-size:13px;min-height:44px}.compare-quick{gap:6px}.compare-quick button{padding:8px 10px;min-height:44px;font-size:13px}.compare-dock-grid{grid-template-columns:1fr;gap:12px}.compare-dock-card{display:block}.compare-dock-card>header{padding:10px 12px;min-height:50px;align-items:center}.compare-dock-card h3{-webkit-line-clamp:1;font-size:15px}.compare-dock-card .compare-remove{width:44px;height:44px}.compare-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.compare-categories>div{min-height:0;padding:10px 12px;border-right:1px solid #e4ece9}.compare-categories>div:nth-child(even){border-right:0}.compare-categories>div:first-child{grid-column:1/-1;border-right:0}.compare-weather dd{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}.compare-weather dd>strong{font-size:24px;margin:0}.compare-weather dd>small{width:100%}.compare-categories dt{font-size:12px;margin-bottom:4px}.compare-categories dd{font-size:14px}.compare-categories .tide-events b{font-size:14px}.compare-categories .tide-events>div{padding:4px}.compare-categories .data-stamp{font-size:11px}.compare-map-dock .compare-dock-head{padding:0}
 #screen-korea.active>.maparea,#screen-world.active>.maparea{height:52svh;min-height:340px}.map-controls{top:auto;bottom:64px}.toast{max-width:calc(100vw - 32px);bottom:max(16px,env(safe-area-inset-bottom));border-radius:12px;font-size:14px;line-height:1.5;text-align:center}
}
@media(max-width:360px){.top{padding-left:12px;padding-right:12px}.brand div:last-child{font-size:12px}.actions .ghost{padding:8px}.screen .rail-inner,.local-right-inner{padding-left:16px;padding-right:16px}.rail h1{font-size:24px}.point-current>strong{font-size:36px}.point-metrics b{font-size:15px}.compare-dock-head strong{order:-1;flex-basis:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* HM-WEATHER v7.1 detail: studio reference reuse + HM custom icons (no KMA wic). Commercial type scale. */
.detail-weather{font-family:Pretendard,SUIT,"Noto Sans KR","Apple SD Gothic Neo",sans-serif}
.hm-day-group{font-size:12px;font-weight:900;letter-spacing:.05em;color:#0e5e63;margin:16px 0 8px}
.hm-hour{background:linear-gradient(180deg,#fff 0%,#f2f7f6 100%);border:1px solid #dfe8e6;border-radius:16px;box-shadow:0 4px 14px rgba(16,46,53,.06)}
.hm-hour.is-now{border-color:#0e5e63;box-shadow:0 8px 22px rgba(14,94,99,.18)}
.hm-day{background:#fff;border:1px solid #e0e8e6;border-radius:14px;box-shadow:0 3px 12px rgba(16,46,53,.05)}
.hm-alert{border-radius:12px;padding:12px 14px;font-size:13px;line-height:1.6}
.hm-alert.is-warn{background:#fff7ed;border:1px solid #f0c9a3;color:#7c3f16}
.hm-alert.is-danger{background:#fef2f2;border:1px solid #f0aaaa;color:#8c1d18}

/* HM v7.2: detail rings + day grid + temp range */
.air-rings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.aq-ring{position:relative;display:grid;place-items:center;min-height:112px;padding:8px;background:#f2f7f6;border:1px solid #e0ebe8;border-radius:12px;overflow:hidden}
.aq-ring svg{width:78px;height:78px}
.aq-ring>div{position:absolute;inset:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}
.aq-ring b{font-size:15px;line-height:1.25;font-variant-numeric:tabular-nums;letter-spacing:-.02em;max-width:66px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aq-ring span{display:block;max-width:66px;margin-top:3px;font-size:8.5px;line-height:1.4;color:#587075;font-weight:700;word-break:keep-all}
.day-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px}
.day-cell{padding:12px;border:1px solid #e0e8e6;border-radius:12px;background:#fff;min-width:0}
.day-cell-head b{display:block;font-size:13px}
.day-cell-head span{font-size:11px;color:#587075}
.day-cell-icon{width:34px;height:34px;margin:8px 0}
.day-cell-icon .wx-svg{width:34px;height:34px}
.day-cell-temps{display:flex;gap:8px;align-items:baseline;font-variant-numeric:tabular-nums}
.day-cell-temps strong{font-size:18px;color:#b23c2a}
.day-cell-temps span{font-size:16px;color:#2f6f9e}
.day-cell-ampm{margin-top:6px;font-size:11px;line-height:1.6;color:#4a6165}
.temp-range-wrap{margin:4px 0 6px}
.temp-range-wrap svg{width:100%;height:64px;display:block}
.temp-range-scale{display:flex;justify-content:space-between;font-size:11px;color:#587075;font-weight:700}
@media(max-width:980px){.air-rings{grid-template-columns:repeat(3,minmax(0,1fr))}.day-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* HM detail table: KMA-style horizontal rows, hairline rules */
.hm-table{width:100%;border-collapse:collapse;margin-top:10px;font-size:12px;background:#fff}
.hm-table thead th{padding:8px 6px;font-size:10.5px;color:#587075;background:#f2f7f6;border-top:1px solid #d5e0de;border-bottom:1px solid #cfdbd9;font-weight:800;white-space:nowrap}
.hm-table tbody td{padding:8px 6px;border-top:1px solid #edf2f1;text-align:center;vertical-align:middle;font-variant-numeric:tabular-nums}
.hm-table tbody tr:last-child td{border-bottom:1px solid #d5e0de}
.hm-table .c-date b{font-size:12.5px;white-space:nowrap}
.hm-table .c-wx{font-weight:700;white-space:nowrap}
.hm-table .wx-inline{display:inline-block;vertical-align:-6px;margin-right:5px}
.hm-table .wx-inline .wx-svg{width:20px;height:20px}
.hm-table .c-hi{color:#b23c2a;font-weight:900;font-size:14px;white-space:nowrap}
.hm-table .c-lo{color:#2f6f9e;font-weight:800;font-size:13px;white-space:nowrap}
.hm-table td small{color:#1f6fa8;font-weight:800}
@media(max-width:980px){.hm-table{font-size:11px}.hm-table thead th,.hm-table tbody td{padding:7px 4px}}

/* HM wide tables: sticky item column, hairline rules, horizontal scroll */
.hm-hscroll{overflow-x:auto;margin:0 -2px;padding:0 2px 8px}
.hm-table.hm-wide{min-width:max-content}
.hm-table .c-item{position:sticky;left:0;background:#f2f7f6;z-index:2;min-width:58px;box-shadow:1px 0 0 #d5e0de;font-size:10.5px;color:#3d5a5e}
.hm-table thead .c-item{z-index:3}
.hm-hourly td,.hm-daily td{min-width:64px;font-size:11px}
.hm-hourly strong{font-size:15px;font-variant-numeric:tabular-nums}
.hm-hourly .c-pop{color:#1f6fa8;font-weight:800}
.hm-daily td{min-width:74px}

/* HM compare dock: handle-collapsible bottom sheet, compact by default */
.compare-map-dock{transition:transform .28s ease;max-height:46%}
.compare-map-dock .compare-dock-grid{max-height:100%;overflow:visible}
.dock-handle{display:flex;align-items:center;justify-content:center;height:26px;margin:-4px 0 6px;cursor:pointer;touch-action:manipulation}
.dock-handle i{width:44px;height:5px;border-radius:999px;background:#b9c9c7}
.dock-handle:active i{background:#0e5e63}
#screen-compare.dock-folded .compare-map-dock{transform:none;max-height:32px;overflow:hidden}
.compare-dock-card{min-height:0}
.compare-categories>div{min-height:0;padding:9px 10px}
.compare-weather dd>strong{font-size:23px}
@media(max-width:980px){.compare-map-dock{max-height:52%}#screen-compare.dock-folded .compare-map-dock{transform:translateY(calc(100% - 50px))}}

/* HM v7.6: centered hero, light brief, top alert, single-row hourly, sun/moon tones */
a.brand{text-decoration:none;color:inherit;display:flex;align-items:center;gap:11px;font-weight:800;letter-spacing:-.02em;font-size:19px}
a.brand small{display:block;font-size:10px;letter-spacing:.24em;color:#547072;margin-top:1px;font-weight:700}
.hero-centered{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;margin:18px 0 10px}
.hero-centered .wx-icon{font-size:64px;line-height:1}
.hero-centered .wx-icon .wx-svg{width:72px;height:72px}
.hero-centered strong{font-size:76px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.05em}
.hero-centered b{font-size:16px}
.hero-centered .yday{display:block;font-size:13px;color:#587075;margin-top:2px}
.brief-light{background:none;border:0;border-radius:0;padding:0;margin:0 0 14px;text-align:center}
.brief-light span{display:none}
.brief-light strong{display:block;font-size:20px;line-height:1.4;word-break:keep-all}
.brief-light p{border:0;margin:6px 0 0;padding:0;font-size:13px;color:#587075}
.top-alert{font-size:12px;line-height:1.5;color:#587075;text-align:center;margin:2px 0 6px}
.top-alert.is-warn{color:#b3271e;font-weight:800}
.screen .rail-inner .section{padding:18px 0}
.nowcast-strip{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:minmax(66px,1fr);overflow-x:auto;gap:8px}
.nowcast-strip .hour{min-width:66px}
.sun-row.sun-quad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.sun-box{background:#fff8ec;border-color:#efd6a2}
.sun-box span{color:#8a6a2b}
.sun-box b{color:#b86610}
.moon-box{background:#eef4fb;border-color:#c3d6ec}
.moon-box span{color:#4a6a8a}
.moon-box b{color:#2f6f9e}
.air-message,.section .data-stamp{text-align:center}
@media(max-width:980px){
  .screen.rail-collapsed>.rail{max-height:132px}
  .hero-centered strong{font-size:64px}
}
.screen .rail-inner{padding-left:28px}
.brief p{border-top:1px dashed #cfdbd9;padding-top:8px}
#localAlertsSection.alerts-top{border:1px solid #ebbc76;background:#fff8ec;border-radius:12px;padding:14px;margin-bottom:20px}
.point-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.sun-values.sun-centered{text-align:center}
.sun-values.sun-centered>div{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.sun-values{grid-template-columns:repeat(4,minmax(0,1fr))}
/* AirKorea grade rings: grade pill on top, value inside circle, station + message below */
.aq-wrap{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.aq-grade{display:inline-block;min-width:52px;text-align:center;font-size:12px;font-weight:800;color:#fff;border-radius:999px;padding:3px 12px}
.aq-wrap .aq-ring{min-height:104px;width:100%}
.air-message{font-size:14px;line-height:1.6;margin:10px 0 4px;color:#173e42}
/* Local nowcast: single horizontal row, drag to scroll (24h compact) */
.nowcast-strip{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(66px,1fr);overflow-x:auto}
/* Detail temp range: full-width scroll so PC line matches each date */
.temp-range-wrap{min-width:100%}
.temp-range-wrap svg{height:64px}
/* Compare desktop: no white gap, map keeps presence */
#screen-compare.active>.maparea{justify-content:flex-start}
#compareMap{flex:1 1 auto;min-height:420px}
@media(max-width:980px){
  .screen .rail-inner{padding:24px 22px 32px}
  .screen .mobile-handle{display:flex;cursor:pointer}
  .point-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sun-values{grid-template-columns:repeat(2,minmax(0,1fr))}
  #screen-local.active>.maparea{height:clamp(340px,48svh,440px)}
  .screen.rail-collapsed>.rail{max-height:132px;overflow:hidden}
  .screen.rail-collapsed>.maparea{height:clamp(420px,62svh,620px)}
  #screen-local.rail-collapsed>.maparea{height:clamp(420px,62svh,620px)}
  .map-provider-note{top:auto;bottom:62px;right:10px}
}

/* HM 2026-09-20 mobile: equal bottom-sheet footprint + viewport fill.
   Keeps the desktop layout unchanged and fixes the mobile blank area caused by
   the legacy translated collapsed rail. */
@media(max-width:980px){
  :root{
    --hm-mobile-sheet-peek:132px;
    --hm-mobile-sheet-open:min(56dvh,520px);
  }

  .screen.active,
  #screen-local.active,
  #screen-compare.active{
    position:relative;
    display:flex;
    flex-direction:column;
    height:calc(100dvh - var(--studio-header) - var(--studio-nav));
    min-height:0;
    max-height:calc(100dvh - var(--studio-header) - var(--studio-nav));
    overflow:hidden;
  }

  /* The main visual area always consumes the space left above the sheet. */
  .screen.active>.maparea,
  .screen.active>.moon-stage,
  .screen.active>.detail-weather{
    order:1;
    flex:1 1 auto;
    width:100%;
    height:auto!important;
    min-height:0!important;
  }
  .screen.active>.detail-weather{
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
  #screen-local.active>.maparea{
    display:grid;
    grid-template-rows:minmax(0,1fr) 54px;
    flex:1 1 auto;
    height:auto!important;
    min-height:0!important;
  }
  #screen-korea.active>.maparea,
  #screen-world.active>.maparea,
  #screen-moon.active>.moon-stage{
    flex:1 1 auto;
    height:auto!important;
    min-height:0!important;
  }

  /* Five rail-based categories use one identical mobile sheet height. */
  .screen.active>.rail{
    order:2;
    position:relative;
    inset:auto;
    flex:0 0 var(--hm-mobile-sheet-open);
    width:100%;
    height:var(--hm-mobile-sheet-open);
    max-height:var(--hm-mobile-sheet-open)!important;
    overflow:hidden;
    transform:none!important;
    border:0;
    border-top:1px solid var(--studio-line);
    border-radius:18px 18px 0 0;
    background:#fffdf8;
    box-shadow:0 -8px 22px rgba(16,46,53,.08);
  }
  .screen.rail-collapsed>.rail{
    flex-basis:var(--hm-mobile-sheet-peek);
    height:var(--hm-mobile-sheet-peek);
    max-height:var(--hm-mobile-sheet-peek)!important;
    overflow:hidden;
    transform:none!important;
  }
  .screen.active>.rail .rail-inner{
    height:calc(100% - 30px);
    max-height:none;
    overflow:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }

  /* Mobile local view already has the compact ranking section inside the sheet. */
  #screen-local.active>.local-right-rail{display:none!important}

  /* Compare uses its map dock as the sixth mobile bottom sheet. */
  #screen-compare.active>.rail{display:none!important}
  #screen-compare.active>.maparea{
    order:1;
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    width:100%;
    height:auto!important;
    min-height:0!important;
    overflow:hidden;
  }
  #screen-compare #compareMap{
    flex:1 1 auto;
    height:auto!important;
    min-height:0!important;
  }
  #screen-compare .compare-map-dock{
    position:relative;
    inset:auto;
    flex:0 0 var(--hm-mobile-sheet-peek);
    width:100%;
    height:var(--hm-mobile-sheet-peek);
    max-height:var(--hm-mobile-sheet-peek)!important;
    overflow:auto;
    transform:none!important;
    padding:8px 12px 12px;
    border:0;
    border-top:1px solid var(--studio-line);
    border-radius:18px 18px 0 0;
    background:#f4f8f7;
    box-shadow:0 -8px 22px rgba(16,46,53,.08);
  }
  #screen-compare.dock-folded .compare-map-dock{
    flex-basis:50px;
    height:50px;
    max-height:50px!important;
    overflow:hidden;
    transform:none!important;
  }
}


/* HM 2026-09-20 UX pass: professional local hero, explicit station provenance,
   compact mobile navigation, map-wide time axis, and no detail bottom sheet. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.local-mobile-peek{display:none}
#screen-local .local-hero-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:6px}
#screen-local .local-hero-head h1{margin:3px 0 3px;font-size:25px;line-height:1.2;letter-spacing:-.04em}
#screen-local .local-hero-head p{margin:0;color:#667b7d;font-size:12px;line-height:1.45}
.official-data-badge{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;margin-top:2px;padding:6px 9px;border:1px solid #c9ded9;border-radius:999px;background:#f2faf7;color:#245b54;font-size:10.5px;font-weight:850;white-space:nowrap}
.official-data-badge i,.source-proof-head strong i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#1c8b70;box-shadow:0 0 0 3px rgba(28,139,112,.11)}
#screen-local .hero-professional{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:14px;margin:12px 0 10px;padding:14px 15px;border:1px solid #dce7e4;border-radius:16px;background:linear-gradient(145deg,#fbfdfc,#f2f8f6);text-align:left}
#screen-local .hero-professional .wx-icon{display:flex;align-items:center;justify-content:center;width:72px;height:72px;font-size:58px;line-height:1}
#screen-local .hero-professional .wx-icon .wx-svg{width:68px;height:68px}
#screen-local .hero-professional .hero-reading>div{display:flex;align-items:baseline;gap:10px;min-width:0}
#screen-local .hero-professional strong#temp{font-size:52px;line-height:.95;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
#screen-local .hero-professional .hero-condition{font-size:15px;font-weight:850;color:#183f43;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#screen-local .hero-professional .hero-reading>b{display:inline-block;margin-top:6px;font-size:13px;color:#3f5f63}
#screen-local .hero-professional .yday{margin-left:7px;font-size:11px;color:#6c7f82}
#screen-local .hero-professional .obs-line{margin:5px 0 0;font-size:11px;color:#748789}
#screen-local .source-proof{margin:0 0 12px;padding:12px;border:1px solid #d7e3e0;border-radius:14px;background:#fff}
#screen-local .source-proof-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
#screen-local .source-proof-head>div{min-width:0}
#screen-local .source-proof-head strong{display:flex;align-items:center;gap:7px;font-size:12px;color:#23494c}
#screen-local .source-proof-head span{display:block;margin-top:2px;color:#77888a;font-size:10.5px}
#screen-local .source-proof-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#screen-local .source-proof-grid article{min-width:0;padding:10px;border:1px solid #e1e9e7;border-radius:11px;background:#f8fbfa}
#screen-local .source-kind{display:inline-flex;margin-bottom:6px;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:850;background:#eaf5f1;color:#17634f}
#screen-local .source-kind.air{background:#edf4fa;color:#2d6083}
#screen-local .source-proof-grid b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#183f43;font-size:12px}
#screen-local .source-proof-grid small{display:block;margin-top:3px;color:#718386;font-size:10px;line-height:1.35;white-space:normal}
#screen-local .trust-panel{margin:-3px 0 12px;border:1px solid #dbe6e3;border-radius:12px;background:#fbfdfc}
#screen-local .metrics{margin-top:0}
#screen-local .brief-light{text-align:left;padding:12px 2px 2px;margin-bottom:12px;border-top:1px solid #e3ecea}
#screen-local .brief-light strong{font-size:17px}
#screen-local .brief-light p{font-size:12px}
#screen-local .top-alert{text-align:left;margin:4px 1px 2px}
#screen-local .map-title strong{font-size:15px}

@media(max-width:980px){
  :root{--studio-nav:50px;--hm-mobile-sheet-peek:132px;--hm-mobile-sheet-open:min(48dvh,470px)}
  .nav{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));height:var(--studio-nav)!important;overflow:visible!important;gap:0;padding:0 4px;border-bottom:1px solid var(--studio-line);scrollbar-width:none}
  .nav button{min-width:0!important;width:auto!important;flex:none!important;height:50px!important;padding:0 2px!important;margin:0!important;border:0!important;border-radius:0!important;display:flex!important;align-items:center;justify-content:center;background:transparent!important;box-shadow:none!important;overflow:hidden}
  .nav button .eyebrow,.nav button strong,.nav button small{display:none!important}
  .nav button::after{content:attr(data-mobile-label);font-size:12px;font-weight:800;letter-spacing:-.04em;color:#31565a;white-space:nowrap}
  .nav button.active::after{color:#fff}
  .nav button.active{align-self:center;height:40px!important;margin:5px 2px!important;border-radius:10px!important;background:#0d5960!important}

  /* Detail is a reading page: no mobile bottom sheet. */
  #screen-detail.active{display:block!important;height:calc(100dvh - var(--studio-header) - var(--studio-nav))!important;max-height:calc(100dvh - var(--studio-header) - var(--studio-nav))!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;background:#f5f8f7}
  #screen-detail.active>.rail{display:none!important}
  #screen-detail.active>.detail-weather{display:block!important;width:100%!important;height:auto!important;min-height:100%!important;max-height:none!important;overflow:visible!important;padding-bottom:calc(28px + env(safe-area-inset-bottom))}

  #screen-local.active>.rail .rail-inner{padding:18px 16px 28px}
  #screen-local.rail-collapsed>.rail .rail-inner{display:none!important}
  #screen-local.rail-collapsed>.rail .local-mobile-peek{display:block;height:calc(var(--hm-mobile-sheet-peek) - 30px);padding:5px 14px 9px;background:#fff}
  #screen-local:not(.rail-collapsed)>.rail .local-mobile-peek{display:none}
  .peek-primary{display:grid;grid-template-columns:38px auto 1fr;align-items:center;gap:8px;height:48px}
  .peek-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;font-size:30px;overflow:hidden}
  .peek-icon .wx-svg{width:34px;height:34px}
  .peek-primary>div{display:flex;align-items:baseline;gap:6px;min-width:0}
  .peek-primary b{font-size:25px;line-height:1;letter-spacing:-.045em}
  .peek-primary strong{max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#3f5d60}
  .peek-official{justify-self:end;padding:3px 6px;border-radius:999px;background:#edf7f3;color:#286553;font-size:9px;font-weight:800;white-space:nowrap}
  .peek-stations{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:5px;border-top:1px solid #e4ecea}
  .peek-stations span{display:block;min-width:0;color:#708184;font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .peek-stations b{color:#294e52;font-size:10px}

  #screen-local .local-hero-head h1{font-size:21px}
  .official-data-badge{font-size:9.5px;padding:5px 7px}
  #screen-local .hero-professional{grid-template-columns:58px minmax(0,1fr) auto;gap:10px;margin:10px 0;padding:11px 12px}
  #screen-local .hero-professional .wx-icon{width:58px;height:58px;font-size:48px}
  #screen-local .hero-professional .wx-icon .wx-svg{width:54px;height:54px}
  #screen-local .hero-professional strong#temp{font-size:43px}
  #screen-local .hero-professional .hero-condition{font-size:13px}
  #screen-local .source-proof{padding:10px}
  #screen-local .source-proof-grid{grid-template-columns:1fr 1fr;gap:6px}
  #screen-local .source-proof-grid article{padding:8px}
  #screen-local .source-proof-grid b{font-size:11px}
  #screen-local .source-proof-grid small{font-size:9.5px}

  #screen-local .map-title{padding:8px 10px;max-width:210px}
  #screen-local .map-title>span{display:none}
  #screen-local .map-title strong{font-size:13px}
  #screen-local .map-title small{font-size:9.5px;line-height:1.25}
  #screen-local .map-timebar{padding:4px 6px;gap:2px}
  #screen-local .map-timebar>span{display:none}
  #screen-local .map-timebar button{min-width:0;flex:1;padding:7px 3px;font-size:11px}
}
