:root {
  color-scheme: dark;
  --page: #0d1013;
  --panel: #151a1e;
  --panel-elevated: #1b2125;
  --panel-hover: #22292e;
  --border: rgba(231, 239, 239, 0.085);
  --muted: #8b979f;
  --text: #ecf3f3;
  --green: #b5f676;
  --green-deep: #28402a;
  --blue: #8caeff;
  --blue-deep: #202c49;
  --subtle: #69767e;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  font-size: 16px;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: radial-gradient(ellipse 70% 450px at 50% -260px, #263036 0%, transparent 100%), var(--page); min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
button:disabled { opacity: .48; cursor: default; }
h1, h2, p { margin-top: 0; }
a { color: #b3bec4; text-underline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-shell { width: min(920px, 100% - 36px); margin: 0 auto; padding: 0 0 46px; }
.site-header { display:flex; align-items:center; gap: 12px; min-height: 88px; border-bottom: 1px solid var(--border); }
.brand-mark { width: 42px; height: 42px; display:grid; place-items:center; background: var(--green); border-radius: 12px; color: #132016; font-weight: 900; font-size: 26px; letter-spacing: -.09em; }
.brand-mark span { font-size: 13px; letter-spacing: 0; align-self: start; margin-top: 10px; }
.brand-label { min-width: 0; }
.overline { font-size: 10px; font-weight: 850; letter-spacing: .16em; color: #e7f1f1; margin-bottom: 5px; }
.brand-version { margin-left: 4px; color: #7b878e; }
.brand-subtitle { color: var(--muted); font-size: 12px; margin: 0; }
.header-right { margin-left: auto; display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.clock-label { color: var(--subtle); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
#kstClock { font-size: 17px; font-weight: 780; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.intro { padding: 33px 0 26px; }
.station-route { display:flex; align-items:center; justify-content:center; gap:12px; }
.station-name { font-size: clamp(25px,5.4vw,36px); font-weight: 850; letter-spacing: -.06em; }
.station-dot { display:block; width: 8px; height: 8px; border-radius: 50%; }
.station-dot.first { background:#e5be61; }
.station-dot.last { background:var(--green); }
.route-divider { flex: 0 1 132px; height:2px; position:relative; background: repeating-linear-gradient(90deg,#3a484b 0 7px, transparent 7px 13px); }
.route-divider span { position:absolute; width:7px; height:7px; border-right:2px solid #647779; border-top:2px solid #647779; right:0; top:-3px; transform: rotate(45deg); }
.intro-caption { margin: 11px 0 0; text-align:center; color:var(--muted); font-size: 13px; }
.panel { background: var(--panel); border:1px solid var(--border); border-radius: 18px; }
.control-bar { padding: 20px 22px 16px; }
.tiny-label { color: #8d9aa2; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.control-heading { display:flex; align-items:center; gap: 11px; margin-bottom: 14px; }
.control-title { font-size: 14px; font-weight: 750; }
.control-grid { display:flex; align-items:center; gap: 10px; }
.mode-switch { display:flex; align-items:center; border-radius:12px; background:#0e1316; border:1px solid #30383d; padding: 4px; gap:3px; flex-shrink:0; }
.switch-button { border:0; background:transparent; color:#95a0a8; padding: 10px 19px; font-size: 13px; font-weight: 700; border-radius:9px; white-space:nowrap; }
.switch-button.active { color:#f0f4f4; background:#333c41; box-shadow:0 1px 5px #0004; }
.date-wrap { flex:1; }
.date-wrap input { width:100%; background:#0e1316; border:1px solid #30383d; border-radius: 11px; height:42px; padding: 0 13px; color:var(--text); font-size:13px; color-scheme:dark; }
.icon-button { width:42px; height:42px; flex-shrink:0; background:#20282b; color:var(--text); border:1px solid #30383d; border-radius:11px; display:grid; place-items:center; margin-left:auto; transition: background .15s; }
.icon-button:hover { background:#38434a; }
.icon-button svg { width:19px; height:19px; }
.control-note { margin: 14px 0 0; font-size:11px; color:#90a09d; display:flex; align-items:center; gap:8px; }
.indicator { width: 7px; height: 7px; border-radius:50%; background:#94b481; display:inline-block; flex-shrink:0; }
.hero { margin-top:15px; position:relative; overflow:hidden; background:linear-gradient(120deg,#1e362d 0%,#192c27 47%,#18231f 100%); border: 1px solid #3a6045; border-radius:20px; padding: 23px 27px 17px; box-shadow:0 14px 48px rgba(0,0,0,.14); }
.hero::after { content:''; position:absolute; width:260px; height:260px; border-radius:50%; background:radial-gradient(circle,rgba(178,246,118,.11),transparent 65%); right:-83px; top:-135px; pointer-events:none; }
.hero-top { display:flex; align-items:center; justify-content:space-between; gap:9px; position:relative; z-index:1; }
.hero-kicker { color:var(--green); font-size:11px; font-weight:900; letter-spacing:.16em; display:flex; align-items:center; gap:9px; }
.hero-kicker-dot { width:7px; height:7px; background:var(--green); border-radius:50%; box-shadow:0 0 0 4px #b5f6761c; }
.schedule-badge { font-size:10px; color:#c4dcc3; border:1px solid #55715a; padding:6px 10px; border-radius:20px; }
.hero-content { display:flex; align-items:center; justify-content:space-between; gap:24px; padding: 22px 0 22px; position:relative; z-index:1; }
.hero-caption { color:#b4cbb8; font-size:13px; margin: 0 0 7px; }
.hero-title { font-size:clamp(26px,5vw,39px); letter-spacing:-.07em; line-height:1.23; font-weight:880; margin:0; }
.hero-bottom { margin-top:14px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.hero-saved { background:#b5f67621; color:#cfffac; padding:7px 11px; border-radius:7px; font-size:12px; font-weight:800; }
.hero-train { font-size:12px; color:#b5c4b8; }
.hero-arrival { flex:0 0 auto; display:flex; align-items:flex-start; flex-direction:column; padding-left:24px; border-left:1px solid #56765a; }
.hero-arrival-label { color:#b4cbb8; font-size:11px; font-weight:650; margin-bottom:4px; }
.hero-arrival strong { font-size: clamp(39px,6vw,55px); font-weight:900; letter-spacing:-.065em; font-variant-numeric:tabular-nums; line-height:1.17; }
.hero-arrival-note { font-size:12px; color:#b4cbb8; margin-top:6px; }
.hero-footnote { border-top:1px solid #456649; padding-top:12px; color:#afc5b6; margin:0; font-size:11px; position:relative; }
.route-section { margin-top:32px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-bottom:16px; }
.section-heading h2, .panel-head h2 { font-size:19px; letter-spacing:-.045em; margin:5px 0 0; }
.section-badge { color:#c4ccd0; background:#20272b; border:1px solid var(--border); font-size:11px; padding:7px 11px; border-radius:50px; white-space:nowrap; }
.route-cards { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.route-card { border:1px solid #303b41; border-radius:18px; padding:21px; background:var(--panel); min-width:0; transition:box-shadow .15s,border-color .15s; }
.route-card.winner { border-color:#72a44e; box-shadow: inset 0 0 0 1px #55764275; }
.route-card.jeongja.winner { border-color:#7189c9; box-shadow:inset 0 0 0 1px #7189c950; }
.route-card-head { display:flex; justify-content:space-between; gap:8px; align-items:center; min-height:24px; }
.route-card-index { font-size:11px; font-weight:850; color:#b4e88c; letter-spacing:.06em; }
.jeongja .route-card-index { color:#aac0ff; }
.best-pill { background:var(--green); color:#1c2916; font-size:10px; font-weight:900; border-radius:40px; padding:5px 10px; }
.jeongja .best-pill { background:#a9beff; color:#161e36; }
.route-path { display:flex; align-items:center; gap: 7px; margin:19px 0 18px; }
.path-node { font-size:13px; font-weight:690; white-space:nowrap; }
.path-node.major { font-weight:900; color:var(--green); font-size:15px; }
.jeongja .path-node.major { color:#a9beff; }
.path-connector { flex:1; min-width:5px; height:1px; background:#667278; position:relative; }
.path-connector::after { content:''; position:absolute; top:-3px; right:-1px; width:7px; height:7px; border-top:1px solid #87979c; border-right:1px solid #87979c; transform:rotate(45deg); }
.card-result { display:grid; grid-template-columns:1fr auto; align-items:end; gap:0 6px; }
.result-label { color:#a2b0b7; font-size:12px; grid-column:1/-1; }
.result-time { grid-column:1/-1; word-break:keep-all; font-size:clamp(36px,5vw,47px); font-weight:890; letter-spacing:-.055em; line-height:1.12; font-variant-numeric:tabular-nums; padding-top:6px; }
.result-duration { grid-column:1/-1; font-size:12px; color:#b3c1c7; align-self:end; padding-bottom:6px; text-align:right; }
.card-divider { height:1px; background:var(--border); margin:18px 0 14px; }
.detail-list { margin:0; display:grid; gap:12px; }
.detail-list>div { display:flex; align-items:baseline; justify-content:space-between; gap:9px; }
.detail-list dt { color:#96a4ab; font-size:12px; }
.detail-list dd { margin:0; color:#e6eded; font-size:13px; font-weight:730; font-variant-numeric:tabular-nums; }
.note { color:#839099; font-size:12px; line-height:1.7; }
.disclaimer { padding:11px 1px 0; margin:0; }
.train-section { margin-top:25px; padding:21px 23px; }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.panel-head h2 { font-size:17px; }
.train-section .note { margin:11px 0 15px; }
.text-button { color:var(--green); background:transparent; border:0; font-size:12px; font-weight:740; padding:7px 0; white-space:nowrap; }
.train-list { display:flex; gap:8px; overflow-x:auto; scrollbar-width:thin; scrollbar-color:#3d484f transparent; padding:1px 1px 9px; }
.train-chip { flex:0 0 auto; min-width:94px; border:1px solid #384349; border-radius:11px; padding:12px 12px 10px; background:#1b2226; color:#dfe6e8; text-align:left; }
.train-chip:hover { background:#293338; }
.train-chip.selected { border-color:var(--green); background:#233326; }
.train-chip.past { opacity:.65; }
.train-chip .train-chip-time { display:block; font-size:20px; font-weight:820; letter-spacing:-.055em; font-variant-numeric:tabular-nums; }
.train-chip .train-chip-id { display:block; font-size:10px; color:#99a9b0; margin-top:5px; }
.train-chip.selected .train-chip-id { color:#c2eba4; }
.empty-list { color:var(--muted); font-size:13px; padding:12px; }
.settings-section { margin-top:12px; padding:0; }
.settings-section summary { display:flex; align-items:center; padding:20px 22px; cursor:pointer; list-style:none; gap:12px; font-size:14px; font-weight:740; user-select:none; }
.settings-section summary::-webkit-details-marker { display:none; }
.settings-icon { color:#aec0c6; font-size:18px; }
.summary-hint { margin-left:auto; color:#85949b; font-size:11px; font-weight:500; }
.chevron { width:17px; height:17px; flex-shrink:0; color:#91a0a6; transition:transform .15s; }
details[open] .chevron { transform:rotate(180deg); }
.settings-body { padding:0 22px 22px; border-top:1px solid var(--border); }
.setting-row { display:flex; align-items:center; justify-content:space-between; gap:13px; padding:17px 0; border-bottom:1px solid var(--border); }
.setting-row label { font-size:13px; font-weight:760; }
.setting-row p { color:#7f8d95; font-size:11px; margin:5px 0 0; }
.number-field { display:flex; align-items:center; gap:5px; flex:0 0 auto; }
.number-field input { width:57px; height:39px; border:1px solid #3a454a; background:#11171a; border-radius:8px; padding:3px 8px; color:var(--text); text-align:right; font-size:15px; font-weight:750; }
.number-field span { color:#9facb1; font-size:12px; }
.setting-row select { background:#101619; border:1px solid #3a454a; border-radius:8px; padding:10px 8px; color:#e9f0f2; font-size:12px; max-width:176px; }
.apply-button { background:var(--green); color:#182419; border:0; border-radius:9px; padding:12px 18px; font-weight:850; font-size:13px; margin-top:17px; width:100%; }
.apply-button:hover { filter:brightness(1.07); }
.live-section { padding:21px 23px; margin-top:12px; }
.live-section .note { margin:13px 0 16px; }
.live-indicator { border:1px solid #3d4c47; border-radius:30px; padding:6px 10px; color:#a9bfb2; font-size:10px; white-space:nowrap; display:flex; align-items:center; gap:8px; }
.live-indicator.offline { color:#a6acb1; border-color:#3c4548; }
.live-indicator.offline .indicator { background:#657279; }
.live-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.live-item { border:1px solid #303b40; background:#11171a; border-radius:11px; padding:14px; min-height:89px; }
.live-station { font-weight:800; font-size:12px; display:flex; justify-content:space-between; align-items:center; gap:5px; }
.live-station span { font-size:10px; color:#7f969a; font-weight:600; }
.live-item p { margin:10px 0 0; color:#c7d1d2; font-size:12px; line-height:1.5; word-break:keep-all; }
.live-timestamp { color:#84939b; font-size:10px; margin:12px 0 0; }
.site-footer { text-align:center; padding:35px 12px 0; }
.footer-brand { display:flex; gap:8px; justify-content:center; align-items:center; font-size:11px; font-weight:900; letter-spacing:.12em; margin-bottom:12px; }
.mini-mark { display:inline-grid; place-items:center; color:#132418; background:var(--green); height:24px; width:24px; border-radius:6px; font-size:11px; letter-spacing:0; }
.site-footer p { color:#6d7a82; font-size:11px; margin:7px 0; line-height:1.6; }
.site-footer a { color:#8f9fa7; }
.site-footer .footer-updated { margin-top:15px; font-size:10px; color:#60727a; }
.toast { position:fixed; bottom:max(20px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); z-index:10; width:max-content; max-width:min(90vw,410px); background:#364341; color:#f5fbf8; border:1px solid #5b7770; border-radius:12px; padding:12px 18px; box-shadow:0 12px 36px #0008; font-size:12px; line-height:1.5; }
@media(max-width:640px) {
  .app-shell { width:calc(100% - 28px); }
  .site-header { min-height:78px; }
  .brand-mark { height:37px; width:37px; font-size:23px; }
  .brand-subtitle { font-size:11px; }
  #kstClock { font-size:14px; }
  .intro { padding:25px 0 23px; }
  .control-bar { padding:17px 15px 14px; }
  .control-grid { flex-wrap:wrap; }
  .mode-switch { flex:1; }
  .switch-button { flex:1; padding:10px 11px; }
  .date-wrap { flex-basis:calc(100% - 54px); order:1; }
  .icon-button { margin-left:0; }
  .hero { padding:19px 18px 16px; }
  .hero-content { padding:20px 0 18px; align-items:stretch; flex-direction:column; gap:15px; }
  .hero-title { font-size:30px; }
  .hero-arrival { border-left:0; padding:13px 0 0; border-top:1px solid #4b6a50; }
  .hero-arrival strong { font-size:44px; }
  .route-section { margin-top:27px; }
  .section-heading h2 { font-size:18px; }
  .route-cards { grid-template-columns:1fr 1fr; gap:9px; }
  .route-card { padding:15px 12px; }
  .route-path { gap:5px; margin:15px 0 19px; }
  .path-node { font-size:11px; }
  .path-node.major { font-size:14px; }
  .result-time { font-size:34px; }
  .result-duration { font-size:10px; }
  .detail-list dt { font-size:11px; }
  .detail-list dd { font-size:12px; }
  .route-card-index { font-size:10px; }
  .train-section,.live-section { padding:20px 16px; }
  .settings-section summary { padding:18px 16px; }
  .settings-body { padding:0 16px 17px; }
  .live-grid { grid-template-columns:1fr; gap:8px; }
  .live-item { min-height:0; }
}
@media(max-width:375px) {
  .app-shell { width:calc(100% - 22px); }
  .brand-subtitle { font-size:10px; }
  .hero-title { font-size:27px; }
  .route-card { padding:13px 10px; }
  .detail-list dt { font-size:10px; }
  .detail-list dd { font-size:11px; }
  .result-time { font-size:31px; }
  .setting-row p { max-width:190px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; scroll-behavior:auto !important; } }

/* V2 · commute + return, detailed station directions and holiday states */
.commute-switch {
  margin-top: 18px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.journey-button {
  border:1px solid #303b41;
  background:#171d21;
  color:#adbbc1;
  border-radius:15px;
  padding:17px 19px;
  display:flex;
  align-items:center;
  text-align:left;
  gap:14px;
  transition: border-color .15s, background .15s;
}
.journey-button.active {
  border-color:#7ca85d;
  background:#223326;
  color:#e8f6e4;
  box-shadow: inset 0 0 0 1px #638d4748;
}
.journey-button:hover { background:#293438; }
.journey-button.active:hover { background:#263a2a; }
.journey-symbol { font-size:27px; line-height:1; font-weight:600; width:34px; text-align:center; color:#8ca2a6; }
.journey-button.active .journey-symbol { color:var(--green); }
.journey-copy { display:flex; flex-direction:column; gap:4px; min-width:0; }
.journey-copy strong { font-size:17px; font-weight:870; }
.journey-copy small { color:#9caeb0; font-size:12px; font-weight:550; }
.intro { padding:27px 0 23px; }
.intro-caption { word-break:keep-all; }
.station-route { gap:10px; }
.day-status {
  margin-top:15px; display:flex; flex-wrap:wrap;
  gap:8px; align-items:center;
}
.day-pill {
  font-size:11px; font-weight:830; color:#d8eeaa; background:#34452b;
  border:1px solid #54733f; border-radius:40px; padding:6px 10px;
  white-space:nowrap;
}
.day-reason { font-size:11px; color:#9babb2; line-height:1.55; }
.control-note { margin-top:12px; }
.route-card .parking-field { border-top:1px dashed #354247; padding-top:10px; }
.hero-train { word-break:break-word; }
.hero-recommend { min-width:0; }
.instructions-section { padding:23px; margin-top:18px; }
.guide-symbol { font-size:24px; color:var(--green); font-weight:700; }
.instructions-section .note { margin:10px 0 18px; }
.guide-panels { display:grid; gap:10px; }
.route-guide {
  border:1px solid #344147;
  background:#12191c;
  border-radius:13px;
  overflow:hidden;
}
.route-guide[open] { border-color:#5a7c59; }
.route-guide.jeongja[open] { border-color:#5a6c98; }
.route-guide summary {
  display:flex; gap:10px; align-items:center;
  list-style:none; cursor:pointer; padding:15px;
}
.route-guide summary::-webkit-details-marker { display:none; }
.guide-line-tag {
  font-size:11px; font-weight:850; color:#b3ee8f; background:#2c3b29;
  border-radius:6px; padding:5px 8px; white-space:nowrap;
}
.route-guide.jeongja .guide-line-tag { color:#b7c9ff; background:#263247; }
.route-guide summary strong { font-size:13px; white-space:nowrap; }
.guide-status { margin-left:auto; color:#93a2aa; font-size:11px; white-space:nowrap; }
.guide-chevron { color:#91a7aa; font-size:18px; transition:transform .15s; }
.route-guide[open] .guide-chevron { transform:rotate(180deg); }
.guide-steps {
  list-style:none; counter-reset:step;
  margin:0 15px 15px;
  padding:13px 14px 2px 40px;
  background:#1a2225;
  border-radius:10px;
}
.guide-steps li {
  counter-increment:step;
  position:relative; padding:0 0 22px 12px;
  border-left:1px solid #526356;
}
.guide-steps li:last-child { border-left-color:transparent; padding-bottom:10px; }
.guide-steps li::before {
  content:counter(step);
  display:grid; place-items:center;
  position:absolute; left:-15px; top:-3px;
  border-radius:50%; height:29px; width:29px;
  border:1px solid #557c57; background:#2c422f;
  color:#d8f5bf; font-size:12px; font-weight:800;
}
.guide-steps li strong { font-size:12px; color:#b7d8b3; display:block; margin:0 0 6px; }
.guide-steps li p { font-size:13px; font-weight:740; line-height:1.65; margin:0; color:#e8eff0; word-break:keep-all; }
.guide-steps li small { display:block; color:#92a1a8; font-size:11px; line-height:1.6; margin-top:5px; word-break:keep-all; }
.parking-help {
  margin-top:14px; padding:18px;
  border:1px solid #627856; background:#243328; border-radius:13px;
}
.parking-help strong { font-size:13px; color:#d8f7c6; }
.parking-help p { font-size:12px; line-height:1.8; color:#e1eee3; margin:10px 0; word-break:keep-all; }
.parking-help a { font-size:12px; color:#bbf69f; display:inline-block; margin:0 0 8px; font-weight:750; }
.parking-help small { display:block; font-size:11px; color:#afc6b1; line-height:1.55; }
.setting-footnote { margin:18px 0 2px; }
.live-station { display:block; font-size:11px; }
@media(max-width:640px) {
  .commute-switch { gap:9px; margin-top:15px; }
  .journey-button { padding:14px 12px; gap:9px; border-radius:12px; }
  .journey-symbol { font-size:23px; width:25px; }
  .journey-copy strong { font-size:16px; }
  .journey-copy small { font-size:10px; }
  .station-name { font-size:clamp(25px,7.3vw,34px); }
  .station-route { gap:9px; }
  .route-divider { flex:0 1 86px; }
  .instructions-section { padding:18px 15px; margin-top:12px; }
  .instructions-section .panel-head h2 { font-size:16px; }
  .guide-status { font-size:10px; }
  .route-guide summary { gap:7px; padding:13px 10px; }
  .guide-line-tag { font-size:10px; padding:5px 6px; }
  .guide-steps { margin:0 10px 10px; padding:15px 10px 4px 37px; }
  .guide-steps li p { font-size:12px; }
  .guide-steps li small { font-size:11px; }
  .route-card .detail-list dt { max-width:68%; }
  .parking-help { padding:14px; }
}


/* v3: One integrated departure-time/train picker for both travel directions. */
.train-pick-controls {
  display:grid;
  grid-template-columns:minmax(140px,1.05fr) minmax(140px,.92fr) minmax(100px,.7fr) 44px;
  gap:9px;
  align-items:stretch;
}
.pick-now {
  background:#222b2e;
  color:#b1bfc3;
  border:1px solid #465359;
  border-radius:10px;
  padding:11px 9px;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.pick-now.active { background:#32452e; color:#d9fcbf; border-color:#75a758; }
.picker-field {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  min-width:0;
  background:#101619;
  border:1px solid #374146;
  border-radius:10px;
  padding:6px 11px;
}
.picker-field>span {font-size:10px; color:#93a4a8; font-weight:660;}
.picker-field input,.picker-field select {
  width:100%; min-width:0; padding:0; margin:0;
  border:0; outline:0; background:transparent; color:#edf5f5;
  color-scheme:dark; font-size:13px; font-weight:750; height:24px;
}
.picker-field:focus-within { border-color:var(--green); }
.train-inline {
  margin-top:17px;
  padding:16px 15px 10px;
  border:1px solid #334147;
  border-radius:13px;
  background:#0f1517;
}
.train-inline-head {display:flex; align-items:center; justify-content:space-between; gap:12px;}
.train-inline-head h2 {font-size:15px; margin:5px 0 0; letter-spacing:-.045em;}
.train-inline-note {color:#96a7aa; font-size:11px; line-height:1.6; margin:9px 0 13px;}
.train-inline .train-list {margin-bottom:0;}
.train-inline .train-chip {min-width:96px; padding:11px 11px 9px;}
.train-chip .train-chip-note {display:block; color:#748d94; font-size:9px; margin-top:5px;}
.train-chip.selected .train-chip-note {color:#c2eda7;}
.fast-transfer-note {
  display:flex; flex-direction:column; align-items:flex-start;
  margin:0 15px 16px; padding:15px;
  border-radius:10px; background:#263528;
  border:1px solid #547351; gap:6px;
}
.route-guide.jeongja .fast-transfer-note {background:#222d41; border-color:#465c81;}
.fast-transfer-note strong {font-size:15px; color:#d8ffba;}
.route-guide.jeongja .fast-transfer-note strong {color:#c2d4ff;}
.fast-transfer-note span {font-size:12px; color:#e0e9dc; line-height:1.6;}
.fast-transfer-note a {font-size:11px; color:#c9f4ac;}
.route-guide.jeongja .fast-transfer-note a {color:#b9c9ff;}
.fast-transfer-note small {font-size:10px; color:#96aea0; line-height:1.5;}
@media(max-width:640px) {
 .train-pick-controls { grid-template-columns:1fr 1fr 44px; gap:8px; }
 .pick-now {grid-column:1/-1; min-height:39px;}
 .picker-field {padding:7px 9px;}
 .train-inline {padding:13px 10px 9px; margin-top:13px;}
 .train-inline-head h2 {font-size:13px;}
 .train-inline-note {font-size:10px;}
 .train-inline .train-chip {min-width:90px;}
 .fast-transfer-note {margin:0 10px 10px; padding:12px;}
 .fast-transfer-note strong {font-size:14px;}
}

/* verified fast-transfer car and door markers (car-door, not train ID) */
.quick-transfer-position { grid-column:1/-1; margin-top:12px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 9px; background:#0c1918; border:1px solid #34483c; padding:9px 11px; border-radius:8px; }
.quick-transfer-position span { font-size:10px; color:#a3c0af; white-space:nowrap; }
.quick-transfer-position strong { font-weight:850; font-size:15px; letter-spacing:-.015em; color:#d3f6b3; white-space:nowrap; }
.quick-transfer-position strong.uncertain { color:#dfca9c; font-size:12px; }
.jeongja .quick-transfer-position { background:#141a2a; border-color:#364059; }
.jeongja .quick-transfer-position strong { color:#c4d2ff; }
.jeongja .quick-transfer-position strong.uncertain { color:#dfca9c; }
@media (max-width:440px) { .quick-transfer-position { padding:8px 7px; } .quick-transfer-position span { font-size:10px; } .quick-transfer-position strong { font-size:14px; } }

/* On return trips show both independently boardable first trains. */
.train-chip.candidate { border-color:#42546b; background:#1d2931; }
.train-chip.candidate .train-chip-note { color:#a8c8ec; }

/* Compact daily view. Details remain available without competing with the trip. */
body { min-height:100dvh; }
.app-shell { width:min(800px,100% - 32px); padding-bottom:max(24px,env(safe-area-inset-bottom)); }
.site-header { min-height:66px; gap:10px; }
.brand-mark { width:32px; height:32px; font-size:21px; border-radius:9px; }
.brand-mark span { font-size:10px; margin-top:7px; }
.overline { font-size:10px; margin-bottom:3px; letter-spacing:.1em; }
.brand-subtitle { font-size:10px; }
#kstClock { font-size:13px; }
.header-right { gap:5px; }
.commute-switch { margin-top:16px; gap:9px; }
.journey-button { padding:12px 15px; border-radius:12px; gap:10px; min-height:58px; }
.journey-symbol { font-size:23px; width:26px; }
.journey-copy { gap:3px; }
.journey-copy strong { font-size:15px; }
.journey-copy small { font-size:11px; }
.primary-actions { display:flex; align-items:center; gap:10px; margin-top:12px; }
.primary-actions .pick-now { padding:9px 12px; min-height:40px; font-size:12px; }
.primary-actions .icon-button { width:40px; height:40px; margin-left:auto; }
.query-context { color:#9aa9ac; font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.hero { padding:19px 22px 10px; margin-top:12px; border-radius:16px; box-shadow:none; }
.hero-kicker { font-size:11px; letter-spacing:.04em; }
.schedule-badge { padding:4px 8px; font-size:10px; }
.hero-content { padding:17px 0; gap:16px; }
.hero-caption { display:none; }
.hero-title { font-size:29px; letter-spacing:-.06em; line-height:1.3; }
.hero-bottom { margin-top:10px; }
.hero-saved { padding:0; background:none; color:#c5dfb6; font-weight:600; font-size:12px; }
.hero-arrival { padding-left:20px; }
.hero-arrival strong { font-size:44px; }
.hero-arrival-note { font-size:11px; }
.journey-essentials { margin:0; padding:9px 0 0; border-top:1px solid #3b5445; }
.journey-essentials>div { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:8px 0; }
.journey-essentials dt { color:#adbfaf; font-size:12px; }
.journey-essentials dd { margin:0; font-size:13px; font-weight:740; text-align:right; font-variant-numeric:tabular-nums; }
.details-label { margin:23px 1px 10px; color:#8b999e; font-size:11px; }
.disclosure { border-radius:12px; margin-top:8px; overflow:hidden; }
.disclosure>summary { display:flex; align-items:center; gap:10px; padding:16px 18px; min-height:54px; cursor:pointer; list-style:none; font-size:13px; font-weight:700; user-select:none; }
.disclosure>summary::-webkit-details-marker { display:none; }
.disclosure>summary::marker { content:""; }
.disclosure>summary:hover { background:#1a2326; }
.disclosure[open]>summary { border-bottom:1px solid var(--border); }
.disclosure-chevron { color:#94a5a8; font-size:19px; line-height:1; transition:transform .18s; }
.disclosure[open]>summary .disclosure-chevron { transform:rotate(180deg); }
.disclosure .summary-hint { font-size:10px; }
.disclosure-body { padding:18px; }
.disclosure .settings-body { border-top:0; padding:0 18px 18px; }
.disclosure .control-heading { margin-bottom:12px; }
.disclosure .control-title { font-size:12px; }
.disclosure .train-pick-controls { grid-template-columns:1fr 1fr; }
.disclosure .panel-head h2,.disclosure .section-heading h2 { margin:0; font-size:15px; }
.disclosure .section-heading { margin-bottom:12px; }
.disclosure .note { font-size:11px; }
.disclosure .route-card { padding:17px; border-radius:12px; }
.disclosure .detail-list>div:has(.breakdown-value) { display:block; border-top:1px solid var(--border); padding-top:12px; }
.breakdown-value { display:block; margin-top:7px!important; color:#b4c2c7!important; font-weight:500!important; line-height:1.85; text-align:left; }
.data-sources { margin-top:23px; border-top:1px solid var(--border); padding-top:19px; }
.data-sources h2 { font-size:14px; margin-bottom:12px; }
.data-sources p { color:#94a4aa; font-size:11px; line-height:1.8; margin:8px 0; overflow-wrap:anywhere; }
.data-sources .hero-footnote { padding:0; border:0; }
.compact-footer { color:#829096; font-size:10px; padding:20px 0 0; text-align:center; }
button { transition:background .18s,border-color .18s,transform .18s; }
button:active:not(:disabled) { transform:translateY(1px); }
@media(max-width:640px) {
  .app-shell { width:calc(100% - 24px); }
  .site-header { min-height:58px; }
  .commute-switch { margin-top:12px; }
  .journey-button { padding:10px 11px; gap:7px; min-height:55px; }
  .journey-copy small { font-size:10px; }
  .primary-actions { margin-top:10px; }
  .hero { padding:16px 16px 9px; margin-top:10px; }
  .hero-content { flex-direction:column; padding:14px 0; gap:13px; }
  .hero-title { font-size:26px; }
  .hero-bottom { margin-top:6px; }
  .hero-saved { font-size:11px; }
  .hero-arrival { border:0; padding:0; }
  .hero-arrival-label { font-size:10px; margin-bottom:2px; }
  .hero-arrival strong { font-size:42px; line-height:1.12; }
  .hero-arrival-note { margin-top:4px; }
  .journey-essentials>div { padding:7px 0; }
  .journey-essentials dt { font-size:11px; }
  .journey-essentials dd { font-size:12px; }
  .disclosure>summary { padding:15px 13px; gap:6px; font-size:12px; }
  .disclosure .summary-hint { font-size:9px; }
  .disclosure-body { padding:14px 12px; }
  .disclosure .route-cards { grid-template-columns:1fr; gap:12px; }
  .disclosure .route-card { padding:16px; }
  .disclosure .detail-list dt { font-size:11px; }
  .disclosure .detail-list dd { font-size:12px; }
  .disclosure .settings-body { padding:0 12px 15px; }
  .setting-label { min-width:0; }
  .setting-row { gap:9px; }
  .setting-row label { font-size:12px; }
  .setting-row p { font-size:10px; line-height:1.5; max-width:none; }
  .setting-row select { max-width:134px; font-size:10px; }
  .query-context { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) { button { transition:none; } }

/* Drive option, independent of the rail timetable. */
.parking-panel { margin-top:16px; padding:18px; }
.parking-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:13px; }
.parking-heading h2 { font-size:18px; margin:4px 0 0; letter-spacing:-.04em; }
.parking-refresh { flex-shrink:0; border:1px solid #39474f; background:#20292e; color:var(--text); border-radius:9px; padding:9px 11px; font-size:12px; font-weight:700; }
.parking-recommendation { padding:13px; background:#202a30; border:1px solid #3b4b54; border-radius:12px; margin-bottom:12px; }
#parkingChoice { font-size:17px; font-weight:800; margin:0 0 6px; }
.parking-reason { font-size:12px; line-height:1.6; color:#a8b4bd; margin:6px 0; overflow-wrap:anywhere; }
.parking-nav { display:inline-block; margin-top:8px; padding:8px 10px; border-radius:8px; background:#c1e2aa; color:#15231c; font-weight:800; font-size:12px; text-decoration:none; }
.parking-primary,.parking-alternatives { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.parking-lot { min-width:0; background:#11171b; border:1px solid #344148; border-radius:10px; padding:11px; }
.parking-lot-top { display:flex; flex-wrap:wrap; gap:6px; align-items:center; justify-content:space-between; margin-bottom:8px; }
.parking-lot-name { font-size:13px; line-height:1.4; word-break:keep-all; }
.parking-status { font-size:11px; font-weight:800; padding:3px 6px; border-radius:5px; background:#303940; color:#d8dfe4; white-space:nowrap; }
.parking-status.available { color:#bdeba5; background:#294334; }
.parking-status.risk,.parking-status.estimated_risk { color:#f5d7a6; background:#443528; }
.parking-status.full { color:#ffb6b6; background:#4d2c30; }
.parking-count { font-size:18px; font-variant-numeric:tabular-nums; letter-spacing:-.04em; }
.parking-basis,.parking-meta { font-size:11px; color:#8d9da5; line-height:1.5; margin:7px 0 0; }
.parking-lot-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.parking-lot-link { display:inline-block; font-size:11px; color:#bbd7f2; margin:4px 6px 0 0; }
.parking-extra { margin-top:12px; padding-top:10px; border-top:1px solid #354148; }
.parking-extra summary { cursor:pointer; font-size:13px; font-weight:700; padding:4px 0; }
.parking-alternatives { margin-top:10px; }
@media(max-width:460px) {
  .parking-panel { padding:13px; }
  .parking-heading h2 { font-size:16px; }
  .parking-lot { padding:9px; }
  .parking-lot-name { font-size:12px; }
  .parking-count { font-size:16px; }
  .parking-reason { font-size:11px; }
}
