/* ================= YardX app v2 ================= */
.a-root{min-height:100vh;display:flex;flex-direction:column}
.a-wrap{width:100%;max-width:1320px;margin:0 auto;padding-inline:clamp(16px,3vw,36px)}
.a-head{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;background:color-mix(in srgb,var(--bg) 97%,transparent);box-shadow:inset 0 -1px 0 var(--line)}
.a-head .a-wrap{height:64px;display:flex;align-items:center;gap:16px}
.a-ws{display:flex;align-items:center;gap:10px;min-width:0;padding-left:16px;margin-left:4px;box-shadow:inset 1px 0 0 var(--line)}
.a-ws-mark{width:30px;height:30px;border-radius:7px;background:var(--panel-3);box-shadow:inset 0 0 0 1px var(--line-2);display:flex;align-items:center;justify-content:center;font-family:var(--font-mono);font-size:10.5px;font-weight:600;flex:none}
.a-ws-name{display:flex;flex-direction:column;min-width:0}
.a-ws b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a-ws span{font-size:12px;color:var(--dim);white-space:nowrap}
.a-head-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.a-sync{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:999px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);font-family:var(--font-mono);font-size:11.5px;color:var(--muted);white-space:nowrap}
.a-sync.off .live-dot{background:var(--dim);animation:none}
.a-avatar{width:32px;height:32px;border-radius:50%;background:var(--fg);color:var(--bg);display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:700;flex:none}
.a-icon-btn{width:36px;height:36px;border-radius:var(--r-inner);border:0;background:transparent;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s,color .2s;flex:none}
.a-icon-btn:hover{background:var(--panel-2);color:var(--fg)}
.a-icon-btn svg{width:18px;height:18px}
@media (max-width:640px){.a-ws span,.a-sync .long{display:none}.a-ws{padding-left:12px}}
main.a-main{flex:1;padding-block:8px 72px}
.a-crumbs{display:flex;align-items:center;gap:10px;min-height:28px;margin-top:20px;font-size:14px;color:var(--dim)}
.a-crumb-btn{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:var(--muted);font-size:14px;font-weight:600;cursor:pointer;padding:4px 0}
.a-crumb-btn:hover{color:var(--fg)}
.a-crumb-btn svg{width:16px;height:16px}
.a-crumbs .cur{color:var(--fg);font-weight:600}

.btn-sm{height:40px;padding:0 16px;font-size:14px}
.btn svg.lead{width:17px;height:17px}

/* home */
.a-home-top{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:16px 0 24px}
.a-home-top h1{font-size:clamp(34px,4.6vw,52px);line-height:1.02}
.a-home-top p{color:var(--muted);font-size:16px;max-width:52ch;margin-top:8px}
.a-home-actions{display:flex;gap:10px;flex-wrap:wrap}
.a-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}
.a-kpi{border-radius:var(--r-panel);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);padding:16px 18px;display:flex;flex-direction:column;gap:6px;min-width:0}
.a-kpi span{font-size:13px;color:var(--dim)}
.a-kpi b{font-family:var(--font-mono);font-size:clamp(24px,2.8vw,32px);font-weight:600;font-variant-numeric:tabular-nums;line-height:1}
.a-kpi.warn b{color:var(--accent)}
@media (max-width:720px){.a-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.a-filterbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.a-facs{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
@media (max-width:360px){.a-facs{grid-template-columns:minmax(0,1fr)}}
.a-fac{position:relative;text-align:left;border:0;cursor:pointer;color:var(--fg);border-radius:var(--r-panel);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);padding:14px;display:flex;flex-direction:column;gap:12px;min-width:0;transition:transform .45s var(--ease),box-shadow .35s}
.a-fac:hover{transform:translateY(-4px);box-shadow:inset 0 0 0 1px var(--line-2),0 24px 50px -30px color-mix(in srgb,var(--shadow) 80%,transparent)}
.a-fac .thumb{display:block;width:100%;height:auto;border-radius:var(--r-inner);background:var(--field);pointer-events:none}
.a-fac .body{display:flex;flex-direction:column;gap:8px;padding:2px 6px 6px}
.a-fac .top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.a-fac h2{font-size:24px;line-height:1.05;min-width:0}
.a-fac .addr{font-size:13px;color:var(--dim)}
.a-fac .nums{display:flex;gap:14px;flex-wrap:wrap;font-family:var(--font-mono);font-size:12px;color:var(--dim)}
.a-fac .nums b{color:var(--fg);font-weight:600}
.a-fac .nums .w b{color:var(--accent)}
.a-type{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:10.5px;font-weight:600;letter-spacing:.06em;color:var(--muted);box-shadow:inset 0 0 0 1px var(--line-2);padding:4px 8px;border-radius:999px;flex:none;text-transform:uppercase}
.a-type.ex{color:var(--accent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 50%,transparent)}
.a-new{border:0;cursor:pointer;border-radius:var(--r-panel);background:transparent;box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:260px;font-size:15px;font-weight:600;transition:color .2s,box-shadow .2s}
.a-new:hover{color:var(--fg);box-shadow:inset 0 0 0 1.5px var(--fg)}
.a-new svg{width:28px;height:28px}

/* segmented */
.a-seg{position:relative;display:inline-flex;padding:3px;border-radius:var(--r-inner);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);max-width:100%;overflow-x:auto}
.a-seg-ind{position:absolute;top:3px;bottom:3px;left:3px;border-radius:6px;background:var(--fg);transition:transform .45s var(--ease),width .45s var(--ease)}
.a-seg button{position:relative;z-index:1;border:0;background:none;height:36px;padding:0 14px;font-size:13.5px;font-weight:600;color:var(--muted);cursor:pointer;border-radius:6px;transition:color .3s;white-space:nowrap}
.a-seg button[aria-pressed="true"]{color:var(--accent-ink)}

/* facility header + tabs */
.a-fhead{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:12px 0 18px}
.a-fhead h1{font-size:clamp(32px,4.4vw,50px);line-height:1}
.a-fhead .meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.a-addr-btn{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 11px;border-radius:var(--r-inner);border:0;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);color:var(--muted);font-size:13px;cursor:pointer;max-width:100%}
.a-addr-btn:hover{color:var(--fg)}
.a-addr-btn svg{width:15px;height:15px;flex:none}
.a-addr-btn span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a-tabs{display:flex;gap:4px;box-shadow:inset 0 -1px 0 var(--line);margin-bottom:20px;overflow-x:auto;position:relative}
.a-tab{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px;border:0;background:none;color:var(--muted);font-size:14.5px;font-weight:600;cursor:pointer;white-space:nowrap;transition:color .2s}
.a-tab svg{width:17px;height:17px}
.a-tab:hover{color:var(--fg)}
.a-tab[aria-selected="true"]{color:var(--fg)}
.a-tab-ind{position:absolute;bottom:0;left:0;height:2px;background:var(--accent);transition:transform .45s var(--ease),width .45s var(--ease)}

/* live dashboard */
.lv{display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);gap:16px;align-items:start}
@media (max-width:1000px){.lv{grid-template-columns:minmax(0,1fr)}}
.lv-board{border-radius:var(--r-panel);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);padding:18px;display:flex;flex-direction:column;gap:12px;min-width:0}
.lv-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.lv-head .t{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.lv-head .name{font-weight:700;font-size:16px}
.lv-head .sub{font-family:var(--font-mono);font-size:12px;color:var(--dim)}
.lv-live{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-mono);font-size:12px}
.lv-docks{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.lv-dock{position:relative;overflow:hidden;border:0;text-align:left;cursor:pointer;border-radius:var(--r-inner);padding:10px 12px;background:transparent;box-shadow:inset 0 0 0 1px var(--line);display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--fg);min-height:44px;transition:box-shadow .3s,transform .35s var(--ease)}
.lv-dock:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px var(--fg)}
.lv-dock .fill{position:absolute;inset:0;background:var(--accent-soft);transform-origin:left;transform:scaleX(0);transition:transform .9s var(--ease)}
.lv-dock.busy{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 60%,transparent)}
.lv-dock.busy .fill{transform:scaleX(1)}
.lv-dock.empty-trl .fill{background:color-mix(in srgb,var(--fg) 6%,transparent)}
.lv-dock.empty-trl{box-shadow:inset 0 0 0 1px var(--line-3)}
.lv-dock span{position:relative;font-family:var(--font-mono);font-size:11.5px}
.lv-dock .dl{color:var(--dim)}
.lv-dock .dv{display:flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
.lv-dock .dv b{font-weight:600;font-size:12px}
.lv-dock .dv i{font-style:normal;font-size:10.5px;color:var(--muted)}
.lv-dock.busy .dv i{color:var(--accent)}
.lv-lane{position:relative;overflow:hidden;height:40px;border-radius:var(--r-inner);background:var(--field);box-shadow:inset 0 0 0 1px var(--panel-3)}
.lv-lane::before{content:"";position:absolute;left:0;right:0;top:50%;height:2px;margin-top:-1px;background-image:linear-gradient(90deg,var(--line-2) 0 18px,transparent 18px 34px);background-size:34px 2px}
.lv-lane .row{position:absolute;inset:0;display:flex;align-items:center;animation:lvdrive 9s cubic-bezier(.55,0,.25,1) infinite}
.lv-lane i{display:block;height:18px;border-radius:3px}
.lv-lane .t1{width:62px;background:var(--line-2);box-shadow:inset 0 0 0 1px var(--line-3)}
.lv-lane .t2{width:17px;margin-left:3px;border-radius:3px 6px 6px 3px;background:var(--accent)}
@keyframes lvdrive{0%{transform:translateX(-14%)}42%{transform:translateX(44%)}58%{transform:translateX(44%)}100%{transform:translateX(104%)}}
.lv-spots{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;max-height:430px;overflow-y:auto;padding:2px}
.lv-spot{border:0;text-align:left;cursor:pointer;border-radius:var(--r-inner);padding:9px 10px;min-height:64px;display:flex;flex-direction:column;justify-content:space-between;gap:3px;font-family:var(--font-mono);color:var(--fg);background:transparent;box-shadow:inset 0 0 0 1px var(--line);transition:background-color .6s,box-shadow .4s,transform .35s var(--ease)}
.lv-spot:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px var(--fg)}
.lv-spot .n{font-size:10px;opacity:.8}
.lv-spot .u{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lv-spot .s{font-size:10.5px;color:var(--dim)}
.lv-spot.vacant{color:var(--dim)}
.lv-spot.occupied{background:var(--panel-2);box-shadow:inset 0 0 0 1px var(--tile)}
.lv-spot.reserved{background:var(--accent-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 75%,transparent)}
.lv-spot.reserved .s,.lv-spot.blk .s{color:var(--accent)}
.lv-spot.blk{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 75%,transparent)}
.lv-spot.flash{animation:lvflash 1s var(--ease)}
@keyframes lvflash{0%{transform:scale(.9);box-shadow:inset 0 0 0 2px var(--accent)}100%{transform:none}}
.lv-foot{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:10px}
@media (max-width:640px){.lv-foot{grid-template-columns:minmax(0,1fr)}}
.lv-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 6px;background:var(--field);border-radius:var(--r-inner);padding:14px}
.lv-stats div{display:flex;flex-direction:column;gap:4px}
.lv-stats span{font-size:11.5px;color:var(--dim)}
.lv-stats b{font-family:var(--font-mono);font-size:22px;font-weight:600;font-variant-numeric:tabular-nums}
.lv-stats .acc{color:var(--accent)}
.lv-log{background:var(--field);border-radius:var(--r-inner);padding:12px 14px;min-height:140px;max-height:220px;overflow-y:auto;display:flex;flex-direction:column;gap:6px}
.lv-log .it{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:baseline;font-family:var(--font-mono)}
.lv-log time{font-size:11px;color:var(--dim)}
.lv-log span{font-size:12.5px}
.lv-log .who{color:var(--muted)}
.lv-log .sim{font-size:9.5px;font-weight:700;color:var(--dim);box-shadow:inset 0 0 0 1px var(--line-2);border-radius:4px;padding:1px 4px;margin-left:6px;vertical-align:1px}
.lv-log .new{animation:lvnew .6s var(--ease) both}
@keyframes lvnew{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.lv-side{display:flex;flex-direction:column;gap:16px;min-width:0}
.lv-card{border-radius:var(--r-panel);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);padding:16px;display:flex;flex-direction:column;gap:12px}
.lv-card h3{font-size:18px;font-stretch:112%;letter-spacing:-.01em;display:flex;align-items:center;gap:8px}
.lv-card h3 svg{width:18px;height:18px;color:var(--accent)}
.lv-card .sub{font-size:12.5px;color:var(--dim);margin-top:-6px}
.lv-list{display:flex;flex-direction:column;gap:8px}
.lv-row{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:var(--r-inner);background:var(--field)}
.lv-row .ic{width:28px;height:28px;border-radius:7px;background:var(--panel-3);display:flex;align-items:center;justify-content:center;flex:none;font-size:11px;font-weight:700}
.lv-row .ic svg{width:16px;height:16px;color:var(--muted)}
.lv-row .tx{display:flex;flex-direction:column;min-width:0}
.lv-row .tx b{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lv-row .tx span{font-size:12px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lv-row .me{margin-left:auto;font-family:var(--font-mono);font-size:10px;color:var(--dim)}
.lv-empty{font-size:13px;color:var(--dim);padding:6px 2px}
.lv-mini{display:block;width:100%;height:auto;border-radius:var(--r-inner);background:var(--field)}
.a-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13.5px;color:var(--muted);cursor:pointer}
.a-switch input{appearance:none;-webkit-appearance:none;width:38px;height:22px;border-radius:999px;background:var(--line-2);position:relative;cursor:pointer;transition:background-color .25s;flex:none;margin:0}
.a-switch input::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--fg);transition:transform .35s var(--ease)}
.a-switch input:checked{background:var(--accent)}
.a-switch input:checked::after{transform:translateX(16px)}

/* map tab */
.mp{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.mp-stage{position:relative;border-radius:var(--r-panel);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);padding:12px}
.mp-svg{display:block;width:100%;height:auto;border-radius:var(--r-inner);touch-action:manipulation}
.mp-svg .m-spot,.mp-svg .m-dock{cursor:pointer}
.mp-svg .m-spot:hover rect:first-child{stroke:var(--fg)}
.mp-chip{position:absolute;left:24px;top:24px;display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:color-mix(in srgb,var(--bg) 88%,transparent);box-shadow:inset 0 0 0 1px var(--line-2);font-family:var(--font-mono);font-size:12px;max-width:calc(100% - 48px)}
.mp-chip b{color:var(--accent);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:var(--dim)}
.mp-legend span{display:inline-flex;align-items:center;gap:7px}
.mp-legend i{display:inline-block;width:16px;height:10px;border-radius:2px}
.mp-empty{padding:40px 20px;text-align:center;color:var(--dim);display:flex;flex-direction:column;align-items:center;gap:14px}

/* spots tab */
.sp-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.a-search{position:relative;flex:1 1 220px;min-width:0}
.a-search svg{position:absolute;left:12px;top:50%;width:17px;height:17px;margin-top:-8.5px;color:var(--dim);pointer-events:none}
.a-search input{width:100%;height:42px;border-radius:var(--r-inner);border:0;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);padding:0 12px 0 38px;font-size:15px}
.a-search input::placeholder{color:var(--dim)}
.sp-wrap{border-radius:var(--r-panel);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);padding:clamp(14px,2vw,22px);display:flex;flex-direction:column;gap:18px}
.sp-band{display:flex;flex-direction:column;gap:10px}
.sp-band-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sp-band-head h3{font-size:17px;font-stretch:112%;letter-spacing:-.01em}
.sp-band-head .sw{width:12px;height:12px;border-radius:3px;flex:none}
.sp-band-head .cnt{font-family:var(--font-mono);font-size:11.5px;color:var(--dim)}
.sp-note{font-size:13px;color:var(--dim);margin-top:-4px}
.sp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.sp-empty{padding:26px 6px;color:var(--dim);font-size:14px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}

/* editor */
.ed{display:grid;grid-template-columns:56px minmax(0,1fr) 300px;gap:12px;align-items:start}
@media (max-width:1060px){.ed{grid-template-columns:minmax(0,1fr)}.ed-tools{flex-direction:row!important;flex-wrap:wrap;position:static!important}.ed-tools .sep{width:1px!important;height:auto!important}}
.ed-tools{position:sticky;top:84px;display:flex;flex-direction:column;gap:4px;padding:6px;border-radius:var(--r-panel);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line)}
.ed-tool{width:44px;height:44px;border:0;border-radius:var(--r-inner);background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s,color .2s}
.ed-tool svg{width:20px;height:20px}
.ed-tool:hover{background:var(--panel-2);color:var(--fg)}
.ed-tool[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.ed-tools .sep{height:1px;width:auto;background:var(--line);margin:4px 2px}
.ed-canvas{position:relative;border-radius:var(--r-panel);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);padding:10px;min-width:0}
.ed-svg{position:relative;display:block;width:100%;height:auto;border-radius:var(--r-inner);touch-action:none;user-select:none;-webkit-user-select:none}
.ed-stage{position:relative;border-radius:var(--r-inner);background:var(--bg)}
.ed-photo-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:var(--r-inner);pointer-events:none;will-change:transform}
.ed-svg.t-select{cursor:default}
.ed-svg:not(.t-select){cursor:crosshair}
.ed-svg .m-handle{cursor:grab}
.ed-svg.t-select [data-k]{cursor:move}
.ed-hint{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:13px;color:var(--muted);min-height:36px;flex-wrap:wrap}
.ed-hint b{color:var(--fg)}
.ed-side{display:flex;flex-direction:column;gap:12px;min-width:0}
.ed-card{border-radius:var(--r-panel);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);padding:16px;display:flex;flex-direction:column;gap:14px}
.ed-card h3{font-size:17px;font-stretch:112%;letter-spacing:-.01em}
.ed-actions{display:flex;gap:8px}
.ed-actions .btn{flex:1}
.ed-count{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;font-family:var(--font-mono);font-size:12px;color:var(--dim)}
.ed-count b{color:var(--fg);font-weight:600}
.ed-sec{display:flex;flex-direction:column;gap:6px}
.ed-sec-row{display:flex;align-items:center;gap:8px}
.ed-sec-row input[type=color]{width:34px;height:34px;border:0;padding:0;background:none;border-radius:6px;cursor:pointer;flex:none}
.ed-sec-row input[type=text]{flex:1;min-width:0;height:36px!important;font-size:14px!important}
.ed-mini{display:flex;gap:8px;flex-wrap:wrap}
.ed-mini .btn{height:36px;padding:0 12px;font-size:13px}

/* fields, overlays (shared) */
.a-field{display:flex;flex-direction:column;gap:8px}
.a-field label,.a-field .lbl{font-size:13.5px;font-weight:600}
.a-field input[type=text],.a-field input[type=date],.a-field input[type=time],.a-field input[type=email],.a-field input[type=password],.a-field input[type=number],.a-field select{width:100%;height:46px;border-radius:var(--r-inner);border:0;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);padding:0 14px;font-size:15px;transition:box-shadow .2s}
.a-field input::placeholder{color:var(--dim)}
.a-field input:focus,.a-field select:focus{box-shadow:inset 0 0 0 1px var(--fg)}
.a-field input[aria-invalid=true],.a-field select[aria-invalid=true]{box-shadow:inset 0 0 0 1px var(--error)}
.a-field .help{font-size:12.5px;color:var(--dim)}
.a-field .err{font-size:13px;color:var(--error)}
/* required fields: an orange * on the label, and an orange edge while they are still empty */
.a-field.req > label::after{content:" *";color:var(--accent);font-weight:700}
.a-field.req input:placeholder-shown:not(:focus),.a-field.req textarea:placeholder-shown:not(:focus),.a-field.req select:invalid:not(:focus){box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--accent) 60%,transparent)}
.a-field.req input[aria-invalid=true],.a-field.req textarea[aria-invalid=true],.a-field.req select[aria-invalid=true]{box-shadow:inset 0 0 0 1.5px var(--error)}
.a-field-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
@media (max-width:420px){.a-field-row{grid-template-columns:minmax(0,1fr)}}
.a-check{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:var(--r-inner);background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);font-size:13.5px;line-height:1.45;cursor:pointer}
.a-check.warn{background:var(--accent-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 40%,transparent)}
.a-check input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--accent);flex:none}
/* no backdrop blur: fading a full-screen blur in and out made opening any window stutter on many graphics cards */
.a-scrim{position:fixed;inset:0;z-index:60;background:color-mix(in srgb,var(--bg-deep) 74%,transparent);opacity:0;pointer-events:none;transition:opacity .25s var(--ease);will-change:opacity}
.a-scrim.open{opacity:1;pointer-events:auto}
.a-modal{position:fixed;left:50%;top:50%;z-index:61;will-change:transform,opacity;width:min(560px,calc(100vw - 32px));max-height:min(90vh,820px);overflow-y:auto;border-radius:var(--r-panel);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line-2),0 40px 90px -30px color-mix(in srgb,var(--shadow) 80%,transparent);transform:translate(-50%,-46%) scale(.96);opacity:0;pointer-events:none;transition:transform .5s var(--ease),opacity .3s}
.a-modal.open{transform:translate(-50%,-50%);opacity:1;pointer-events:auto}
.a-modal-head{padding:24px 24px 6px;display:flex;flex-direction:column;gap:6px}
.a-modal-head h2{font-size:28px;line-height:1.05}
.a-modal-head p{font-size:13.5px;color:var(--dim)}
.a-modal-body{padding:14px 24px;display:flex;flex-direction:column;gap:14px}
.a-modal-foot{padding:10px 24px 24px;display:flex;gap:10px}
.a-modal-foot .btn{flex:1}
.a-rule{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:var(--r-inner);background:var(--field);font-size:14px;line-height:1.5;color:var(--muted)}
.a-rule b{color:var(--fg);font-weight:600}
.a-rule svg{width:18px;height:18px;flex:none;margin-top:1px;color:var(--muted)}
.a-rule.warn{background:var(--accent-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 35%,transparent)}
.a-rule.warn svg{color:var(--accent)}
.a-steps{display:flex;gap:6px}
.a-steps i{flex:1;height:3px;border-radius:2px;background:var(--line-2);transition:background-color .3s}
.a-steps i.on{background:var(--accent)}
.a-choice{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media (max-width:520px){.a-choice{grid-template-columns:minmax(0,1fr)}}
.a-choice button{border:0;cursor:pointer;text-align:left;border-radius:var(--r-inner);background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);padding:14px;display:flex;flex-direction:column;gap:8px;min-height:130px;transition:box-shadow .2s,transform .35s var(--ease)}
.a-choice button:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px var(--fg)}
.a-choice button[aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--accent)}
.a-choice svg{width:22px;height:22px;color:var(--accent)}
.a-choice b{font-size:14.5px}
.a-choice span{font-size:12.5px;color:var(--dim);line-height:1.4}
.a-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:22px;border-radius:var(--r-inner);box-shadow:inset 0 0 0 1.5px var(--line-2);background:var(--field);color:var(--muted);font-size:14px;text-align:center;cursor:pointer}
.a-drop svg{width:24px;height:24px;color:var(--accent)}
.a-drop img{max-height:160px;border-radius:6px}
.a-panel{position:fixed;top:0;right:0;bottom:0;z-index:61;width:min(440px,100vw);background:var(--panel);box-shadow:inset 1px 0 0 var(--line-2),-40px 0 90px -40px color-mix(in srgb,var(--shadow) 80%,transparent);display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);transform:translateX(104%);transition:transform .55s var(--ease)}
.a-panel.open{transform:none}
@media (max-width:640px){.a-panel{top:auto;left:0;width:100%;max-height:92vh;border-radius:18px 18px 0 0;box-shadow:inset 0 1px 0 var(--line-2);transform:translateY(104%)}.a-panel.open{transform:none}}
.a-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 22px 16px;box-shadow:inset 0 -1px 0 var(--line)}
.a-panel-head h2{font-size:24px;line-height:1.05}
.a-panel-head p{font-size:13px;color:var(--dim);margin-top:4px}
.a-panel-body{padding:20px 22px;overflow-y:auto;display:flex;flex-direction:column;gap:16px;flex:1}
.a-panel-foot{padding:16px 22px;box-shadow:inset 0 1px 0 var(--line);display:flex;gap:10px}
.a-panel-foot .btn{flex:1}
.a-detail{border-radius:var(--r-inner);background:var(--field);box-shadow:inset 0 0 0 1px var(--line);padding:6px 16px}
.a-detail div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;font-size:14px}
.a-detail div + div{box-shadow:inset 0 1px 0 var(--line)}
.a-detail .k{color:var(--dim)}
.a-detail .v{font-weight:600;text-align:right;min-width:0;overflow-wrap:anywhere}
.a-detail .v.warn{color:var(--accent)}
.a-box{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:var(--r-inner);box-shadow:inset 0 0 0 1px var(--line-2)}
.a-danger{background:transparent;color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.a-danger:hover{background:var(--accent);color:var(--accent-ink);transform:translateY(-2px)}
.a-hist-h{font-size:13.5px;font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.a-hist{position:relative;display:flex;flex-direction:column;gap:14px;padding-left:20px}
.a-hist::before{content:"";position:absolute;left:4px;top:6px;bottom:6px;width:2px;background:var(--line)}
.a-hist-item{position:relative;display:flex;flex-direction:column;gap:3px;font-size:13.5px}
.a-hist-item::before{content:"";position:absolute;left:-20px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--fg);box-shadow:0 0 0 3px var(--panel)}
.a-hist-item.vac::before{background:var(--panel);box-shadow:inset 0 0 0 2px var(--dim),0 0 0 3px var(--panel)}
.a-hist-item b{font-weight:600}
.a-hist-item span{font-size:12.5px;color:var(--dim)}
.a-muted{font-size:13.5px;color:var(--dim)}
.a-toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:80;display:flex;align-items:center;gap:10px;padding:12px 18px;border-radius:999px;background:var(--fg);color:var(--bg);font-size:14px;font-weight:600;box-shadow:0 20px 40px -16px color-mix(in srgb,var(--shadow) 70%,transparent);transform:translate(-50%,140%);opacity:0;transition:transform .5s var(--ease),opacity .3s;max-width:calc(100vw - 32px)}
.a-toast.show{transform:translate(-50%,0);opacity:1}
.a-toast svg{width:18px;height:18px;color:var(--accent);flex:none}
/* whole map */
.a-filterbar .btn svg.lead{width:17px;height:17px}
.nw-view{position:relative;height:max(480px,calc(100vh - 330px));border-radius:var(--r-panel);background:var(--bg-deep);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden;touch-action:none;cursor:grab;background-image:linear-gradient(color-mix(in srgb,var(--fg) 3%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--fg) 3%,transparent) 1px,transparent 1px);background-size:40px 40px}
.nw-view.drag{cursor:grabbing}
.nw-view:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.nw-world{position:absolute;left:0;top:0;transform-origin:0 0}
.nw-roads,.nw-trucks{position:absolute;left:0;top:0;pointer-events:none}
.nw-fac{position:absolute;border-radius:18px;background:var(--field);box-shadow:0 0 0 3px var(--panel-2),0 60px 120px -30px color-mix(in srgb,var(--shadow) 90%,transparent);cursor:zoom-in}
.nw-svg{display:block;width:100%;height:100%;border-radius:18px}
.nw-head{position:absolute;left:0;right:0;bottom:100%;margin-bottom:16px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.nw-name{display:inline-flex;align-items:center;gap:14px;border:0;background:none;color:var(--fg);font-family:var(--font-display);font-weight:800;font-stretch:118%;letter-spacing:-.03em;font-size:52px;cursor:pointer;padding:0;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:8px;transition:text-decoration-color .2s,color .2s}
.nw-name:hover{text-decoration-color:var(--accent)}
.nw-name span{font-family:var(--font-mono);font-weight:600;font-size:20px;letter-spacing:.12em;color:var(--dim);padding:6px 12px;border-radius:999px;box-shadow:inset 0 0 0 2px var(--line-2);text-transform:uppercase}
.nw-cnt{display:flex;gap:22px;padding:12px 18px;border-radius:14px;background:color-mix(in srgb,var(--bg) 92%,transparent);box-shadow:inset 0 0 0 2px var(--line-2);font-family:var(--font-mono);font-size:22px;color:var(--dim)}
.nw-cnt b{color:var(--fg);font-weight:700}
.nw-cnt .w b{color:var(--accent)}
.nw-ctrl{position:absolute;right:14px;top:14px;display:flex;flex-direction:column;gap:4px;padding:4px;border-radius:10px;background:color-mix(in srgb,var(--panel) 92%,transparent);box-shadow:inset 0 0 0 1px var(--line-2)}
.nw-ctrl svg{width:18px;height:18px}
.nw-legend{position:absolute;left:14px;bottom:14px;display:flex;gap:14px;flex-wrap:wrap;align-items:center;padding:8px 12px;border-radius:10px;background:color-mix(in srgb,var(--panel) 92%,transparent);font-size:12.5px;color:var(--dim);max-width:calc(100% - 28px)}
.nw-legend span{display:inline-flex;align-items:center;gap:7px}
.nw-legend .tdot{width:9px;height:9px;border-radius:50%;background:var(--accent)}
.nw-empty{padding:40px;text-align:center;color:var(--dim)}
/* ================= login ================= */
.l-view{min-height:100vh;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr)}
@media (max-width:900px){.l-view{grid-template-columns:minmax(0,1fr)}.l-art{display:none!important}}
.l-form-col{display:flex;flex-direction:column;padding:clamp(20px,4vw,48px) clamp(16px,5vw,64px)}
.l-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.l-back{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:600;color:var(--muted);text-decoration:none}
.l-back:hover{color:var(--fg)}
.l-back svg{width:16px;height:16px}
.l-box{width:100%;max-width:400px;margin:auto 0;padding-block:48px;display:flex;flex-direction:column;gap:22px}
.l-box h1{font-size:clamp(36px,4.4vw,52px);line-height:1.02}
.l-box > p{color:var(--muted);font-size:16px;margin-top:-8px}
.l-form{display:flex;flex-direction:column;gap:18px}
.l-pass{position:relative}
.l-pass input{padding-right:48px!important}
.l-eye{position:absolute;right:4px;top:4px;width:38px;height:38px;border:0;background:none;color:var(--dim);border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.l-eye:hover{color:var(--fg)}
.l-eye svg{width:18px;height:18px}
.l-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px}
.l-row label{display:inline-flex;align-items:center;gap:9px;cursor:pointer;color:var(--muted)}
.l-row input{width:17px;height:17px;margin:0;accent-color:var(--accent)}
.l-link{border:0;background:none;padding:0;color:var(--muted);font-size:14px;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.l-link:hover{color:var(--fg)}
.l-note{font-size:13.5px;color:var(--muted);padding:10px 12px;border-radius:var(--r-inner);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line)}
.l-submit{position:relative;overflow:hidden;width:100%}
.l-submit .l-prog{position:absolute;left:0;bottom:0;height:3px;width:100%;background:var(--accent-ink);opacity:.35;transform-origin:left;transform:scaleX(0)}
.l-submit.busy .l-prog{animation:lprog 1s var(--ease) forwards}
@keyframes lprog{to{transform:scaleX(1)}}
.l-demo{font-size:13px;color:var(--dim)}
.l-art{position:relative;overflow:hidden;background:var(--panel);box-shadow:inset 1px 0 0 var(--line);display:flex;flex-direction:column;justify-content:flex-end;padding:clamp(28px,4vw,56px);gap:28px}
.l-grid{position:absolute;inset:48px 48px 220px;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:1fr;gap:10px;-webkit-mask-image:linear-gradient(180deg,#000 55%,transparent);mask-image:linear-gradient(180deg,#000 55%,transparent)}
.l-grid i{border-radius:6px;box-shadow:inset 0 0 0 1px var(--line-2);transition:background-color 1.2s,box-shadow 1.2s}
.l-grid i.o{background:var(--tile);box-shadow:inset 0 0 0 1px var(--line-2)}
.l-grid i.b{background:var(--accent);box-shadow:none}
.l-art-copy{position:relative;display:flex;flex-direction:column;gap:12px}
.l-art-copy h2{font-size:clamp(30px,3.4vw,44px);line-height:1.04;max-width:16ch}
.l-art-copy p{color:var(--muted);max-width:40ch}
.l-leave{animation:lleave .24s var(--ease) forwards}
@keyframes lleave{to{opacity:0;transform:scale(.97)}}
/* ================= v3 additions: search, alerts, moves, admin, edit mode, check-in ================= */
.a-kpis{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
@media (max-width:1100px){.a-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:720px){.a-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.a-kpi-btn{border:0;text-align:left;color:inherit;font:inherit;cursor:pointer;transition:box-shadow .25s,transform .35s var(--ease)}
.a-kpi-btn:hover{box-shadow:inset 0 0 0 1px var(--line-3);transform:translateY(-2px)}
.a-home-actions{display:flex;gap:8px;flex-wrap:wrap}
.a-linkbtn{border:0;background:none;padding:6px 0;color:var(--muted);font:600 13.5px/1.2 var(--font-body);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.a-linkbtn:hover{color:var(--fg)}

/* trailer search */
.a-find{position:relative;flex:1 1 320px;max-width:420px;margin-left:8px}
.a-find > svg{position:absolute;left:12px;top:50%;width:17px;height:17px;transform:translateY(-50%);color:var(--dim);pointer-events:none}
.a-find input{width:100%;height:40px;border:0;border-radius:999px;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);padding:0 40px 0 38px;font:500 14.5px/1 var(--font-body);transition:box-shadow .2s}
.a-find input::placeholder{color:var(--dim)}
.a-find input:focus{outline:none;box-shadow:inset 0 0 0 2px var(--accent)}
.a-find kbd{position:absolute;right:10px;top:50%;transform:translateY(-50%);font:600 11px/1 var(--font-mono);color:var(--dim);padding:4px 7px;border-radius:5px;box-shadow:inset 0 0 0 1px var(--line-2)}
.a-find input:focus + kbd{opacity:0}
.a-find-list{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:60;background:var(--panel);border-radius:var(--r-panel);box-shadow:inset 0 0 0 1px var(--line-2),0 30px 60px -24px color-mix(in srgb,var(--shadow) 80%,transparent);padding:6px;max-height:min(420px,70vh);overflow:auto}
.a-find-it{display:flex;align-items:center;gap:12px;width:100%;padding:10px;border:0;border-radius:10px;background:none;color:var(--fg);text-align:left;cursor:pointer;font:inherit}
.a-find-it[aria-selected="true"],.a-find-it:hover{background:var(--panel-3)}
.a-find-it .ic{width:34px;height:34px;border-radius:8px;background:var(--panel-2);display:flex;align-items:center;justify-content:center;flex:none;color:var(--accent)}
.a-find-it .ic svg{width:18px;height:18px}
.a-find-it .tx{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.a-find-it .tx b{font-family:var(--font-mono);font-size:14px;font-weight:600}
.a-find-it .tx b mark{background:var(--accent-soft);color:var(--accent);border-radius:3px}
.a-find-it .tx span{font-size:13px;color:var(--muted)}
.a-find-it .tx em{font-style:normal;font-size:12px;color:var(--dim)}
.a-find-it .go{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:var(--dim)}
.a-find-it .go svg{width:14px;height:14px}
.a-find-it[aria-selected="true"] .go{color:var(--accent)}
.a-find-none{padding:14px;display:flex;flex-direction:column;gap:4px;font-size:13.5px;color:var(--muted)}
.a-find-none b{color:var(--fg)}
.a-find-mob{display:none}
@media (max-width:860px){
  .a-find{display:none;position:absolute;left:12px;right:12px;top:12px;max-width:none;margin:0;z-index:40}
  body.find-open .a-find{display:block}
  .a-find-mob{display:inline-flex}
  .a-sync{display:none}
}
@media (max-width:520px){.a-ws{display:none}#aEditBtn{display:none}}

/* header extras */
.a-bell{position:relative}
.a-badge{position:absolute;top:1px;right:0;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font:700 10.5px/17px var(--font-mono);text-align:center}
.a-icon-btn[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent)}
.a-head{background:color-mix(in srgb,var(--bg) 90%,transparent)}
.a-editbar,.a-viewas{position:sticky;top:64px;z-index:29;background:var(--accent);color:var(--accent-ink)}
.a-viewas{background:var(--fg);color:var(--bg)}
.a-editbar .a-wrap,.a-viewas .a-wrap{display:flex;align-items:center;gap:12px;min-height:52px;font-size:14px}
.a-editbar svg,.a-viewas svg{width:18px;height:18px;flex:none}
.a-editbar span,.a-viewas span{flex:1}
.a-editbar .btn-p{background:var(--accent-ink);color:var(--accent)}
.a-viewas .btn-s{color:var(--bg);box-shadow:inset 0 0 0 1px currentColor}

/* edit page mode */
[data-hidden]{display:none!important}
body.edit-mode [data-hidden]{display:revert!important;opacity:.35}
body.edit-mode .a-kpis[data-hidden],body.edit-mode .lv-stats[data-hidden]{display:grid!important}
body.edit-mode .lv-card[data-hidden]{display:flex!important}
body.edit-mode [data-edit]{outline:1.5px dashed color-mix(in srgb,var(--accent) 70%,transparent);outline-offset:3px;border-radius:3px;cursor:text;min-width:1ch;display:inline-block}
body.edit-mode [data-edit]:focus{outline:2px solid var(--accent);background:var(--accent-soft)}
[data-hide]{position:relative}
.eh-btn{position:absolute;top:6px;right:6px;z-index:5;width:30px;height:30px;border-radius:8px;background:var(--fg);color:var(--bg);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 6px 16px -6px color-mix(in srgb,var(--shadow) 70%,transparent)}
.eh-btn svg{width:16px;height:16px}
[data-hidden] > .eh-btn{background:var(--accent);color:var(--accent-ink);opacity:1}

/* live side: actions + moves */
.lv-actions{display:flex;gap:8px;flex-wrap:wrap}
.lv-actions .btn{flex:1}
.a-tab .a-tab-n{font-style:normal;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font:700 11px/18px var(--font-mono);text-align:center;margin-left:2px}

/* move cards */
.mv{border-radius:12px;background:var(--panel-2);box-shadow:inset 0 0 0 1px var(--line);padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.mv.doing{box-shadow:inset 0 0 0 1.5px var(--accent)}
.mv.done{opacity:.7}
.mv-top{display:flex;align-items:center;gap:8px}
.mv-top b{font-family:var(--font-mono);font-size:14px}
.mv-auto{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:700;color:var(--accent);background:var(--accent-soft);border-radius:999px;padding:3px 8px}
.mv-auto svg{width:12px;height:12px}
.mv-age{margin-left:auto;font-size:12px;color:var(--dim)}
.mv-route{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);flex-wrap:wrap}
.mv-route svg{width:16px;height:16px;color:var(--dim)}
.mv-route .to{color:var(--fg);font-weight:600}
.mv-why{font-size:12.5px;color:var(--dim);line-height:1.45}
.mv-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mv-who{font-size:12.5px;color:var(--dim);flex:1}
.mv-btns{display:flex;gap:6px;align-items:center}
.mv-btns .btn{height:34px;padding:0 12px;font-size:13.5px}
.mv.compact{padding:10px 12px}
.mv-bar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.mv-bar h2{font-size:26px}
.mv-bar p{max-width:60ch;margin-top:6px}
.mv-actions{display:flex;gap:8px;flex-wrap:wrap}
.mv-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}
@media (max-width:900px){.mv-cols{grid-template-columns:minmax(0,1fr)}}
.mv-col{border-radius:var(--r-panel);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);padding:14px;display:flex;flex-direction:column;gap:10px;min-height:120px}
.mv-col h3{font-size:15px;display:flex;align-items:center;gap:8px;letter-spacing:-.01em}
.mv-col h3 span{font:600 12px/1 var(--font-mono);color:var(--dim);padding:4px 7px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line-2)}
.om-fac{font-size:12px;font-weight:600;color:var(--dim);text-transform:uppercase;letter-spacing:.06em;margin-top:6px}

/* suggestion list (check-in, new move, invite roles) */
.sg-list{display:flex;flex-direction:column;gap:8px}
.sg{position:relative;display:flex;flex-direction:column;gap:3px;text-align:left;padding:12px 14px;border:0;border-radius:10px;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);font:inherit;cursor:pointer;transition:box-shadow .2s,background-color .2s}
.sg:hover{box-shadow:inset 0 0 0 1px var(--line-3)}
.sg[aria-checked="true"]{box-shadow:inset 0 0 0 2px var(--accent);background:var(--accent-soft)}
.sg b{font-size:15px}
.sg span{font-size:13px;color:var(--muted)}
.sg i{position:absolute;right:12px;top:12px;font-style:normal;font:700 11px/1 var(--font-body);color:var(--accent-ink);background:var(--accent);padding:4px 8px;border-radius:999px}
.a-sugg-tag{font-style:normal;display:inline-flex;align-items:center;gap:4px;margin-left:8px;font-size:11.5px;color:var(--accent)}
.a-sugg-tag svg{width:12px;height:12px}

/* alerts */
.al{display:flex;gap:12px;padding:14px;border-radius:12px;background:var(--panel-2);box-shadow:inset 0 0 0 1px var(--line)}
.al.hi{box-shadow:inset 3px 0 0 var(--accent),inset 0 0 0 1px var(--line)}
.al-ic{width:34px;height:34px;border-radius:9px;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;flex:none}
.al-ic svg{width:18px;height:18px}
.al-tx{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.al-tx b{font-size:14.5px}
.al-tx > span{font-size:13px;color:var(--muted)}
.al-act{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:8px}
.al-act .btn{height:34px;padding:0 12px;font-size:13.5px}
.al-clear{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:30px 10px;color:var(--muted);font-size:14px}
.al-clear svg{width:36px;height:36px;color:var(--accent)}
.al-clear b{color:var(--fg);font-size:16px}

/* map focus (trailer search result) */
.m-pulse .dot{fill:var(--accent)}
.m-pulse .p1,.m-pulse .p2{fill:none;stroke:var(--accent);stroke-width:3;transform-box:fill-box;transform-origin:center;animation:yxring 1.8s var(--ease) infinite}
.m-pulse .p2{animation-delay:.9s}
@keyframes yxring{0%{transform:scale(.4);opacity:1}100%{transform:scale(3.2);opacity:0}}
.mp-focus{position:absolute;left:24px;right:24px;bottom:24px;display:flex;align-items:center;gap:12px;padding:10px 10px 10px 12px;border-radius:14px;background:color-mix(in srgb,var(--bg) 90%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:inset 0 0 0 1px var(--line-2),0 20px 40px -20px color-mix(in srgb,var(--shadow) 80%,transparent);max-width:520px}
.mp-focus .ic{width:36px;height:36px;border-radius:9px;background:var(--accent);color:var(--accent-ink);display:flex;align-items:center;justify-content:center;flex:none}
.mp-focus .ic svg{width:19px;height:19px}
.mp-focus .tx{display:flex;flex-direction:column;min-width:0;flex:1}
.mp-focus .tx b{font-family:var(--font-mono);font-size:15px}
.mp-focus .tx span{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:600px){.mp-focus{left:12px;right:12px;bottom:12px}}

/* admin portal */
.stg-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:22px}
.stg-head h1{font-size:clamp(32px,4vw,46px)}
.stg-head p{margin-top:6px}
.stg-grid{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start}
@media (max-width:900px){.stg-grid{grid-template-columns:minmax(0,1fr)}}
.stg-nav{display:flex;flex-direction:column;gap:4px;position:sticky;top:84px}
@media (max-width:900px){.stg-nav{position:static;flex-direction:row;overflow-x:auto;padding-bottom:4px}}
.stg-nav button{display:flex;align-items:center;gap:10px;padding:11px 12px;border:0;border-radius:10px;background:none;color:var(--muted);font:600 14.5px/1 var(--font-body);cursor:pointer;text-align:left;white-space:nowrap}
.stg-nav button svg{width:18px;height:18px;flex:none}
.stg-nav button:hover{background:var(--panel-2);color:var(--fg)}
.stg-nav button[aria-current="page"]{background:var(--panel-3);color:var(--fg);box-shadow:inset 3px 0 0 var(--accent)}
.stg-body{display:flex;flex-direction:column;gap:16px;min-width:0}
.stg-sec{border-radius:var(--r-panel);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);padding:20px;display:flex;flex-direction:column;gap:14px}
.stg-sec h2{font-size:21px;letter-spacing:-.015em}
.stg-sec-h{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.stg-sec-h p{margin-top:4px}
.stg-table{display:flex;flex-direction:column;border-radius:10px;box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.stg-table .tr{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1.3fr) minmax(0,1.1fr) auto;gap:12px;align-items:center;padding:12px 14px;box-shadow:inset 0 -1px 0 var(--line);font-size:14px}
.stg-table .tr:last-child{box-shadow:none}
.stg-table .st{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.stg-table .gd{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;color:var(--dim);white-space:nowrap}
.stg-table .gd svg{width:12px;height:12px}
.stg-table .gd.ok{color:var(--ok,#2f9e6b)}
.stg-table .gd.mid{color:var(--warn,#d08a1e)}
.stg-table .gdl{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.stg-table .gd-redo{background:none;border:0;padding:0;font:inherit;font-size:11.5px;color:var(--muted);text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.stg-table .gd-redo:hover{color:var(--accent)}
.stg-table .gd-redo:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
.stg-table .th{font-size:12px;font-weight:600;color:var(--dim);text-transform:uppercase;letter-spacing:.06em;background:var(--panel-2)}
.stg-table .nm{display:flex;align-items:center;gap:10px;min-width:0}
.stg-table .nm > span{display:flex;flex-direction:column;min-width:0}
.stg-table .nm b{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stg-table .nm b em{font-style:normal;font-size:11px;color:var(--accent);margin-left:4px}
.stg-table .nm small{font-size:12.5px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stg-table .av{font-style:normal;width:32px;height:32px;border-radius:50%;background:var(--panel-3);box-shadow:inset 0 0 0 1px var(--line-2);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex:none}
.stg-table select,.sp-toolbar select{height:36px;border:0;border-radius:8px;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);padding:0 10px;font:500 14px/1 var(--font-body);max-width:100%}
.stg-table .acts{display:flex;gap:6px;justify-content:flex-end}
.pill{display:inline-flex;font-size:12px;font-weight:600;padding:4px 9px;border-radius:999px;background:var(--panel-3);color:var(--muted)}
.pill.warn{background:var(--accent-soft);color:var(--accent)}
@media (max-width:700px){.stg-table .tr{grid-template-columns:minmax(0,1fr) auto}.stg-table .tr > :nth-child(3){display:none}.stg-table .th{display:none}.stg-table .acts{grid-column:1 / -1;justify-content:flex-start}}
.stg-matrix{display:flex;flex-direction:column;border-radius:10px;box-shadow:inset 0 0 0 1px var(--line);overflow-x:auto}
.stg-matrix .tr{display:grid;grid-template-columns:minmax(170px,1.6fr) repeat(5,minmax(70px,1fr));gap:8px;align-items:center;padding:10px 14px;box-shadow:inset 0 -1px 0 var(--line);font-size:13.5px;min-width:560px}
.stg-matrix .th{font-size:12px;font-weight:600;color:var(--dim);background:var(--panel-2)}
.stg-matrix .y svg{width:18px;height:18px;color:var(--accent)}
.stg-matrix .n i{font-style:normal;color:var(--dim)}
.stg-prev{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.stg-tog{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;box-shadow:inset 0 -1px 0 var(--line);cursor:pointer}
.stg-tog:last-child{box-shadow:none}
.stg-tog > span:first-child{display:flex;flex-direction:column;gap:3px}
.stg-tog b{font-size:15px}
.stg-tog small{font-size:13px;color:var(--muted);line-height:1.45;max-width:62ch}
.stg-modes{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));max-width:620px}
.stg-custom{display:flex;flex-direction:column;gap:12px}
.stg-custom .a-field-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.stg-cur{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted)}
.stg-cur .sw{width:90px;height:22px;border-radius:6px;display:flex;overflow:hidden}
.stg-cur .sw i{flex:1}

/* QR */
.qr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.qr-card{border-radius:var(--r-panel);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);padding:16px;display:flex;flex-direction:column;gap:12px}
.qr-code{border-radius:10px;overflow:hidden;background:#fff;padding:6px}
.qr-code svg{display:block;width:100%;height:auto}
.qr-tx{display:flex;flex-direction:column;gap:3px}
.qr-tx b{font-size:16px}
.qr-tx span{font-size:13px;color:var(--muted)}
.qr-tx code{font:12px/1.4 var(--font-mono);color:var(--dim);word-break:break-all}
.qr-miss{padding:40px 10px;text-align:center;color:#555;font-size:13px}

/* report */
.rp-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
@media (max-width:900px){.rp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rp-kpis > div{border-radius:10px;background:var(--panel-2);padding:14px;display:flex;flex-direction:column;gap:5px}
.rp-kpis span{font-size:12.5px;color:var(--dim)}
.rp-kpis b{font:600 26px/1 var(--font-mono)}
.rp-kpis small{font-size:12px;color:var(--dim)}
.rp-kpis .warn b{color:var(--accent)}
.rp-table .tr{grid-template-columns:minmax(0,1.6fr) minmax(0,1.3fr) repeat(5,minmax(0,.7fr))}
.rp-table .w{color:var(--accent);font-weight:700}
.rp-bar{display:inline-block;width:60px;height:6px;border-radius:3px;background:var(--line-2);margin-right:8px;vertical-align:middle;overflow:hidden}
.rp-bar i{display:block;height:100%;background:var(--accent)}
@media (max-width:700px){.rp-table .tr{grid-template-columns:minmax(0,1fr) auto auto}.rp-table .tr > :nth-child(n+4){display:none}}

/* activity */
.ac-list{display:flex;flex-direction:column}
.ac-it{display:grid;grid-template-columns:120px 130px minmax(0,1fr) auto;gap:12px;padding:10px 4px;box-shadow:inset 0 -1px 0 var(--line);font-size:13.5px;align-items:baseline}
.ac-it time{font-family:var(--font-mono);font-size:12px;color:var(--dim)}
.ac-fac{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-by{font-size:12.5px;color:var(--dim)}
@media (max-width:700px){.ac-it{grid-template-columns:minmax(0,1fr)}.ac-fac{order:-1}}

/* driver self check-in */
.ck-view{min-height:100vh;background:var(--bg);padding:16px;display:flex;flex-direction:column;align-items:center}
.ck-top{width:100%;max-width:460px;display:flex;align-items:center;justify-content:space-between;padding:6px 0 18px}
.ck-card{width:100%;max-width:460px;border-radius:20px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);padding:24px 20px;display:flex;flex-direction:column;gap:14px}
.ck-kick{font:600 12px/1 var(--font-mono);color:var(--accent);text-transform:uppercase;letter-spacing:.08em}
.ck-card h1{font-size:clamp(32px,9vw,44px);line-height:1.02}
.ck-card h1 em{font-style:normal;color:var(--accent)}
.ck-card > p{color:var(--muted)}
.ck-form{display:flex;flex-direction:column;gap:16px}
.ck-form input{height:52px!important;font-size:18px!important}
.ck-go{width:100%;height:56px;font-size:17px}
.ck-map{width:100%;height:auto;border-radius:12px;background:var(--field)}
.ck-full{color:var(--accent);font-weight:600}

/* print: QR sheet and report */
@media print{
  body.printing *{visibility:hidden!important}
  body.printing .print-me,body.printing .print-me *{visibility:visible!important}
  body.printing .print-me{position:fixed;inset:0;margin:auto;width:420px;height:max-content;box-shadow:none;background:#fff;color:#000}
  body.printing .print-me .ed-mini{display:none}
  body.printing-report .a-head,body.printing-report .stg-nav,body.printing-report .stg-head,body.printing-report .a-crumbs,body.printing-report .ed-mini{display:none!important}
  body.printing-report .stg-grid{display:block}
}

/* text on a --fg background follows the theme */
.a-seg button[aria-pressed="true"]{color:var(--bg)}
.copy-btn{color:var(--bg)}
.copy-btn.copied{color:var(--accent-ink)}

/* ================= whole map: live activity tracker ================= */
.nw-wrap{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;align-items:stretch}
@media (max-width:1000px){.nw-wrap{grid-template-columns:minmax(0,1fr)}.nw-feed{max-height:520px}}
.nw-feed{border-radius:var(--r-panel);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);display:flex;flex-direction:column;min-height:0;height:max(480px,calc(100vh - 330px));overflow:hidden}
.nf-head{padding:16px 16px 10px;display:flex;justify-content:space-between;gap:10px}
.nf-head h3{font-size:18px;display:flex;align-items:center;gap:9px;letter-spacing:-.01em}
.nf-head p{font-size:12.5px;color:var(--dim);margin-top:3px}
.nf-stats{display:flex;flex-direction:column;gap:4px;padding:0 10px 10px;box-shadow:inset 0 -1px 0 var(--line)}
.nf-yard{display:flex;align-items:center;gap:10px;padding:8px 8px;border:0;border-radius:9px;background:none;color:var(--fg);text-align:left;cursor:pointer;font:inherit}
.nf-yard:hover{background:var(--panel-2)}
.nf-yard > i{width:9px;height:9px;border-radius:50%;flex:none}
.nf-yard span{display:flex;flex-direction:column;min-width:0;flex:1}
.nf-yard b{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nf-yard small{font:12px/1.3 var(--font-mono);color:var(--dim)}
.nf-yard em{font:600 15px/1 var(--font-mono);font-style:normal;color:var(--fg)}
.nf-yard em small{font-size:11px;color:var(--dim)}
.nf-filter{display:flex;gap:6px;padding:10px 12px;overflow-x:auto;box-shadow:inset 0 -1px 0 var(--line);flex:none}
.nf-filter button{display:inline-flex;align-items:center;gap:6px;flex:none;height:30px;padding:0 11px;border:0;border-radius:999px;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--muted);font:600 12.5px/1 var(--font-body);cursor:pointer;white-space:nowrap}
.nf-filter button i{width:8px;height:8px;border-radius:50%}
.nf-filter button[aria-pressed="true"]{background:var(--fg);color:var(--bg);box-shadow:none}
.nf-list{flex:1;overflow-y:auto;padding:6px 8px 10px;min-height:0}
.nf-it{display:flex;gap:10px;width:100%;padding:10px 8px;border:0;border-radius:10px;background:none;color:var(--fg);text-align:left;cursor:pointer;font:inherit}
.nf-it:hover{background:var(--panel-2)}
.nf-it.new{animation:nfnew 1.2s var(--ease)}
@keyframes nfnew{0%{background:var(--accent-soft);transform:translateY(-8px);opacity:0}30%{opacity:1;transform:none}100%{background:transparent}}
.nf-ic{width:30px;height:30px;border-radius:8px;background:var(--panel-3);display:flex;align-items:center;justify-content:center;flex:none}
.nf-ic svg{width:16px;height:16px}
.nf-tx{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.nf-top{display:flex;justify-content:space-between;gap:8px;font-size:12px}
.nf-top b{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nf-top time{font-family:var(--font-mono);color:var(--dim);flex:none}
.nf-msg{font-size:13.5px;line-height:1.35}
.nf-tx em{font-style:normal;font-size:11.5px;color:var(--dim)}
.nf-tx em.nf-sim{font:600 10.5px/1 var(--font-mono);color:var(--dim);letter-spacing:.08em}
.nw-fac.nw-ping::after{content:"";position:absolute;inset:-6px;border-radius:18px;box-shadow:0 0 0 3px var(--accent);animation:nwping 1.4s var(--ease) forwards;pointer-events:none}
@keyframes nwping{0%{opacity:1;transform:scale(.98)}100%{opacity:0;transform:scale(1.04)}}
.nw-bubble{position:absolute;left:50%;top:70px;transform:translateX(-50%);max-width:88%;padding:12px 24px;border-radius:999px;background:var(--bg);border:5px solid var(--accent);color:var(--fg);font:700 34px/1.15 var(--font-body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 18px 40px -16px color-mix(in srgb,var(--shadow) 80%,transparent);animation:nwbub .5s var(--ease);pointer-events:none;z-index:3}
.nw-bubble.out{opacity:0;transform:translate(-50%,-14px);transition:opacity .45s,transform .45s}
@keyframes nwbub{from{opacity:0;transform:translate(-50%,14px) scale(.9)}}
/* ---------- view-as bar ---------- */
.a-viewbar{position:sticky;top:64px;z-index:28;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:inset 0 -1px 0 var(--line)}
.a-viewbar .a-wrap{display:flex;align-items:center;gap:12px;min-height:50px}
.vb-l{display:inline-flex;align-items:center;gap:7px;font:600 12px/1 var(--font-mono);text-transform:uppercase;letter-spacing:.08em;color:var(--dim);flex:none}
.vb-l svg{width:16px;height:16px}
.vb-seg{display:flex;gap:4px;padding:3px;border-radius:999px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);overflow-x:auto;scrollbar-width:none;min-width:0;flex:0 1 auto}
.vb-seg::-webkit-scrollbar{display:none}
.vb-seg button{flex:none;height:34px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:500 13.5px/1 var(--font-sans,inherit);cursor:pointer;white-space:nowrap;transition:background-color .2s,color .2s}
.vb-seg button:hover{color:var(--fg)}
.vb-seg button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
.vb-hint{font-size:13px;color:var(--dim);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:900px){.vb-hint{display:none}}
@media (max-width:560px){.vb-l span,.vb-l{font-size:0;gap:0}.vb-l svg{width:18px;height:18px}.a-viewbar .a-wrap{gap:8px}}
.edit-mode .a-viewbar{top:116px}
.stg-matrix .tr{grid-template-columns:minmax(170px,1.6fr) repeat(6,minmax(64px,1fr));min-width:640px}

/* ---------- phone stage ---------- */
.vw-stage{display:grid;grid-template-columns:minmax(0,1fr) 410px;gap:48px;align-items:start;padding:8px 0 40px}
.vw-side{position:sticky;top:150px;display:flex;flex-direction:column;gap:16px;max-width:520px}
.vw-side h1{font-size:clamp(30px,3.4vw,46px);line-height:1.04}
.vw-pts{list-style:none;display:flex;flex-direction:column;gap:10px;margin:6px 0 0;padding:0}
.vw-pts li{display:flex;gap:10px;align-items:center;font-size:15px}
.vw-pts svg{width:18px;height:18px;color:var(--accent);flex:none}
.vw-phone{width:410px;border-radius:44px;padding:12px;background:var(--bg-deep);box-shadow:0 0 0 1px var(--line-2),0 40px 90px -30px color-mix(in srgb,var(--shadow) 60%,transparent);position:relative}
.vw-phone::before{content:"";position:absolute;top:22px;left:50%;width:96px;height:26px;margin-left:-48px;border-radius:20px;background:var(--bg-deep);z-index:2}
.vw-screen{border-radius:34px;background:var(--bg);height:min(780px,calc(100vh - 190px));min-height:560px;overflow-y:auto;overscroll-behavior:contain;padding:52px 14px 20px;scrollbar-width:thin}
@media (max-width:900px){
  .vw-stage{grid-template-columns:1fr;gap:20px}
  .vw-side{position:static}
  .vw-side .vw-pts,.vw-side p{display:none}
  .vw-side h1{font-size:26px}
  .vw-phone{width:100%;max-width:460px;margin:0 auto;padding:0;border-radius:0;background:transparent;box-shadow:none}
  .vw-phone::before{display:none}
  .vw-screen{height:auto;min-height:0;overflow:visible;padding:0;border-radius:0;background:transparent}
}

/* ---------- driver flow ---------- */
.vw-ck.ck-view{min-height:0;padding:0;background:transparent}
.vw-ck .ck-top,.vw-ck .ck-card{max-width:none}
.vw-scanbar{display:flex;align-items:center;gap:8px;padding:8px 10px;margin-bottom:12px;border-radius:12px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);font-size:13px;color:var(--dim)}
.vw-scanbar > svg{width:18px;height:18px;color:var(--accent);flex:none}
.vw-scanbar .vw-fac{flex:1;min-width:0}
.vw-fac{display:inline-flex;align-items:center;gap:6px;min-width:0;position:relative}
.vw-fac svg{width:16px;height:16px;color:var(--dim);flex:none}
.vw-fac select{min-width:0;max-width:100%;height:36px;border:0;border-radius:10px;background:var(--field);color:var(--fg);box-shadow:inset 0 0 0 1px var(--line-2);padding:0 10px;font:inherit;font-size:14px}
.ck-fac{font-size:13px;color:var(--dim);max-width:60%;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dv-int{display:flex;flex-direction:column;gap:10px}
.dv-int button{display:flex;align-items:center;gap:14px;width:100%;padding:14px;border:0;border-radius:14px;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);font:inherit;text-align:left;cursor:pointer;transition:box-shadow .2s,transform .2s,background-color .2s}
.dv-int button:hover{box-shadow:inset 0 0 0 1.5px var(--accent)}
.dv-int button:active{transform:scale(.985)}
.dv-int button:first-child{background:color-mix(in srgb,var(--accent) 10%,transparent);box-shadow:inset 0 0 0 1.5px var(--accent)}
.dv-ic{width:44px;height:44px;border-radius:12px;background:var(--panel-3);display:inline-flex;align-items:center;justify-content:center;flex:none}
.dv-int button:first-child .dv-ic{background:var(--accent);color:var(--accent-ink)}
.dv-ic svg{width:22px;height:22px}
.dv-tx{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.dv-tx b{font-size:16.5px}
.dv-tx small{font-size:13px;color:var(--muted);line-height:1.35}
.dv-go{width:18px;height:18px;color:var(--dim);flex:none}
.dv-back{align-self:flex-start;display:inline-flex;align-items:center;gap:6px}
.dv-back svg{width:16px;height:16px}
.dv-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.dv-step{display:flex;gap:14px;padding:12px 0;position:relative}
.dv-step + .dv-step{box-shadow:inset 0 1px 0 var(--line)}
.dv-step > i{width:34px;height:34px;border-radius:50%;flex:none;display:inline-flex;align-items:center;justify-content:center;font:700 16px/1 var(--font-mono);font-style:normal;background:var(--accent);color:var(--accent-ink)}
.dv-step.pick > i{background:var(--fg);color:var(--bg)}
.dv-step.done > i{background:var(--panel-3);color:var(--accent)}
.dv-step.warn > i,.dv-step.last > i{background:var(--panel-3);color:var(--muted)}
.dv-step.warn b{color:var(--accent)}
.dv-step.last.on > i{background:var(--accent);color:var(--accent-ink)}
.dv-step > i svg{width:18px;height:18px}
.dv-step > div{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.dv-step b{font-size:17px;line-height:1.25}
.dv-step b em{font-style:normal;color:var(--accent)}
.dv-step.pick b em{color:var(--fg);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px}
.dv-step span{font-size:13.5px;color:var(--muted)}
.dv-step .btn{align-self:flex-start;margin-top:6px}
.dv-step.done b{color:var(--dim)}
.dv-ok{font:600 12px/1 var(--font-mono);color:var(--accent);text-transform:uppercase;letter-spacing:.06em;margin-top:4px}
.vw-pin .bd{fill:var(--accent);stroke:var(--bg);stroke-width:3}
.vw-pin text{font:700 18px var(--font-mono,monospace);fill:var(--accent-ink)}
.vw-pin.alt .bd{fill:var(--fg)}
.vw-pin.alt text{fill:var(--bg)}
.vw-pin.alt .p1,.vw-pin.alt .p2{stroke:var(--fg)}
.vw-pin.done .bd{fill:var(--panel-3)}
.vw-pin.done text{fill:var(--muted)}
.vw-link{fill:none;stroke:var(--accent);stroke-width:5;stroke-dasharray:14 10;opacity:.8;animation:vwdash 1.2s linear infinite}
@keyframes vwdash{to{stroke-dashoffset:-18}}
@media (prefers-reduced-motion:reduce){.vw-link{animation:none}}

/* ---------- jockey ---------- */
.jk{display:flex;flex-direction:column;gap:14px}
.jk-top{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.jk-top h2{font-size:26px;line-height:1.1;margin-top:6px}
.jk-top .vw-fac select{max-width:170px}
.jk-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.jk-stats div{border-radius:12px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.jk-stats b{font:700 22px/1 var(--font-mono)}
.jk-stats span{font-size:12px;color:var(--dim)}
.jk-now{border-radius:18px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line-2);padding:16px;display:flex;flex-direction:column;gap:12px}
.jk-now.doing{box-shadow:inset 0 0 0 2px var(--accent)}
.jk-now-h{display:flex;align-items:center;justify-content:space-between;font:600 12px/1 var(--font-mono);text-transform:uppercase;letter-spacing:.08em;color:var(--accent)}
.jk-now-h em{font-style:normal;display:inline-flex;align-items:center;gap:5px;color:var(--muted)}
.jk-now-h em svg{width:14px;height:14px}
.jk-unit{font-size:30px;line-height:1}
.jk-route{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center}
.jk-route > div{border-radius:12px;background:var(--field);padding:10px 12px;display:flex;flex-direction:column;gap:3px;min-width:0}
.jk-route > div.to{background:var(--accent);color:var(--accent-ink)}
.jk-route small{font-size:11px;text-transform:uppercase;letter-spacing:.08em;opacity:.75}
.jk-route b{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jk-route > svg{width:20px;height:20px;color:var(--dim)}
.jk-why{font-size:13.5px;color:var(--muted)}
.jk-go{width:100%;height:56px;font-size:16.5px}
.jk-skip{align-self:center}
.jk-now.empty{align-items:center;text-align:center;padding:28px 16px;gap:6px}
.jk-now.empty svg{width:28px;height:28px;color:var(--accent)}
.jk-now.empty span{font-size:13.5px;color:var(--muted)}
.jk-actions{display:flex;gap:8px}
.jk-actions .btn{flex:1}
.jk-h{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);margin-top:4px}
.jk-h span{font:600 12px/1 var(--font-mono);background:var(--panel-3);border-radius:999px;padding:4px 8px;color:var(--fg)}
.jk-list{display:flex;flex-direction:column;border-radius:14px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.jk-row{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;padding:11px 14px;align-items:center}
.jk-row + .jk-row{box-shadow:inset 0 1px 0 var(--line)}
.jk-row b{font-size:15px}
.jk-row span{display:flex;align-items:center;gap:6px;font-size:13.5px;color:var(--muted);justify-self:end}
.jk-row span svg{width:14px;height:14px}
.jk-row small{grid-column:1/-1;font-size:12px;color:var(--dim)}
.jk-list.done .jk-row b{color:var(--dim)}

/* ---------- gate ---------- */
.gt{display:flex;flex-direction:column;gap:22px;padding-bottom:40px}
.gt-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.gt-head h1{font-size:clamp(32px,4vw,48px);margin:6px 0 4px}
.gt-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}
.gt-main{display:flex;flex-direction:column;gap:18px;min-width:0}
.gt-acts{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.gt-big{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;padding:20px;border:0;border-radius:18px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);font:inherit;cursor:pointer;min-width:0}
button.gt-big{background:var(--accent);color:var(--accent-ink);box-shadow:none;transition:transform .2s}
button.gt-big:active{transform:scale(.985)}
.gt-big > svg{width:28px;height:28px}
.gt-big b{font-size:22px}
.gt-big > span{font-size:14px;opacity:.8}
.gt-out{cursor:default}
.gt-outrow{display:flex;gap:8px;width:100%;margin-top:6px}
.gt-outrow input{flex:1;min-width:0;height:40px;border:0;border-radius:10px;background:var(--field);color:var(--fg);box-shadow:inset 0 0 0 1px var(--line-2);padding:0 12px;font:inherit;font-size:15px}
#gtOutRes{width:100%;display:flex;flex-direction:column;gap:6px}
.gt-hit{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:var(--panel-2)}
.gt-hit span:nth-child(2){flex:1;color:var(--muted);font-size:13.5px}
.gt-none{font-size:13.5px;color:var(--dim)}
.gt-u{font:600 14px/1 var(--font-mono)}
.gt-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.gt-kpis div{border-radius:14px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);padding:14px;display:flex;flex-direction:column;gap:6px}
.gt-kpis b{font:700 26px/1 var(--font-mono)}
.gt-kpis span{font-size:12.5px;color:var(--dim)}
.gt-sec{display:flex;flex-direction:column;gap:6px}
.gt-sec h2{font-size:16px;margin-bottom:4px}
.gt-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center;padding:10px 14px;border-radius:12px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line)}
.gt-log{display:flex;gap:12px;font-size:14px;padding:6px 0;box-shadow:inset 0 -1px 0 var(--line)}
.gt-log time{font:500 12.5px/1.6 var(--font-mono);color:var(--dim);flex:none;width:72px}
.gt-qr{position:sticky;top:150px;display:flex;flex-direction:column;gap:10px;padding:18px;border-radius:18px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line)}
.gt-qr .qr-code{width:100%;aspect-ratio:1;border-radius:12px;overflow:hidden;background:#fff}
.gt-qr .qr-code svg{width:100%;height:100%;display:block}
.gt-qr span{font-size:13.5px;color:var(--muted)}
@media (max-width:900px){
  .gt-grid{grid-template-columns:1fr}
  .gt-qr{position:static;flex-direction:row;flex-wrap:wrap;align-items:center}
  .gt-qr .qr-code{width:96px;flex:none}
  .gt-qr b,.gt-qr span{flex:1 1 60%}
}
@media (max-width:620px){
  .gt-acts{grid-template-columns:1fr}
  .gt-kpis{grid-template-columns:repeat(2,1fr)}
  .gt-row{grid-template-columns:auto 1fr;}
  .gt-row .btn{grid-column:1/-1}
}
/* search / check-in marker: rings ping a few times to draw the eye, then stop */
.m-pulse-few .p1,.m-pulse-few .p2{animation-iteration-count:4}

/* audit log */
.au-bar{display:grid;grid-template-columns:160px 160px minmax(0,1fr) minmax(0,1fr);gap:12px 14px;align-items:end;margin-bottom:6px}
.au-bar .a-field{margin:0}
.au-q{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:8px;align-items:center}
.au-q .lbl{grid-column:1/-1}
.au-q .a-search{flex:none;width:100%}
.au-q .a-search input{height:46px}
.au-count{margin:6px 0 12px;min-height:20px;font-size:13.5px}
.au-table .tr{grid-template-columns:150px minmax(0,1fr) minmax(0,2.4fr) 90px 80px minmax(0,1.1fr)}
.au-table .mono{font-family:var(--font-mono);font-size:13px}
.au-what{all:unset;cursor:pointer;display:flex;gap:8px;align-items:baseline;line-height:1.45;border-radius:6px}
.au-what:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.au-what .pill{flex:none;font-size:11px;padding:2px 8px}
.pill.au-in{background:color-mix(in srgb,#3FA877 22%,transparent);color:color-mix(in srgb,#3FA877 80%,var(--fg))}
.pill.au-out{background:var(--accent-soft);color:var(--accent)}
.pill.au-release{background:var(--panel-3);color:var(--muted)}
.pill.au-move{background:color-mix(in srgb,#4C8DF6 20%,transparent);color:color-mix(in srgb,#4C8DF6 80%,var(--fg))}
.au-row.open{background:var(--panel)}
.au-detail{grid-column:1/-1;margin:2px 0 4px}
.au-detail .v s{color:var(--dim);font-weight:400}
.au-list[aria-busy=true]{opacity:.55;transition:opacity .2s}
@media (max-width:900px){.au-bar{grid-template-columns:1fr 1fr}.au-q{grid-template-columns:1fr}}
@media (max-width:700px){.au-table .tr{grid-template-columns:minmax(0,1fr) auto}.au-table .tr > :nth-child(2),.au-table .tr > :nth-child(5){display:none}.au-table .tr > :nth-child(3){display:block;grid-column:1/-1;order:3}}

/* daily report email */
.stg-switch{display:inline-flex;align-items:center;gap:10px;cursor:pointer;font-weight:600;font-size:14px}
.stg-switch input{appearance:none;width:42px;height:24px;border-radius:999px;background:var(--panel-3);box-shadow:inset 0 0 0 1px var(--line-2);position:relative;cursor:pointer;margin:0;transition:background .2s}
.stg-switch input::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--fg);transition:transform .2s var(--ease)}
.stg-switch input:checked{background:var(--accent)}
.stg-switch input:checked::after{transform:translateX(18px);background:var(--accent-ink)}
.stg-switch input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.rm-form{max-width:640px;margin-top:14px}
.rm-form textarea{width:100%;border-radius:var(--r-inner);border:0;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);padding:12px 14px;font:400 15px/1.5 var(--font-body);resize:vertical}
.rm-form textarea:focus{outline:none;box-shadow:inset 0 0 0 1px var(--fg)}
.rm-form .help{display:block;font-size:12.5px;color:var(--dim);margin-top:6px}
#rmMsg{min-height:20px;margin:10px 0 0;font-size:14px}
.rm-form .ed-mini{margin-top:14px}

/* layout editor: box selection and group actions */
.ed-svg .ed-box{fill:rgba(127,127,127,.12);fill:color-mix(in srgb,var(--accent) 14%,transparent);stroke:var(--accent);stroke-width:1.5;stroke-dasharray:6 4;pointer-events:none}
.ed-multi{display:grid;gap:8px;padding:12px 0;border-top:1px solid var(--line-2)}
.ed-multi:first-of-type{border-top:0;padding-top:4px}
.ed-multi .a-muted{margin:0}
.ed-times{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--dim)}
.ed-times input{width:64px;height:36px;border-radius:8px;border:0;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);padding:0 10px}

/* out of service */
.a-note{width:100%;border-radius:var(--r-inner);border:0;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);padding:10px 12px;font:400 14.5px/1.45 var(--font-body);resize:vertical}
.a-note:focus{outline:none;box-shadow:inset 0 0 0 1.5px var(--accent)}
.a-oos-note{margin-top:10px}
#pdOosForm{display:grid;gap:10px;margin-top:12px}
.lv-spot.oos .s{color:var(--oos);font-weight:600}
.lv-spot.oos{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--oos) 55%,transparent)}
.a-oos-check:has(input:checked){background:color-mix(in srgb,var(--oos) 14%,transparent);box-shadow:inset 0 0 0 1.5px var(--oos);color:var(--oos);font-weight:600}
.a-oos-check input{accent-color:var(--oos)}
.a-oos-check:has(input:checked) + .a-oos-note .a-note{box-shadow:inset 0 0 0 1.5px var(--oos)}
.lv-spot.oos{background:color-mix(in srgb,var(--oos) 12%,transparent);box-shadow:inset 0 0 0 1.5px var(--oos)}
.lv-spot.oos .u{color:var(--oos)}
.al.oos{box-shadow:inset 3px 0 0 var(--oos)}
.al.oos .al-ic{color:var(--oos)}
.al.oos .al-tx b{color:var(--oos)}

:root{--oos:#E5484D}
#psCargo,#ciCargo,#ckDestWrap{display:grid;gap:inherit}
#psCargo[hidden],#ciCargo[hidden],#ckDestWrap[hidden]{display:none}

/* company picker */
.l-cos{display:flex;flex-direction:column;gap:10px}
.l-co{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:14px 16px;border:0;border-radius:var(--r-inner);background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);cursor:pointer;transition:box-shadow .15s,background .15s}
.l-co:hover,.l-co:focus-visible{box-shadow:inset 0 0 0 1.5px var(--accent);outline:none}
.l-co.busy{background:var(--accent-soft)}
.l-co:disabled{cursor:default}
.l-co-mark{flex:none;width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--panel-3);font:600 13px/1 var(--font-mono,monospace);letter-spacing:.02em}
.l-co-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.l-co-tx b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.l-co-tx span{font-size:13px;color:var(--muted)}
.l-co .go{width:18px;height:18px;flex:none;color:var(--muted)}
.a-ws-switch{flex:none;width:30px;height:30px;margin-left:4px;border:0;border-radius:8px;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.a-ws-switch:hover{background:var(--field);color:var(--fg)}
.a-ws-switch svg{width:17px;height:17px}
/* colour label picker */
.a-lblpick{display:flex;flex-wrap:wrap;gap:6px}
.a-lblpick button{height:32px;padding:0 11px;border-radius:999px;border:0;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);display:inline-flex;align-items:center;gap:7px;font:inherit;font-size:13px;cursor:pointer;transition:box-shadow .15s,transform .1s}
.a-lblpick button i{width:10px;height:10px;border-radius:3px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--line-3);flex:none}
.a-lblpick button i[style*=background]{box-shadow:none}
.a-lblpick button.keep i{display:none}
.a-lblpick button:hover{box-shadow:inset 0 0 0 1px var(--line-3)}
.a-lblpick button[aria-checked=true]{box-shadow:inset 0 0 0 2px var(--accent);background:var(--panel-3)}
.a-lblpick button:active{transform:scale(.97)}
.a-lblpick button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* building quick names */
.ed-chips{display:flex;flex-wrap:wrap;gap:6px;margin:-2px 0 8px}
.ed-chip{height:28px;padding:0 10px;border-radius:999px;border:0;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--muted);font:inherit;font-size:12.5px;cursor:pointer}
.ed-chip:hover{color:var(--fg);box-shadow:inset 0 0 0 1px var(--line-3)}
/* stretch box around a selection */
.ed-svg .ed-selbox{fill:none;stroke:var(--accent);stroke-width:1.5;stroke-dasharray:6 4;pointer-events:none}
.ed-svg .ed-sh{fill:var(--accent);stroke:var(--bg);stroke-width:2}
/* label dropdown */
.a-lbldd{position:relative}
.a-lbldd-btn{width:100%;height:44px;display:flex;align-items:center;gap:10px;padding:0 14px;border:0;border-radius:12px;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);font:inherit;font-size:15px;cursor:pointer;text-align:left}
.a-lbldd-btn:hover{box-shadow:inset 0 0 0 1px var(--line-3)}
.a-lbldd.open .a-lbldd-btn,.a-lbldd-btn:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--accent)}
.a-lbldd-btn span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.a-lbldd i{width:12px;height:12px;border-radius:4px;flex:none;box-shadow:inset 0 0 0 1.5px var(--line-3)}
.a-lbldd i[style]{box-shadow:none}
.a-lbldd i.keep{box-shadow:inset 0 0 0 1.5px var(--line-3);background:repeating-linear-gradient(45deg,var(--line-3) 0 2px,transparent 2px 4px)}
.a-lbldd .chev{width:8px;height:8px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:translateY(-2px) rotate(45deg);transition:transform .15s;flex:none}
.a-lbldd.open .chev{transform:translateY(2px) rotate(-135deg)}
.a-lbldd-pop{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;background:var(--panel-2,var(--panel));border-radius:12px;box-shadow:0 0 0 1px var(--line-2),0 14px 34px rgba(0,0,0,.35);padding:6px}
.a-lbldd-list{max-height:260px;overflow:auto;display:flex;flex-direction:column}
.a-lbldd-list button{display:flex;align-items:center;gap:10px;height:36px;padding:0 10px;border:0;border-radius:8px;background:none;color:var(--fg);font:inherit;font-size:14px;cursor:pointer;text-align:left}
.a-lbldd-list button:hover,.a-lbldd-list button:focus-visible{outline:none;background:var(--panel-3)}
.a-lbldd-list button[aria-selected=true]{background:var(--panel-3);box-shadow:inset 0 0 0 1px var(--accent)}
.a-lbldd-foot{border-top:1px solid var(--line-2);margin-top:6px;padding:8px 4px 2px}
.a-lbldd-foot .a-muted{margin:0;font-size:13px}
.a-lbldd-new{display:flex;align-items:center;gap:8px;width:100%;height:34px;padding:0 8px;border:0;border-radius:8px;background:none;color:var(--accent);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.a-lbldd-new svg{width:16px;height:16px}
.a-lbldd-new:hover{background:var(--panel-3)}
.a-swatches{display:grid;grid-template-columns:repeat(5,28px);gap:8px;margin:4px 0 10px}
.a-swatches button{width:28px;height:28px;border-radius:8px;border:0;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
.a-swatches button[aria-checked=true]{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--fg)}
.a-swatches button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ed-palpop{position:absolute;z-index:80;background:var(--panel-2,var(--panel));padding:10px;border-radius:12px;box-shadow:0 0 0 1px var(--line-2),0 14px 34px rgba(0,0,0,.35);margin:0}
.ed-swatch{width:34px;height:34px;border-radius:8px;border:0;cursor:pointer;flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
.ed-swatch:disabled{cursor:default}
.ed-sec-row input[type=text]{border-radius:8px;border:0;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);padding:0 10px}
.ed-count-pill{font-size:12px;font-weight:600;color:var(--muted);background:var(--field);padding:2px 8px;border-radius:999px;margin-left:6px;vertical-align:middle}
/* default view pin next to the yard tabs */
.a-tabs-wrap{display:flex;align-items:flex-end;gap:8px;box-shadow:inset 0 -1px 0 var(--line);margin-bottom:20px}
.a-tabs-wrap .a-tabs{flex:1;min-width:0;margin-bottom:0;box-shadow:none}
.a-tab-def{flex:none;display:inline-flex;align-items:center;gap:6px;height:32px;margin-bottom:8px;padding:0 12px;border:0;border-radius:999px;background:none;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--muted);font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.a-tab-def svg{width:15px;height:15px}
.a-tab-def:hover{color:var(--fg);box-shadow:inset 0 0 0 1px var(--line-3)}
.a-tab-def[aria-pressed=true]{color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.a-tab-def:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:560px){.a-tab-def span{display:none}.a-tab-def{padding:0 9px}}
/* spots tab: grid + side panel */
.sp-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.sp-aside{position:sticky;top:84px;display:flex;flex-direction:column;gap:14px}
.sa-card{background:var(--panel);border-radius:16px;box-shadow:inset 0 0 0 1px var(--line);padding:18px}
.sa-card h3{margin:0 0 2px;font-size:16px}
.sa-card .a-muted{margin:0 0 10px;font-size:13px}
.sa-avail .k{display:block;font-size:13px;color:var(--muted);font-weight:600}
.sa-big{font-size:52px;line-height:1;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--fg)}
.sa-of{margin-left:6px;color:var(--muted);font-size:14px}
.sa-bar{display:flex;height:8px;border-radius:99px;background:var(--field);overflow:hidden;margin:14px 0 10px}
.sa-bar i{display:block;height:100%}
.sa-bar .o,.sa-legend i.o{background:var(--fg)}
.sa-bar .r,.sa-legend i.r{background:var(--accent)}
.sa-bar .n,.sa-legend i.n{background:var(--oos,#E5484D)}
.sa-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;color:var(--muted)}
.sa-legend span{display:inline-flex;align-items:center;gap:6px}
.sa-legend i{width:8px;height:8px;border-radius:3px}
.sa-list{max-height:min(560px,60vh);overflow:auto;margin:0 -6px;padding:0 6px}
.sa-it{display:flex;flex-direction:column;gap:2px;padding:9px 0;border-top:1px solid var(--line)}
.sa-it:first-child{border-top:0}
.sa-it .tx{font-size:13.5px;color:var(--fg);line-height:1.35}
.sa-it .me{font-size:12px;color:var(--muted)}
.sa-it .me b{color:var(--fg);font-weight:600}
@media (max-width:980px){.sp-layout{grid-template-columns:1fr}.sp-aside{position:static;order:-1}.sa-act .sa-list{max-height:220px}}
/* entry rules */
.ed-rules{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.ed-rule{display:flex;gap:8px;align-items:flex-start}
.ed-rule textarea{flex:1;min-width:0;resize:vertical;min-height:52px;border:0;border-radius:10px;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);font:inherit;font-size:14px;line-height:1.4;padding:8px 10px}
.ed-rule textarea:focus{outline:none;box-shadow:inset 0 0 0 2px var(--accent)}
.ed-rule-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.ed-rule-tag{font-size:11px;font-weight:600;color:var(--accent);background:var(--accent-soft);padding:2px 7px;border-radius:99px;white-space:nowrap}
#erPre{margin-top:10px;align-items:center}
#erPre .lbl{font-size:12px;color:var(--muted);margin-right:2px}
/* not-for-use labels */
.ed-sec-row{flex-wrap:wrap}
.ed-nfu-btn{width:34px;height:34px;border:0;border-radius:8px;background:none;color:var(--muted);display:grid;place-items:center;cursor:pointer;flex:none}
.ed-nfu-btn svg{width:18px;height:18px}
.ed-nfu-btn:hover{color:var(--fg);background:var(--field)}
.ed-nfu-btn[aria-pressed=true]{color:var(--oos,#E5484D);background:color-mix(in srgb,var(--oos,#E5484D) 14%,transparent)}
.ed-nfu-tag{font-size:11px;font-weight:600;color:var(--oos,#E5484D)}
.ed-nfu-why{flex-basis:100%;display:flex;flex-direction:column;gap:4px;padding:6px 0 4px 42px}
.ed-nfu-why label{font-size:12.5px;font-weight:600;color:var(--oos,#E5484D)}
.ed-nfu-why input{height:36px;border:0;border-radius:8px;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--fg);font:inherit;font-size:14px;padding:0 10px}
.ed-nfu-why .help{font-size:12px;color:var(--muted)}
.ed-nfu-note{margin-top:12px}
.a-nfu-ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--oos,#E5484D) 16%,transparent);color:var(--oos,#E5484D);margin-bottom:12px}
.a-nfu-ic svg{width:24px;height:24px}
/* who else is in this yard */
.a-here{position:relative;flex:none;margin-bottom:8px}
.a-here-btn{display:flex;align-items:center;height:32px;padding:0 4px 0 2px;border:0;background:none;cursor:pointer;border-radius:999px}
.a-here-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.a-av{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;letter-spacing:.02em;background:var(--panel-3);color:var(--fg);box-shadow:0 0 0 2px var(--bg),inset 0 0 0 1.5px var(--line-3);flex:none}
.a-here-btn .a-av+.a-av{margin-left:-8px}
.a-av.edit{background:var(--accent);color:#fff;box-shadow:0 0 0 2px var(--bg)}
.a-av.more{background:var(--field);color:var(--muted);font-size:10.5px}
.a-here-pop{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:280px;background:var(--panel-2,var(--panel));border-radius:14px;box-shadow:0 0 0 1px var(--line-2),0 14px 34px rgba(0,0,0,.35);padding:8px}
.a-here-h{font-size:12px;font-weight:600;color:var(--muted);padding:4px 8px 6px}
.a-here-row{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:10px}
.a-here-row .tx{flex:1;min-width:0;display:flex;flex-direction:column}
.a-here-row .tx b{font-size:14px}
.a-here-row .tx span{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a-here-mode{font-size:11px;font-weight:600;color:var(--muted);background:var(--field);padding:2px 8px;border-radius:99px;white-space:nowrap}
.a-here-mode.edit{color:var(--accent);background:var(--accent-soft)}
.lv-spot{position:relative}
.lv-peer{position:absolute;top:6px;right:6px;min-width:22px;height:22px;padding:0 5px;border-radius:99px;display:grid;place-items:center;font-size:10px;font-weight:700;background:var(--panel-3);color:var(--fg);box-shadow:inset 0 0 0 1.5px var(--line-3)}
.lv-peer.edit{background:var(--accent);color:#fff;box-shadow:none}
.a-peer-note{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;margin-bottom:14px;border-radius:12px;background:var(--accent-soft);color:var(--fg);font-size:14px;line-height:1.4}
.a-peer-note svg{width:18px;height:18px;color:var(--accent);flex:none;margin-top:1px}
.a-peer-note[hidden]{display:none}
/* report a problem */
.rp-ctx{margin-top:4px;font-size:13px;color:var(--muted)}
.rp-ctx summary{cursor:pointer;font-weight:600;color:var(--fg);padding:4px 0}
.rp-ctx ul{margin:6px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:3px}
#rpNote:empty{display:none}
#rpNote{color:var(--oos,#E5484D)}
.a-kpi[hidden]{display:none!important}
/* phones: keep the top bar inside the screen (colours stay in Settings, Appearance) */
@media (max-width:480px){.a-head-right .th-btn,#aAvatar{display:none!important}.a-head-right{gap:2px}}
/* new arrivals */
.sa-arr{display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;border:0;border-radius:16px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--line);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.sa-arr:hover{box-shadow:inset 0 0 0 1px var(--line-3)}
.sa-arr>svg{width:20px;height:20px;color:var(--accent);flex:none}
.sa-arr>svg:last-child{width:16px;height:16px;color:var(--muted)}
.sa-arr span{flex:1;display:flex;flex-direction:column}
.sa-arr small{font-size:12.5px;color:var(--muted)}
.ar-sum{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
.ar-sum div{background:var(--field);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column}
.ar-sum b{font-size:24px;font-variant-numeric:tabular-nums}
.ar-sum span{font-size:12px;color:var(--muted)}
.ar-list{display:flex;flex-direction:column;gap:6px;max-height:min(52vh,460px);overflow:auto}
.ar-row{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:10px 12px;border:0;border-radius:12px;background:var(--panel-2,var(--panel));box-shadow:inset 0 0 0 1px var(--line);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.ar-row:hover{box-shadow:inset 0 0 0 1px var(--line-3)}
.ar-row.gone{opacity:.55}
.ar-u{font-weight:700;font-size:14px;white-space:nowrap}
.ar-tx{display:flex;flex-direction:column;min-width:0}
.ar-tx b{font-size:14px}
.ar-tx span{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ar-oos{color:var(--oos,#E5484D);font-style:normal;font-weight:600}
.ar-me{display:flex;flex-direction:column;align-items:flex-end;font-size:12px;color:var(--muted);white-space:nowrap}
.ar-me b{color:var(--fg);font-size:13px}
.ar-yards{display:flex;flex-direction:column;gap:6px}
#arRange{margin-top:12px}
@media (max-width:480px){.ar-sum{grid-template-columns:repeat(2,1fr)}.ar-row{grid-template-columns:1fr auto}.ar-u{grid-column:1/-1}}
/* search: current places first, then where it was */
.a-find-h{font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);padding:10px 10px 4px}
.a-find-it .ld{font-size:12px;font-weight:600;color:var(--accent);margin-left:6px}
.a-find-it.past .ic{background:var(--field);color:var(--muted)}
/* settings: logins */
.lg-online{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.lg-on{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:var(--field)}
.lg-on .tx{flex:1;min-width:0;display:flex;flex-direction:column}
.lg-on .tx b{font-size:14px}.lg-on .tx em{font-style:normal;font-size:11px;color:var(--accent);margin-left:4px}
.lg-on .tx span{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-dot{width:8px;height:8px;border-radius:50%;background:#3fa35b;box-shadow:0 0 0 3px color-mix(in srgb,#3fa35b 25%,transparent)}
.lg-filters{margin:4px 0 6px}
.lg-table .tr{grid-template-columns:1.1fr 1.4fr 1.4fr 1fr}
.lg-table .tr span[role=cell]{display:flex;flex-direction:column;min-width:0}
.lg-table small{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:720px){.lg-table .tr{grid-template-columns:1fr 1fr}.lg-table .th{display:none}}
@media (max-width:700px){.lg-table .tr > :nth-child(3){display:flex!important}}
/* first-login guide and tips */
.yx-coach{position:fixed;left:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:90;width:min(380px,calc(100vw - 32px));background:var(--panel-2,var(--panel));color:var(--fg);border-radius:18px;padding:18px 18px 16px;box-shadow:0 0 0 1px var(--line-2),0 24px 60px rgba(0,0,0,.45)}
.yx-coach.center{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(480px,calc(100vw - 32px));padding:26px}
.yx-coach h2{margin:4px 0 8px;font-size:24px;letter-spacing:-.02em}
.yx-coach h3{margin:10px 0 4px;font-size:17px}
.yx-coach p{margin:0 0 10px;font-size:14.5px;line-height:1.5;color:var(--fg)}
.yx-coach .yx-coach-muted{color:var(--muted);font-size:13px}
.yx-coach .yx-coach-warn{color:var(--oos,#E5484D);font-size:13.5px}
.yx-coach .btn{margin-top:6px}
.yx-coach-ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}
.yx-coach-ic svg{width:24px;height:24px}.yx-coach-ic.ok{background:color-mix(in srgb,#3fa35b 18%,transparent);color:#3fa35b}
.yx-coach-list{margin:0 0 12px;padding-left:20px;font-size:14.5px;line-height:1.7}
.yx-coach-steps{display:flex;gap:6px;flex-wrap:wrap}
.yx-coach-steps span{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;color:var(--muted);background:var(--field);padding:3px 9px 3px 4px;border-radius:99px}
.yx-coach-steps span b{font-weight:600}
.yx-coach-steps span::before{content:none}
.yx-coach-steps span{counter-increment:none}
.yx-coach-steps span.on{color:var(--fg);box-shadow:inset 0 0 0 1.5px var(--accent)}
.yx-coach-steps span.done{color:#3fa35b}
.yx-coach-steps svg{width:14px;height:14px}
.yx-coach-dim{position:fixed;inset:0;z-index:89;background:color-mix(in srgb,var(--bg-deep,#000) 78%,transparent)}
.yx-coach.tip{padding:14px 16px}
.yx-tip-h{display:flex;align-items:center;gap:8px;margin-bottom:6px}.yx-tip-h svg{width:18px;height:18px;color:var(--accent)}.yx-tip-h b{font-size:15px}
/* guide: spotlight on the next thing to click, card next to it with an arrow */
.yx-spot{position:fixed;z-index:88;pointer-events:none;border-radius:12px;box-shadow:0 0 0 200vmax color-mix(in srgb,var(--bg-deep,#000) 58%,transparent);transition:left .25s var(--ease,ease),top .25s var(--ease,ease),width .25s var(--ease,ease),height .25s var(--ease,ease)}
.yx-spot-ring{position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 3px var(--accent);animation:yxring 1.5s ease-out infinite}
.yx-spot::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 3px var(--accent);animation:yxwave 1.5s ease-out infinite}
@keyframes yxring{0%,100%{box-shadow:0 0 0 3px var(--accent)}50%{box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 45%,transparent)}}
@keyframes yxwave{0%{opacity:.9;inset:0}100%{opacity:0;inset:-14px}}
.yx-coach.guide:not(.center){bottom:auto;text-align:center;width:min(340px,calc(100vw - 24px));transition:left .25s var(--ease,ease),top .25s var(--ease,ease)}
.yx-coach.guide:not(.center) .yx-coach-steps{justify-content:center}
.yx-coach.guide:not(.center) .btn{margin-left:auto;margin-right:auto}
.yx-coach.guide[data-side="none"]{left:50%!important;top:auto!important;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%)}
.yx-coach.guide::after{content:"";position:absolute;width:14px;height:14px;background:inherit;box-shadow:inherit;clip-path:polygon(0 0,100% 0,0 100%);display:none}
.yx-coach.guide[data-side="below"]::after{display:block;top:-7px;left:calc(var(--ax) - 7px);transform:rotate(45deg)}
.yx-coach.guide[data-side="above"]::after{display:block;bottom:-7px;left:calc(var(--ax) - 7px);transform:rotate(225deg)}
.yx-coach.guide[data-side="right"]::after{display:block;left:-7px;top:calc(var(--ay) - 7px);transform:rotate(-45deg)}
.yx-coach.guide[data-side="left"]::after{display:block;right:-7px;top:calc(var(--ay) - 7px);transform:rotate(135deg)}
@media (prefers-reduced-motion:reduce){.yx-spot-ring,.yx-spot::after{animation:none}.yx-spot,.yx-coach.guide{transition:none}}
@media (max-width:640px){.yx-coach.tip{left:12px;right:12px;width:auto;bottom:auto;top:calc(66px + env(safe-area-inset-top,0px))}}
@media (max-width:640px){.yx-coach:not(.center){padding:12px 14px}.yx-coach:not(.center) p{font-size:13.5px;margin-bottom:6px}.yx-coach:not(.center) .yx-coach-muted{display:none}.yx-coach:not(.center) h3{margin:6px 0 2px;font-size:15.5px}}
.a-co{margin-top:12px;padding:12px;border-radius:12px;background:var(--field)}
.a-co[hidden]{display:none}
.yx-coach.center{text-align:center}
.yx-coach.center .yx-coach-ic{margin:0 auto 6px}
.yx-coach.center .yx-coach-list{display:inline-block;text-align:left}

/* suggestions under inputs: remembered names, truck numbers, cities and states */
.yx-sug{position:fixed;z-index:95;max-height:340px;overflow:auto;overscroll-behavior:contain;background:var(--panel-2,var(--panel));border-radius:14px;box-shadow:0 0 0 1px var(--line-2),0 18px 44px rgba(0,0,0,.42);padding:6px;animation:yxsug .14s var(--ease,ease)}
@keyframes yxsug{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.yx-sug-h{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--dim);padding:8px 10px 4px}
.yx-sug-h:not(:first-child){margin-top:4px;box-shadow:inset 0 1px 0 var(--line)}
.yx-sug button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:40px;text-align:left;background:none;border:0;color:var(--fg);font:inherit;font-size:14.5px;padding:8px 10px;border-radius:9px;cursor:pointer}
.yx-sug button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yx-sug button b{font-weight:700;color:var(--accent)}
.yx-sug button em{font-style:normal;color:var(--muted)}
.yx-sug button small{font-size:12px;color:var(--dim);flex:none;font-family:var(--font-mono)}
.yx-sug button:hover,.yx-sug button.on{background:var(--field)}
.yx-sug button.on{box-shadow:inset 2px 0 0 var(--accent)}
@media (prefers-reduced-motion:reduce){.yx-sug{animation:none}}

/* trailer history */
.a-modal.th-modal{width:min(640px,calc(100vw - 24px))}
.th-head{position:relative;padding-right:64px!important}
.th-head > .a-icon-btn{position:absolute;top:20px;right:20px}
.th-eye{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.th-head h2{font-family:var(--font-mono);letter-spacing:-.01em}
.th-body{max-height:min(68vh,720px);overflow:auto}
.th-stats{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:10px;margin-bottom:18px}
.th-stats > div{background:var(--field);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:3px;min-width:0}
.th-stats span{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}
.th-stats b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.th-stats b.in{color:#3fa35b}
.th-stats small{font-size:12px;color:var(--muted)}
.th-list{list-style:none;margin:0;padding:0;position:relative}
.th-day{font-size:12px;font-weight:700;color:var(--muted);padding:14px 0 6px;position:sticky;top:-1px;background:var(--panel);z-index:1}
.th-ev{display:grid;grid-template-columns:22px 1fr;gap:10px;padding:8px 0;position:relative}
.th-ev::before{content:"";position:absolute;left:6px;top:0;bottom:0;width:2px;background:var(--line-2)}
.th-ev .dot{width:14px;height:14px;border-radius:50%;margin-top:3px;background:var(--panel);box-shadow:inset 0 0 0 3px var(--dim);position:relative;z-index:1}
.th-ev.in .dot{box-shadow:inset 0 0 0 3px #3fa35b}.th-ev.out .dot{box-shadow:inset 0 0 0 3px var(--accent)}
.th-ev.move .dot{box-shadow:inset 0 0 0 3px #3b82c4}.th-ev.seal .dot{box-shadow:inset 0 0 0 3px #b07ad6}.th-ev.warn .dot{box-shadow:inset 0 0 0 3px var(--oos,#E5484D)}
.th-t{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.th-t b{font-size:14.5px}.th-t time{font-size:12.5px;color:var(--muted);font-family:var(--font-mono);flex:none}
.th-y{font-size:12.5px;color:var(--muted);margin-top:1px}
.th-d{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.th-d span{font-size:12px;background:var(--field);border-radius:99px;padding:3px 9px}
.th-by{font-size:12px;color:var(--dim);margin-top:5px}
.th-empty{color:var(--muted);font-size:14px}
.th-foot{margin-top:16px;display:flex;justify-content:flex-end}
.th-skel{display:grid;gap:10px}.th-skel i{display:block;height:52px;border-radius:12px;background:var(--field);animation:thsk 1.2s ease-in-out infinite alternate}
@keyframes thsk{to{opacity:.45}}
@media (max-width:560px){.th-stats{grid-template-columns:1fr 1fr}.th-stats > div:first-child{grid-column:1/-1}}
@media (prefers-reduced-motion:reduce){.th-skel i{animation:none}}
/* shared links (Settings) */
.pill.ok{background:color-mix(in srgb,#3FA877 22%,transparent);color:color-mix(in srgb,#3FA877 80%,var(--fg))}
.sh-list{display:flex;flex-direction:column;border-radius:12px;box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.sh-it{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;box-shadow:inset 0 -1px 0 var(--line);flex-wrap:wrap}
.sh-it:last-child{box-shadow:none}
.sh-main{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;min-width:0;flex:1}
.sh-main b{font-size:15px}
.sh-main small{flex-basis:100%;font-size:12.5px;color:var(--dim)}
.sh-acts{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.sh-empty{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:34px 16px;border-radius:12px;box-shadow:inset 0 0 0 1px var(--line);color:var(--muted)}
.sh-empty svg{width:28px;height:28px;color:var(--accent)}.sh-empty b{color:var(--fg)}
.sh-rows{display:flex;flex-wrap:wrap;gap:6px}
.sh-chk{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:99px;background:var(--field);box-shadow:inset 0 0 0 1px var(--line-2);font-size:13.5px;cursor:pointer}
.sh-chk:has(input:checked){box-shadow:inset 0 0 0 1.5px var(--accent);background:var(--accent-soft)}
.sh-chk input{accent-color:var(--accent);margin:0}
.sh-chk span{display:inline-flex;align-items:center;gap:6px}
.sh-chk i{width:9px;height:9px;border-radius:3px}
.sh-chk.all{font-weight:600}

/* during the first-login guide: only the training yard, no add or filter controls */
.yx-touring #aAddFac,.yx-touring #aAddFac2,.yx-touring #aHome .a-filterbar{display:none!important}
/* authenticator setup and code, on the login screen */
.l-mfa-steps{margin:0;padding:0;list-style:none;counter-reset:mf;display:flex;flex-direction:column;gap:16px}
.l-mfa-steps li{counter-increment:mf;display:grid;grid-template-columns:30px 1fr;column-gap:12px;row-gap:4px}
.l-mfa-steps li::before{content:counter(mf);grid-row:span 4;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font:700 13px var(--font-mono);background:var(--accent-soft);color:var(--accent)}
.l-mfa-steps b{font-size:15.5px}
.l-mfa-steps span{color:var(--muted);font-size:14px;line-height:1.45}
.l-mfa-qr{margin-top:8px;width:196px;height:196px;border-radius:14px;background:#fff;display:grid;place-items:center;padding:10px}
.l-mfa-qr img{width:100%;height:100%;display:block}
.l-mfa-load{font-style:normal;color:#555;font-size:13px;text-align:center;padding:10px}
.l-mfa-key{margin-top:8px;font-size:13.5px;color:var(--muted)}
.l-mfa-key summary{cursor:pointer;color:var(--fg);font-weight:600}
.l-mfa-key code{display:block;margin-top:6px;font:600 15px/1.5 var(--font-mono);letter-spacing:.06em;color:var(--fg);background:var(--field);padding:8px 10px;border-radius:8px;user-select:all;word-break:break-all}
.l-mfa-code{font:600 24px var(--font-mono)!important;letter-spacing:.3em;text-align:center}
.l-mfa-help{font-size:13.5px!important;color:var(--muted)}
.stg-table .gd button.gd-redo{margin-left:6px}
