:root{font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif;--ink:#192b40;--muted:#77879a;--border:#e4eaf0;--blue:#2168e8;--bg:#f8fafd;--green:#07aa8c;color:var(--ink);background:var(--bg);font-synthesis:none}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth}html,body{margin:0;min-width:320px;max-width:100%;overflow-x:clip}body{min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #9fc4ff;outline-offset:2px}button:disabled{opacity:.65;cursor:wait}[hidden]{display:none!important}
.app{width:100%;min-height:100dvh;display:flex;flex-direction:column}.site-header{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;height:70px;padding:0 max(23px,calc((100vw - 1040px)/2));background:#fff;border-bottom:1px solid #eff2f6}.logo{display:flex;align-items:center;gap:9px;font-size:20px;font-weight:900;letter-spacing:-.8px;white-space:nowrap}.logo span span{color:var(--green)}.logo-icon{width:32px;height:32px;border-radius:10px;background:#0e2d46;display:grid;place-items:center;font-size:18px}.help-button{border:0;color:#60738a;background:#f2f6fa;border-radius:99px;padding:9px 13px;font-weight:700;font-size:12px;white-space:nowrap}.help-button span{margin-left:3px}.content{width:min(100% - 36px,680px);margin:0 auto;padding:36px 0 72px;flex:1}.hero{margin:0 0 25px}.eyebrow{display:inline-flex;align-items:center;gap:8px;border-radius:99px;color:#237067;background:#eaf9f5;padding:7px 11px;font-size:11px;font-weight:850;letter-spacing:.01em}.eyebrow-dot{height:7px;width:7px;border-radius:50%;background:var(--green)}.hero h1{font-size:clamp(27px,5vw,38px);line-height:1.35;letter-spacing:-1.7px;margin:14px 0 10px;font-weight:900}.hero h1 span{color:#1973e8}.hero p{font-size:13px;line-height:1.7;color:#738398;margin:0;word-break:keep-all}
.search-card{background:#fff;border:1px solid #e6ebf2;border-radius:21px;padding:24px 23px 25px;box-shadow:0 6px 28px rgba(33,62,98,.045)}.card-head,.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}.card-head h2,.section-title h2{font-size:17px;letter-spacing:-.5px;margin:0;font-weight:860}.service-status{font-size:11px;color:#698098;font-weight:700;max-width:55%;text-align:right}.service-status.ok{color:#11836d}.service-status.error{color:#b27823}
.station-fields{display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);align-items:center;gap:7px}.station-box{border:1px solid var(--border);border-radius:13px;background:#fbfcfe;padding:12px 13px;min-width:0}.station-box:focus-within{background:#fff;border-color:#76a8f1;box-shadow:0 0 0 3px #2d7ced12}.station-box label{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:800;color:#718399;white-space:nowrap}.route-dot{display:inline-block;width:9px;height:9px;border:2.5px solid #159e8e;border-radius:99px;flex:none}.route-dot.to{border-color:#ee9651;border-radius:3px}.station-box input{border:0;outline:0!important;padding:11px 0 3px;color:#1c344c;background:transparent;width:100%;min-width:0;font-size:15px;font-weight:800;letter-spacing:-.4px}.station-box input::placeholder{color:#a6b2c1;font-weight:500;font-size:12px;letter-spacing:-.6px}.swap-button{width:37px;height:37px;border:1px solid #e1e8f0;border-radius:11px;background:#fff;box-shadow:0 3px 9px #17324a10;color:#3b6ba4;font-size:19px}.swap-button:hover{background:#eef5ff}
.suggestions{margin-top:8px;background:#fff;max-height:260px;overflow-y:auto;border:1px solid #dbe5f1;border-radius:13px;box-shadow:0 10px 22px #12335e18;position:relative;z-index:5}.suggestions button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 15px;background:#fff;border:0;text-align:left;border-bottom:1px solid #f0f3f7}.suggestions button:last-child{border-bottom:0}.suggestions button:hover,.suggestions button:focus-visible{background:#eff6ff}.suggestions strong{font-size:13px;color:#1d334e}.suggestions small{font-size:11px;color:#8997a9}.suggestions .no-match{font-size:13px;padding:15px;color:#7c8ca1}
.date-block{margin-top:22px}.date-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.date-head label,.type-fieldset legend{font-size:12px;font-weight:800;color:#52677d}.date-head span{font-size:11px;color:#a0acb9}.date-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.date-row input{width:100%;min-width:0;height:47px;border:1px solid var(--border);border-radius:11px;background:#fff;color:#2a3f5b;padding:0 12px;font-size:14px;appearance:auto}.date-buttons{display:flex;gap:6px}.date-buttons button{min-width:53px;height:47px;border:0;border-radius:11px;background:#f2f5f9;color:#5e7188;font-size:12px;font-weight:750}.date-buttons button:hover{background:#e7f0ff;color:var(--blue)}.type-fieldset{border:0;padding:0;margin:23px 0 21px}.type-fieldset legend{margin-bottom:10px}.type-chips{display:flex;gap:7px;flex-wrap:wrap}.chip{border:1px solid #e9edf3;background:#f5f7fa;border-radius:10px;color:#62748a;font-weight:750;padding:10px 15px;font-size:12px}.chip.active{background:#eaf2ff;border-color:#80b3fb;color:#1766d7}.search-button{width:100%;height:53px;background:#2069e9;border:0;border-radius:13px;color:#fff;display:flex;align-items:center;justify-content:center;position:relative;font-size:15px;font-weight:850;box-shadow:0 6px 16px #1766d724}.search-button>span:last-child{position:absolute;right:19px;font-size:20px}.search-button:hover{background:#135acc}.notice{font-size:12px;line-height:1.6;color:#6f849b;min-height:0;margin:11px 0 0}.notice:empty{display:none}.notice.error{color:#b44738}.notice.ok{color:#18826d}
.quick-routes{margin-top:27px}.section-title{margin-bottom:12px}.text-button{border:0;background:none;color:#7b8da3;text-decoration:underline;font-size:11px}.route-chips{display:flex;flex-wrap:wrap;gap:8px}.route-chips button{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid #e6eaf0;border-radius:99px;padding:10px 13px;color:#425a73;font-weight:750;font-size:12px;box-shadow:0 3px 9px #26435a08}.route-chips button span{color:#1f71dd}.route-chips button:hover{border-color:#98baf2;background:#f5f9ff}
.results-section{margin-top:33px;scroll-margin-top:24px}.eyebrow-small{font-size:10px;color:#94a4b5;letter-spacing:.12em;font-weight:850;display:block;margin-bottom:5px}.result-count{display:inline-flex;background:#ecf3ff;color:#3073d6;border-radius:99px;padding:6px 10px;font-size:11px;font-weight:800}.result-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:12px 0;color:#75869a;font-size:12px}.result-toolbar select{padding:7px 9px;background:#fff;border:1px solid #e1e7ef;border-radius:9px;color:#33485e}.empty-state{border:1px dashed #dbe5f0;border-radius:17px;padding:37px 18px;text-align:center;color:#8493a5;background:#fff}.empty-state>span{font-size:30px;display:block;margin-bottom:9px}.empty-state strong{font-size:14px;color:#475f79}.empty-state p{font-size:12px;line-height:1.6;margin:7px 0 0;word-break:keep-all}.result-list{display:grid;gap:11px}.result-card{border:1px solid #e3eaf2;border-radius:17px;background:#fff;padding:16px;box-shadow:0 5px 19px #12335d0b}.result-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.train-badge{font-size:11px;font-weight:900;color:#1668cd;background:#e9f2ff;border-radius:7px;padding:6px 9px}.train-badge.normal{color:#60718a;background:#edf1f5}.train-number{font-size:11px;color:#8795a7}.schedule{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center;margin-top:17px}.time{font-size:24px;font-weight:900;letter-spacing:-.7px}.location{font-size:12px;color:#8595a7;margin-top:5px}.schedule>.dest{text-align:right}.ride{min-width:85px;text-align:center;font-size:11px;color:#788ba1}.ride>span{display:block;margin:7px 0;height:1px;background:#b9cce8;position:relative}.ride>span:after{content:'➜';position:absolute;right:0;top:-9px;color:#1a6fe7;font-size:14px}.result-bottom{margin-top:15px;border-top:1px solid #edf1f5;padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}.fare{font-size:15px;font-weight:850;color:#1c3953}.fare small{font-size:10px;font-weight:600;color:#8595a9}.result-buttons{display:flex;gap:7px}.result-buttons button,.result-buttons a{border:0;border-radius:9px;padding:10px 11px;background:#edf4ff;color:#1e63bf;font-size:11px;font-weight:850}.result-buttons a{background:#183655;color:#fff}.results-note{color:#8391a3;font-size:11px;line-height:1.6;margin-top:8px}
.boarding-guide{margin-top:28px;border:1px solid #e4eaf1;background:#fff;border-radius:16px;padding:15px;display:flex;align-items:center;gap:11px}.guide-icon{display:grid;place-items:center;flex:none;width:41px;height:41px;background:#eef4ff;border-radius:12px;font-size:21px}.boarding-guide>div{flex:1;min-width:0}.boarding-guide strong{font-size:13px}.boarding-guide p{font-size:11px;color:#8492a5;line-height:1.5;margin:5px 0 0}.boarding-guide button{border:0;background:#f2f6fd;border-radius:9px;color:#286acb;padding:10px;font-size:11px;font-weight:800;white-space:nowrap}.source-note{font-size:11px;color:#8a97a9;line-height:1.7;margin:16px 2px;word-break:keep-all}.footer{background:#fff;border-top:1px solid #e9edf3;padding:21px max(20px,calc((100vw - 1040px)/2)) calc(22px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#8898a8}.footer>div{display:flex;gap:14px;flex-wrap:wrap}.footer a:hover{text-decoration:underline}
.dialog{border:1px solid #e0e8f1;border-radius:18px;box-shadow:0 20px 80px #1428424d;width:min(430px,calc(100vw - 28px));max-height:85dvh;overflow:auto;padding:20px 20px 24px;color:#1c344c}.dialog::backdrop{background:#0e243e81}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.dialog-head strong{font-size:17px}.dialog-head button{border:0;background:#eef3f9;width:32px;height:32px;border-radius:9px;font-size:23px;color:#63758a}.dialog p{font-size:13px;line-height:1.75;color:#526a7e}.boarding-summary{background:#eef4ff;padding:14px;border-radius:12px;color:#1c497d;font-size:13px;line-height:1.6;font-weight:750}.boarding-steps{padding-left:21px;color:#556b82;font-size:13px;line-height:1.8}.boarding-steps li{margin-bottom:8px}.board-warning{font-size:11px;background:#fff8e8;border-radius:10px;padding:12px;color:#91723d;line-height:1.7}.board-link{display:block;padding:12px;border-radius:10px;text-align:center;background:#143756;color:#fff;font-size:13px;font-weight:800;margin-top:12px}
@media(max-width:480px){.site-header{height:62px;padding:0 18px}.content{width:calc(100% - 28px);padding:27px 0 45px}.hero h1{font-size:27px;letter-spacing:-1.35px}.hero p{font-size:12px}.search-card{border-radius:18px;padding:20px 16px 19px}.station-fields{grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);gap:4px}.station-box{padding:10px 10px}.station-box input{font-size:14px}.swap-button{width:30px;height:34px;font-size:17px}.date-row{gap:7px}.date-buttons button{min-width:48px;padding:0 8px}.chip{padding:9px 12px}.boarding-guide{padding:12px;gap:9px}.boarding-guide button{font-size:10px;padding:9px}.footer{flex-direction:column;align-items:flex-start}}
@media(max-width:350px){.hero h1{font-size:24px}.station-fields{grid-template-columns:1fr 28px 1fr}.station-box{padding:9px 7px}.station-box input{font-size:12px}.station-box input::placeholder{font-size:10px}.date-buttons button{min-width:43px}.type-chips{gap:5px}.chip{padding:8px 9px;font-size:11px}.schedule .time{font-size:20px}.ride{min-width:61px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Small-screen train type explanation; never widen the search card. */
.train-type-hint{margin:9px 1px 0;color:#718195;font-size:11px;line-height:1.55;overflow-wrap:anywhere}
/* Brand illustration: small, lightweight and never pushes the mobile search off screen. */
.hero-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:72px}
.hero-top .eyebrow{flex:none;max-width:calc(100% - 118px);font-size:10px;line-height:1.35;padding:6px 9px}
.hero-train{display:block;width:134px;max-width:42%;height:auto;flex:0 0 auto;object-fit:contain}
.hero-top + h1{margin-top:5px}
@media(max-width:420px){.hero-top{min-height:61px}.hero-train{width:119px;max-width:40%}.hero-top .eyebrow{font-size:9px;max-width:calc(100% - 114px);padding:6px 8px}.hero{margin-bottom:21px}.hero-top + h1{margin-top:3px}}
@media(max-width:350px){.hero-top{min-height:58px}.hero-train{width:106px}.hero-top .eyebrow{max-width:calc(100% - 99px);letter-spacing:-.2px}}
