/* 트럭쉼표 체험 — 관제 도면 톤: 남색·청록·회색 + 트럭 주황. 웹폰트 없음(시스템 한글 글꼴). */
:root {
  --navy: #1F3A5F; --ink: #13324F; --teal: #1F6F78; --line: #CBD5E1; --soft: #EEF3F9; --paper: #E9EEF5;
  --grey: #6B7685; --text: #1E2733; --red: #B4382F; --redsoft: #FBEDEB; --green: #2E7D4F; --greensoft: #E7F4EC;
  --blue: #2558A8; --bluesoft: #E8F0FB; --amber: #A86A00; --ambersoft: #FFF4DE; --orange: #E5851C; --orangedeep: #B4620A; --orangesoft: #FFF1DC;
  --heat1: #FCE3B0; --heat2: #F2A99F; --heat3: #D8483B; --heat-ink: #7A2E14;
  --font: "Pretendard", "Pretendard Variable", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Nanum Gothic", sans-serif;
  --cap-h: 150px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--paper); letter-spacing: -0.01em; word-break: keep-all; line-height: 1.4; font-size: 18px;
  display: flex; flex-direction: column; overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }
button:focus-visible, summary:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; }
h1, h2, h3 { letter-spacing: -0.025em; }
b, strong { font-weight: 800; }
.muted { color: var(--grey); font-size: 16px; }
.num, .clock, .hh, .hc, .sched td, .edge td { font-variant-numeric: tabular-nums; }

/* ---------- 머리 ---------- */
#top { flex: none; height: 64px; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 28px; padding: 0 28px; position: relative; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.logo { width: 34px; height: 34px; color: var(--orange); }
.bname { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.bsub { font-size: 14px; font-weight: 600; opacity: .7; border: 1px solid rgba(255,255,255,.4); padding: 1px 8px; border-radius: 999px; }
#steps { flex: 1; min-width: 0; }
#steps ol { list-style: none; display: flex; gap: 6px; }
#steps button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: rgba(255,255,255,.8); padding: 7px 12px 7px 8px; border-radius: 999px; font-size: 16px; font-weight: 600; white-space: nowrap; }
#steps button i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; border: 1.5px solid rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
#steps button:hover { background: rgba(255,255,255,.1); }
#steps button.visited i { background: rgba(255,255,255,.22); border-color: transparent; }
#steps button[aria-current="step"] { background: #fff; color: var(--navy); font-weight: 800; }
#steps button[aria-current="step"] i { background: var(--orange); border-color: var(--orange); color: #fff; }
#how { flex: none; position: relative; }
#how summary { list-style: none; cursor: pointer; font-size: 16px; font-weight: 700; padding: 8px 16px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 8px; user-select: none; }
#how summary::-webkit-details-marker { display: none; }
#how summary::after { content: " ▾"; opacity: .8; }
#how[open] summary { background: #fff; color: var(--navy); }
#how[open] summary::after { content: " ▴"; }
.howbody { position: absolute; right: 0; top: 52px; width: 760px; max-height: calc(100vh - 140px); overflow: auto; background: #fff; color: var(--text); border: 2px solid var(--navy); border-radius: 12px; padding: 18px 22px 20px; box-shadow: 0 10px 30px rgba(19,50,79,.25); font-size: 16px; line-height: 1.5; }
.howbody h3 { font-size: 18px; color: var(--navy); margin: 14px 0 4px; }
.howbody h3:first-child { margin-top: 0; }
.howbody p, .howbody li { margin-bottom: 3px; }
.howbody ul { padding-left: 20px; }
.howbody .eq { background: var(--soft); border-radius: 8px; padding: 6px 10px; font-weight: 700; color: var(--navy); margin: 4px 0; }
.howbody table { border-collapse: collapse; width: 100%; margin: 6px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.howbody th, .howbody td { border: 1px solid var(--line); padding: 3px 6px; text-align: right; }
.howbody th:first-child, .howbody td:first-child { text-align: left; }
.howbody th { background: var(--soft); }
.howbody .warn { background: var(--ambersoft); border-left: 4px solid var(--amber); padding: 6px 10px; border-radius: 4px; color: #6A4300; }

#virtual { flex: none; height: 34px; background: var(--ambersoft); border-bottom: 1px solid #EBD3A0; color: #6A4300; font-size: 16px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: relative; z-index: 20; }
#virtual b { background: var(--amber); color: #fff; border-radius: 999px; padding: 1px 10px; margin-right: 4px; font-size: 15px; }
.vnote { font-weight: 600; opacity: .85; }

/* ---------- 화면 공통 ---------- */
#stage { flex: 1; min-height: 0; position: relative; }
.screen { position: absolute; inset: 0; padding: 20px 40px 24px; overflow: auto; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px 18px; display: flex; flex-direction: column; min-width: 0; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.card-h h2 { font-size: 24px; font-weight: 800; color: var(--navy); }
.card-h h3 { font-size: 20px; font-weight: 800; color: var(--navy); }
.tag { display: inline-block; font-size: 14px; font-weight: 700; color: var(--grey); border: 1.5px dashed #9AA3AE; background: #F3F5F8; border-radius: 999px; padding: 0 9px; line-height: 22px; white-space: nowrap; font-style: normal; }
.tag.solid { color: #fff; background: var(--teal); border: 0; border-style: solid; }
.btn { border: 2px solid var(--line); background: #fff; color: var(--navy); font-weight: 800; font-size: 18px; padding: 9px 20px; border-radius: 9px; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { border-color: var(--navy); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: #185A62; }
.btn.big { font-size: 20px; padding: 12px 26px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.done, .btn.primary.done, .btn.primary.done:hover { background: var(--greensoft); border-color: #9ACDAE; color: var(--green); }
.two { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; height: 100%; min-height: 0; }
.two.wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.col, .side { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; }
.map-card { min-height: 0; }
.mapbox { flex: 1; min-height: 0; position: relative; }
.mapbox svg { width: 100%; height: 100%; display: block; }

/* 역할 순서 */
.roleflow { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; flex: none; }
.rf { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--grey); padding: 4px 12px 4px 6px; border-radius: 999px; border: 1.5px dashed #B6C0CD; }
.rf i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #E1E7EF; color: var(--grey); font-style: normal; font-size: 14px; }
.rf i svg { width: 14px; height: 14px; display: none; }
.rf.active { color: var(--navy); border: 2px solid var(--navy); background: var(--bluesoft); }
.rf.active i { background: var(--navy); color: #fff; }
.rf.done { color: var(--green); border: 1.5px solid #9ACDAE; background: var(--greensoft); }
.rf.done i { background: var(--green); color: #fff; font-size: 0; }
.rf.done i svg { display: block; }
.rf-arrow { color: #9AA6B6; font-weight: 800; }

/* ---------- 0 시작 ---------- */
.s0-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; height: 100%; max-width: 1760px; margin: 0 auto; }
.s0-copy h1 { font-size: 70px; white-space: nowrap; line-height: 1.16; font-weight: 800; color: var(--navy); letter-spacing: -0.04em; }
.h-comma { width: 54px; height: 54px; color: var(--orange); vertical-align: -7px; margin-left: 6px; }
.lead { font-size: 23px; line-height: 1.6; color: #34404D; margin: 22px 0 28px; max-width: 760px; }
.flow4 { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 32px; counter-reset: f; }
.flow4 li { position: relative; padding: 0 18px 0 0; counter-increment: f; }
.flow4 li b { display: block; color: #fff; font-size: 18px; padding: 8px 22px 8px 14px; background: var(--navy); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 10px 50%); }
.flow4 li:first-child b { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.flow4 li:nth-child(2) b { background: #2B5F7C; } .flow4 li:nth-child(3) b { background: var(--teal); } .flow4 li:nth-child(4) b { background: #5B6573; }
.flow4 li span { display: block; font-size: 16px; line-height: 1.4; color: #34404D; padding: 8px 4px 0 6px; }
.s0-cta { display: flex; align-items: center; gap: 20px; }
.s0-hero { padding: 20px 24px 20px; border-width: 2px; border-color: #B7C5D8; }
.hero-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.hero-h h2 { font-size: 24px; font-weight: 800; color: var(--navy); }
.hero-state { font-size: 19px; font-weight: 800; padding: 3px 14px; border-radius: 999px; background: var(--redsoft); color: var(--red); border: 2px solid #E7B9B3; transition: all .4s; }
.hero.go .hero-state, #hero.go .hero-state { background: var(--greensoft); color: var(--green); border-color: #9ACDAE; }
.hl { --w: 770px; position: relative; }
.hl-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; margin: 8px 0; }
.hl-row .g { font-size: 18px; font-weight: 800; color: var(--navy); }
.lane { position: relative; height: 84px; background: #F2F5F9; border-radius: 8px; border: 1px solid #DCE3EC; }
.lane .walkband { position: absolute; top: 0; bottom: 0; background: rgba(37,88,168,.14); border: 2px dashed #7E9BCB; border-radius: 8px; }
.lane .walkband span { position: absolute; left: 8px; top: 5px; font-size: 15px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.lane .pause { position: absolute; top: 0; bottom: 0; border-radius: 8px; background: repeating-linear-gradient(135deg, rgba(229,133,28,.22) 0 8px, rgba(229,133,28,.08) 8px 16px); border: 2px solid var(--orange); opacity: 0; transition: opacity .6s; display: flex; align-items: flex-end; justify-content: center; }
.lane .pause span { font-size: 14px; font-weight: 800; color: var(--orangedeep); margin-bottom: 3px; display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.85); padding: 0 8px; border-radius: 999px; }
.lane .pause svg { width: 14px; height: 14px; color: var(--orange); }
.go .lane .pause { opacity: 1; }
.hl .tk { position: absolute; width: 36px; height: 19px; top: 36px; color: var(--orange); transition: left 1.4s cubic-bezier(.5,0,.2,1), top 1.4s cubic-bezier(.5,0,.2,1), color .6s; transition-delay: var(--td, 0s); }
.hl .tk svg { width: 100%; height: 100%; display: block; }
.hl .tk.hit { filter: drop-shadow(0 0 0 transparent); }
.hl .tk.hit::after { content: ""; position: absolute; inset: -5px -4px; border: 2px solid var(--red); border-radius: 8px; transition: opacity .5s; }
.go .hl .tk.hit::after { opacity: 0; }
.hl .badge { position: absolute; right: 8px; top: 6px; font-size: 15px; font-weight: 800; border-radius: 6px; padding: 1px 9px; color: #fff; background: var(--red); transition: background .4s; }
.hl .badge .after { display: none; } .go .hl .badge .before { display: none; } .go .hl .badge .after { display: inline; }
.go .hl .badge { background: var(--green); }
.hl-axis { position: relative; height: 22px; margin-left: 96px; }
.hl-axis span { position: absolute; transform: translateX(-50%); font-size: 14px; color: var(--grey); font-variant-numeric: tabular-nums; }
.hero-foot { margin-top: 12px; font-size: 16px; color: var(--grey); border-top: 1.5px dashed var(--line); padding-top: 10px; min-height: 52px; }
.hero-foot b { color: var(--navy); }

/* ---------- 지도 ---------- */
.map .m-bg { fill: #F7F9FC; }
.map .road { fill: #DCE3EC; } .map .road.truck { fill: #D3DAE5; } .map .road.dnew { fill: #F2D9B8; stroke: var(--orange); stroke-width: 1.5; }
.map .lane { stroke: #fff; stroke-width: 2.5; stroke-dasharray: 14 12; fill: none; }
.map .m-t { font-family: var(--font); font-weight: 700; fill: #4B5766; font-size: 15px; letter-spacing: -0.01em; }
.map .m-t.t1 { font-size: 19px; font-weight: 800; } .map .m-t.t2 { font-size: 14px; }
.map .m-t.blue { fill: var(--blue); } .map .m-t.red { fill: var(--red); } .map .m-t.green { fill: var(--green); } .map .m-t.tr { fill: #8A6A3C; }
.map .m-block.r { fill: var(--bluesoft); stroke: var(--blue); stroke-width: 2; }
.map .m-block.c { stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 9 6; }
.map .m-block.s, .map .m-block.s2 { fill: var(--greensoft); stroke: var(--green); stroke-width: 2; }
.map .m-block.s2 { opacity: .85; }
.map .walk { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.map .route { fill: none; stroke: var(--orange); stroke-width: 4; stroke-dasharray: 2 9; stroke-linecap: round; }
.map .route-ghost { fill: none; stroke: #9AA3AE; stroke-width: 4; stroke-dasharray: 6 8; opacity: 0; transition: opacity .5s; }
.map.replanned .route-ghost { opacity: .9; }
.map .m-gate .halo { fill: var(--ink); opacity: .12; }
.map .m-gate .dot { fill: var(--ink); stroke: #fff; stroke-width: 3; }
.map .m-gate .gl { fill: #fff; font-weight: 800; font-size: 17px; font-family: var(--font); }
.map .m-gate.closed .dot { fill: #9AA3AE; } .map .m-gate.closed .x { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.map .m-gate.closed .halo { opacity: 0; }
.map .m-gate.pop { animation: pop .5s both; }
.map .m-gate.hot .halo { fill: var(--red); opacity: .28; animation: pulse 1.1s ease-in-out 4; }
.map .m-gate.focus .halo { fill: var(--navy); opacity: .3; animation: pulse 1.1s ease-in-out 4; }
.map .m-zone rect { fill: rgba(180,56,47,.12); stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 7 5; opacity: .75; }
.map .m-zone.hot rect { animation: zone 1s ease-in-out 3; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.7); opacity: .08; } }
@keyframes zone { 50% { fill: rgba(180,56,47,.32); } }
@keyframes pop { from { transform-box: fill-box; opacity: 0; } }
.map .m-gate .halo { transform-box: fill-box; transform-origin: center; }
.map .m-sign rect { fill: var(--ink); } .map .m-sign text { fill: #FFD45C; font-size: 12.5px; font-weight: 800; font-family: var(--font); }
.map .m-sign { opacity: .25; transition: opacity .5s; } .map.sign-on .m-sign { opacity: 1; }
.map .m-cam rect { fill: var(--navy); } .map .m-cam text { fill: var(--navy); font-size: 12px; font-weight: 700; font-family: var(--font); }
.map .m-cam .cone { fill: rgba(37,88,168,.14); stroke: var(--blue); stroke-width: 1.2; stroke-dasharray: 4 4; }
.map.edge-on .m-cam .cone { animation: cone 1.2s ease-in-out infinite; }
@keyframes cone { 50% { fill: rgba(37,88,168,.34); } }
.map .wkr { fill: var(--blue); stroke: #fff; stroke-width: 1; opacity: .95; }
.map .tk { color: var(--orange); } .map .tk.unbooked { color: var(--red); }
.map .tag-unbooked rect { fill: var(--red); } .map .tag-unbooked text { fill: #fff; font-weight: 800; font-size: 13px; font-family: var(--font); }
.map .guide use { color: #F2B300; } .map .stop rect { fill: var(--red); } .map .stop text { fill: #fff; font-weight: 800; font-size: 14px; font-family: var(--font); }
.map .guide-lbl { fill: #6A4300; font-size: 12.5px; font-weight: 800; font-family: var(--font); }
.map .persona circle.p { fill: var(--teal); stroke: #fff; stroke-width: 3; }
.map .persona .halo { fill: rgba(31,111,120,.18); stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 4 3; }
.map .persona .stroller { fill: #fff; stroke: var(--teal); stroke-width: 3; }
.map .persona .kid { fill: var(--orange); stroke: #fff; stroke-width: 1.5; }
.map .persona .wh { fill: var(--ink); }
.map .persona .pill { fill: var(--teal); stroke: #fff; stroke-width: 2; }
.map .persona text { fill: #fff; font-weight: 800; font-size: 15px; font-family: var(--font); }
.map.mini .m-t.t1 { font-size: 40px; } .map.mini .m-t.t2 { display: none; } .map.mini .m-gate .gl { font-size: 28px; } .map.mini .m-gate .dot { r: 22; } .map.mini .m-gate .halo { r: 32; }
.map.mini .walk { stroke-width: 12; } .map.mini .route { stroke-width: 8; stroke-dasharray: 3 14; }
.map .callout rect { fill: var(--ink); } .map .callout text { fill: #fff; font-weight: 800; font-size: 15px; font-family: var(--font); }
.map .walk.draw { animation: draw 1.3s ease-out both; }
@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.legend { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; color: var(--grey); margin-top: 8px; }
.legend li { display: flex; align-items: center; gap: 6px; }
.lg { width: 22px; height: 14px; border-radius: 3px; display: inline-block; }
.lg.r { background: var(--bluesoft); border: 2px solid var(--blue); } .lg.c { background: var(--redsoft); border: 2px dashed var(--red); } .lg.s { background: var(--greensoft); border: 2px solid var(--green); }
.lg.w { height: 6px; background: var(--green); border-radius: 3px; } .lg.t { height: 4px; background: repeating-linear-gradient(90deg, var(--orange) 0 3px, transparent 3px 8px); border-radius: 0; }

/* ---------- 1 관제 ---------- */
.inputs ul { list-style: none; display: grid; gap: 5px; }
.inputs li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 5px 10px; border-radius: 9px; background: var(--soft); border: 1.5px solid transparent; transition: background .3s, border-color .3s; font-size: 17px; line-height: 1.35; }
.inputs li .ic { width: 24px; height: 24px; margin-top: 2px; border-radius: 7px; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--blue); }
.inputs li .ic svg { width: 15px; height: 15px; opacity: 0; transition: opacity .3s; }
.inputs li b { color: var(--navy); } .inputs li small { display: block; color: var(--grey); font-size: 14px; line-height: 1.3; }
.inputs li.read { background: var(--bluesoft); border-color: #9DB8E3; }
.inputs li.read .ic { background: var(--blue); border-color: var(--blue); color: #fff; } .inputs li.read .ic svg { opacity: 1; }
.pred { flex: 1; min-height: 0; }
.heat { display: grid; grid-template-columns: 78px repeat(9, minmax(0, 1fr)); gap: 4px; position: relative; }
.hh { text-align: center; font-size: 14px; color: var(--grey); font-weight: 600; padding-bottom: 2px; }
.hg { align-self: center; font-weight: 800; color: var(--navy); font-size: 16px; }
.hg.wl { font-size: 14px; color: var(--blue); line-height: 1.2; }
.hc { height: 48px; border-radius: 6px; background: #EEF3F9; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--heat-ink); line-height: 1.05; transition: background .45s var(--d, 0s), color .45s var(--d, 0s), transform .3s; position: relative; }
.hc b { font-size: 19px; font-weight: 800; } .hc small { font-size: 12px; font-weight: 700; margin-top: 1px; }
.hc[data-lv="watch"] { background: var(--heat1); } .hc[data-lv="danger"] { background: var(--heat2); }
.hc[data-lv="severe"] { background: var(--heat3); color: #fff; }
.heat.pending .hc { background: repeating-linear-gradient(135deg, #EEF3F9 0 6px, #E6ECF4 6px 12px); color: transparent; transition: none; }
.heat.pending .hc b, .heat.pending .hc small { visibility: hidden; }
.heat .wk { height: 40px; background: #F4F7FB; border-radius: 6px; position: relative; overflow: hidden; }
.heat .wk i { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(37,88,168,.3); border-top: 2px solid var(--blue); transition: height .6s var(--d, 0s); }
.heat.pending .wk i { height: 0 !important; transition: none; }
.heat .hlbox { border: 3px solid var(--navy); border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .35s; box-shadow: 0 0 0 4px rgba(31,58,95,.12); }
.heat .hlbox.on { opacity: 1; }
.heat .hlnote { position: absolute; font-size: 14px; font-weight: 800; color: #fff; background: var(--navy); border-radius: 6px; padding: 1px 8px; opacity: 0; transition: opacity .35s; white-space: nowrap; }
.heat.after .hc { height: 38px; } .heat.after .hc b { font-size: 17px; }
.heat-legend { display: flex; gap: 14px; font-size: 14px; color: var(--grey); margin-top: 9px; align-items: center; flex-wrap: wrap; }
.heat-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.heat-note { margin-top: 10px; font-size: 18px; line-height: 1.5; min-height: 54px; color: #2B3440; }
.heat-note .count { display: inline-block; background: var(--red); color: #fff; font-weight: 800; border-radius: 8px; padding: 0 10px; font-size: 20px; margin: 0 2px; font-variant-numeric: tabular-nums; }
.heat-note.idle { color: var(--grey); }

/* ---------- 2 조정안 ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tc { border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px 12px; background: #fff; position: relative; transition: border-color .3s, background .3s, box-shadow .3s; opacity: 0; transform: translateY(6px); }
.tc.in { opacity: 1; transform: none; transition: opacity .4s var(--d, 0s), transform .4s var(--d, 0s), border-color .3s, background .3s, box-shadow .3s; }
.tc.hl-time { border-color: var(--teal); background: #F2F8F8; box-shadow: 0 0 0 4px rgba(31,111,120,.14); }
.tc.hl-gate { border-color: var(--orange); background: var(--orangesoft); box-shadow: 0 0 0 4px rgba(229,133,28,.18); }
.tc-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tc-h svg { width: 34px; height: 18px; color: var(--orange); flex: none; }
.tc-h b { font-size: 21px; color: var(--navy); } .tc-h span { color: var(--grey); font-size: 15px; }
.tc-h .chg { margin-left: auto; font-size: 14px; font-weight: 800; color: #fff; border-radius: 6px; padding: 0 8px; line-height: 22px; }
.tc-h .chg { font-style: normal; }
.chg.time { background: var(--teal); } .chg.gate { background: var(--orangedeep); }
.tc-row { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; gap: 4px; font-size: 22px; margin: 4px 0; font-variant-numeric: tabular-nums; }
.tc-row .from { color: var(--grey); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(180,56,47,.55); }
.tc-row .arr { color: var(--grey); text-align: center; font-size: 18px; }
.tc-row .to { font-weight: 800; color: var(--navy); }
.tc-row .to em { font-style: normal; background: linear-gradient(transparent 62%, rgba(229,133,28,.45) 62%); padding: 0 2px; }
.tc-why { font-size: 15.5px; color: var(--grey); margin-top: 3px; line-height: 1.35; }
.fixed-note { margin-top: 14px; display: flex; gap: 12px; align-items: center; border: 2px dashed #9AA3AE; border-radius: 10px; padding: 12px 14px; background: #F6F8FB; font-size: 18px; line-height: 1.45; transition: all .3s; }
.fixed-note svg { width: 34px; height: 18px; color: #9AA3AE; flex: none; }
.fixed-note.on { border-color: var(--navy); background: var(--bluesoft); box-shadow: 0 0 0 4px rgba(31,58,95,.12); }
.fixed-note b { color: var(--navy); }
.conds ul { list-style: none; display: grid; gap: 8px; }
.conds li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 4px 4px; border-radius: 8px; }
.conds li .ck { width: 28px; height: 28px; border-radius: 50%; border: 2px dashed #9AA3AE; display: grid; place-items: center; color: #fff; transition: all .3s; }
.conds li .ck svg { width: 18px; height: 18px; opacity: 0; transition: opacity .25s; }
.conds li.ok .ck { background: var(--green); border: 2px solid var(--green); } .conds li.ok .ck svg { opacity: 1; }
.conds li b { color: var(--navy); font-size: 18px; } .conds li p { font-size: 15.5px; color: #4B5766; line-height: 1.4; }
.conds li.ok { background: var(--greensoft); }
.cmp-row { display: grid; grid-template-columns: 110px 1fr 120px; gap: 10px; align-items: center; margin: 6px 0; font-size: 16px; }
.cmp-row .bar { height: 26px; background: #F1F4F8; border-radius: 6px; position: relative; overflow: hidden; }
.cmp-row .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; transition: width .9s cubic-bezier(.3,.7,.2,1); }
.cmp-row.b .bar i { background: var(--heat3); } .cmp-row.a .bar i { background: var(--teal); }
.cmp-row b { font-variant-numeric: tabular-nums; text-align: right; font-size: 17px; }
.cmp-sum { font-size: 17px; margin-top: 4px; color: #34404D; }
.cmp-sum b { color: var(--green); }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: auto; }
.review-state { font-size: 17px; font-weight: 700; color: var(--green); }

/* ---------- 3 확정 ---------- */
.sched { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 19.5px; }
.sched th { text-align: left; font-size: 15px; color: var(--grey); font-weight: 700; padding: 4px 8px 6px; border-bottom: 2px solid var(--line); }
.sched td { padding: 7px 8px; border-bottom: 1px solid #E3E9F1; vertical-align: middle; }
.sched tr.mixer td { color: var(--grey); background: #F7F9FB; }
.sched .nm { font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.sched .nm svg { width: 30px; height: 16px; color: var(--orange); }
.sched .cg { font-weight: 800; color: var(--navy); } .sched .cg em { font-style: normal; background: linear-gradient(transparent 62%, rgba(229,133,28,.45) 62%); }
.sched .old { color: var(--grey); }
.sched .rcv { text-align: left; font-weight: 700; font-size: 16px; color: #9AA3AE; }
.sched .rcv.on { color: var(--green); }
.sched .rcv .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #D5DCE6; margin-right: 6px; vertical-align: -1px; }
.sched .rcv.on .dot { background: var(--green); animation: ping .6s; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46,125,79,.6); } 100% { box-shadow: 0 0 0 10px rgba(46,125,79,0); } }
.sched .badge { font-size: 13px; font-weight: 800; border-radius: 5px; padding: 0 7px; background: #E1E7EF; color: var(--grey); }
.phonecol { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 0; }
.phone { width: 430px; max-width: 100%; border: 5px solid #1E2733; border-radius: 40px; background: #F4F6F9; padding: 12px 14px 16px; position: relative; box-shadow: 0 14px 30px rgba(19,50,79,.18); }
.phone.parent { width: 500px; } .phone.parent .noti .tt { font-size: 24px; } .phone.parent .noti .tx { font-size: 18px; } .phone.parent .mapcap { font-size: 16px; }
.note3 .plain { margin-bottom: 0; font-size: 18px; gap: 7px; } .note3 .plain li { padding: 6px 14px; } .note3 .card-h { margin-bottom: 8px; }
.phone .notch { width: 110px; height: 20px; background: #1E2733; border-radius: 0 0 14px 14px; margin: -12px auto 10px; }
.ph-body { display: flex; flex-direction: column; gap: 10px; }
.phone-cap { font-size: 15px; color: var(--grey); }
.noti, .dcard { background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 1px 5px rgba(0,0,0,.12); }
.noti .app, .dcard .app { font-size: 14.5px; color: var(--grey); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.mark { width: 20px; height: 20px; color: var(--orange); }
.noti .tt { font-size: 21px; font-weight: 800; line-height: 1.3; margin: 5px 0; color: var(--text); }
.noti .tx { font-size: 16.5px; line-height: 1.5; color: #34404D; }
.noti.pop { animation: slidein .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes slidein { from { transform: translateY(-24px) scale(.96); opacity: 0; } }
.phmap { background: #fff; border-radius: 14px; padding: 6px; }
.phmap svg { width: 100%; height: auto; display: block; }
.mapcap { font-size: 15px; color: var(--grey); line-height: 1.4; padding: 0 4px; } .mapcap b { color: var(--green); }
.dcard h4 { font-size: 20px; color: var(--navy); margin: 6px 0 8px; }
.dline { display: grid; grid-template-columns: 62px 1fr; gap: 6px; font-size: 18px; padding: 5px 0; border-top: 1px solid #E6EBF2; font-variant-numeric: tabular-nums; }
.dline span { color: var(--grey); font-size: 15px; align-self: center; } .dline b { color: var(--navy); } .dline s { color: var(--grey); font-weight: 600; margin-right: 8px; }
.dline em { font-style: normal; background: linear-gradient(transparent 62%, rgba(229,133,28,.45) 62%); }
.dwait { text-align: center; color: var(--grey); padding: 36px 8px; font-size: 18px; }
.dbtn { width: 100%; margin-top: 12px; border: 0; background: var(--teal); color: #fff; font-weight: 800; font-size: 20px; padding: 13px; border-radius: 12px; }
.dbtn.done { background: var(--greensoft); color: var(--green); border: 2px solid #9ACDAE; }
.dbtn:disabled { opacity: .55; }

/* ---------- 4 보호자 ---------- */
.s4-grid { display: grid; grid-template-columns: 520px 500px minmax(0, 1fr); gap: 32px; height: 100%; align-items: center; max-width: 1800px; margin: 0 auto; }
.tl-card, .info4 { align-self: center; }
.tl { list-style: none; position: relative; padding-left: 8px; display: grid; gap: 16px; }
.tl::before { content: ""; position: absolute; left: 21px; top: 18px; bottom: 18px; width: 3px; background: var(--line); }
.tl li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; font-size: 19px; }
.tl li i { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid #9AA3AE; z-index: 1; margin-top: 2px; }
.tl li.done i { border-color: var(--green); background: var(--green); }
.tl li.now i { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 6px rgba(229,133,28,.25); }
.tl li b { display: block; color: var(--navy); font-size: 21px; } .tl li span { color: #4B5766; font-size: 17px; }
.tl li.now b { color: var(--orangedeep); }
.plain { list-style: none; display: grid; gap: 10px; font-size: 20px; margin-bottom: 14px; }
.plain li { padding: 10px 14px; background: var(--soft); border-radius: 10px; border-left: 5px solid var(--teal); }
.muted-p { color: #4B5766; font-size: 17px; line-height: 1.6; }

/* ---------- 5 당일 ---------- */
.sim-ctl { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.sim-ctl input[type=range] { flex: 1; accent-color: var(--teal); height: 6px; }
.sim-ctl .btn { padding: 6px 16px; font-size: 16px; white-space: nowrap; }
.clockcard { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 20px; }
.clock { font-size: 88px; font-weight: 800; color: var(--navy); letter-spacing: -0.04em; line-height: 1; }
.sign5 { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 12px; background: #31435A; color: #9FB0C5; border-radius: 12px; padding: 12px 18px 8px; border: 3px solid #1B2A3C; transition: background .5s, color .5s, box-shadow .5s; min-width: 290px; }
.sign5 .mark { width: 52px; height: 28px; color: #6C7E94; transition: color .5s; }
.sign5 b { font-size: 27px; display: block; line-height: 1.1; } .sign5 span { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sign5 small { grid-column: 1 / -1; font-size: 14px; margin-top: 4px; opacity: .8; }
.sign5.on { background: var(--ink); color: #fff; box-shadow: 0 0 0 5px rgba(255,212,92,.35); border-color: #0B2238; }
.sign5.on .mark { color: var(--orange); } .sign5.on span { color: #FFD45C; }
.edge table { width: 100%; border-collapse: separate; border-spacing: 4px; text-align: center; table-layout: fixed; }
.edge th:first-child, .edge td:first-child { width: 92px; }
.edge th { font-size: 14px; color: var(--grey); font-weight: 600; }
.edge th.g, .edge td.g { text-align: left; font-weight: 800; color: var(--navy); font-size: 16px; }
.edge td { background: var(--soft); border-radius: 6px; padding: 4px 2px; font-size: 15px; line-height: 1.25; color: #2B3440; }
.edge td.cur { background: var(--bluesoft); box-shadow: inset 0 0 0 2px var(--blue); }
.edge td.off { color: #A3ACB8; background: #F4F6F9; }
.edge td span { display: block; font-size: 13px; color: var(--grey); } .edge td b { font-size: 17px; }
.edge-note { font-size: 15px; margin-top: 8px; color: #4B5766; line-height: 1.45; padding: 6px 10px; border-radius: 8px; transition: background .4s, box-shadow .4s; }
.edge-note.on { background: var(--bluesoft); box-shadow: 0 0 0 3px rgba(37,88,168,.25); }
.alerts { flex: 1; min-height: 0; }
.alerts ul { list-style: none; display: grid; gap: 7px; align-content: start; }
.alerts li { display: grid; grid-template-columns: 58px 1fr; gap: 8px; font-size: 17.5px; line-height: 1.35; padding: 6px 8px; border-radius: 8px; background: #F4F6F9; }
.alerts li.new { animation: fadein .35s both; }
.alerts li time { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.alerts li.warn { background: var(--redsoft); } .alerts li.warn time { color: var(--red); }
.alerts li.ok { background: var(--greensoft); } .alerts li.ok time { color: var(--green); }
.alerts li.empty { color: var(--grey); background: transparent; display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.tally { font-size: 16px; font-weight: 700; color: var(--grey); }
.tally b { color: var(--navy); }

/* ---------- 6 결과 ---------- */
.s6-grid { display: grid; grid-template-columns: 620px minmax(0, 1fr); gap: 24px; height: 100%; min-height: 0; }
.big-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; }
.bigstat { flex: 1; background: var(--soft); border-radius: 12px; padding: 10px 16px 12px; border: 2px solid transparent; }
.bigstat.now { background: var(--greensoft); border-color: #9ACDAE; }
.lbl { display: block; font-size: 16px; color: var(--grey); font-weight: 700; }
.bigstat b { font-size: 52px; line-height: 1.05; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.bigstat.now b { color: var(--green); } .bigstat small { font-size: 24px; margin-left: 4px; font-weight: 700; }
.bigstat .sub { display: block; font-size: 17px; font-weight: 700; color: var(--green); }
.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mini-row > div { background: var(--soft); border-radius: 12px; padding: 8px 16px; position: relative; }
.mini-row b { font-size: 28px; color: var(--navy); font-variant-numeric: tabular-nums; margin-right: 6px; }
.measure { font-size: 15.5px; line-height: 1.5; color: #34404D; margin-bottom: 8px; }
.goal { font-size: 15.5px; line-height: 1.5; color: #34404D; padding-top: 8px; border-top: 1.5px dashed var(--line); }
.fb .fbrow { display: grid; grid-template-columns: 210px 1fr 1fr; gap: 8px; align-items: center; padding: 3px 0; font-size: 16.5px; border-bottom: 1px solid #E6EBF2; font-variant-numeric: tabular-nums; }
.fb .fbrow:last-of-type { border-bottom: 0; }
.fb .fbrow.h { font-size: 14px; color: var(--grey); font-weight: 700; padding-top: 0; }
.fb .fbrow .nv { font-weight: 800; color: var(--navy); } .fb .fbrow .nv.chg { color: var(--orangedeep); }
.fb .fbrow.on { background: var(--orangesoft); border-radius: 8px; margin: 2px -6px; padding: 5px 6px; }
.fb .fbnote { font-size: 15px; color: #4B5766; margin-top: 4px; line-height: 1.4; }
.seg { display: inline-flex; border: 2px solid var(--navy); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 6px 18px; font-weight: 800; font-size: 17px; color: var(--navy); text-align: left; line-height: 1.2; }
.seg button small { display: block; font-size: 13px; font-weight: 600; opacity: .75; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.plan-note { margin-top: 8px; font-size: 17px; color: #34404D; min-height: 52px; line-height: 1.5; }
.plan-note b { color: var(--navy); }

/* ---------- 시연 모드 ---------- */
#caption, #cursor, #endcard { display: none; }
body.tour #caption, body.cap #caption { display: flex; flex: none; height: var(--cap-h); background: var(--ink); color: #fff; align-items: center; justify-content: center; padding: 6px 110px 0; position: relative; border-top: 5px solid var(--orange); }
body.tour #caption p, body.cap #caption p { font-size: 42px; line-height: 1.38; font-weight: 700; text-align: center; letter-spacing: -0.03em; max-width: 1700px; text-wrap: balance; }
.cap-bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(255,255,255,.12); }
.cap-bar i { display: block; height: 100%; width: 0; background: #fff; transition: width .4s; }
body.tour #cursor { display: block; position: fixed; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 4px solid var(--orange); background: rgba(229,133,28,.2); box-shadow: 0 0 0 5px rgba(255,255,255,.75), 0 4px 14px rgba(0,0,0,.25); z-index: 100; pointer-events: none; opacity: 0; transition: transform .65s cubic-bezier(.4,0,.2,1), opacity .3s; }
body.tour #cursor.show { opacity: 1; }
#cursor.click::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 4px solid var(--orange); animation: ripple .55s ease-out; }
@keyframes ripple { from { transform: scale(1); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
body.tour #stage, body.tour #steps, body.tour #how { pointer-events: none; }
body.tour #how { opacity: .0; }
#endcard { position: absolute; inset: 0; background: rgba(19,50,79,.96); z-index: 60; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; opacity: 0; transition: opacity .8s; }
body.tour #endcard.show { display: flex; opacity: 1; }
.ec-mark { width: 110px; height: 110px; color: var(--orange); }
#endcard b { font-size: 84px; letter-spacing: -0.04em; } #endcard span { font-size: 34px; font-weight: 600; opacity: .9; }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1100px) {
  body { height: auto; min-height: 100%; overflow: auto; font-size: 17px; }
  #top { height: auto; flex-wrap: wrap; gap: 8px 14px; padding: 10px 14px; }
  #steps { order: 3; flex: 1 0 100%; overflow-x: auto; margin: 0 -14px; padding: 0 14px 2px; }
  #steps ol { width: max-content; }
  .howbody { position: fixed; left: 10px; right: 10px; top: 112px; width: auto; max-height: 70vh; }
  #how { margin-left: auto; }
  #virtual { height: auto; padding: 6px 14px; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; }
  #stage { flex: none; }
  .screen { position: static; padding: 16px 14px 28px; overflow: visible; }
  .screen[hidden] { display: none !important; }
  .s0-grid, .two, .two.wide-left, .s4-grid, .s6-grid { grid-template-columns: minmax(0, 1fr); height: auto; gap: 16px; }
  .s0-copy h1 { font-size: 36px; white-space: normal; } .h-comma { width: 30px; height: 30px; vertical-align: -3px; }
  .lead { font-size: 18px; margin: 14px 0 18px; }
  .flow4 { grid-template-columns: 1fr 1fr; gap: 10px; } .flow4 li { padding: 0; }
  .flow4 li b, .flow4 li:first-child b { clip-path: none; border-radius: 8px; padding: 6px 12px; }
  .s0-cta { flex-wrap: wrap; }
  .hl .tk { width: 28px; height: 15px; top: 24px; } .lane { height: 52px; } .hl-row { grid-template-columns: 56px 1fr; } .hl-axis { margin-left: 56px; } .hl-axis span:nth-child(even) { display: none; }
  .hl-row .g { font-size: 15px; } .lane .walkband span { display: none; }
  .card-h { flex-wrap: wrap; gap: 4px 10px; } .card-h h2 { font-size: 20px; }
  .mapbox { flex: none; height: auto; } .mapbox svg { height: auto; }
  .map .m-t.t2 { display: none; }
  .heat { grid-template-columns: 46px repeat(9, minmax(0, 1fr)); gap: 2px; }
  .hh { font-size: 10px; letter-spacing: -0.06em; } .hg { font-size: 12px; } .hg.wl { font-size: 11px; }
  .hc { height: 40px; } .hc b { font-size: 13px; } .hc small { font-size: 9px; }
  .cards { grid-template-columns: 1fr; }
  .roleflow { flex-wrap: wrap; } .rf { font-size: 14px; }
  .sched { font-size: 15px; display: block; overflow-x: auto; }
  .phone, .phone.parent { width: 100%; max-width: 380px; margin: 0 auto; }
  .phone.parent .noti .tt { font-size: 20px; } .phone.parent .noti .tx { font-size: 16px; }
  .cmp-row { grid-template-columns: 82px 1fr 74px; font-size: 14px; }
  .clockcard { flex-direction: column; align-items: stretch; } .clock { font-size: 64px; } .sign5 { min-width: 0; }
  .sim-ctl { flex-wrap: wrap; }
  .big-row { flex-direction: column; align-items: stretch; }
  .bigstat b { font-size: 48px; }
  .fb .fbrow { grid-template-columns: 90px 1fr 1fr; font-size: 15px; }
  .seg { width: 100%; } .seg button { flex: 1; padding: 6px 10px; }
  .legend { gap: 8px 14px; font-size: 13px; }
  .edge td b { font-size: 15px; } .edge td { font-size: 13px; }
  .tl-card, .info4 { align-self: stretch; }
}

/* 보강 */
.f-after { display: none; } #hero.go .f-after { display: block; } #hero.go .f-before { display: none; }
.hbadge { font-size: 14px; line-height: 1.25; font-weight: 800; border-radius: 6px; padding: 3px 10px; color: #fff; background: var(--red); transition: background .4s; display: inline-block; }
#hero.go .hbadge { background: var(--green); } .hbadge .after { display: none; } #hero.go .hbadge .before { display: none; } #hero.go .hbadge .after { display: inline; }
#hero .go-dummy { display: none; }
#hero.go .lane .pause { opacity: 1; }
#hero .tk { left: calc(var(--x0) - 18px); top: var(--y0); }
#hero.go .tk { left: calc(var(--x1) - 18px); top: var(--y1); }
#hero.go .tk.hit::after { opacity: 0; }
#hero .hl .tk svg, #hero .hl .tk { color: var(--orange); }
.heat .hlbox { position: absolute; }
.heat { position: relative; }
.mapbox svg.map { max-height: 100%; }

.preview-tag { font-size: 15px; font-weight: 800; color: #6A4300; background: var(--ambersoft); border: 1.5px dashed var(--amber); border-radius: 999px; padding: 3px 14px; text-align: center; max-width: 100%; }
.dcard.preview { opacity: .75; }
.nextpred { background: var(--bluesoft); border-left: 5px solid var(--blue); border-radius: 8px; padding: 7px 12px; margin: 8px 0 10px; font-size: 15.5px; line-height: 1.45; }
.nextpred > b { display: block; color: var(--navy); font-size: 16px; }
.nextpred.idle { background: #F4F6F9; border-left-color: #9AA3AE; color: var(--grey); }
.nextpred span b { color: var(--orangedeep); }
