/* RouteWise interactive demo (try.html). Builds on site.css tokens. */
:root { --ease: cubic-bezier(.22, 1, .36, 1); --r1: #1E2320; --r2: #3A9A0A; --r3: #1F6C9F; --orig: #8F8E8A; --late: #9F2F2D; --late-bg: #FCEDEB; }

/* hero carousel: layout and behaviour come from site.css / site.js; these only tune it for this page */
.try-hero { padding-bottom: clamp(24px, 3vw, 40px); }
.try-hero :is(h1, .h1) { font-size: clamp(2.2rem, 3.4vw + .8rem, 3.6rem); max-width: 14em; }
.try-hero .slide-copy .lede { margin-top: 16px; max-width: 40em; }
.try-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.try-hero .chips + .cta-row { margin-top: 24px; }
/* the demo's own .phone (below) is a live-screen frame; reset it for the screenshot phones in the hero */
.try-hero .art-phones .phone { width: 248px; height: auto; max-width: none; aspect-ratio: 780 / 1688; padding: 8px; border-radius: 40px; }
.try-hero .art-phones .phone::before { content: none; }
@media (max-width: 600px) { .try-hero .art-phones .phone { width: 196px; border-radius: 32px; padding: 6px; } }
.try-hero .chips li { font-size: .875rem; font-weight: 560; color: var(--ink-2); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

/* ---------- workspace frame ---------- */
.ws-outer { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.ws { background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; transition: opacity .4s var(--ease); }
.ws.ready { opacity: 1; }
.ws-top { display: flex; align-items: center; gap: 18px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FCFCFA; }
.ws-brand { display: flex; align-items: center; gap: 8px; font-weight: 720; letter-spacing: -.02em; white-space: nowrap; }
.ws-brand svg { width: 22px; height: 22px; }
.ws-brand svg circle { fill: var(--green); } .ws-brand svg path { fill: none; stroke: var(--edge); stroke-width: 1.8; stroke-linecap: round; }
.ws-brand small { font-weight: 450; color: var(--ink-3); font-size: .8rem; letter-spacing: 0; }
.ws-demo-tag { margin-left: auto; font-size: .75rem; font-weight: 680; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

.rail { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px 12px 8px 8px; border-radius: 999px; cursor: pointer; white-space: nowrap; font-size: .9rem; font-weight: 560; color: var(--ink-2); transition: background-color .2s; }
.rail button:hover:not(:disabled) { background: var(--panel); }
.rail button:disabled { color: #A9ADA6; cursor: not-allowed; }
.rail .rn { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rail .past .rn { background: var(--ink); border-color: var(--ink); color: var(--white); }
.rail .on { background: var(--tint); color: var(--ink); box-shadow: inset 0 0 0 1px #CDEFB7; }
.rail .on .rn { background: var(--green); border-color: var(--edge); color: var(--on-green); }

.ws-body { display: grid; grid-template-columns: 384px minmax(0, 1fr); height: clamp(640px, calc(100vh - 140px), 860px); }
.ws[data-step="3"] .ws-body, .ws[data-step="4"] .ws-body { grid-template-columns: 360px minmax(0, 1fr) 316px; }
.phone-col { display: none; }
.ws[data-step="3"] .phone-col, .ws[data-step="4"] .phone-col { display: flex; }

/* ---------- panel ---------- */
.panel { border-right: 1px solid var(--line); overflow-y: auto; padding: 22px 22px 0; display: flex; flex-direction: column; gap: 18px; font-size: .95rem; scrollbar-width: thin; }
.p-head h2 { font-size: 1.6rem; letter-spacing: -.028em; line-height: 1.1; }
.p-kicker { font-size: .75rem; font-weight: 680; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.p-lede { color: var(--ink-2); margin-top: 8px; font-size: .95rem; line-height: 1.5; }
.p-sec { border-top: 1px solid var(--line); padding-top: 14px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sec-h h3 { font-size: 1rem; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.count { font-size: .75rem; font-weight: 650; background: var(--panel); border-radius: 999px; padding: 1px 8px; color: var(--ink-2); }
.hint { font-size: .82rem; color: var(--ink-3); line-height: 1.45; }
.hint.center { text-align: center; }
.fine { font-size: .8rem; color: var(--ink-3); line-height: 1.5; margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p-foot { position: sticky; bottom: 0; margin: auto -22px 0; padding: 12px 22px 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.p-foot .btn { min-height: 46px; padding: 0 16px; font-size: .93rem; flex: 0 1 auto; min-width: 0; }
.p-foot .btn-fill { flex: 1 1 auto; }
.p-foot .hint { flex: 1; }
.nw { white-space: nowrap; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-big { min-height: 56px; font-size: 1.05rem; }
.text-btn { border: 0; background: none; padding: 6px 2px; font-weight: 620; font-size: .9rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #B9BDB5; cursor: pointer; }
.text-btn:hover { text-decoration-color: var(--ink); }
.icon-btn { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--ink-3); }
.icon-btn:hover { background: var(--panel); color: var(--ink); }
.icon-btn svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }

.slist { list-style: none; margin: 0; padding: 0; }
.srow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #EEF0E9; }
.srow:last-child { border-bottom: 0; }
.snum { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: .75rem; font-weight: 700; margin-top: 1px; font-variant-numeric: tabular-nums; }
.sbody { flex: 1; min-width: 0; }
.sname { font-weight: 620; line-height: 1.3; letter-spacing: -.005em; }
.saddr { font-size: .82rem; color: var(--ink-3); }
.sedit { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.sedit select, .field select, .vrow select { font: inherit; font-size: .82rem; color: var(--ink); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234A504B' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center / 9px; border: 1px solid #D5D8CF; border-radius: 8px; padding: 5px 26px 5px 9px; appearance: none; cursor: pointer; }
.sedit select:hover, .field select:hover, .vrow select:hover { border-color: var(--ink-3); }
.empty { color: var(--ink-3); padding: 10px 0; }

.addmore { margin-top: 8px; border: 1px dashed #CFD3C8; border-radius: 12px; }
.addmore summary { cursor: pointer; padding: 10px 12px; font-weight: 620; font-size: .9rem; list-style: none; display: flex; flex-direction: column; }
.addmore summary::-webkit-details-marker { display: none; }
.addmore summary::before { content: '+ '; }
.addmore[open] summary::before { content: '− '; }
.xlist { list-style: none; margin: 0; padding: 0 8px 8px; display: grid; gap: 4px; }
.xadd { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; background: var(--panel); border-radius: 10px; padding: 8px 10px; cursor: pointer; transition: background-color .15s; }
.xadd:hover { background: var(--tint); }
.xadd .plus { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; font-weight: 700; border: 1px solid var(--edge); }
.xadd b { display: block; font-weight: 620; font-size: .86rem; }
.xadd span span { font-size: .78rem; color: var(--ink-3); }

.vlist { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.vrow { display: flex; align-items: center; gap: 10px; }
.vrow i, .rc-h i, .send-row > i, .bd-h i, .tip-route i, .per th i, .legend span i:not(.dash):not(.pip) { flex: none; width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.vname { font-weight: 600; width: 72px; flex: none; }
.vrow select { flex: 1; min-width: 0; padding-top: 7px; padding-bottom: 7px; }

.field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.field label, .flabel { font-weight: 560; color: var(--ink-2); }
.field select { padding-top: 7px; padding-bottom: 7px; font-size: .9rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #D5D8CF; border-radius: 999px; overflow: hidden; }
.stepper button { width: 36px; height: 34px; border: 0; background: var(--white); cursor: pointer; font-size: 1.05rem; }
.stepper button:hover { background: var(--panel); }
.stepper output { min-width: 92px; text-align: center; font-weight: 620; font-variant-numeric: tabular-nums; font-size: .9rem; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; background: var(--panel); padding: 4px; border-radius: 12px; width: 100%; }
.seg button { flex: 1 1 auto; border: 0; background: none; border-radius: 9px; padding: 7px 8px; font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button[aria-checked="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(30, 35, 32, .1), 0 0 0 1px var(--line); }

/* plan */
.orig-stats { background: var(--panel); border-radius: 14px; padding: 14px 16px; }
.os-h { font-size: .72rem; font-weight: 680; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.orig-stats dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.orig-stats dt { font-size: .8rem; color: var(--ink-3); }
.orig-stats dd { margin: 0; font-size: 1.15rem; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.btn.working { background: var(--panel); border-color: #D5D8CF; color: var(--ink); opacity: 1; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #C9CDC4; border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.save-card { background: var(--tint); border: 1px solid #CDEFB7; border-radius: 16px; padding: 16px 18px; }
.sc-label { font-size: .78rem; font-weight: 620; color: var(--green-text); margin-bottom: 4px; }
.sc-big { font-size: 2.05rem; font-weight: 780; letter-spacing: -.04em; line-height: 1.05; color: var(--ink); }
.sc-big.small { font-size: 1.3rem; letter-spacing: -.02em; }
.sc-sub { color: var(--ink-2); font-size: .9rem; margin-top: 6px; }
.note { background: #FFF8DE; border: 1px solid #F1E2A6; border-radius: 12px; padding: 10px 12px; font-size: .86rem; color: #5A4A0C; }
.note.ok { background: var(--tint); border-color: #CDEFB7; color: var(--on-green); }

.cmp { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 7px 4px; text-align: right; border-bottom: 1px solid #EEF0E9; white-space: nowrap; }
.cmp thead th { font-size: .7rem; font-weight: 680; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cmp tbody th { text-align: left; font-weight: 500; color: var(--ink-2); white-space: normal; }
.cmp .strong th, .cmp .strong td { font-weight: 720; color: var(--ink); }
.cmp td.good { color: var(--green-text); font-weight: 680; }
.cmp td.bad { color: var(--late); font-weight: 680; }
.cmp.per tbody th { display: flex; align-items: center; gap: 8px; }
.cmp thead th.l { text-align: left; }

.rc-title { margin: 4px 0 -6px; }
.rcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rcard { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.rc-h { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; }
.rc-h b { font-weight: 680; }
.rc-h span { grid-column: 2; font-size: .8rem; color: var(--ink-3); }
.rc-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 3px; }
.rc-list li { display: grid; grid-template-columns: 66px 1fr auto; gap: 8px; align-items: center; font-size: .84rem; }
.rt { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: .66rem; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.tag.ok { background: var(--tint); color: var(--green-text); }
.tag.late { background: var(--late-bg); color: var(--late); }

/* send */
.send-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.send-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.send-row input { font: inherit; font-weight: 640; border: 1px solid transparent; border-radius: 8px; padding: 3px 6px; margin-left: -6px; width: 100%; background: transparent; }
.send-row input:hover { border-color: #D5D8CF; }
.send-row input:focus { border-color: var(--ink); outline: none; background: var(--white); }
.pill { font-size: .75rem; font-weight: 640; border-radius: 999px; padding: 4px 10px; background: var(--panel); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--tint); color: var(--green-text); box-shadow: inset 0 0 0 1px #CDEFB7; }
.pill.muted { color: var(--ink-3); }

/* drive */
.clock-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border-radius: 14px; padding: 12px 14px; }
.clock-row > div { margin-right: auto; }
.clock-row .os-h { margin-bottom: 0; }
.clock { font-size: 1.7rem; font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.clock-row .btn { min-height: 42px; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bd-h { display: flex; align-items: center; gap: 8px; }
.bd-h b { font-weight: 660; }
.bd-h span { margin-left: auto; font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: #ECEEE7; border-radius: 999px; margin: 6px 0 4px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; transition: width .3s var(--ease); }
.log { border-top: 1px solid var(--line); padding-top: 10px; }
.log p:not(.os-h) { font-size: .82rem; color: var(--ink-2); line-height: 1.45; }
.log time { display: inline-block; min-width: 64px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* savings */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--ink); color: var(--white); border-radius: 14px; padding: 14px; }
.t-v { font-size: 1.45rem; font-weight: 780; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.t-l { font-size: .78rem; color: #C9CEC6; margin-top: 4px; line-height: 1.35; }
.tile:first-child { background: var(--green); color: var(--on-green); }
.tile:first-child .t-l { color: var(--on-green); }
.year { border-left: 3px solid var(--green); padding: 2px 0 2px 12px; }
.year p:first-child { font-size: .92rem; }
.cta-box { background: var(--panel); border-radius: 16px; padding: 16px; }
.cb-h { font-weight: 720; font-size: 1.05rem; letter-spacing: -.015em; }
.cta-box > p:not(.cb-h) { color: var(--ink-2); font-size: .88rem; margin-top: 4px; }
.cb-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.cb-btns .btn { min-height: 42px; font-size: .92rem; }

/* ---------- map ---------- */
.map-wrap { position: relative; background: #F3F4EE; overflow: hidden; touch-action: none; }
#map { width: 100%; height: 100%; display: block; cursor: grab; user-select: none; }
#map:active { cursor: grabbing; }
#m-streets path { fill: none; stroke: #DEE1D8; stroke-width: calc(2.2 * var(--z, 1)); stroke-linecap: round; stroke-linejoin: round; vector-effect: none; }
.area { font-size: calc(11px * var(--z, 1)); font-weight: 680; letter-spacing: .14em; fill: #A9AEA4; text-anchor: middle; pointer-events: none; }
.r-base { fill: none; stroke: var(--orig); stroke-width: calc(2.6 * var(--z, 1)); stroke-dasharray: calc(6 * var(--z, 1)) calc(7 * var(--z, 1)); stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.r-opt { fill: none; stroke-width: calc(5 * var(--z, 1)); stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.stop { cursor: pointer; }
.stop .dot { stroke: #1E2320; stroke-width: 1.6; transition: r .15s; }
.stop.planned .dot { stroke: #FFFFFF; stroke-width: 2; }
.stop text { font-size: 10px; font-weight: 760; text-anchor: middle; dominant-baseline: middle; pointer-events: none; font-variant-numeric: tabular-nums; }
.stop .appt-pip { fill: var(--green); stroke: var(--on-green); stroke-width: 1; }
.stop.sel .dot, .stop:hover .dot { stroke-width: 3; }
.stop.done { opacity: .45; }
.stop.avail circle { fill: #FFFFFF; stroke: #9EA39A; stroke-width: 1.4; stroke-dasharray: 2.5 2; }
.stop.avail text { fill: var(--ink-2); font-size: 12px; font-weight: 600; }
.stop.avail:hover circle { fill: var(--tint); stroke: var(--edge); stroke-dasharray: none; }
.stop:focus-visible { outline: none; }
.stop:focus-visible .dot, .stop.avail:focus-visible circle { stroke: var(--ink); stroke-width: 3.5; }
.depot-box { fill: var(--ink); stroke: #FFFFFF; stroke-width: 2; }
.depot-t { fill: var(--white); font-size: 12px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; }
.veh-dot { stroke: #FFFFFF; stroke-width: 3; }
.veh-halo { opacity: .18; }
@media (prefers-reduced-motion: no-preference) { .veh-halo { animation: halo 1.8s ease-out infinite; } }
@keyframes halo { 0% { opacity: .3; } 100% { opacity: 0; } }
.map-wrap.thinking::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(96, 243, 18, .12) 50%, transparent 70%); background-size: 250% 100%; animation: sweep 1.2s linear infinite; pointer-events: none; }
@keyframes sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }

.zoom { position: absolute; top: 12px; right: 12px; display: grid; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }
.zoom button { width: 38px; height: 36px; border: 0; background: none; font-size: 1.1rem; font-weight: 600; cursor: pointer; }
.zoom button + button { border-top: 1px solid var(--line); }
.zoom button:hover { background: var(--panel); }
.zoom #z-fit { font-size: .62rem; font-weight: 720; letter-spacing: .06em; }
.legend { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: .8rem; font-weight: 560; max-width: calc(100% - 24px); box-shadow: var(--shadow-md); }
.legend span, .legend label { display: inline-flex; align-items: center; gap: 7px; }
.legend .dash { width: 18px; height: 0; border-top: 2.5px dashed var(--orig); display: inline-block; }
.legend .pip { width: 9px; height: 9px; border-radius: 50%; background: var(--green); border: 1px solid var(--on-green); display: inline-block; }
.legend .dsq { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--ink); color: var(--white); font-size: .66rem; }
.lg-toggle { cursor: pointer; }
.lg-toggle input { accent-color: var(--ink); margin: 0; }
.tip { position: absolute; top: 12px; left: 12px; width: min(300px, calc(100% - 76px)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 14px; padding: 12px 34px 12px 14px; box-shadow: var(--shadow-md); font-size: .86rem; }
.tip-name { font-weight: 680; letter-spacing: -.01em; }
.tip-sub { color: var(--ink-3); font-size: .8rem; }
.tip-route { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: .8rem; color: var(--ink-2); }
.tip-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; background: none; font-size: 1.2rem; border-radius: 8px; cursor: pointer; color: var(--ink-3); }
.tip-x:hover { background: var(--panel); }

/* ---------- phone ---------- */
.phone-col { border-left: 1px solid var(--line); background: #F7F8F3; align-items: center; justify-content: center; padding: 16px; }
.phone { width: 270px; height: min(560px, 100%); border-radius: 42px; background: var(--ink); padding: 10px; box-shadow: var(--shadow-lg); position: relative; }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; border-radius: 999px; background: #0E100F; transform: translateX(-50%); z-index: 2; }
.phone-screen { height: 100%; border-radius: 33px; background: var(--paper); overflow-y: auto; scrollbar-width: none; padding: 44px 12px 14px; font-size: .8rem; }
.phone-screen::-webkit-scrollbar { display: none; }
.lock { min-height: calc(100% + 58px); margin: -44px -12px -14px; padding: 70px 14px 20px; border-radius: 33px; background: linear-gradient(160deg, #26302A, #1E2320 55%, #142016); color: var(--white); text-align: center; }
.lk-time { font-size: 3.4rem; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.lk-date { color: #C9CEC6; font-size: .85rem; margin-top: 4px; }
.lk-empty { margin-top: 60px; color: #9AA197; font-size: .85rem; }
.notif { margin-top: 34px; width: 100%; text-align: left; display: grid; gap: 2px; border: 0; cursor: pointer; border-radius: 18px; padding: 12px 14px; background: rgba(250, 250, 247, .88); backdrop-filter: blur(16px); color: var(--ink); font-size: .8rem; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
@media (prefers-reduced-motion: no-preference) { .notif { animation: drop .5s var(--ease); } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.nf-app { display: flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 640; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.nf-app svg { width: 14px; height: 14px; background: var(--ink); border-radius: 4px; padding: 2px; }
.nf-app svg circle { fill: var(--green); } .nf-app svg path { fill: none; stroke: var(--green); stroke-width: 2; }
.notif b { font-size: .86rem; }
.notif span:last-child { color: var(--ink-2); }
.ph-tabs { display: flex; gap: 4px; background: var(--panel); border-radius: 10px; padding: 3px; margin-bottom: 10px; }
.ph-tabs button { flex: 1; border: 0; background: none; border-radius: 8px; padding: 5px; font-size: .74rem; font-weight: 640; cursor: pointer; color: var(--ink-2); }
.ph-tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(30, 35, 32, .12); }
.ph-top { padding: 0 2px 8px; }
.ph-title { font-size: 1.15rem; font-weight: 760; letter-spacing: -.025em; }
.ph-meta { color: var(--ink-3); font-size: .75rem; }
.ph-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.ph-card.next { border: 2px solid var(--edge); }
.ph-k { font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.ph-t { font-size: 1.05rem; font-weight: 760; letter-spacing: -.02em; line-height: 1.2; }
.ph-eta { font-weight: 620; margin: 4px 0 2px; display: flex; gap: 6px; align-items: center; }
.ph-s { color: var(--ink-3); font-size: .74rem; }
.ph-notes { margin-top: 8px; background: var(--tint); border: 1px solid #CDEFB7; border-radius: 10px; padding: 7px 9px; }
.ph-notes summary { cursor: pointer; font-weight: 640; font-size: .76rem; }
.ph-notes p { font-size: .76rem; margin-top: 4px; }
.ph-btn { width: 100%; border: 1px solid #D5D8CF; background: var(--white); border-radius: 10px; padding: 9px 6px; font-weight: 640; font-size: .8rem; cursor: pointer; transition: transform .1s ease-out, background-color .15s; }
.ph-btn:active:not(:disabled) { transform: scale(.97); }
.ph-btn:hover:not(:disabled) { border-color: var(--ink-3); }
.ph-btn:disabled { opacity: .4; cursor: default; }
.ph-btn.fill { background: var(--green); border-color: var(--edge); color: var(--on-green); margin-top: 10px; padding: 11px; font-size: .9rem; }
.ph-btn.warn { color: var(--late); }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.done-card { text-align: center; padding: 18px 12px; }
.ph-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.ph-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 6px; align-items: center; font-size: .74rem; }
.ph-list li.dn { color: var(--ink-3); }
.ph-list li.cur span:nth-child(2) { font-weight: 700; }
.pt { color: var(--ink-3); font-variant-numeric: tabular-nums; }

.try-notes { width: min(var(--max), 100% - 2 * var(--gutter)); margin: 22px auto clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.try-notes h2 { font-size: .95rem; letter-spacing: -.01em; margin-bottom: 4px; }
.try-notes p { font-size: .88rem; color: var(--ink-2); }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 10px); max-width: min(520px, calc(100% - 32px)); background: var(--ink); color: var(--white); border-radius: 14px; padding: 12px 16px; font-size: .9rem; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .2s, transform .25s var(--ease); z-index: 60; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .ws-demo-tag { display: none; }
  .ws[data-step="3"] .ws-body, .ws[data-step="4"] .ws-body { grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: auto; }
  .ws[data-step="3"] .map-wrap, .ws[data-step="4"] .map-wrap { min-height: 560px; }
  .ws[data-step="3"] .panel, .ws[data-step="4"] .panel { max-height: 720px; }
  .phone-col { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 22px; }
}
@media (max-width: 900px) {
  .ws-body, .ws[data-step] .ws-body { display: flex; flex-direction: column; height: auto; }
  .map-wrap { order: -2; height: 58vh; min-height: 340px; }
  .phone-col { order: -1; border-top: 1px solid var(--line); }
  .ws[data-step="3"] .map-wrap, .ws[data-step="4"] .map-wrap { min-height: 340px; height: 52vh; }
  .panel, .ws[data-step] .panel { border-right: 0; border-top: 1px solid var(--line); overflow: visible; max-height: none; padding: 20px 16px 0; }
  .p-foot { margin: 8px -16px 0; padding: 14px 16px 18px; }
  .ws-top { flex-wrap: wrap; gap: 8px 14px; }
  .ws-demo-tag { display: none; }
  .rail { width: 100%; order: 3; margin: 0 -4px; }
  .try-notes { grid-template-columns: 1fr; }
  .tip { top: auto; bottom: 64px; }
}
@media (max-width: 420px) {
  .ws-outer { width: 100%; }
  .ws { border-radius: 0; border-left: 0; border-right: 0; }
  .phone { width: 100%; max-width: 300px; }
  .rail .rt { display: none; }
  .rail .on .rt { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .ws, .bar span, #toast { transition: none; }
  .map-wrap.thinking::after { animation: none; }
}
