/* TopResponder product tour (/tour/). Loaded only on that page. */
.tour [hidden] { display: none !important; }
.tour-hero { position: relative; padding: var(--s8) 0 var(--s4); overflow: hidden; isolation: isolate; }
.tour-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 320px at 80% -10%, rgba(229, 50, 43, 0.16), transparent 70%), radial-gradient(600px 300px at 10% 0%, rgba(91, 147, 255, 0.07), transparent 70%); }
.tour-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 22ch; }
@media (min-width: 900px) { .tour-hero { padding: var(--s10) 0 var(--s5); } }
.tour { padding: var(--s2) 0 var(--s10); }

/* step rail */
.t-rail { position: relative; margin-bottom: var(--s4); }
.t-tabs { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.t-tabs::-webkit-scrollbar { display: none; }
.t-tabs li { flex: none; }
@media (min-width: 1000px) { .t-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; } }
.t-tabs button { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; cursor: pointer; min-height: 44px; transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease); }
.t-tabs button:hover { color: var(--text); border-color: var(--border-strong); }
.t-tabs button[aria-selected="true"] { color: #fff; background: var(--surface-2); border-color: rgba(229, 50, 43, 0.55); }
.t-tabs .tn { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: var(--surface-3); color: var(--text-2); }
.t-tabs button[aria-selected="true"] .tn { background: var(--accent); color: #fff; }
.t-tabs button.done .tn { background: rgba(52, 199, 123, 0.2); color: #7de3ab; }
.t-tabs .tl { white-space: nowrap; }
.t-progress { height: 3px; background: var(--surface-3); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.t-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #ff7a70); transform-origin: left; transform: scaleX(0.142); transition: transform 0.35s var(--ease); }

/* panels */
.t-panel { display: grid; gap: var(--s4); align-items: center; padding: var(--s4) 0; border-top: 1px solid var(--border); }
.t-panel:first-of-type { border-top: 0; }
@media (min-width: 1000px) { .t-panel { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s8); min-height: 640px; } }
.tour.is-js .t-panel { display: none; border-top: 0; padding-top: 0; }
.tour.is-js .t-panel.active { display: grid; }
@media (prefers-reduced-motion: no-preference) { .tour.is-js .t-panel.active { animation: t-in 0.35s var(--ease); } }
@keyframes t-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.t-count { display: flex; align-items: center; gap: 8px; font-size: var(--fs-14); font-weight: 600; color: var(--accent-text); margin-bottom: var(--s1); }
.t-count .tag { margin: 0; vertical-align: 0; }
.t-copy h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.t-p { font-size: var(--fs-18); color: var(--text-2); max-width: 52ch; }
.t-hint { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 10px; background: rgba(243, 166, 59, 0.08); border: 1px solid rgba(243, 166, 59, 0.35); color: #ffd59a; font-weight: 600; font-size: var(--fs-14); }
.t-real { margin-top: var(--s2); font-size: var(--fs-14); color: var(--muted); max-width: 56ch; }
.t-real strong { color: var(--text-2); }
.t-stage { display: flex; justify-content: center; min-width: 0; }
.t-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: var(--s3); border-top: 1px solid var(--border); margin-top: var(--s2); }
.tour:not(.is-js) .t-nav, .tour:not(.is-js) .t-progress { display: none; }
.t-pos { color: var(--muted); font-size: var(--fs-14); font-weight: 600; text-align: center; }
.t-finish { display: none; }
.tour.at-end .t-finish { display: inline-flex; }
.tour.at-end [data-nav="next"] { display: none; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 8px; }

/* shared device: phone */
.t-phone { width: 300px; max-width: 100%; height: 590px; background: #04070d; border: 1px solid var(--border-strong); border-radius: 42px; padding: 10px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 6px #0c1322; }
.t-screen { position: relative; height: 100%; background: var(--surface); border-radius: 33px; overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.t-pad { padding: 12px 14px; }
.t-phone .m-head { padding: 18px 16px 12px; }

/* 1 lock screen + notification */
.lock { position: absolute; inset: 0; padding: 48px 14px 14px; text-align: center; background: radial-gradient(260px 200px at 50% 20%, rgba(91, 147, 255, 0.25), transparent 70%), linear-gradient(180deg, #0c1630, #060a14); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.lock-time { font-family: var(--font-display); font-size: 58px; font-weight: 700; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.lock-date { color: var(--text-2); margin: 6px 0 26px; }
.notif { display: block; width: 100%; text-align: left; font: inherit; color: var(--text-2); background: rgba(22, 32, 54, 0.92); border: 1px solid rgba(229, 50, 43, 0.5); border-radius: 18px; padding: 12px 14px; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); }
.notif:hover { border-color: #ff7a70; }
@media (prefers-reduced-motion: no-preference) { .active .notif { animation: notif-in 0.6s 0.3s var(--ease) both, ring 1.6s 1s ease-out 3; } }
@keyframes notif-in { from { opacity: 0; transform: translateY(-24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(229, 50, 43, 0.5); } 100% { box-shadow: 0 0 0 14px rgba(229, 50, 43, 0); } }
.n-app { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.n-app i { width: 16px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, #e5322b, #8f1b16); }
.n-app em { margin-left: auto; font-style: normal; text-transform: none; }
.notif b { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 17px; color: #fff; }
.notif span { display: block; }
.n-units { margin-top: 4px; font-size: 12px; color: #ffc879; }
.callview { position: absolute; inset: 0; padding: 22px 16px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s; }
.opened .lock { opacity: 0; transform: scale(1.04); pointer-events: none; }
.opened .callview { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.cv-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.cv-audio { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.cv-audio i { width: 46px; height: 14px; background: repeating-linear-gradient(90deg, #5b93ff 0 2px, transparent 2px 4px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.cv-type { display: block; font-family: var(--font-display); font-size: 24px; color: #fff; }
.cv-addr { display: block; color: var(--text-2); margin-bottom: 10px; }
.cv-notes { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px; font-size: 12px; }
.cv-next { display: block; margin-top: 18px; color: var(--accent-text); font-weight: 600; }

/* 2 respond */
.resp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.rb { font: inherit; font-weight: 700; font-size: 13px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px; padding: 14px 6px; cursor: pointer; min-height: 48px; }
.rb:hover { border-color: rgba(148, 163, 184, 0.5); }
.rb[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #04220f; }
.rb[data-val="station"][aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #04112e; }
.resp-list li.me { opacity: 0; transform: translateX(-8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); background: rgba(52, 199, 123, 0.08); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.resp-list li.me.on { opacity: 1; transform: none; }
.resp-list li.me span { color: #7de3ab; font-weight: 700; }
.t-toast { min-height: 40px; margin: 10px 0 0; font-size: 12px; color: #7de3ab; }

/* 3 board */
.t-tv { width: 100%; max-width: 600px; }
.t-tv .tv-screen { background: #060a14; border: 10px solid #04070d; outline: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 16px; font-size: 13px; color: var(--text-2); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85); }
.t-tv .tv-top { flex-wrap: wrap; gap: 8px; }
.units { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.unit { display: grid; grid-template-columns: minmax(0, 1fr) 150px 64px; align-items: center; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.unit b { color: #fff; font-size: 15px; }
.u-chip { justify-content: center; width: 100%; transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.u-eta { text-align: right; font-family: var(--mono); font-weight: 700; color: var(--text); }
@media (max-width: 480px) { .unit { grid-template-columns: minmax(0, 1fr) 112px 48px; padding: 10px; } .unit b { font-size: 13px; } }
.board-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.board-status { font-size: var(--fs-14); color: var(--muted); }

/* 4 map */
.t-map { width: 100%; max-width: 560px; }
.map-mock .lyr-vec { display: none; }
.map-mock.v-map .lyr-sat { display: none; }
.map-mock.v-map .lyr-vec { display: inline; }
.map-mock.v-sat .lyr-lbl { display: none; }
.map-mock [data-pt] { transition: stroke 0.2s var(--ease); }
.map-mock [data-pt].sel { stroke: #fff; stroke-width: 3.5; }
.map-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; }
.seg button { font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); background: transparent; border: 0; border-radius: 7px; padding: 8px 12px; cursor: pointer; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: #fff; }
.water { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.water button { text-align: left; font: inherit; font-size: 13px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.water button b { display: block; color: var(--text); font-weight: 600; }
.water button small { color: var(--muted); }
.water button[aria-pressed="true"] { border-color: rgba(229, 50, 43, 0.6); background: rgba(229, 50, 43, 0.08); }

/* 5 reports */
.t-browser { width: 100%; max-width: 620px; }
.rep { padding: 14px; }
.rep-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.rep-tabs [role="tab"] { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 8px 12px; cursor: pointer; min-height: 36px; }
.rep-tabs [role="tab"][aria-selected="true"] { color: #fff; background: var(--surface-2); border-color: var(--border-strong); }
.rep-import { margin-left: auto; min-height: 36px; padding: 6px 14px; font-size: 13px; }
.rep-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rep-body[hidden] { display: none; }
.rf { position: relative; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 10px; min-height: 58px; transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.rf.wide { grid-column: 1 / -1; }
.rf label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.rv { display: block; min-height: 1.4em; color: var(--text); font-size: 13px; font-weight: 500; }
.rf:not(.cad) .rv { color: var(--muted); font-style: italic; font-weight: 400; }
.from { position: absolute; right: 8px; top: 8px; font-style: normal; font-size: 10px; font-weight: 700; color: #9cbcff; background: rgba(91, 147, 255, 0.12); border: 1px solid rgba(91, 147, 255, 0.4); border-radius: 999px; padding: 1px 6px; opacity: 0; transition: opacity 0.3s var(--ease); }
.rf.filled { border-color: rgba(91, 147, 255, 0.55); background: rgba(91, 147, 255, 0.06); }
.rf.filled .from { opacity: 1; }
.rep-status { margin: 12px 0 0; font-size: 12px; color: var(--muted); min-height: 1.4em; }

/* 6 truck check */
.cab-photo { position: relative; height: 124px; border-radius: 12px; margin-bottom: 8px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(180deg, #2a3446, #1a2130); }
.cab-photo::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 9px); }
.cab-photo i { position: absolute; display: block; }
.cab-photo .s1, .cab-photo .s2 { left: 0; right: 0; height: 6px; background: linear-gradient(180deg, #9aa3b2, #59606d); }
.cab-photo .s1 { top: 60px; } .cab-photo .s2 { top: 112px; }
.cab-photo .saw { left: 18px; top: 14px; width: 46px; height: 46px; border-radius: 50%; border: 5px solid #d64a2a; background: radial-gradient(circle, #222 0 6px, #777 7px 100%); }
.cab-photo .saw::after { content: ""; position: absolute; left: 36px; top: 12px; width: 54px; height: 18px; background: #c43d22; border-radius: 4px; }
.cab-photo .blade { left: 150px; top: 18px; width: 40px; height: 40px; border-radius: 50%; border: 2px dashed rgba(255, 200, 121, 0.75); }
.ck-missing .cab-photo .blade { border-color: #ff7a70; box-shadow: 0 0 0 4px rgba(229, 50, 43, 0.25); }
.cab-photo .tools { left: 24px; top: 72px; width: 170px; height: 36px; background: linear-gradient(90deg, #444b57 0 30%, transparent 30% 36%, #b8862e 36% 46%, transparent 46% 52%, #5c6472 52% 100%); border-radius: 4px; }
.cab-photo span { position: absolute; left: 8px; bottom: 6px; font-size: 10px; color: var(--text-2); background: rgba(4, 7, 13, 0.75); padding: 2px 6px; border-radius: 4px; }
.ci-list { list-style: none; margin: 0; padding: 0; }
.ci { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.ci > span:first-child { min-width: 0; }
.seg-sm { padding: 2px; gap: 2px; border-radius: 8px; flex: none; }
.seg-sm button { font-size: 10px; font-weight: 700; padding: 6px 7px; min-height: 30px; border-radius: 6px; }
.seg-sm button[data-val="ok"][aria-pressed="true"] { background: rgba(52, 199, 123, 0.2); color: #7de3ab; }
.seg-sm button[data-val="low"][aria-pressed="true"] { background: rgba(243, 166, 59, 0.2); color: #ffc879; }
.seg-sm button[data-val="missing"][aria-pressed="true"] { background: rgba(229, 50, 43, 0.22); color: #ff9d95; }
.wo-btn { width: 100%; margin-top: 10px; min-height: 42px; }
.wo-card { margin-top: 10px; }

/* 7 schedule */
.shift-card { background: linear-gradient(135deg, rgba(52, 199, 123, 0.14), rgba(52, 199, 123, 0.02)); border: 1px solid rgba(52, 199, 123, 0.4); border-radius: 14px; padding: 12px; }
.shift-card small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7de3ab; }
.shift-card b { display: block; font-family: var(--font-display); font-size: 18px; color: #fff; }
.link-btn { font: inherit; font-size: 12px; font-weight: 600; color: var(--accent-text); background: none; border: 0; padding: 6px 0 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.trade-box { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: center; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(243, 166, 59, 0.08); border: 1px solid rgba(243, 166, 59, 0.35); font-size: 12px; }
.seat-open { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; margin-bottom: 6px; border-radius: 12px; border: 1px solid rgba(229, 50, 43, 0.5); background: rgba(229, 50, 43, 0.08); }
.seat-open b { display: block; color: var(--text); font-size: 13px; }
.seat-open small { color: var(--muted); font-size: 11px; }
.seat-open.filled { border-color: rgba(52, 199, 123, 0.5); background: rgba(52, 199, 123, 0.08); }
.seat-open.muted-seat { border-color: var(--border); background: var(--surface-2); }
.inbox li { font-size: 12px; }

@media (max-width: 400px) { .t-phone { height: 560px; border-radius: 36px; } .t-screen { border-radius: 28px; } .lock-time { font-size: 48px; } }
