/* =====================================================================
   rfid.zuckers.com - Robot pages (Map / Inventory / Areas)
   "Warehouse operations console": ink navy + safety orange accent,
   IBM Plex Sans / Plex Mono, instrument-style map.
   ===================================================================== */
:root {
    --ink: #0b1220;
    --ink-2: #1e293b;
    --navy: #13285a;
    --navy-2: #1d3b82;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --line: #e3e8ef;
    --line-2: #eef2f6;
    --paper: #f4f6f9;
    --card: #ffffff;
    --accent: #f97316;          /* safety orange: robot / live / found */
    --accent-soft: rgba(249,115,22,.12);
    --blue: #2563eb;
    --ok: #059669;
    --ok-soft: rgba(5,150,105,.1);
    --warn: #b45309;
    --warn-soft: rgba(245,158,11,.14);
    --bad: #dc2626;
    --bad-soft: rgba(220,38,38,.1);
    --radius: 10px;
    --shadow: 0 1px 2px rgba(11,18,32,.04), 0 8px 24px -16px rgba(11,18,32,.18);
    --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

body {
    font-family: var(--sans) !important;
    color: var(--ink);
    background:
        radial-gradient(circle at 1px 1px, rgba(19,40,90,.06) 1px, transparent 0) 0 0 / 22px 22px,
        var(--paper) !important;
}
main.container.wide { max-width: 1680px; }

/* ---------- Navigation ---------- */
.site-nav {
    background: var(--ink) !important;
    border-bottom: 3px solid var(--accent);
    padding: 0 1.25rem !important; min-height: 56px;
}
.site-nav .brand { font-weight: 600 !important; letter-spacing: -.01em !important; }
.site-nav .brand .ic { background: var(--accent) !important; color: #fff !important; border-radius: 7px !important; }
.site-nav .links { display: flex; gap: .15rem; flex-wrap: wrap; align-self: stretch; }
.site-nav .links a {
    color: #a8b3c7; text-decoration: none; font-size: .82rem; font-weight: 500;
    padding: 0 .85rem; display: flex; align-items: center; gap: .4rem;
    border-bottom: 3px solid transparent; margin-bottom: -3px; transition: color .15s, border-color .15s;
}
.site-nav .links a:hover { color: #fff; }
.site-nav .links a.active { color: #fff; border-bottom-color: #fff; }
.nav-robot {
    display: inline-flex; align-items: center; gap: .5rem; font-size: .74rem; color: #cbd5e1;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    padding: .3rem .7rem; border-radius: 999px; text-decoration: none; white-space: nowrap;
}
.nav-robot:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-robot b { font-family: var(--mono); font-weight: 600; color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); display: inline-block; flex: none; }
.dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.dot.scan { background: var(--accent); animation: blink 1.2s ease-in-out infinite; }
.dot.off { background: #64748b; }
@keyframes blink { 0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,.45); } 50% { box-shadow: 0 0 0 5px rgba(249,115,22,0); opacity: .55; } }

/* ---------- Page header ---------- */
.pg-head {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem; flex-wrap: wrap;
    margin: .5rem 0 1.1rem 0; animation: rise .35s ease both;
}
.pg-head .eyebrow {
    font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: .5rem;
}
.pg-head .eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.pg-head h1 { font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; margin: .25rem 0 .15rem 0; }
.pg-head .sub { color: var(--muted); font-size: .84rem; max-width: 720px; }

.kpis { display: flex; gap: .5rem; flex-wrap: wrap; }
.kpi {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: .55rem .9rem .6rem; min-width: 108px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line); }
.kpi .k { font-size: .62rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }
.kpi .v { font-family: var(--mono); font-size: 1.35rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .v small { font-size: .72rem; color: var(--muted); font-weight: 500; margin-left: .15rem; }
.kpi.accent::before { background: var(--accent); }
.kpi.ok::before { background: var(--ok); } .kpi.ok .v { color: var(--ok); }
.kpi.warn::before { background: #f59e0b; } .kpi.warn .v { color: var(--warn); }
.kpi.bad::before { background: var(--bad); } .kpi.bad .v { color: var(--bad); }

/* ---------- Layout + cards ---------- */
.rb-layout { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 1rem; align-items: start; }
.rb-layout.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .rb-layout, .rb-layout.split { grid-template-columns: 1fr; } }
.rb-side { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.rb-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); min-width: 0; animation: rise .4s ease both;
}
.rb-side .rb-card:nth-child(2) { animation-delay: .05s; } .rb-side .rb-card:nth-child(3) { animation-delay: .1s; }
.rb-side .rb-card:nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rb-card > .hd {
    display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line-2);
    font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ink-2);
}
.rb-card > .hd i { color: var(--muted-2); font-size: .85rem; }
.rb-card > .hd .right { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: .74rem; }
.rb-card > .bd { padding: .85rem 1rem; }
.rb-muted { color: var(--muted); font-size: .78rem; }
.hint { color: var(--muted); font-size: .76rem; line-height: 1.45; }

/* Form controls (over Bootstrap) */
.form-control, .form-select { font-family: var(--sans); border-color: #d5dce6; border-radius: 7px; font-size: .84rem; }
.form-control:focus, .form-select:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(29,59,130,.12); }
.form-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; color: var(--muted); margin-bottom: .2rem; }
.btn { font-family: var(--sans); font-weight: 500; border-radius: 7px; }
.btn-ink { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-ink:hover { background: var(--navy); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-accent:hover { background: #ea580c; color: #fff; }
.btn-line { background: #fff; color: var(--ink-2); border: 1px solid #d5dce6; }
.btn-line:hover { background: var(--paper); color: var(--ink); }
.btn-line.active { background: var(--accent-soft); border-color: var(--accent); color: #9a3412; }
.mono { font-family: var(--mono); }

/* ---------- Robot status ---------- */
.bot-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.bot-ic {
    width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: var(--paper); border: 1px solid var(--line); font-size: 1.25rem; color: var(--navy-2); flex: none;
}
.bot-ic.scan { background: var(--accent-soft); border-color: rgba(249,115,22,.35); color: var(--accent); }
.bot-name { font-family: var(--mono); font-weight: 600; font-size: .95rem; }
.bot-state { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem .75rem; font-size: .8rem; }
.kv .k { color: var(--muted); }
.kv .v { text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.kv .v a { color: #c2410c; font-weight: 600; text-decoration: none; }
.batt { display: flex; align-items: center; gap: .6rem; margin-top: .85rem; }
.batt .bar { flex: 1; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; border: 1px solid var(--line); }
.batt .bar span { display: block; height: 100%; background: var(--ok); transition: width .6s ease; }
.batt.low .bar span { background: var(--bad); } .batt.mid .bar span { background: #f59e0b; }
.batt .pct { font-family: var(--mono); font-size: .8rem; font-weight: 600; min-width: 3.2em; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.scan { background: var(--accent-soft); color: #c2410c; }
.chip.off { background: var(--line-2); color: var(--muted); }

/* ---------- Search + lists ---------- */
.search { display: flex; gap: .4rem; }
.search .form-control { font-family: var(--mono); font-size: .9rem; letter-spacing: .03em; }
.rb-list { display: flex; flex-direction: column; gap: .45rem; margin-top: .7rem; max-height: 360px; overflow: auto; }
.item {
    border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; font-size: .78rem; cursor: pointer;
    background: #fff; transition: border-color .15s, background .15s; position: relative;
}
.item:hover { border-color: #b9c6da; background: #fbfcfe; }
.item.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.item .top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.item .tag { font-family: var(--mono); font-weight: 600; font-size: .9rem; letter-spacing: .02em; }
.item .row2 { display: flex; align-items: baseline; gap: .45rem; color: var(--ink-2); margin-top: .3rem; }
.item .row2 .src { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 600; min-width: 46px; }
.item .row2 .when { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: .72rem; white-space: nowrap; }
.item .found { color: var(--ok); font-weight: 600; }
.item .wait { color: var(--warn); font-weight: 600; }
.icon-btn { border: 0; background: transparent; color: var(--muted-2); padding: .1rem .3rem; border-radius: 5px; line-height: 1; }
.icon-btn:hover { color: var(--ink); background: var(--line-2); }
.icon-btn.del:hover { color: var(--bad); background: var(--bad-soft); }
.empty { color: var(--muted); font-size: .78rem; padding: .6rem 0; text-align: center; }
.empty i { display: block; font-size: 1.4rem; opacity: .35; margin-bottom: .2rem; }

/* ---------- Map frame ---------- */
.mapcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; animation: rise .45s ease both; }
.mapbar { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.mapbar .name { font-weight: 600; font-size: .86rem; }
.mapbar .meta { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.mapbar .right { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.switch { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--ink-2); cursor: pointer; user-select: none; margin: 0; }
.switch input { accent-color: var(--accent); }
.rb-map { height: calc(100vh - 250px); min-height: 460px; }
@media (max-width: 1000px) { .rb-map { height: 62vh; min-height: 340px; } }

/* RobotMap internals */
.rm-host {
    position: relative; overflow: hidden; touch-action: none; user-select: none;
    background:
        linear-gradient(rgba(19,40,90,.045) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(19,40,90,.045) 1px, transparent 1px) 0 0 / 40px 40px,
        #e9edf3;
}
.rm-svg { width: 100%; height: 100%; display: block; cursor: grab; }
.rm-svg:active { cursor: grabbing; }
.rm-host.rm-drawing .rm-svg { cursor: crosshair; }
.rm-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); gap: .3rem; text-align: center; padding: 1rem; }
.rm-empty i { font-size: 2.4rem; opacity: .3; }
.rm-empty div { font-weight: 600; color: var(--ink-2); }

.rm-ctrl { position: absolute; top: .75rem; right: .75rem; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.rm-ctrl button { width: 34px; height: 34px; border: 0; background: #fff; color: var(--ink-2); font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.rm-ctrl button + button { border-top: 1px solid var(--line-2); }
.rm-ctrl button:hover { background: var(--paper); color: var(--ink); }
.rm-scale { position: absolute; right: .75rem; bottom: .75rem; font-family: var(--mono); font-size: .66rem; color: var(--ink-2);
    background: rgba(255,255,255,.9); padding: .25rem .5rem .35rem; border-radius: 6px; border: 1px solid var(--line); text-align: center; }
.rm-scale .bar { height: 5px; border: 1.5px solid var(--ink-2); border-top: 0; margin-top: 2px; }
.rm-coords { position: absolute; left: .75rem; top: .75rem; font-family: var(--mono); font-size: .68rem; color: var(--ink-2);
    background: rgba(255,255,255,.9); padding: .2rem .5rem; border-radius: 6px; border: 1px solid var(--line); pointer-events: none; }
.rm-legend { position: absolute; left: .75rem; bottom: .75rem; display: flex; gap: .75rem; flex-wrap: wrap; font-size: .68rem; color: var(--ink-2);
    background: rgba(255,255,255,.92); padding: .35rem .6rem; border-radius: 6px; border: 1px solid var(--line); max-width: calc(100% - 170px); }
.rm-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.rm-legend .sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rm-legend .sw.sq { border-radius: 2px; }

.rm-area rect { transition: fill-opacity .2s; }
.rm-area:hover rect { fill-opacity: .32; }
.rm-area.hl rect { stroke: var(--accent); fill: var(--accent); fill-opacity: .22; }
.rm-label text { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; fill: var(--ink); paint-order: stroke; stroke: rgba(255,255,255,.92); stroke-width: 3.5px; pointer-events: none; }
.rm-bot-body { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.rm-bot-dir { fill: var(--ink); stroke: #fff; stroke-width: 1.5; }
.rm-bot.offline .rm-bot-body { fill: #94a3b8; }
.rm-scan-ring { fill: rgba(249,115,22,.16); stroke: rgba(249,115,22,.55); stroke-width: 1.5; animation: rm-ring 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes rm-ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
.rm-pin { fill: var(--bad); stroke: #fff; stroke-width: 2; }
.rm-mark.found .rm-pin { fill: var(--ok); }
.rm-mark.dim .rm-pin { fill: #64748b; opacity: .8; }
.rm-pulse { fill: rgba(220,38,38,.2); animation: rm-ring 1.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.rm-mark.found .rm-pulse { fill: rgba(5,150,105,.22); }
.rm-mark-label { font-family: var(--mono); font-size: 11.5px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3.5px; }
.rm-draw-rect { fill: var(--accent-soft); stroke: var(--accent); stroke-dasharray: 6 4; }

/* ---------- Inventory ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.toolbar .form-control, .toolbar .form-select { width: auto; min-width: 150px; }
.inv-pick { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.inv-pick .form-select { max-width: 460px; font-family: var(--mono); font-size: .8rem; }
.tablewrap { max-height: calc(100vh - 400px); min-height: 320px; overflow: auto; border-top: 1px solid var(--line-2); }
.rb-table { width: 100%; font-size: .8rem; border-collapse: separate; border-spacing: 0; }
.rb-table th { position: sticky; top: 0; z-index: 1; background: #f8fafc; color: var(--muted); font-size: .62rem; text-transform: uppercase;
    letter-spacing: .09em; padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-weight: 600; }
.rb-table td { padding: .5rem .7rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.rb-table tbody tr { cursor: pointer; transition: background .1s; }
.rb-table tbody tr:hover td { background: #fafbfd; }
.rb-table tbody tr.sel td { background: #fff7ed; }
.rb-table tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.rb-table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rb-table th.num { text-align: right; }
.rb-table .tagc { font-family: var(--mono); font-weight: 600; letter-spacing: .02em; }
.rb-table .dimc { color: var(--muted); }
.st { font-family: var(--mono); font-size: .64rem; font-weight: 600; padding: .15rem .45rem; border-radius: 4px; letter-spacing: .06em; border: 1px solid transparent; }
.st.NEW { background: var(--ok-soft); color: var(--ok); border-color: rgba(5,150,105,.25); }
.st.MOVED { background: var(--warn-soft); color: var(--warn); border-color: rgba(180,83,9,.25); }
.st.MISSING { background: var(--bad-soft); color: var(--bad); border-color: rgba(220,38,38,.25); }
.st.SAME { background: var(--line-2); color: var(--muted); }
.heat-legend { display: inline-flex; align-items: center; gap: .4rem; font-size: .68rem; color: var(--muted); }
.heat-legend .ramp { width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(37,99,235,.08), rgba(37,99,235,.65)); border: 1px solid var(--line); }

/* ---------- Toasts ---------- */
.rb-toast { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1080; display: flex; flex-direction: column; gap: .5rem; }
.rb-toast .t {
    background: var(--ink); color: #fff; border-radius: 10px; padding: .8rem 1rem; box-shadow: 0 16px 40px -12px rgba(0,0,0,.45);
    font-size: .84rem; max-width: 360px; cursor: pointer; border-left: 4px solid var(--ok); animation: rise .3s ease both;
    display: flex; gap: .65rem; align-items: flex-start;
}
.rb-toast .t i { color: #34d399; font-size: 1.1rem; }
.rb-toast .t b { font-family: var(--mono); }
.rb-toast .t small { display: block; color: #94a3b8; margin-top: .15rem; }

/* Admin lock */
.lock { display: flex; gap: .4rem; }
.color-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.1); flex: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Nav additions (login / control) ---------- */
.site-nav .nav-sep { width: 1px; align-self: center; height: 22px; background: rgba(255,255,255,.14); margin: 0 .35rem; }
.nav-right { display: flex; align-items: center; gap: .5rem; }
.nav-user { color: #cbd5e1; text-decoration: none; font-size: .76rem; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem; border-radius: 7px; }
.nav-user:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Login ---------- */
.login-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 400px; }
.login-card .bd { padding: 1.6rem 1.6rem 1.4rem; }
.eyebrow-sm { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.login-title { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; margin: .2rem 0 .4rem; }

/* ---------- Control ---------- */
.ctl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.ctl-grid .btn { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .5rem; font-size: .82rem; }
.btn-danger-line { background: #fff; color: var(--bad); border: 1px solid rgba(220,38,38,.35); }
.btn-danger-line:hover { background: var(--bad-soft); color: var(--bad); }
.btn-ok-line { background: #fff; color: var(--ok); border: 1px solid rgba(5,150,105,.35); }
.btn-ok-line:hover { background: var(--ok-soft); color: var(--ok); }
.scan-live { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border-radius: 8px; background: var(--accent-soft); color: #9a3412; font-size: .8rem; font-weight: 600; margin-bottom: .6rem; }
.cmd-st { font-family: var(--mono); font-size: .62rem; font-weight: 600; padding: .12rem .4rem; border-radius: 4px; letter-spacing: .05em; }
.cmd-st.Pending { background: var(--line-2); color: var(--muted); }
.cmd-st.Running { background: var(--accent-soft); color: #c2410c; }
.cmd-st.Done { background: var(--ok-soft); color: var(--ok); }
.cmd-st.Failed, .cmd-st.Expired { background: var(--bad-soft); color: var(--bad); }
.mode-banner { position: absolute; top: .75rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .76rem;
    padding: .4rem .8rem; border-radius: 999px; box-shadow: var(--shadow); z-index: 3; display: none; gap: .5rem; align-items: center; }
.mode-banner.on { display: inline-flex; }
.mode-banner button { background: transparent; border: 0; color: #fdba74; font-weight: 600; font-size: .74rem; }

/* ---------- Routes ---------- */
.steps { display: flex; flex-direction: column; gap: .3rem; max-height: 330px; overflow: auto; margin-top: .5rem; }
.step { display: grid; grid-template-columns: 22px minmax(86px, 1fr) 116px 54px auto; gap: .35rem; align-items: center; font-size: .76rem;
    border: 1px solid var(--line); border-radius: 7px; padding: .3rem .4rem; background: #fff; }
.step.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.step .n { font-family: var(--mono); font-weight: 600; text-align: center; color: var(--muted); }
.step .xy { font-family: var(--mono); font-size: .72rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step .form-select, .step .form-control { font-size: .74rem; padding: .15rem .35rem; min-height: 0; height: 26px; }
.step .acts { display: flex; gap: 0; }
.route-status { font-size: .74rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.rm-route path.leg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rm-route path.leg.travel { stroke: #64748b; stroke-dasharray: 6 5; }
.rm-route path.leg.scan { stroke: var(--accent); }
.rm-route .pt circle { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.rm-route .pt.sel circle { fill: var(--accent); stroke: #fff; }
.rm-route .pt text { font-family: var(--mono); font-size: 10px; font-weight: 600; fill: var(--ink); pointer-events: none; }
.rm-route .pt.sel text { fill: #fff; }
.rm-pos circle { fill: #1d3b82; stroke: #fff; stroke-width: 1.5; }
.rm-pos text { font-family: var(--sans); font-size: 10px; fill: #1d3b82; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.gen-box { border: 1px dashed #c8d2e0; border-radius: 8px; padding: .65rem .75rem; background: #fbfcfe; margin-top: .6rem; }
.gen-areas { max-height: 150px; overflow: auto; display: flex; flex-direction: column; gap: .2rem; margin: .4rem 0; }
.gen-areas label { display: flex; align-items: center; gap: .45rem; font-size: .78rem; }

/* ---------- Schedules ---------- */
.days { display: flex; gap: .25rem; flex-wrap: wrap; }
.days label { display: inline-flex; }
.days input { display: none; }
.days span { font-family: var(--mono); font-size: .72rem; font-weight: 600; padding: .3rem .55rem; border-radius: 6px; border: 1px solid #d5dce6; color: var(--muted); cursor: pointer; user-select: none; }
.days input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.rb-toast .t.bad { border-left-color: var(--bad); }
.rb-toast .t.bad i { color: #f87171; }
.rb-toast .t.wait { border-left-color: var(--accent); }
.rb-toast .t.wait i { color: #fdba74; }

.search .btn, .ctl-grid .btn, .mapbar .btn { white-space: nowrap; }
.search .btn { display: inline-flex; align-items: center; gap: .3rem; }
