/* One desktop shell for the local trading and market pages. */
html{scrollbar-gutter:stable}
/* Supported browsers retain the old dark page until the destination is painted. */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-group(root){animation:none}
::view-transition-image-pair(root){isolation:isolate}
@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation-duration:0s}}
@media(min-width:721px){
 body>header,body>.source-switch{font-family:Inter,"Malgun Gothic",system-ui,sans-serif;font-size:15px;line-height:1.55;color:#e6edf3;box-sizing:border-box}
 body>header{height:66px;padding:0 28px!important;background:#0b121a;border-bottom:1px solid #243240;align-items:center}
 body>header .brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:700}
 body>header .brand small{font-size:13px;font-weight:400;color:#91a3b3;margin-left:6px;white-space:nowrap}
 body>header .brand-logo,body>header .map-logo{position:relative;display:block;width:190px;height:46px;overflow:hidden;flex-shrink:0}
 body>header .brand-logo img,body>header .map-logo img{position:absolute;width:253px;height:126.5px;max-width:none;left:-31.5px;top:-39.9px}
 body>.source-switch{display:flex;gap:8px;padding:10px 28px;height:58.25px;align-items:center;background:#0d1822;border-bottom:1px solid #243240}
 body>.source-switch>button,body>header button,body>header .csv-guide-button{font-family:inherit;font-size:15px;font-weight:400;line-height:1.55;border:1px solid #243240;border-radius:6px;background:#182735;color:#e6edf3;padding:6px 11px;white-space:nowrap;box-sizing:border-box}
 body>header .csv-guide-button{font-size:13px;display:flex;justify-content:center;align-items:center;min-height:37.25px;text-decoration:none}
 body>.source-switch>button.active{background:#194b3c;color:#9affd8;border-color:#408269}
 body>.source-switch>button:hover,body>header button:hover{background:#263b4d;filter:none}
}
@media(min-width:721px) and (max-width:1200px){body>header .brand small{display:none}}
@media(min-width:721px) and (max-width:960px){body>header{height:auto;min-height:112px;padding:8px 15px!important}}
/* Keep the existing compact mobile shell when reusing the shared header. */
@media(max-width:720px){
 body:has(#mapMenuOpen)>header{display:flex!important;height:66px;min-height:66px;padding:8px 12px;justify-content:center}
 body:has(#mapMenuOpen)>header .brand small,body:has(#mapMenuOpen)>header .header-login-notice,body:has(#mapMenuOpen)>header .header-account-actions{display:none!important}
}
/* Unified drawer: quiet navigation rows and clear selected state. */
#mobileMenu,#mapMenu{background:#0e1b25;color:#e5eef5;border:1px solid #2a404e;padding:22px 16px;box-shadow:16px 0 56px #0005;font-family:Inter,'Malgun Gothic',system-ui,sans-serif}
#mobileMenu .mobile-menu-heading,#mapMenu .map-menu-heading{margin-bottom:22px;min-height:34px}
#mobileMenu .mobile-menu-heading strong,#mapMenu .map-menu-heading strong{font-size:18px;letter-spacing:-.4px}
#mobileMenu .mobile-menu-heading button,#mapMenu .map-menu-heading button{min-height:32px;padding:5px 10px;font-size:12px;color:#a7bac8;background:#152632;border:1px solid #29404e;border-radius:8px}
#mobileMenu [data-map-link],#mapMenu [data-map-link]{display:flex;align-items:center;gap:10px;min-height:44px!important;padding:10px 12px!important;background:#122633;border:1px solid #284554;border-radius:10px;font-size:13px;font-weight:600;color:#c5dfeb}
#mobileMenu [data-map-link]::before,#mapMenu [data-map-link]::before{content:'▦';font-size:20px;line-height:20px;color:#73d8c1}
#mobileMenu .mobile-menu-sources,#mapMenu .mobile-menu-sources{gap:4px;padding:4px;margin:0 0 18px;background:#08151f;border:1px solid #223845;border-radius:10px}
#mobileMenu .mobile-menu-sources button,#mapMenu .mobile-menu-sources button{min-height:38px;margin:0;padding:6px 4px;border:1px solid transparent;border-radius:7px;background:transparent;color:#8ea5b5;font-size:12px;font-weight:500}
#mobileMenu .mobile-menu-sources button[aria-pressed=true],#mapMenu .mobile-menu-sources button[aria-pressed=true]{background:#233b46;color:#c5f4e7;border-color:#355663;box-shadow:0 2px 5px #0003}
#mobileMenu>button,#mapMenu .map-menu-views>button{position:relative;display:flex;align-items:center;width:100%;min-height:44px;margin:3px 0;padding:10px 12px 10px 16px;border:1px solid transparent;border-radius:9px;background:transparent;color:#b9ccd9;font-size:14px;font-weight:500;line-height:22px;text-align:left;transition:background .12s,color .12s}
#mobileMenu>button:hover,#mapMenu .map-menu-views>button:hover{background:#192e3c;color:#eefaff;filter:none}
#mobileMenu>button[aria-current=true],#mapMenu .map-menu-views>button[aria-current=true]{background:#173d36;color:#8cf0d0;border-color:#2b5f51;font-weight:650}
#mobileMenu>button[aria-current=true]::before,#mapMenu .map-menu-views>button[aria-current=true]::before{content:'';position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:3px;background:#64dfb7}
#mobileMenu>button[aria-current=true]::after{content:'›';margin-left:auto;color:#78d7b7;font-size:20px}
#mobileMenu [data-map-link].active,#mapMenu [data-map-link].active{background:#173d36;color:#8cf0d0;border-color:#2b5f51}
#mobileMenu .mobile-menu-actions,#mapMenu .map-menu-actions{display:grid;gap:2px;border-top:1px solid #243b48;margin-top:20px;padding-top:16px}
#mobileMenu .mobile-menu-actions::before,#mapMenu .map-menu-actions::before{content:'계정 및 데이터';display:block;color:#728d9e;font-size:11px;letter-spacing:.5px;padding:0 12px 8px}
#mobileMenu .mobile-menu-actions button,#mapMenu .map-menu-actions button{display:block;width:100%;min-height:40px;margin:0;padding:9px 12px;background:transparent;border:1px solid transparent;border-radius:8px;color:#94aebe;font-size:12px;line-height:20px;text-align:left}
#mobileMenu .mobile-menu-actions button:hover,#mapMenu .map-menu-actions button:hover{background:#192e3c;color:#edf8ff;filter:none}
#mobileMenu button:focus-visible,#mapMenu button:focus-visible{outline:2px solid #70dcbb;outline-offset:2px}
@media(prefers-reduced-motion:reduce){#mobileMenu button,#mapMenu button{transition:none}}
/* Alternative B: compact two-column navigation tiles. */
#mobileMenu,#mapMenu{background:linear-gradient(155deg,#152634,#0d1924 60%);padding:22px 16px}
#mobileMenu .map-menu-views,#mapMenu .map-menu-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:16px 0 0}
#mobileMenu .map-menu-views>button,#mapMenu .map-menu-views>button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;position:relative;width:100%;min-height:88px;margin:0;padding:13px;border:1px solid #304653;border-radius:12px;background:#192c3a;color:#d1e0eb;font-size:12px;line-height:18px;font-weight:500;text-align:left;box-shadow:0 3px 8px #0001}
#mobileMenu .map-menu-views>button::before,#mapMenu .map-menu-views>button::before{content:attr(data-menu-icon);position:static;display:grid;place-items:center;width:28px;height:25px;color:#9bbdd0;background:transparent;font-size:23px;line-height:25px;border-radius:0}
#mobileMenu .map-menu-views>button[aria-current=true],#mapMenu .map-menu-views>button[aria-current=true]{background:linear-gradient(140deg,#244d45,#183930);border-color:#57a98c;color:#b8ffe1;box-shadow:inset 0 1px 0 #a8ffda16}
#mobileMenu .map-menu-views>button[aria-current=true]::before,#mapMenu .map-menu-views>button[aria-current=true]::before{color:#83e8bf}
#mobileMenu .map-menu-views>button[aria-current=true]::after{content:'';position:absolute;right:12px;top:13px;width:6px;height:6px;border-radius:50%;background:#89f0c6}
#mobileMenu .map-menu-views>button:hover,#mapMenu .map-menu-views>button:hover{border-color:#618599;background:#243d4c;filter:none}
#mobileMenu [data-map-link],#mapMenu [data-map-link]{min-height:54px!important;background:linear-gradient(110deg,#1c3546,#162a39);border-color:#36576b;border-radius:12px;font-size:14px}
#mobileMenu [data-map-link]::after,#mapMenu [data-map-link]::after{content:'↗';margin-left:auto;font-size:17px;color:#8db5cc}
#mobileMenu .mobile-menu-sources,#mapMenu .mobile-menu-sources{margin-bottom:0;border-radius:9px}
#mobileMenu .mobile-menu-actions,#mapMenu .map-menu-actions{margin-top:22px;padding-top:16px;gap:5px}
#mobileMenu .mobile-menu-actions button,#mapMenu .map-menu-actions button{min-height:40px;border-radius:8px;background:#142633;padding:9px 12px;color:#a8c0cf}
#mobileMenu .map-menu-views>button:last-child:nth-child(odd),#mapMenu .map-menu-views>button:last-child:nth-child(odd){grid-column:1/-1;min-height:56px;flex-direction:row;justify-content:flex-start;align-items:center;gap:12px}
/* Desktop review: permanently reserved ad placement and polished source tabs. */
.heading .eyebrow{font-size:14px;line-height:22px;letter-spacing:1.6px;color:#85e7d0}
.map-layout{display:block}.map-workspace{min-width:0}
@media(min-width:721px){
 body>.source-switch{gap:6px}
 body>.source-switch>button{position:relative;height:38px;padding:7px 16px;border-radius:10px;border-color:transparent;background:transparent;color:#9fb6c7;font-size:14px;font-weight:600;transition:background .12s,color .12s,border-color .12s}
 body>.source-switch>button:hover{background:#1b3040;color:#e4f5ff}
 body>.source-switch>button.active{background:linear-gradient(130deg,#254d43,#19392f);border-color:#467967;color:#b3f8da;box-shadow:inset 0 1px 0 #b4ffdf12,0 2px 5px #0002}
 body>.source-switch>button[data-map-link]{margin-left:0}
 body>.source-switch>button[data-map-link]::before{content:none}
 body main.has-ad-rail>.ad-rail{display:block!important}
 .map-layout>.ad-rail{display:block}
 .map-layout .ad-placeholder{max-width:130px;text-align:center;line-height:1.8}
 .ad-rail{background:transparent}
}
@media(min-width:1400px){
 body main.has-ad-rail{grid-template-columns:292px minmax(0,1fr) 184px}
 main.map-layout{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:24px;max-width:1500px}
 .map-layout>.ad-rail{padding:0;grid-column:2;grid-row:1}
}
@media(min-width:721px) and (max-width:1399px){
 body main.has-ad-rail{grid-template-columns:292px minmax(0,1fr)}
 .map-layout>.ad-rail{padding:0;margin-top:20px}
 .map-layout .ad-placeholder{max-width:none}
}
@media(max-width:720px){
 .map-layout>.ad-rail,body main.has-ad-rail>.ad-rail{display:none!important}
 .heading .eyebrow{font-size:12px;letter-spacing:1.3px}
}

@media(min-width:721px){
 .heading .eyebrow{font-family:Inter,"Malgun Gothic",system-ui,sans-serif;font-size:11px;font-weight:700;line-height:1.55;letter-spacing:2px;color:#54d7ad}
 body>.source-switch>button{display:inline-flex;align-items:center;justify-content:center;text-align:center;line-height:20px;padding:0 16px;height:38px;vertical-align:middle}
}
/* Refined tile surfaces and a consistent custom line icon set. */
#mobileMenu .map-menu-views,#mapMenu .map-menu-views{gap:10px}
#mobileMenu .map-menu-views>button,#mapMenu .map-menu-views>button{min-height:96px;padding:13px;gap:11px;border-radius:14px;border-color:#2b4352;background:linear-gradient(145deg,#213847,#162936);box-shadow:inset 0 1px 0 #d8f1ff08,0 4px 10px #0002;font-weight:600;color:#d8e6ee;letter-spacing:-.2px}
#mobileMenu .map-menu-views>button::before,#mapMenu .map-menu-views>button::before,#mobileMenu [data-map-link]::before,#mapMenu [data-map-link]::before{content:none}
#mobileMenu .menu-tile-icon,#mapMenu .menu-tile-icon{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:10px;background:linear-gradient(140deg,#37536488,#203e4a44);border:1px solid #7bd8cf18;box-shadow:inset 0 1px 0 #ffffff09}
#mobileMenu .menu-tile-icon img,#mapMenu .menu-tile-icon img{display:block;width:22px;height:22px;opacity:.9}
#mobileMenu .map-menu-views>button[aria-current=true],#mapMenu .map-menu-views>button[aria-current=true]{background:linear-gradient(135deg,#295548,#193e36);border-color:#4d947d;box-shadow:inset 0 1px 0 #a8ffe51a,0 4px 14px #0003;color:#d1ffeb}
#mobileMenu .map-menu-views>button[aria-current=true] .menu-tile-icon{background:#77e6ba1a;border-color:#7aefc52b}
#mobileMenu .map-menu-views>button:hover,#mapMenu .map-menu-views>button:hover{background:linear-gradient(145deg,#2b4657,#1b3343);border-color:#597e91}
#mobileMenu .map-menu-views>button:last-child:nth-child(odd),#mapMenu .map-menu-views>button:last-child:nth-child(odd){min-height:62px}
#mobileMenu [data-map-link],#mapMenu [data-map-link]{gap:11px;min-height:60px!important;border-radius:14px;background:linear-gradient(120deg,#244b46,#163b34);border-color:#356f5e;color:#b9f5df;box-shadow:inset 0 1px 0 #c4ffe713}
#mobileMenu .mobile-menu-actions button,#mapMenu .map-menu-actions button{background:transparent;border-bottom:1px solid #263c4933;border-radius:0;min-height:38px;padding-left:8px}
/* Carry the drawer tile language into compact desktop workspace navigation. */
#mobileMenu [data-map-link]::after,#mapMenu [data-map-link]::after{content:none}
.desktop-menu-icon{display:none;pointer-events:none}
@media(min-width:721px){
 body .workspace>.view-tabs{display:flex;align-items:stretch;flex-wrap:wrap;gap:9px;padding-bottom:16px;margin-bottom:20px}
 body .workspace>.view-tabs button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:9px 16px;border:1px solid #2b4352;border-radius:12px;background:linear-gradient(145deg,#213847,#162936);box-shadow:inset 0 1px 0 #d8f1ff08,0 3px 8px #0002;color:#d8e6ee;font-size:13px;font-weight:600;line-height:20px;text-align:center}
 body .workspace>.view-tabs .desktop-menu-icon{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:9px;background:linear-gradient(140deg,#37536488,#203e4a44);border:1px solid #7bd8cf18;box-shadow:inset 0 1px 0 #ffffff09}
 .desktop-menu-icon img{display:block;width:20px;height:20px;pointer-events:none}
 body .workspace>.view-tabs button.active{background:linear-gradient(135deg,#295548,#193e36);border-color:#4d947d;color:#d1ffeb;box-shadow:inset 0 1px 0 #a8ffe51a,0 3px 10px #0002}
 body .workspace>.view-tabs button.active::after{content:'';position:absolute;right:6px;top:6px;width:4px;height:4px;border-radius:50%;background:#89f0c6}
 body .workspace>.view-tabs button.active .desktop-menu-icon{background:#77e6ba1a;border-color:#7aefc52b}
 body .workspace>.view-tabs button:hover{border-color:#597e91;filter:brightness(1.08)}
}
/* Balanced menu band and the same ad rail geometry on every desktop page. */
@media(min-width:721px){
 body .workspace{padding-top:0}
 body .workspace>.view-tabs{justify-content:flex-start;align-items:center;padding:12px 0;margin-top:0;margin-bottom:20px}
 main.map-layout{max-width:2100px;padding:0;margin:auto;gap:0}
 .map-workspace{padding:24px 28px}
 .map-layout>.ad-rail{margin:0;padding:24px 24px 24px 0}
 .map-layout .ad-label,.map-layout .ad-placeholder{font-family:Inter,"Malgun Gothic",system-ui,sans-serif;font-weight:400;line-height:1.55}
 .map-layout .ad-placeholder{max-width:none}
}
@media(min-width:1400px){main.map-layout{grid-template-columns:minmax(0,1fr) 184px}}
@media(min-width:721px) and (max-width:1399px){.map-layout>.ad-rail{padding:0 28px 28px}}
@media(min-width:721px){
 body .workspace>.view-tabs{min-height:77px}
 html[data-local-menus=loading] .workspace>.view-tabs{visibility:hidden}
}
