:root{font-family:Arial,'Apple SD Gothic Neo','Noto Sans KR',sans-serif;color:#183b2c}*{box-sizing:border-box}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:wait}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}.brand img{width:90px;height:40px;object-fit:contain}.brand span{font-size:15px;letter-spacing:2px}header{height:80px!important}header .login{white-space:nowrap}.layout{height:calc(100dvh - 80px);min-height:0!important;grid-template-columns:400px minmax(0,1fr)!important;gap:0!important}.sidebar{overflow:auto;padding:20px!important;min-height:0}.tabs{position:sticky;top:-20px;z-index:3;background:#f5f7f2;padding:10px 0;display:flex}.tab{flex:1;padding:12px 4px!important;font-size:13px!important;border:0;border-radius:12px;background:transparent;color:#55705f}.tab[aria-selected=true]{background:#173f2f;color:white}.card{padding:20px!important;border:1px solid #e0e7df;border-radius:18px;margin-top:16px;background:white}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.section-heading h1{font-size:21px!important;line-height:1.4;margin:12px 0}.section-heading select{width:auto;max-width:105px}.muted,.hint{color:#687c6c;font-size:13px;line-height:1.7}.empty{text-align:center}.empty img{width:180px!important;height:130px!important;object-fit:contain}.empty h2{font-size:18px}.primary,.secondary,.text-button,.icon-button{border-radius:10px;padding:12px 16px;min-height:44px;font-weight:600;border:1px solid #dce5d9;background:white;color:#214c37}.primary{background:#c3ed59;border-color:#c3ed59;color:#193e2a}.secondary{background:#edf2e7}.text-button{background:transparent}.icon-button{padding:8px 12px}.button-row{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.button-row>*{flex:1}label{display:block;font-size:13px;font-weight:600;margin:14px 0 8px}input:not([type=checkbox]),select,textarea{display:block;width:100%;padding:12px;border:1px solid #d6e0d3;border-radius:9px;background:white;color:#203f2e;min-height:44px}input[type=checkbox]{width:18px;height:18px;vertical-align:middle}textarea{resize:vertical;min-height:80px}input:focus-visible,button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #719e46;outline-offset:3px}.file-upload{display:block;text-align:center;padding:14px;border:1px dashed #99b58a;border-radius:10px;cursor:pointer}.file-upload input{width:100%;font-size:12px;margin-top:8px}.stats{display:flex;justify-content:space-between;padding:16px;background:#f1f5eb;border-radius:10px;gap:10px;margin:16px 0}.stats strong{font-size:18px}.my-routes{margin-top:22px}.my-routes summary{cursor:pointer;font-weight:600;padding:12px 0}.map{position:relative!important;overflow:hidden;min-height:0!important;border-radius:0!important;background:#e4ebdf!important;padding:0!important}.map:before,.map:after{display:none!important}#map-canvas{position:absolute;inset:0;z-index:0}.map-tools{position:absolute;right:16px;top:16px;z-index:450;display:flex;flex-direction:column;gap:8px}.map-tools button{width:44px;height:44px;background:white;border:1px solid #ccd8c5;border-radius:12px;font-size:24px;color:#264e38;box-shadow:0 2px 8px #183b2c18}.ai-quick{position:absolute!important;left:50%!important;bottom:28px!important;top:auto!important;transform:translateX(-50%);width:max-content!important;max-width:90%;padding:16px 24px!important;background:white;border:1px solid #dce6d6;border-radius:14px;z-index:450;color:#234f35;box-shadow:0 5px 24px #1a39251c;cursor:pointer}.leaflet-container{font-family:inherit}.creator-marker{border:0;background:none}.creator-marker img{width:42px;height:42px;border:3px solid white;border-radius:50%;box-shadow:0 2px 8px #172b2950}.route-card{border:1px solid #dce4d8;padding:15px;background:white;border-radius:14px;margin:12px 0}.route-card h3{font-size:16px;margin:12px 0 8px}.route-card .owner{display:flex;align-items:center;gap:9px;font-size:13px}.owner img,#profile-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover}.route-card .actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}.route-card button{border:1px solid #dce4d8;background:#f4f7ef;border-radius:8px;padding:9px 12px;min-height:40px;color:#234a35}.route-card .liked{color:#ad3f59;background:#fff0f3}.route-card p{font-size:13px;color:#5c715f;line-height:1.6;overflow-wrap:anywhere}.selected{border:2px solid #7fba40}.settings{padding:0!important;background:transparent!important;box-shadow:none!important}.check{display:flex;align-items:center;gap:10px;font-weight:400}.check input{margin:0}#recommend-submit{width:100%;margin:18px 0}#app-status{padding:16px 2px;font-size:13px;color:#4e6854;line-height:1.6}dialog{border:1px solid #dce4d7;border-radius:22px;padding:28px;width:440px;max-width:calc(100vw - 28px);max-height:90dvh;overflow:auto;color:#183b2c;box-shadow:0 18px 80px #102a3840}dialog::backdrop{background:#16352b70}dialog h2{font-size:23px;margin-top:0}dialog [data-close-dialog]{float:right;background:transparent;border:0;font-size:26px;min-height:40px;min-width:40px}dialog .primary{width:100%;margin-top:18px}dialog .mode-switch{display:flex;gap:8px}dialog .mode-switch button{flex:1;padding:12px;border:1px solid #dde5d8;border-radius:10px;background:white}dialog .mode-switch button[aria-pressed=true]{background:#e5f0d4}#auth-error,#profile-error{color:#a53b38;line-height:1.5;font-size:13px}.leaflet-control-attribution{font-size:10px!important}.leaflet-popup-content button{padding:8px;background:#e6f1d5;border:0;border-radius:6px}.planner,.panel.ai{display:none}
@media(max-width:900px){.layout{grid-template-columns:340px minmax(0,1fr)!important}header{padding:14px 20px!important}}
@media(max-width:650px){header{height:64px!important;padding:8px 14px!important}header .brand img{width:68px;height:32px}header .brand span{font-size:12px}header .home{display:none}header .login{font-size:12px;padding:10px!important}.layout{height:calc(100dvh - 64px);display:flex!important;flex-direction:column-reverse;gap:0}.map{flex:1;min-height:230px!important}.sidebar{height:48dvh;flex:none;padding:12px 16px!important;border-radius:20px 20px 0 0;z-index:500;background:#f6f8f2}.tabs{top:-12px;padding:8px 0}.ai-quick{bottom:22px!important;padding:12px 18px!important;font-size:13px}.section-heading h1{font-size:19px!important}.empty img{width:110px!important;height:85px!important}.empty{padding:14px!important}.empty h2{font-size:16px}.empty p{font-size:12px}.card{padding:16px!important}.leaflet-control-zoom{margin-top:12px!important}.map-tools{top:12px;right:12px}}
.action-row{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.action-row button{flex:1;min-height:44px;padding:10px;border:1px solid #d6e2cd;border-radius:10px;background:white;color:#284c35}.action-row .lime,.lime{background:#c4ed60!important;border:1px solid #bcdf62!important;color:#254329!important;border-radius:10px;padding:12px 16px;min-height:44px;font-weight:600}.action-row [aria-pressed=true]{background:#234d35!important;color:white!important}.helper{font-size:13px;line-height:1.7;color:#687c6c}.route-stats{display:flex;justify-content:space-between;padding:16px;background:#edf3e5;border-radius:12px;gap:15px}.route-stats span{display:flex;flex-direction:column;gap:8px}.route-stats strong{font-size:18px}.upload{padding:15px;border:1px dashed #a1b490;border-radius:10px;font-weight:600}.auth-modes{display:flex;gap:8px}.auth-modes button{flex:1;border:1px solid #d9e5cf;border-radius:10px;padding:12px;background:white}.auth-modes [aria-pressed=true]{background:#e7f3d1}#auth-submit,#profile-save{width:100%;margin-top:12px}#logout{background:white;border:1px solid #dce4d9;border-radius:10px;padding:12px;min-height:44px}#panel-plan h1,#panel-ai h1{font-size:22px;line-height:1.4;margin:20px 0 10px}#route-detail{margin-bottom:12px}
.sidebar{display:block!important}.tabs{height:66px!important;align-items:center}.tab{height:44px;display:flex;flex-direction:row;justify-content:center;align-items:center;border-bottom:0!important}.card{margin:16px 0 0!important}.list-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.list-heading h1{font-size:21px;margin:18px 0;flex:1;min-width:185px}.list-heading select{width:95px;padding:10px 6px;font-size:12px}.list-heading button{min-height:40px;min-width:32px;font-size:20px}.map-tools{bottom:auto!important}.map-tools button:last-child{margin:0}.map-tools button{border-radius:12px!important}.ai-quick{display:block!important}.sidebar .empty .lime{margin-top:20px}.sidebar .empty p{line-height:1.6}

#use-map-center{display:block;width:100%;min-height:44px;padding:10px;background:#eff5e6;border:1px solid #dbe5d3;border-radius:9px;margin-top:8px;font-size:13px}.check{min-height:44px}

.gps-note{position:absolute;left:60px;right:75px;top:16px;z-index:440;width:max-content;max-width:calc(100% - 135px);padding:9px 13px;border-radius:12px;background:#fffef5f5;box-shadow:0 2px 12px #173d2420;color:#2b513c;font-size:12px;line-height:1.5;pointer-events:none}.course-path,.community-course{stroke-linecap:round;stroke-linejoin:round}.current-position{filter:drop-shadow(0 0 4px #287de070)}
/* Preserve the live map pane at tablet and narrow desktop widths. */
header{min-height:0!important;flex-shrink:0}
@media(min-width:651px){.layout{display:grid!important;grid-template-rows:minmax(0,1fr)}.map{display:block!important;height:100%}.sidebar{min-height:0;max-height:100%}}

/* Shared OUO LABS navigation across the homepage and Maps. */
header.site-header{height:92px!important;min-height:92px!important;padding:18px clamp(24px,4.3vw,66px)!important;display:flex;align-items:center;gap:clamp(20px,4vw,60px);background:#f6f5ef;border-bottom:1px solid #e8e9e2;color:#12382b;position:relative;z-index:600}
.site-brand{display:flex;align-items:center;gap:12px;flex:none;color:#12382b;text-decoration:none;font-size:22px;font-weight:700;letter-spacing:.06em}
.site-brand img{width:80px;height:45px;object-fit:contain}
.site-nav{display:flex;align-items:center;gap:clamp(18px,3.2vw,50px);height:100%;font-size:15px;font-weight:600}
.site-nav a{height:100%;display:flex;align-items:center;position:relative;color:#12382b;white-space:nowrap;text-decoration:none}
.site-nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px;background:#bce35b}
header.site-header .login{margin-left:auto;min-height:44px;padding:11px 22px;border:0;border-radius:9px;background:#12382b;color:#fff;font-size:14px;font-weight:600;white-space:nowrap}
.site-menu-toggle{display:none}
@media(max-width:900px){header.site-header{padding-inline:22px!important;gap:20px}.site-nav{gap:17px;font-size:13px}.site-brand{font-size:19px}.site-brand img{width:68px;height:38px}header.site-header .login{padding:10px 13px;font-size:12px}}
@media(max-width:650px){header.site-header{height:72px!important;min-height:72px!important;padding:10px 16px!important;gap:12px}.site-brand{gap:8px;font-size:17px}.site-brand img{width:60px;height:35px}.site-menu-toggle{display:block;width:40px;height:40px;flex:none;border:1px solid #bac9be;border-radius:8px;color:#12382b;font-size:20px}.site-nav{display:none;position:absolute;left:0;right:0;top:72px;height:auto;padding:17px 20px 20px;background:#f6f5ef;border-bottom:1px solid #c6cec1;box-shadow:0 15px 25px #12382b10;gap:0;flex-direction:column;align-items:stretch;font-size:15px}.site-nav.is-open{display:flex}.site-nav a{height:46px;padding:0 8px}.site-nav a.active:after{left:8px;right:auto;bottom:5px;width:26px;height:3px}header.site-header .login{margin-left:auto;min-height:40px;padding:9px 12px;font-size:11px}}
@media(min-width:651px){.layout{height:calc(100dvh - 92px)!important}}
@media(max-width:650px){.layout{height:calc(100dvh - 72px)!important}}
