/*
 * MTR theme — final layer for both themes, loaded last.
 * Dark: deep navy, blue/cyan accents. Light: pale blue-grey, white cards, navy highlight cards.
 * Every older layer reads the --t-* tokens through the legacy variables mapped below.
 * Performance: no backdrop blur anywhere; motion is transform/opacity only.
 */

/* ---------- Tokens ---------- */
html[data-mtr-theme]{
  --t-bg:#030811;--t-bg-2:#081522;--t-bg-3:#0d2031;
  --t-glow-a:rgba(55,140,255,.12);--t-glow-b:rgba(56,218,245,.06);
  --t-surface:rgba(8,21,34,.97);--t-surface-solid:#081522;--t-surface-2:#0d2031;
  --t-control:rgba(56,218,245,.05);--t-control-hover:rgba(56,218,245,.11);--t-field:#050f1a;
  --t-line:#214458;--t-line-strong:#42758d;
  --t-card-edge:rgba(96,160,235,.18);--t-card-hi:rgba(255,255,255,.035);--t-card-ring:transparent;
  --t-text:#e4f2f9;--t-muted:#9db6c6;--t-faint:#8aa6b9;
  --t-accent:#38daf5;--t-accent-text:#38daf5;--t-cyan:#38daf5;
  --t-primary:linear-gradient(180deg,#65e5fa,#38daf5);--t-primary-hover:linear-gradient(180deg,#8becfc,#65e5fa);
  --t-primary-edge:#65e5fa;--t-primary-ink:#03111b;--t-primary-shadow:0 4px 18px rgba(56,218,245,.12);
  --t-selected:rgba(59,140,240,.18);--t-selected-edge:rgba(96,180,255,.6);
  --t-pill-edge:rgba(120,170,230,.36);--t-pill-bg:transparent;--t-pill-ink:#c7d8ee;
  --t-pill-active:linear-gradient(180deg,#133a50,#0d283b);--t-pill-active-edge:#38daf5;--t-pill-active-ink:#e4f2f9;
  --t-hero:linear-gradient(150deg,#0d2031 0%,#102b41 55%,#0d2031 100%);--t-hero-edge:#214458;--t-hero-shadow:0 18px 40px rgba(0,5,12,.4);
  --t-shadow:0 16px 36px rgba(0,5,18,.5);--t-shadow-soft:0 8px 22px rgba(0,5,18,.36);--t-inset:inset 0 1px 0 rgba(255,255,255,.05);
  --t-focus:0 0 0 3px rgba(56,189,248,.3);
  --t-warn:#f5b53f;--t-warn-bg:rgba(245,181,63,.13);--t-danger:#ff6b81;--t-success:#4ade80;
  --t-backdrop:rgba(2,8,22,.62);
  --t-radius:12px;--t-radius-sm:8px;--t-ease:cubic-bezier(.22,1,.36,1);
  --t-bar:linear-gradient(180deg,#0d2031,#081522);
  color-scheme:dark;
}
html[data-mtr-theme="light"]{
  --t-bg:#dde4ee;--t-bg-2:#e6ebf3;--t-bg-3:#eff3f8;
  --t-glow-a:rgba(255,255,255,.75);--t-glow-b:rgba(165,150,235,.2);
  --t-surface:rgba(244,247,252,.98);--t-surface-solid:#f4f7fc;--t-surface-2:#e8eef7;
  --t-control:#ffffff;--t-control-hover:#eef4fc;--t-field:#ffffff;
  --t-line:#cdd8e6;--t-line-strong:#9fb4cf;
  --t-card-edge:rgba(255,255,255,.95);--t-card-hi:rgba(255,255,255,.65);--t-card-ring:rgba(120,145,180,.16);
  --t-text:#13233d;--t-muted:#4d5f80;--t-faint:#5f708a;
  --t-accent:#2d7ae0;--t-accent-text:#1766c4;--t-cyan:#0a9fc4;
  --t-primary:linear-gradient(180deg,#3380e6,#1f62cb);--t-primary-hover:linear-gradient(180deg,#3b88ec,#2468d2);
  --t-primary-edge:rgba(30,90,190,.32);--t-primary-ink:#fff;--t-primary-shadow:0 8px 18px rgba(31,98,203,.26);
  --t-selected:rgba(45,122,224,.12);--t-selected-edge:rgba(45,122,224,.5);
  --t-pill-edge:#bccbdd;--t-pill-bg:#f3f6fa;--t-pill-ink:#34465f;
  --t-pill-active:linear-gradient(180deg,#2f78dc,#1f5fc4);--t-pill-active-edge:#1f5fc4;--t-pill-active-ink:#fff;
  --t-hero:linear-gradient(150deg,#16325f 0%,#1d4178 55%,#27508e 100%);--t-hero-edge:rgba(40,80,150,.32);--t-hero-shadow:0 18px 36px rgba(22,50,95,.3);
  --t-shadow:0 16px 34px rgba(34,60,100,.16);--t-shadow-soft:0 6px 18px rgba(34,60,100,.1);--t-inset:inset 0 1px 0 #fff;
  --t-focus:0 0 0 3px rgba(45,122,224,.25);
  --t-warn:#a8650f;--t-warn-bg:rgba(214,140,30,.13);--t-danger:#c2334c;--t-success:#146c34;
  --t-backdrop:rgba(20,35,60,.38);
  --t-bar:#ffffff;
  color-scheme:light;
}
/* Older layers read these names; custom properties resolve where defined, so scopes below repeat them. */
html[data-mtr-theme]{
  --mg-bg-0:var(--t-bg);--mg-bg-1:var(--t-bg-2);--mg-bg-2:var(--t-bg-3);
  --mg-glass:var(--t-surface);--mg-glass-strong:var(--t-surface-solid);--mg-glass-soft:var(--t-control);
  --mg-line:var(--t-line);--mg-line-strong:var(--t-line-strong);
  --mg-text:var(--t-text);--mg-muted:var(--t-muted);--mg-faint:var(--t-faint);
  --mg-cyan:var(--t-cyan);--mg-gold:var(--t-accent-text);--mg-accent:var(--t-accent);
  --mg-success:var(--t-success);--mg-danger:var(--t-danger);
  --mg-shadow:var(--t-shadow);--mg-shadow-soft:var(--t-shadow-soft);--mg-inset:var(--t-inset);
  --mg-radius-xl:20px;--mg-radius-lg:var(--t-radius);--mg-radius-md:12px;--mg-blur:none;
  --ui-bg:var(--t-bg);--ui-surface:var(--t-surface-solid);--ui-soft:var(--t-control);--ui-glass:var(--t-surface);
  --ui-line:var(--t-line);--ui-text:var(--t-text);--ui-muted:var(--t-muted);--ui-accent:var(--t-accent-text);--ui-cyan:var(--t-cyan);
  --ui-shadow:var(--t-shadow);--ui-panel:var(--t-surface);--ui-opaque:var(--t-surface-solid);--ui-radius:var(--t-radius);
  --ui-raised:var(--t-surface-2);--ui-border:var(--t-line);--ui-input:var(--t-field);
  --glass-card:var(--t-control);--glass-edge:var(--t-line);--glass-field:var(--t-field);--glass-shadow:var(--t-shadow-soft);--glass-radius:var(--t-radius);
  --line:var(--t-line);--text:var(--t-text);--muted:var(--t-muted);--cyan:var(--t-cyan);--gold:var(--t-accent-text);--surface:var(--t-surface-solid);--accent:var(--t-accent);
  --mtr-gold:var(--t-accent-text);--mtr-aqua:var(--t-cyan);
}

/* ---------- Performance: backdrop blur is the most expensive effect; surfaces are opaque instead ---------- */
html[data-mtr-theme] *:not(#_):not(#__),html[data-mtr-theme] *:not(#_):not(#__)::before,html[data-mtr-theme] *:not(#_):not(#__)::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* ---------- Page ---------- */
html[data-mtr-theme],html[data-mtr-theme] body{background:var(--t-bg);color:var(--t-text)}
html[data-mtr-theme] :is(#mtrAppShell,#app){
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%,var(--t-glow-a),transparent 70%),
    radial-gradient(ellipse 45% 40% at 100% 100%,var(--t-glow-b),transparent 72%),
    linear-gradient(180deg,var(--t-bg-2),var(--t-bg))!important;
  color:var(--t-text);
}
html[data-mtr-theme] #mtrAppShell :is(h1,h2,h3,strong,b){color:inherit}
html[data-mtr-theme] .ui-page p,html[data-mtr-theme] .ui-page small{color:var(--t-muted)}
html[data-mtr-theme] :is(.ui-eyebrow,.mtrEyebrow){color:var(--t-accent-text)!important}
html[data-mtr-theme] .mtrEyebrow{border-left-color:var(--t-line-strong)}
html[data-mtr-theme] :is(.ui-link,#mtrAppShell a:not([class])){color:var(--t-accent-text)}
html[data-mtr-theme] .ui-release{color:var(--t-faint)}

/* ---------- Navigation bar: logo left, outlined pills grouped right, active pill filled ---------- */
html[data-mtr-theme] .ui-topbar{position:relative;align-items:center;column-gap:24px;row-gap:10px;padding:10px 12px 10px 20px;margin-bottom:34px;border:1px solid var(--t-card-edge);border-radius:18px;background:var(--t-bar);box-shadow:var(--t-inset),0 0 0 1px var(--t-card-ring),var(--t-shadow-soft)}
html[data-mtr-theme] .ui-topbar .ui-release{position:absolute;left:20px;top:calc(100% + 7px);flex-basis:auto;white-space:nowrap}
html[data-mtr-theme] .ui-nav{gap:8px;padding:0;border:0;background:transparent;box-shadow:none;justify-content:flex-end}
@media(max-width:1100px){html[data-mtr-theme] .ui-topbar{padding:12px}html[data-mtr-theme] .ui-topbar .mtrShellBrand{padding-left:8px}html[data-mtr-theme] .ui-nav{justify-content:flex-start;flex-wrap:wrap}}
html[data-mtr-theme] body.has-mobile-app-nav .ui-topbar{padding:10px 16px!important;margin-bottom:26px!important}
html[data-mtr-theme] .ui-nav button{min-height:44px;padding:8px 16px;border:1px solid var(--t-pill-edge);border-radius:999px;background:var(--t-pill-bg);color:var(--t-pill-ink);font-weight:600}
html[data-mtr-theme] .ui-nav button span{color:inherit;opacity:.7}
html[data-mtr-theme] .ui-nav :is(button:hover,button[aria-expanded="true"]){border-color:var(--t-line-strong);background:var(--t-control-hover);color:var(--t-text)}
html[data-mtr-theme] .ui-nav :is(button[aria-current="page"],button.is-current){border-color:var(--t-pill-active-edge);background:var(--t-pill-active);color:var(--t-pill-active-ink);box-shadow:0 0 0 3px rgba(62,166,245,.12)}
@media(max-width:700px){html[data-mtr-theme] .ui-nav{gap:6px;flex-wrap:wrap}html[data-mtr-theme] .ui-nav button{padding:8px 12px}}
html[data-mtr-theme] .ui-menu{background:var(--t-surface-solid);border:1px solid var(--t-line);border-radius:14px;box-shadow:var(--t-shadow);color:var(--t-text)}
html[data-mtr-theme] .ui-menu button:hover{background:var(--t-control-hover)}
html[data-mtr-theme] .ui-menu button[aria-current="page"]{background:var(--t-selected);color:var(--t-accent-text)}
html[data-mtr-theme] .ui-menu :is(small,[data-logout]){color:var(--t-muted);border-color:var(--t-line)}
html[data-mtr-theme] #mtrAppShell .mobile-app-nav{background:var(--t-surface-solid);border-top:1px solid var(--t-line);box-shadow:0 -8px 24px rgba(0,5,18,.18)}
html[data-mtr-theme] #mtrAppShell .mobile-app-nav button{color:var(--t-muted)}
html[data-mtr-theme] #mtrAppShell :is(.mobile-app-nav button.is-current,.mobile-app-nav button[aria-expanded="true"]){background:var(--t-selected);color:var(--t-accent-text)}

/* ---------- Cards ---------- */
/* :not(#_) lifts these over minimal-glass.css, whose shared :is() list carries an id selector. */
html[data-mtr-theme] .ui-surface:not(#_),
html[data-mtr-theme] :is(.mtrAccountPopover,.mtrAccountLogin,.mtrDataGrid button,.mtrSettings section,.mtrAlertCard,.mtrMessenger,.mtrProcedureCard,.mtrProcedureAdmin,.mtrSchedule,.mtrProfileIdentity,.mtrProfileForm,.mtrUsersPanel,.mtrStatusOrbit,.mtrOrderOrbit,.worker-tool-tile):not(#_){
  background:linear-gradient(180deg,var(--t-card-hi),transparent 42%),var(--t-surface)!important;
  border:1px solid var(--t-card-edge)!important;border-radius:var(--t-radius)!important;
  box-shadow:var(--t-inset),0 0 0 1px var(--t-card-ring),var(--t-shadow-soft)!important;
  color:var(--t-text);
}
html[data-mtr-theme] :is(.mtrDataGrid button,.mtrProcedureCard,.mtrAlertCard,.worker-tool-tile,.ui-shortcut,.ui-warehouse-card):hover:not(#_){border-color:var(--t-line-strong)!important}
html[data-mtr-theme] :is(.ui-icon,.mtrProcedureCard>span){border:1px solid var(--t-selected-edge);border-radius:12px;background:var(--t-selected);color:var(--t-accent-text)}

/* Highlight cards stay navy in both themes; they carry their own dark token scope. */
html[data-mtr-theme] :is(.ui-day,.packing-task-card):not(#_){
  --t-text:#fff;--t-muted:#bccde9;--t-faint:#8ea6cc;--t-line:rgba(160,200,255,.26);--t-line-strong:rgba(170,210,255,.45);
  --t-control:rgba(255,255,255,.08);--t-control-hover:rgba(255,255,255,.14);--t-field:rgba(4,14,34,.4);--t-surface-2:rgba(255,255,255,.07);
  --t-accent-text:#86d4ff;--t-cyan:#3fe0f5;--t-selected:rgba(120,190,255,.2);--t-selected-edge:rgba(140,205,255,.55);
  --mg-text:#fff;--mg-muted:#bccde9;--mg-faint:#8ea6cc;--mg-line:rgba(160,200,255,.26);--mg-glass-soft:rgba(255,255,255,.08);--mg-cyan:#3fe0f5;--mg-gold:#86d4ff;
  --ui-text:#fff;--ui-muted:#bccde9;--ui-line:rgba(160,200,255,.26);--ui-soft:rgba(255,255,255,.08);--ui-accent:#86d4ff;
  background:var(--t-hero)!important;border-color:var(--t-hero-edge)!important;box-shadow:var(--t-hero-shadow)!important;color:#fff;
}
html[data-mtr-theme] :is(.ui-day,.packing-task-card) :is(p,small,.ui-task-meta){color:var(--t-muted)}

/* ---------- Buttons ---------- */
html[data-mtr-theme] .ui-button{border:1px solid var(--t-line);border-radius:var(--t-radius-sm);background:var(--t-control);color:var(--t-text)}
html[data-mtr-theme] .ui-button:hover{border-color:var(--t-line-strong);background:var(--t-control-hover)}
html[data-mtr-theme] #mtrAppShell button:not([class^="ui-"]):not(.ui-nav button){border-color:var(--t-line)}
html[data-mtr-theme] :is(.ui-button-primary,.mtrPrimary,.pri2,#mtrAppShell .packing-receive,.location-operations button[type=submit],.location-racks button[aria-pressed=true],.location-confirm button:first-of-type,#pickingPanel .pick-focus.active,#poolPicking [aria-pressed=true],#sceneControls [aria-pressed="true"]){
  border:1px solid var(--t-primary-edge)!important;background:var(--t-primary)!important;color:var(--t-primary-ink)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),var(--t-primary-shadow)!important;text-shadow:none!important;
}
html[data-mtr-theme] :is(.ui-button-primary,.mtrPrimary,.pri2,#mtrAppShell .packing-receive):not(:disabled):hover{background:var(--t-primary-hover)!important;filter:none}
html[data-mtr-theme] #mtrAppShell .packing-receive{border-radius:14px}
html[data-mtr-theme] .mtrGhost{border-color:var(--t-line)!important;background:var(--t-control)!important;color:var(--t-text)!important}

/* ---------- Forms ---------- */
html[data-mtr-theme] #mtrAppShell :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea),
html[data-mtr-theme] #mtrAppShell input[type=file]{background:var(--t-field)!important;border-color:var(--t-line)!important;color:var(--t-text)!important;box-shadow:none!important}
html[data-mtr-theme] #mtrAppShell :is(input,select,textarea):focus{border-color:var(--t-accent)!important;background:var(--t-field)!important;box-shadow:var(--t-focus)!important}
html[data-mtr-theme] #mtrAppShell :is(input,textarea)::placeholder{color:var(--t-faint)}
html[data-mtr-theme] :is(input[type=checkbox],input[type=radio],input[type=range],progress,.mtrOption input){accent-color:var(--t-cyan)}
html[data-mtr-theme] :is(.ui-nav,.ui-menu,.ui-page,.ui-task-page) :is(button,input,select,textarea):focus-visible{outline-color:var(--t-accent)}
html[data-mtr-theme] .mtrSegment{border:1px solid var(--t-line)!important;border-radius:999px!important;background:var(--t-control);overflow:hidden}
html[data-mtr-theme] .mtrSegment button{border-radius:999px!important;background:transparent!important;color:var(--t-muted)!important}
html[data-mtr-theme] .mtrSegment button.active{background:var(--t-pill-active)!important;color:var(--t-pill-active-ink)!important}
html[data-mtr-theme] .mtrSwitch{border:1px solid var(--t-line)!important;border-radius:999px!important;background:var(--t-control)!important;color:var(--t-muted)!important}
html[data-mtr-theme] .mtrSwitch[aria-pressed="true"]{border-color:var(--t-selected-edge)!important;background:var(--t-selected)!important;color:var(--t-accent-text)!important}
html[data-mtr-theme] .mtrPasswordField button{background:var(--t-control)!important;color:var(--t-accent-text)!important}

/* ---------- Dialogs ---------- */
html[data-mtr-theme] dialog::backdrop{background:var(--t-backdrop)}
html[data-mtr-theme] :is(#mtrUsersDialog,#mtrMessageDialog,#mtrProcedureDialog,#mtrReportDialog){background:var(--t-backdrop)}
html[data-mtr-theme] :is(.return-dialog,.return-product-preview,.product-photo-dialog,.shift-dialog,.product-search-results,.guide-exercise,#mtrMessageDialog>section,#mtrProcedureDialog>article,#mtrUsersDialog>.mtrUsersPanel){
  background:var(--t-surface-solid)!important;color:var(--t-text)!important;border:1px solid var(--t-line);box-shadow:var(--t-shadow);
}
html[data-mtr-theme] .shift-actions button{background:var(--t-control);color:var(--t-text)}

/* ---------- Stations lobby ---------- */
html[data-mtr-theme] .station-choice .station-tile{border:1px solid var(--t-card-edge);background:linear-gradient(180deg,var(--t-card-hi),transparent 42%),var(--t-surface);box-shadow:var(--t-inset),0 0 0 1px var(--t-card-ring),var(--t-shadow-soft);color:var(--t-text)}
html[data-mtr-theme] .station-choice .station-tile:not(:disabled):hover{border-color:var(--t-line-strong);background:linear-gradient(180deg,var(--t-selected),transparent 70%),var(--t-surface)}
html[data-mtr-theme] :is(.employee-tile,.station-tile)[aria-pressed=true],
html[data-mtr-theme] .station-choice .station-tile[aria-pressed=true]:not(:disabled):hover{outline:2px solid var(--t-accent);border-color:var(--t-accent);background:linear-gradient(180deg,var(--t-selected),var(--t-selected)),var(--t-surface);box-shadow:0 0 0 4px rgba(59,140,240,.16),var(--t-shadow-soft);color:var(--t-text)}
html[data-mtr-theme] .station-tile:disabled{background:var(--t-control);color:var(--t-faint)}
html[data-mtr-theme] .employee-initials{background:var(--t-primary);color:var(--t-primary-ink)}

/* ---------- Tasks, messages, procedures, profile ---------- */
html[data-mtr-theme] .priority{border-radius:999px}
html[data-mtr-theme] .priority:not(.high):not(.urgent){background:var(--t-selected);color:var(--t-accent-text)}
html[data-mtr-theme] .priority.high,html[data-mtr-theme] .ui-task-page .priority.high{background:var(--t-warn-bg);color:var(--t-warn)}
html[data-mtr-theme] .priority.urgent{background:rgba(255,107,129,.14);color:var(--t-danger)}
html[data-mtr-theme] .ui-task-row{border-color:var(--t-card-edge);background:var(--t-surface)}
html[data-mtr-theme] .mtrMessageBubble{border-color:var(--t-line);background:var(--t-control)}
html[data-mtr-theme] .mtrMessageBubble.mine{background:var(--t-selected);border-color:var(--t-selected-edge)}
html[data-mtr-theme] .mtrMessageComposer{border-top-color:var(--t-line);background:transparent}
html[data-mtr-theme] .mtrProfileAvatar{border-color:var(--t-primary-edge);background:var(--t-primary);color:var(--t-primary-ink)}
html[data-mtr-theme] :is(.mtrProfileIdentity p,.mtrProfileForm label span){color:var(--t-muted)}
html[data-mtr-theme] :is(.mtrProfileForm>div small,.mtrAlerts>h2){color:var(--t-accent-text)}
html[data-mtr-theme] .mtrScheduleTable :is(td,th){border-bottom-color:var(--t-line)}
html[data-mtr-theme] .guide-explain-flash{animation-name:tExplainFlash}
@keyframes tExplainFlash{0%{background:var(--t-selected);border-color:var(--t-accent)}100%{background:transparent;border-color:var(--t-line)}}
html[data-mtr-theme] :is(.return-checklist-toggle[aria-expanded=true]){background:var(--t-selected)}
html[data-mtr-theme] :is(.worker-tool-tile,.return-checklist-toggle,.return-product[role=button]):focus-visible{outline-color:var(--t-accent)}
html[data-mtr-theme] .work-locator{background:var(--t-selected)}
html[data-mtr-theme] .movement-task-step{background:var(--t-surface-2);color:var(--t-text)}
html[data-mtr-theme] .movement-task-step.is-next{outline-color:var(--t-accent);background:linear-gradient(180deg,var(--t-selected),transparent),var(--t-surface-2)}
html[data-mtr-theme] :is(.planner-publish-form,.movement-task-progress,.movement-task-recovery){border-color:var(--t-line);background:var(--t-surface);color:var(--t-text)}
html[data-mtr-theme] .planner-published{color:var(--t-success)}

/* ---------- Packing, orders, mass print ---------- */
html[data-mtr-theme] .packing-state{border-color:var(--t-selected-edge);background:var(--t-selected);color:var(--t-text)}
html[data-mtr-theme] .packing-received{border-color:var(--t-line)}
html[data-mtr-theme] .mass-print-quantity{border-color:var(--t-cyan);color:var(--t-text)}
html[data-mtr-theme] .fulfillment-panel{border-top-color:var(--t-line)}
html[data-mtr-theme] :is(.fulfillment-panel button,.orders-home button){border-color:var(--t-line);background:var(--t-control);color:var(--t-text)}
html[data-mtr-theme] .fulfillment-panel button:focus-visible{outline-color:var(--t-accent)}
html[data-mtr-theme] :is(.fulfillment-panel input,.fulfillment-panel select){background:var(--t-field);color:var(--t-text);border-color:var(--t-line)}
html[data-mtr-theme] .fulfillment-panel form{border-color:var(--t-line)}
html[data-mtr-theme] .orders-badge{background:var(--t-selected);color:var(--t-accent-text)}
html[data-mtr-theme] .order-overview th{background:var(--t-surface-2);color:var(--t-muted)}
html[data-mtr-theme] .order-overview :is(td,th){border-color:var(--t-line)}
html[data-mtr-theme] .orders-console .order-overview td:nth-child(2){border-left-color:var(--t-accent)}
html[data-mtr-theme] .orders-sidebar button{color:var(--t-text)}
html[data-mtr-theme] .orders-sidebar button[aria-pressed=true]{background:var(--t-selected);box-shadow:inset 3px 0 var(--t-accent);color:var(--t-text)}
html[data-mtr-theme] .admin-order-list tr:has(input:checked){background:var(--t-selected)}
html[data-mtr-theme] .batch-section{border-color:var(--t-line);background:var(--t-control)}
html[data-mtr-theme] .batch-section>summary{color:var(--t-accent-text)}
html[data-mtr-theme] .orders-console .order-bulk [role=alertdialog]{background:var(--t-warn-bg);border-color:var(--t-warn)}
html[data-mtr-theme] #poolPicking{background:var(--t-surface-solid);color:var(--t-text);border-color:var(--t-line)}
html[data-mtr-theme] #poolPicking .pool-item{border-color:var(--t-line)}
html[data-mtr-theme] #poolPicking .pool-item.selected{border-color:var(--t-accent)}
html[data-mtr-theme] .pool-collected:has(input:checked){color:var(--t-accent-text)}

/* ---------- Locations ---------- */
html[data-mtr-theme] .location-operations{background:var(--t-surface-solid);color:var(--t-text);border-color:var(--t-line)}
html[data-mtr-theme] :is(.location-operations small,.location-hint,.location-level-label,.location-product-name,.location-bay-columns,.location-nav-label,.location-function-choice span,.location-function-intro){color:var(--t-muted)}
html[data-mtr-theme] .location-bay-heading{color:var(--t-text)}
html[data-mtr-theme] .location-empty-mark{color:var(--t-faint)}
html[data-mtr-theme] :is(.location-operations select,.location-operations input,.location-operations textarea,.location-bay){background:var(--t-field);color:var(--t-text)}
html[data-mtr-theme] .location-operations button{background:var(--t-surface-2);color:var(--t-text)}
html[data-mtr-theme] .location-operations :focus-visible{outline-color:var(--t-accent)}
html[data-mtr-theme] :is(.location-operations article,.location-edit-row,.location-operations details){border-color:var(--t-line)}
html[data-mtr-theme] :is(.location-confirm,.location-operations .location-pallet){background:var(--t-surface-2)}
html[data-mtr-theme] .location-pallet[aria-pressed=true]{outline-color:var(--t-accent);background:var(--t-selected)}
html[data-mtr-theme] [data-place-management]{background:var(--t-surface-solid)}
html[data-mtr-theme] :is(.location-search-hit:hover,.location-search-hit:focus-visible){background:var(--t-selected)}

/* ---------- Warehouse 3D overlays ---------- */
html[data-mtr-theme] :is(#jarvisDeskNav,#jarvisMenu,#deskTaskBoard,#warehouseSummary,#walkKeysLegend,#panel,#tasks,#planer,#trasy,#edyt,#logbox,#bazabox,#inw,#volbox,#gabcheck,#hantleTask,#tip,#walkhud,#mtrSceneBar,.sbx){
  background:var(--t-surface)!important;border-color:var(--t-line)!important;color:var(--t-text)!important;box-shadow:var(--t-shadow-soft)!important;text-shadow:none!important;
}
html[data-mtr-theme] #jarvisDeskNav button{color:var(--t-muted)!important}
html[data-mtr-theme] #jarvisDeskNav button:hover{color:var(--t-text)!important;background:var(--t-control-hover)!important;border-color:var(--t-line)!important}
html[data-mtr-theme] #jarvisDeskNav #jdTasks{color:var(--t-accent-text)!important;border-color:var(--t-selected-edge)!important;background:var(--t-selected)!important}
html[data-mtr-theme] #jarvisDeskNav .jdControls{border-color:var(--t-line)!important;background:transparent!important}
html[data-mtr-theme] #jarvisMobileNav{border-color:var(--t-line)!important;background:var(--t-surface-solid)!important}
html[data-mtr-theme] #jarvisMobileNav button{border-color:var(--t-line)!important;background:var(--t-control)!important;color:var(--t-text)!important}
html[data-mtr-theme] #locationSearch{border-color:var(--t-line)!important;background:var(--t-field)!important;color:var(--t-text)!important}
html[data-mtr-theme] #locationSearch:focus{border-color:var(--t-accent)!important;box-shadow:var(--t-focus)!important}
html[data-mtr-theme] :is(.jdSearchSlot,.jdSearchSlot:hover,.jdSearchSlot:focus-within)::before{color:var(--t-accent-text)!important}
html[data-mtr-theme] :is(.jdIdentity,.jdControls,.jdSearchSlot){border-right-color:var(--t-line)!important}
html[data-mtr-theme] :is(.jdSystemMeta #saveStatus,#jarvisDeskNav>#saveStatus.jdAttachedSave){border-color:var(--t-line)!important;background:var(--t-control)!important}
html[data-mtr-theme] #warehouseSummary :is(#stats,#legend){background:transparent!important}
html[data-mtr-theme] #warehouseSummary #stats{border-bottom-color:var(--t-line)!important}
html[data-mtr-theme] .sectionPin{border-color:var(--t-line)!important;background:var(--t-surface)!important;color:var(--t-text)!important}
html[data-mtr-theme] :is(.task,.pstep,.row,.src,.ebox,.brow,.irow,.volrow,.hstep,.jbCard){border-color:var(--t-line)!important;background:var(--t-control)!important;color:var(--t-text)!important}
html[data-mtr-theme] #sceneControls :is(button,select){border-color:var(--t-line);background:var(--t-control);color:var(--t-text)}
html[data-mtr-theme] :is(body[data-mtr-view="scene"] #sceneControls,#sceneDesigner,#pickingPanel){color:var(--t-text)}
html[data-mtr-theme] .design-note{color:var(--t-muted)}

/* ---------- Rich content ---------- */
html[data-mtr-theme] .mtr-rich-editor{background:var(--t-field);color:var(--t-text);border-color:var(--t-line)}
html[data-mtr-theme] .mtr-rich-editor .mtr-rich-toolbar :is(button:hover,button[aria-pressed=true]){background:var(--t-selected)}
html[data-mtr-theme] .mtr-rich-editor .mtr-rich-toolbar button:focus-visible{outline-color:var(--t-accent)}
html[data-mtr-theme] .mtr-rich-input .tiptap:focus{box-shadow:0 0 0 2px var(--t-accent)}
html[data-mtr-theme] .mtr-rich-content a{color:var(--t-accent-text)}
html[data-mtr-theme] .mtr-rich-content th{background:var(--t-surface-2)}
html[data-mtr-theme] .mtr-rich-content .selectedCell{background:var(--t-selected)}

/* ---------- Motion: cheap hover/press feedback, transform only ---------- */
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  html[data-mtr-theme] body:not(.mtr-motion-off) :is(.ui-shortcut,.ui-warehouse-card,.worker-tool-tile,.mtrProcedureCard,.mtrAlertCard,.station-choice .station-tile:not(:disabled)){transition:transform .2s var(--t-ease),border-color .2s ease}
  html[data-mtr-theme] body:not(.mtr-motion-off) :is(.ui-shortcut,.ui-warehouse-card,.worker-tool-tile,.mtrProcedureCard,.mtrAlertCard,.station-choice .station-tile:not(:disabled)):hover{transform:translateY(-2px)}
}
@media(prefers-reduced-motion:no-preference){
  html[data-mtr-theme] body:not(.mtr-motion-off) #mtrAppShell button:not(:disabled):active{transform:scale(.98);transition:transform .08s ease}
}
body.mtr-motion-off *,body.mtr-motion-off *::before,body.mtr-motion-off *::after{transition:none!important;animation:none!important}

/* ---------- Audit fixes: contrast and leftover gold/teal ---------- */
html[data-mtr-theme] .order-status-label{background:var(--t-surface-2);color:var(--t-text);border:1px solid var(--t-line)}
html[data-mtr-theme] .mtrScheduleTable th{color:var(--t-muted)}
html[data-mtr-theme] .returns-table .return-link{color:var(--t-accent-text)}
html[data-mtr-theme] :is(.mtrMessageEmpty,.mtrMessengerLoading){color:var(--t-muted)}
html[data-mtr-theme] .mtrProfileIdentity i{background:rgba(74,222,128,.14);color:var(--t-success)}
html[data-mtr-theme] :is(.mtrProcedureCard small,.mtrProcedureCard em,.mtrSchedule>div>small){color:var(--t-accent-text)}
html[data-mtr-theme] .mtrUsersPanel #mtrUsersList button{border-color:var(--t-line);background:var(--t-control);color:var(--t-text)}
html[data-mtr-theme] .packing-views button{border:1px solid var(--t-line);background:var(--t-control);color:var(--t-text)}
html[data-mtr-theme] .ui-nav button .orders-badge{background:var(--t-primary);color:var(--t-primary-ink);opacity:1}
html[data-mtr-theme] #warehouseSummary #stats,html[data-mtr-theme] #warehouseSummary #stats b{color:var(--t-text)!important}
html[data-mtr-theme] #warehouseSummary :is(#stats span,#legend){color:var(--t-muted)!important}
html[data-mtr-theme] .jdMark{border-color:var(--t-cyan)!important;box-shadow:none!important}
html[data-mtr-theme] .jdMark::after{border-color:var(--t-accent-text)!important}

/* ---------- Visual review fixes ---------- */
/* Navigation: chevrons centred, account pill gets room, and on narrow screens it shares the logo row. */
html[data-mtr-theme] .ui-nav button>span[aria-hidden]{display:inline-block;margin-left:6px;line-height:1;transform:translateY(-.22em)}
@media(min-width:651px){html[data-mtr-theme] .ui-nav-group:last-child>button{max-width:280px}}
@media(max-width:1100px){
  html[data-mtr-theme] .ui-topbar .mtrShellBrand{min-height:44px;display:flex;align-items:center;flex-basis:100%}
  html[data-mtr-theme] .ui-topbar .ui-nav-account{position:absolute;top:12px;right:12px}
}
@media(max-width:650px){html[data-mtr-theme] .ui-topbar .ui-nav-account>button{max-width:min(190px,calc(100vw - 230px))}}
html[data-mtr-theme] .ui-nav :is(button[aria-current="page"],button.is-current) .orders-badge{background:var(--t-surface-solid);color:var(--t-text);opacity:1;box-shadow:inset 0 0 0 1px var(--t-line-strong)}
html[data-mtr-theme] .mtrWorkspace{width:min(1360px,100%);margin-inline:auto;padding-left:clamp(16px,4vw,56px);padding-right:clamp(16px,4vw,56px)}
@media(max-width:650px){html[data-mtr-theme] .mtrWorkspace{padding-left:14px;padding-right:14px}}

/* Station lobby: one card under the bar, raised tiles inside, even spacing. */
html[data-mtr-theme] .station-page .ui-topbar{flex-wrap:nowrap}
html[data-mtr-theme] .station-page .ui-topbar .mtrShellBrand{flex-basis:auto}
html[data-mtr-theme] .station-page .ui-nav{margin-left:auto;width:auto;flex-wrap:nowrap}
html[data-mtr-theme] .station-choice{display:grid;gap:16px;align-content:start}
html[data-mtr-theme] .station-choice h1{line-height:1.15;letter-spacing:-.02em}
html[data-mtr-theme] .station-choice .station-tile{background:var(--t-surface-2)}
html[data-mtr-theme] .station-choice .station-tiles{margin:0;padding:0}
html[data-mtr-theme] .station-choice .station-lobby{display:grid;gap:12px}
html[data-mtr-theme] .station-choice .station-lobby>[data-back]{justify-self:start}
html[data-mtr-theme] :is(.mtrPrimary,.pri2){font-weight:600!important}

/* Home and page rhythm. */
html[data-mtr-theme] .notice-panel p+.ui-button{margin-top:16px}

html[data-mtr-theme] .ui-page>label{display:grid;gap:6px;max-width:440px;margin-top:14px;font-size:13px;font-weight:600;color:var(--t-muted)}
html[data-mtr-theme] .ui-page>label>input{width:100%;min-height:44px;font-size:15px}
html[data-mtr-theme] .ui-page .guide-level small{color:inherit}
html[data-mtr-theme] .guide-quiz{display:grid;justify-items:start;gap:10px}

/* Procedures. */
html[data-mtr-theme] .mtrProcedureAdmin form{border:1px solid var(--t-line);background:var(--t-surface-2);color:var(--t-text)}
html[data-mtr-theme] .mtrProcedureAdmin :is(input,select,textarea){font-weight:400;font-size:14px}
html[data-mtr-theme] .mtrProcedureCard>button{font-size:13px;font-weight:600;border-radius:var(--t-radius-sm)}
html[data-mtr-theme] .mtrProcedureCard em{font-size:11px}
@media(max-width:1100px){html[data-mtr-theme] .mtrProcedureLayout{grid-template-columns:1fr}html[data-mtr-theme] .mtrProcedureMascot{display:none}}
@media(max-width:900px){html[data-mtr-theme] .mtrSchedule table{min-width:0;width:100%}}

/* Orders and packing. */
html[data-mtr-theme] :is(.order-no-photo,.quick-pack-product-row>.muted){display:grid;place-items:center;box-sizing:border-box;overflow:hidden;border:1px dashed var(--t-line-strong);border-radius:8px;background:var(--t-surface-2);color:var(--t-muted);font-size:9px;line-height:1.1;text-align:center}
html[data-mtr-theme] .quick-pack-product-row>.muted{width:56px;height:56px}
html[data-mtr-theme] .orders-sidebar h3{background:var(--t-surface-2);border-radius:8px;color:var(--t-text)}
@media(max-width:1000px){html[data-mtr-theme] .orders-workspace{grid-template-columns:minmax(0,1fr)}}
html[data-mtr-theme] .packing-views button[aria-pressed="true"]{border-color:var(--t-selected-edge);background:var(--t-selected);color:var(--t-text);box-shadow:inset 0 -2px 0 var(--t-accent)}
html[data-mtr-theme] .packing-task-page .ui-topbar{max-width:1120px;margin-inline:auto}
html[data-mtr-theme] #mtrAppShell input[type=file]::file-selector-button{margin-right:10px;padding:6px 14px;border:1px solid var(--t-line-strong);border-radius:8px;background:var(--t-control-hover);color:var(--t-text);font-weight:600;cursor:pointer}

/* Tasks, alerts and messages (review group 4). */
html[data-mtr-theme] .mtrMessagesWorkspace>.mtrMessenger{grid-column:1/-1}
html[data-mtr-theme] .mtrMessageComposer label{font-weight:600}
html[data-mtr-theme] .mtrMessageComposer label>:is(select,textarea,.mtr-rich-editor){font-weight:400;font-size:14px}
html[data-mtr-theme] .mtrWorkspace>header:not(.ui-topbar){margin-top:0;padding:24px 0 8px;border-top:0}
html[data-mtr-theme] .ui-task-page>:is(.ui-task-creator,.ui-surface,.notice-panel,.mtrAlerts)+:is(.ui-task-creator,.ui-surface,.notice-panel,.mtrAlerts){margin-top:16px}
html[data-mtr-theme] .ui-task-page>.ui-surface>h2{margin:0 0 12px;font-size:1.1rem}
html[data-mtr-theme] #taskCount{align-self:end;display:flex;align-items:center;min-height:44px}
@media(max-width:650px){html[data-mtr-theme] .ui-task-toolbar label:nth-child(2){flex:1 1 140px}html[data-mtr-theme] .ui-task-toolbar label:nth-child(4){flex:1 1 100%}html[data-mtr-theme] .ui-task-creator-head{flex-wrap:wrap}}
html[data-mtr-theme] .ui-task-creator-head [data-collapse]{flex:0 0 auto;white-space:nowrap}
html[data-mtr-theme] .ui-task-creator [data-inventory-task]{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr) auto;align-items:end;gap:14px;margin-top:16px}
html[data-mtr-theme] .ui-task-creator [data-inventory-task] label{display:grid;gap:7px}
@media(max-width:650px){html[data-mtr-theme] .ui-task-creator [data-inventory-task]{grid-template-columns:minmax(0,1fr)}}
html[data-mtr-theme] .ui-task-actions{align-content:start}
html[data-mtr-theme] .ui-task-actions>button{align-self:start}
@media(min-width:1001px){html[data-mtr-theme] .movement-task-row .ui-task-actions{grid-template-columns:1fr}}
html[data-mtr-theme] .movement-task-row .ui-assignee{display:block}
html[data-mtr-theme] :is(.movement-task-progress button,.movement-task-recovery button,.movement-task-row [data-movement-details],.packing-received [data-active-movement-details]){border:1px solid var(--t-line);border-radius:var(--t-radius-sm);background:var(--t-control);color:var(--t-text)}

/* Settings, users, profile, returns, 3D scene (review round 2). */
html[data-mtr-theme] #mtrUsersDialog>.mtrUsersPanel:not(#_){background:var(--t-surface-solid)!important}
html[data-mtr-theme] .mtrUsersPanel #mtrUsersList article{border-color:var(--t-line);background:var(--t-surface-2)}
html[data-mtr-theme] .mtrUsersPanel #mtrUsersList button{align-self:center;min-height:44px}
html[data-mtr-theme] .returns-panel{grid-template-columns:minmax(0,1fr)}
html[data-mtr-theme] .returns-panel>*{min-width:0;max-width:100%}
html[data-mtr-theme] .return-dialog .return-evidence{margin:6px 0 16px}
html[data-mtr-theme] .return-dialog [data-body]>[data-action]:not(:empty){margin-bottom:12px}
html[data-mtr-theme] .return-dialog a:not([class]){color:var(--t-accent-text)}
html[data-mtr-theme] .return-dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){background:var(--t-field)!important;border-color:var(--t-line)!important;color:var(--t-text)!important;box-shadow:none!important}
html[data-mtr-theme] .return-dialog :is(input,select,textarea):focus{border-color:var(--t-accent)!important;box-shadow:var(--t-focus)!important}
html[data-mtr-theme] .return-dialog :is(fieldset,article){border-color:var(--t-line)}
html[data-mtr-theme] .return-dialog :is(button,input,select,textarea,a):focus-visible{outline:2px solid var(--t-accent);outline-offset:2px}
@media(max-width:600px){html[data-mtr-theme] .return-dialog header{flex-wrap:wrap}html[data-mtr-theme] .return-dialog header h2{min-width:0}html[data-mtr-theme] .return-dialog header button{max-width:none;white-space:nowrap;flex:0 0 auto}}
html[data-mtr-theme] .returns-panel{grid-template-columns:minmax(0,1fr)}
html[data-mtr-theme] .returns-panel>*{min-width:0}
html[data-mtr-theme] .returns-table th:nth-child(2){width:32%}
html[data-mtr-theme] .returns-table th:nth-child(4){width:9%}
html[data-mtr-theme] .returns-table th:nth-child(5){width:14%}
html[data-mtr-theme] .returns-table th:nth-child(6){width:11%}
html[data-mtr-theme] .returns-table small{overflow-wrap:break-word}
html[data-mtr-theme] .returns-table-wrap{background:linear-gradient(180deg,var(--t-card-hi),transparent 42%),var(--t-surface);border:1px solid var(--t-card-edge);border-radius:var(--t-radius);box-shadow:var(--t-inset),0 0 0 1px var(--t-card-ring),var(--t-shadow-soft)}
html[data-mtr-theme] .returns-table th{background:var(--t-surface-2,var(--t-surface-solid));color:var(--t-muted)}
html[data-mtr-theme] .returns-table td{border-color:var(--t-line)}
html[data-mtr-theme] .returns-panel>button[data-register],html[data-mtr-theme] .returns-panel form[data-import]>button{justify-self:start;min-width:200px;padding-inline:20px}

html[data-mtr-theme] .returns-panel>button[data-register]:not(#_){border:1px solid var(--t-primary-edge)!important;background:var(--t-primary)!important;color:var(--t-primary-ink)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),var(--t-primary-shadow)!important}
html[data-mtr-theme] .returns-panel>button[data-register]:not(#_):not(:disabled):hover{background:var(--t-primary-hover)!important}
html[data-mtr-theme] .mtrProfileForm :is(input,select,textarea){font-weight:400;font-size:14px}
html[data-mtr-theme] .mtrProfileForm label span{font-size:12px;font-weight:400;line-height:1.4}
html[data-mtr-theme] #mtrAppShell :is(input,textarea)[readonly]:not(#_){background:var(--t-control)!important;color:var(--t-muted)!important;border-color:var(--t-line)!important;border-style:dashed!important;box-shadow:none!important;cursor:default}
html[data-mtr-theme] .mtrProfileActions>button{font-weight:600}
html[data-mtr-theme] #mtrAppShell .mtrOption input[type=checkbox]{flex:0 0 auto;width:22px;height:22px;min-width:0;min-height:0;margin:0;padding:0}
html[data-mtr-theme="light"] input[type=range]:not(#_){accent-color:var(--t-accent)}
html[data-mtr-theme] .mtrSettings #manageUsers{margin-top:14px}
html[data-mtr-theme] .mtrSettings section>section:not(#_){margin-top:20px}
html[data-mtr-theme] #mtrAppShell label.mtrOption{font-size:inherit}
html[data-mtr-theme] .mtrSegment button{flex:1 1 auto;justify-content:center;text-align:center}
html[data-mtr-theme] :is(.work-active,.work-pool,.work-locator)[hidden]{display:none!important}
html[data-mtr-theme] .work-locator>[data-work-scene]{margin-top:14px}
@media(max-width:760px){html[data-mtr-theme] body[data-mtr-view="scene"] #warehouseSummary{bottom:116px!important;max-height:min(210px,calc(100dvh - 300px))!important}}
@media(max-width:760px){html[data-mtr-theme] #mtrSceneBar.show:not(.worker){flex-wrap:wrap!important;gap:6px!important}html[data-mtr-theme] #mtrSceneBar:not(.worker)>button[data-home]{white-space:nowrap!important;flex:0 0 auto}html[data-mtr-theme] #mtrSceneBar:not(.worker)>span{flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}html[data-mtr-theme] #mtrSceneBar:not(.worker)>button:not([data-home]){flex:1 1 40%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:760px){html[data-mtr-theme] body[data-mtr-view="scene"]:not(.mtr-worker-mode) #sceneControls{left:8px!important;right:8px!important;transform:none!important;width:auto!important;max-width:calc(100vw - 16px)!important;box-sizing:border-box!important;flex-wrap:wrap!important;overflow:visible!important}html[data-mtr-theme] body[data-mtr-view="scene"]:not(.mtr-worker-mode) #sceneControls :is(button,select){flex:1 0 auto}}
html[data-mtr-theme] :is(.mtrDataGrid button,.mtrSettings section){animation:none!important}
html[data-mtr-theme] :is(.mtrWorkspace,.mtrWorkspace header){animation:none!important}
@media(max-width:560px){}
/* ---------- Operational HUD: static structure, event-driven motion ---------- */






html[data-mtr-theme] :is(.ui-eyebrow,.mtrEyebrow){letter-spacing:.12em}
html[data-mtr-theme] :is(.orders-total,.orders-badge,.movement-task-count,.batch-progress){font-variant-numeric:tabular-nums}
html[data-mtr-theme] .movement-task-progress progress{display:block;width:100%;height:6px;margin:14px 0 20px;border:0;border-radius:3px;accent-color:var(--t-accent);background:var(--t-line)}
html[data-mtr-theme] .movement-task-progress progress::-webkit-progress-bar{background:var(--t-line);border-radius:3px}
html[data-mtr-theme] .movement-task-progress progress::-webkit-progress-value{background:var(--t-accent);border-radius:3px}
html[data-mtr-theme] .mtr-motion-receipt{position:fixed;z-index:10050;right:max(16px,env(safe-area-inset-right));bottom:calc(24px + env(safe-area-inset-bottom));max-width:min(440px,calc(100vw - 32px));padding:16px 20px;border:1px solid var(--t-line-strong);border-left:3px solid var(--t-accent);border-radius:var(--t-radius-sm);background:var(--t-surface-solid);color:var(--t-text);box-shadow:var(--t-shadow);font-size:14px;line-height:1.5;pointer-events:none;overflow-wrap:anywhere}
html[data-mtr-theme] .mtr-motion-receipt[hidden]{display:none}
html[data-mtr-theme] .mtr-motion-receipt[data-state="error"]{border-left-color:var(--t-danger)}
html[data-mtr-theme] .mtr-motion-receipt[data-state="complete"]{border-left-color:var(--t-success)}
@media(max-width:760px){


html[data-mtr-theme] .mtr-motion-receipt{bottom:calc(100px + env(safe-area-inset-bottom))}}

/* ---------- Performance: no endless decorative animations (they repaint every frame) ---------- */
html[data-mtr-theme] :is(.jdMark,.jdBrand,.pstep.swapStep,.teamstep.p1,.bar i),html[data-mtr-theme] .jdMark::after,html[data-mtr-theme] body::before,html[data-mtr-theme] #mtrAppShell::after{animation:none!important}
html[data-mtr-theme] :is(.pstep.swapStep,.teamstep.p1){box-shadow:0 0 0 2px var(--t-selected-edge)!important}

/* ---------- Accessibility preferences win over decoration ---------- */
html[data-mtr-theme] body.mtr-high-contrast :is(.ui-surface,.ui-nav button,.ui-menu,.ui-task-row,.station-tile):not(#_){background:var(--t-surface-solid)!important;border-color:var(--t-text)!important;box-shadow:none!important}
@media(prefers-reduced-transparency:reduce){html[data-mtr-theme] :is(.ui-surface,.ui-menu,.ui-nav):not(#_){background:var(--t-surface-solid)!important}}

/* JARVIS SVG SHELL START */

/* SVG export composition — actual controls/data, responsive adaptation. */
@font-face{font-family:Inter;src:url('assets/fonts/Inter.ttf') format('truetype');font-weight:100 900;font-display:swap}
@font-face{font-family:Rajdhani;src:url('assets/fonts/Rajdhani-SemiBold.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('assets/fonts/IBMPlexMono-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
html[data-mtr-theme]{--j-font:Inter,'Segoe UI',sans-serif;--j-heading:Rajdhani,Inter,sans-serif;--j-mono:'IBM Plex Mono',Consolas,monospace}
html[data-mtr-theme] body[data-jarvis] #mtrAppShell{background:var(--t-bg)!important;font-family:var(--j-font);font-size:14px}
html[data-mtr-theme] body[data-jarvis] :is(.jarvis-page,.jarvis-access){box-sizing:border-box;width:100%;max-width:1600px;margin:0 auto;padding:32px!important;display:block;min-height:100dvh;background:none;border:0;box-shadow:none}
html[data-mtr-theme] body[data-jarvis] :is(.jarvis-page,.jarvis-access) *{box-sizing:border-box}
html[data-mtr-theme] body[data-jarvis] .jarvis-header{display:flex;align-items:center;gap:24px;min-height:60px;padding:0 0 24px;border:0;border-bottom:1px solid var(--t-line);background:none;box-shadow:none;margin:0;position:relative}
html[data-mtr-theme] body[data-jarvis] .jarvis-wordmark{font:600 24px/1 var(--j-heading);white-space:nowrap;color:var(--t-text)}
html[data-mtr-theme] body[data-jarvis] .jarvis-system,html[data-mtr-theme] body[data-jarvis] .jarvis-session{font:10px/1.5 var(--j-mono);color:var(--t-muted)}
html[data-mtr-theme] body[data-jarvis] .jarvis-system i{font-style:normal;margin:0 24px}
html[data-mtr-theme] body[data-jarvis] .jarvis-session{margin-left:auto;text-align:right}
html[data-mtr-theme] body[data-jarvis] .jarvis-title{margin:32px 0 24px}
html[data-mtr-theme] body[data-jarvis] .jarvis-title h1{font:600 38px/1.2 var(--j-heading);letter-spacing:0;margin:0 0 10px;color:var(--t-text)}
html[data-mtr-theme] body[data-jarvis] .jarvis-title p{font:14px/1.55 var(--j-font);margin:0;color:var(--t-muted)}
/* Laptop browser areas are short: tighten page chrome, keep controls and content at full size. */
@media(min-width:761px) and (max-height:900px){html[data-mtr-theme] body[data-jarvis] :is(.jarvis-page,.jarvis-access){padding:20px 28px!important}html[data-mtr-theme] body[data-jarvis] .jarvis-header{min-height:48px;padding-bottom:14px}html[data-mtr-theme] body[data-jarvis] .jarvis-title{margin:18px 0 16px}html[data-mtr-theme] body[data-jarvis] .jarvis-title h1{font-size:30px;margin-bottom:4px}html[data-mtr-theme] body[data-jarvis] .jarvis-content{gap:18px}}
html[data-mtr-theme] body[data-jarvis] .jarvis-layout{display:grid;grid-template-columns:194px minmax(0,1fr);gap:24px;align-items:start}
html[data-mtr-theme] body[data-jarvis] .jarvis-content{min-width:0;display:flex;flex-direction:column;gap:24px}
html[data-mtr-theme] body[data-jarvis] .jarvis-content>header:empty{display:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-sidebar{display:grid;gap:8px;padding:8px;border:1px solid var(--t-line);background:var(--t-surface-solid);border-radius:8px;align-self:start}
html[data-mtr-theme] body[data-jarvis] :is(.jarvis-sidebar button,.jarvis-panel>button,.jarvis-admin-tabs button){min-height:48px;width:100%;padding:10px 16px;border:1px solid var(--t-line);border-radius:8px;background:var(--t-surface-solid);color:var(--t-text);font:600 14px/1.5 var(--j-font);box-shadow:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-sidebar button[aria-current=page]{border-color:var(--t-accent);background:var(--t-control)}
html[data-mtr-theme] body[data-jarvis] .jarvis-more{margin:0;padding:0;border:0;background:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-more summary{padding:12px 8px;cursor:pointer;font-size:12px;color:var(--t-muted)}
html[data-mtr-theme] body[data-jarvis] .jarvis-more button{margin-top:8px;font-size:12px}
html[data-mtr-theme] body[data-jarvis] .jarvis-account{display:grid;gap:8px;border-top:1px solid var(--t-line);padding-top:8px}
html[data-mtr-theme] body[data-jarvis] .jarvis-account button{font-size:12px}
html[data-mtr-theme] body[data-jarvis] :is(.jarvis-content,.jarvis-access) :is(h2,h3){font-family:var(--j-heading);font-weight:600;letter-spacing:0}
html[data-mtr-theme] body[data-jarvis] :is(.jarvis-content,.jarvis-access) h2{font-size:24px}
html[data-mtr-theme] body[data-jarvis] :is(.jarvis-panel,.jarvis-metric){padding:24px;border:1px solid var(--t-line);border-radius:8px;background:var(--t-surface-solid);color:var(--t-text);box-shadow:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-panel h2{margin:0 0 24px}
html[data-mtr-theme] body[data-jarvis] .jarvis-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
html[data-mtr-theme] body[data-jarvis] .jarvis-metric{padding:16px;min-height:126px;display:grid;align-content:start;gap:6px}
html[data-mtr-theme] body[data-jarvis] .jarvis-metric>span{font:10px/1.6 var(--j-mono);color:var(--t-accent-text)}
html[data-mtr-theme] body[data-jarvis] .jarvis-metric>strong{font:600 32px/1.3 var(--j-heading);font-variant-numeric:tabular-nums}
html[data-mtr-theme] body[data-jarvis] .jarvis-metric p{font:14px/1.5 var(--j-font);margin:0;color:var(--t-muted)}
html[data-mtr-theme] body[data-jarvis] .jarvis-command-grid{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(0,1.15fr);gap:24px;align-items:start}
html[data-mtr-theme] body[data-jarvis] .jarvis-core-panel{display:grid;justify-items:center;gap:12px}
html[data-mtr-theme] body[data-jarvis] .jarvis-core-panel h2{justify-self:start}
html[data-mtr-theme] body[data-jarvis] .jarvis-ring{width:min(360px,100%);aspect-ratio:1;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;isolation:isolate}
html[data-mtr-theme] body[data-jarvis] .jarvis-ring-ticks{position:absolute;inset:0;border-radius:50%;background:repeating-conic-gradient(from 0deg,var(--t-line) 0deg 1deg,transparent 1deg 5deg);mask:radial-gradient(circle,transparent 66%,#000 67%,#000 69%,transparent 70%);pointer-events:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-ring-lines{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:var(--t-line);stroke-width:1;pointer-events:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-ring-lines circle:first-child{stroke:#378cff;stroke-width:8;stroke-dasharray:610 301;transform:rotate(135deg);transform-origin:50% 50%}
html[data-mtr-theme] body[data-jarvis] .jarvis-ring-lines circle:nth-child(2){stroke:var(--t-accent);stroke-width:2;stroke-dasharray:410 420;transform:rotate(-104deg);transform-origin:50% 50%}
html[data-mtr-theme] body[data-jarvis] .jarvis-ring strong{font:600 52px/1.2 var(--j-heading);font-variant-numeric:tabular-nums;color:var(--t-accent-text)!important}
html[data-mtr-theme] body[data-jarvis] .jarvis-ring>span{font:10px/1.5 var(--j-mono);color:var(--t-muted);margin-top:12px;text-align:center}
/* SYSTEM / 01: Jarvis-style ring, arcs turn continuously in opposite directions. */
html[data-mtr-theme] body[data-jarvis] .jarvis-core-panel .jarvis-ring-lines circle:nth-child(3){stroke-dasharray:3 9;transform-origin:50% 50%}
@keyframes jRingCw{from{transform:rotate(var(--j-from,0deg))}to{transform:rotate(calc(var(--j-from,0deg) + 360deg))}}
@keyframes jRingCcw{from{transform:rotate(var(--j-from,0deg))}to{transform:rotate(calc(var(--j-from,0deg) - 360deg))}}
@media(prefers-reduced-motion:no-preference){
  html[data-mtr-theme] body[data-jarvis]:not(.mtr-motion-off) .jarvis-core-panel .jarvis-ring-lines circle:first-child{--j-from:135deg;animation:jRingCw 18s linear infinite}
  html[data-mtr-theme] body[data-jarvis]:not(.mtr-motion-off) .jarvis-core-panel .jarvis-ring-lines circle:nth-child(2){--j-from:-104deg;animation:jRingCcw 11s linear infinite}
  html[data-mtr-theme] body[data-jarvis]:not(.mtr-motion-off) .jarvis-core-panel .jarvis-ring-lines circle:nth-child(3){animation:jRingCw 40s linear infinite}
  html[data-mtr-theme] body[data-jarvis]:not(.mtr-motion-off) .jarvis-core-panel .jarvis-ring-ticks{animation:jRingCcw 90s linear infinite}
}
/* Admin screens: faint Jarvis-style MTR logo behind the panels. Each layer is its own composited box and only
   transform/opacity animate, so nothing repaints per frame (see the performance rule below). */
html[data-mtr-theme] body[data-jarvis] :has(>.jarvis-backdrop){position:relative;isolation:isolate}
html[data-mtr-theme] body[data-jarvis] :has(>.jarvis-backdrop) :is(.jarvis-panel,.jarvis-metric,.station-choice){background:color-mix(in srgb,var(--t-surface-solid) 80%,transparent)}
html[data-mtr-theme] body[data-jarvis] .jarvis-station:has(>.jarvis-backdrop) .station-choice:not(#_){background:color-mix(in srgb,var(--t-surface-solid) 80%,transparent)!important}
/* The warehouse page covers the shell; only its own backdrop animates. */
html[data-mtr-theme] body.jarvis-warehouse #mtrAppShell .jarvis-backdrop{display:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-backdrop{position:fixed;inset:0;z-index:-1;display:grid;place-items:center;overflow:hidden;pointer-events:none;contain:strict}
html[data-mtr-theme] body[data-jarvis] .jarvis-backdrop>i{grid-area:1/1;display:block;will-change:transform,opacity}
html[data-mtr-theme] body[data-jarvis] .jb-ring{width:min(86vmin,980px);aspect-ratio:1;border-radius:50%;background:repeating-conic-gradient(var(--t-accent) 0deg .35deg,transparent .35deg 2.5deg);mask:radial-gradient(circle,transparent 66%,#000 66.5%,#000 69%,transparent 69.5%,transparent 97%,#000 97.5%,#000 98%,transparent 98.5%);opacity:.07}
html[data-mtr-theme] body[data-jarvis] .jb-arcs{width:min(70vmin,800px);aspect-ratio:1;border-radius:50%;background:conic-gradient(#378cff 0deg 74deg,transparent 74deg 180deg,var(--t-accent) 180deg 212deg,transparent 212deg 262deg,#378cff 262deg 280deg,transparent 280deg);mask:radial-gradient(circle,transparent 68%,#000 68.5%,#000 70%,transparent 70.5%);opacity:.12}
html[data-mtr-theme] body[data-jarvis] .jb-logo{width:min(84vw,1240px);aspect-ratio:1032/136;background:var(--t-accent);mask:url("/assets/mtr-trade-logo.svg") center/contain no-repeat;-webkit-mask:url("/assets/mtr-trade-logo.svg") center/contain no-repeat;opacity:.1}
html[data-mtr-theme] body[data-jarvis] .jb-scan{width:min(84vw,1240px);height:2px;background:linear-gradient(90deg,transparent,var(--t-accent) 30%,#b3edff 50%,var(--t-accent) 70%,transparent);opacity:0}
@keyframes jbBreathe{from{opacity:.07}to{opacity:.13}}
@keyframes jbScan{0%{transform:translateY(-9vmin);opacity:0}15%,85%{opacity:.18}100%{transform:translateY(9vmin);opacity:0}}
@media(prefers-reduced-motion:no-preference){
  html[data-mtr-theme] body[data-jarvis]:not(.mtr-motion-off) .jb-ring{animation:jRingCw 140s linear infinite}
  html[data-mtr-theme] body[data-jarvis]:not(.mtr-motion-off) .jb-arcs{animation:jRingCcw 48s linear infinite}
  html[data-mtr-theme] body[data-jarvis]:not(.mtr-motion-off) .jb-logo{animation:jbBreathe 7s ease-in-out infinite alternate}
  html[data-mtr-theme] body[data-jarvis]:not(.mtr-motion-off) .jb-scan{animation:jbScan 6s ease-in-out infinite}
}
html[data-mtr-theme] body[data-jarvis] .jarvis-event{padding:20px 0;border-bottom:1px solid var(--t-line)}
html[data-mtr-theme] body[data-jarvis] .jarvis-event:first-child{padding-top:0}
html[data-mtr-theme] body[data-jarvis] .jarvis-event small{font:12px/1.5 var(--j-mono);color:var(--t-accent-text)}
html[data-mtr-theme] body[data-jarvis] .jarvis-event p{margin-top:12px;color:var(--t-text)}
html[data-mtr-theme] body[data-jarvis] .jarvis-activity>button{margin-top:16px}
html[data-mtr-theme] body[data-jarvis] .jarvis-activity .notice-panel{margin-top:24px;padding:20px;border:1px solid var(--t-line);border-radius:8px;box-shadow:none!important}
html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav{display:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-admin-tabs{display:flex;gap:8px}
html[data-mtr-theme] body[data-jarvis] .jarvis-access .mtrLoginGrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,560px);gap:48px;padding:0;margin:0;align-items:center}
html[data-mtr-theme] body[data-jarvis] .jarvis-access .mtrLoginIntro{padding:0;border:0;background:none;box-shadow:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-access .mtrLoginIntro h2{font-size:32px;margin:12px 0}
html[data-mtr-theme] body[data-jarvis] .jarvis-access .mtrLoginIntro p{max-width:460px;color:var(--t-muted)}
html[data-mtr-theme] body[data-jarvis] .jarvis-access .mtrAccountLogin{border:1px solid var(--t-line);border-radius:8px;padding:24px;background:var(--t-surface-solid)!important;box-shadow:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-access .employee-tiles{grid-template-columns:repeat(2,minmax(0,1fr));max-height:250px;overflow:auto}
html[data-mtr-theme] body[data-jarvis] .jarvis-access .employee-tile{display:flex;align-items:center;justify-content:center;padding:10px;min-height:48px;border-radius:8px}
html[data-mtr-theme] body[data-jarvis] .jarvis-access .employee-initials{display:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-access[data-admin=true] .mtrAccountLogin{grid-column:1;grid-row:1}
html[data-mtr-theme] body[data-jarvis] .jarvis-access[data-admin=true] .mtrLoginIntro{grid-column:2;justify-self:center}
html[data-mtr-theme] body[data-jarvis] .jarvis-content :is(.mtrProfileLayout,.mtrMessenger){width:100%;max-width:none;grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr)}
html[data-mtr-theme] body[data-jarvis] .jarvis-content :is(.ui-surface,.mtrProfileIdentity,.mtrProfileForm,.mtrMessenger,.mtrSettings section,.mtrProcedureCard,.mtrSchedule,.ui-task-row){border-radius:8px!important;box-shadow:none!important;background:var(--t-surface-solid)!important;border-color:var(--t-line)!important}
html[data-mtr-theme] body[data-jarvis] .jarvis-content .mtrProcedureLayout{display:block}
html[data-mtr-theme] body[data-jarvis] .jarvis-content .mtrProcedureMascot{display:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-content .mtrProfileIdentity{align-items:stretch;text-align:left;padding:24px}
html[data-mtr-theme] body[data-jarvis] .jarvis-content .instruction-tiles{display:grid;grid-template-columns:1fr;gap:16px}
html[data-mtr-theme] body[data-jarvis] .jarvis-content .instruction-tile{padding:20px 24px}
html[data-mtr-theme] body[data-jarvis] .jarvis-content .mtrSettings{gap:24px}
html[data-mtr-theme] body[data-jarvis] .jarvis-content :is(input,select,textarea,button){font-family:var(--j-font)}
@media(max-width:1000px){html[data-mtr-theme] body[data-jarvis] .jarvis-layout{grid-template-columns:160px minmax(0,1fr);gap:16px}html[data-mtr-theme] body[data-jarvis] .jarvis-command-grid{grid-template-columns:1fr}html[data-mtr-theme] body[data-jarvis] .jarvis-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 html[data-mtr-theme] body[data-jarvis] :is(.jarvis-page,.jarvis-access){padding:16px 16px calc(100px + env(safe-area-inset-bottom,0px))!important}
 html[data-mtr-theme] body[data-jarvis] .jarvis-header{gap:12px;min-height:48px;padding-bottom:20px}
 html[data-mtr-theme] body[data-jarvis] .jarvis-wordmark{font-size:20px}
 html[data-mtr-theme] body[data-jarvis] .jarvis-system{display:none}
 html[data-mtr-theme] body[data-jarvis] .jarvis-session{font-size:9px;max-width:160px;overflow-wrap:anywhere}
 html[data-mtr-theme] body[data-jarvis] .jarvis-title{margin:24px 0}
 html[data-mtr-theme] body[data-jarvis] .jarvis-title h1{font-size:30px}
 html[data-mtr-theme] body[data-jarvis] .jarvis-layout{display:block}
 html[data-mtr-theme] body[data-jarvis] .jarvis-sidebar{display:none}
 html[data-mtr-theme] body[data-jarvis] .jarvis-content{gap:16px}
 html[data-mtr-theme] body[data-jarvis] :is(.jarvis-panel,.jarvis-metric){padding:16px}
 html[data-mtr-theme] body[data-jarvis] .jarvis-activity .notice-panel{padding:16px}
 html[data-mtr-theme] body[data-jarvis] .jarvis-ring{max-width:280px}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav{position:fixed;z-index:2200;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));bottom:0;left:0;right:0;min-height:64px;padding:8px 8px max(8px,env(safe-area-inset-bottom));border:1px solid var(--t-line);border-radius:18px 18px 0 0;background:var(--t-surface-solid);gap:4px;box-shadow:0 -6px 24px #0002}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav>button,html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav>details>summary{min-height:48px;border:0;background:none;color:var(--t-muted);font:600 11px/1.3 var(--j-font);display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;cursor:pointer;padding:7px 3px;min-width:0;border-radius:12px;touch-action:manipulation}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav>details{border:0;padding:0;background:none}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav .jarvis-sidebar{display:grid;position:absolute;right:8px;bottom:calc(100% + 8px);width:min(300px,calc(100vw - 24px));max-height:min(480px,65dvh);height:auto;overflow:auto;overscroll-behavior:contain;box-shadow:var(--t-shadow);padding:12px;gap:6px;border-radius:16px}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav.is-minimal{grid-template-columns:repeat(3,minmax(0,1fr))}html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav.is-minimal.is-picking{grid-template-columns:repeat(4,minmax(0,1fr))}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav>button::before,html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav>details>summary::before{content:'💼';font:22px/24px system-ui}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav>button[data-j-go="scene"]::before{content:'🔨'}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav>button[data-j-go="instructions"]::before{content:'▤'}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav>button[data-j-go="messages"]::before{content:'📱'}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav>details>summary::before{content:'•••';letter-spacing:2px}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav>details>summary{list-style:none}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav>details>summary::-webkit-details-marker{display:none}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav>button[aria-current="page"],html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav>details[open]>summary{background:var(--t-selected);color:var(--t-accent-text);box-shadow:inset 0 2px var(--t-accent)}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav :is(button,summary):focus-visible{outline:2px solid var(--t-accent);outline-offset:-2px}
 html[data-mtr-theme] body[data-jarvis] .jarvis-mobile-nav .jarvis-sidebar button{min-height:44px;text-align:left;white-space:normal}
 html[data-mtr-theme] body[data-jarvis] .jarvis-access .mtrLoginGrid{display:flex;flex-direction:column;gap:24px}
 html[data-mtr-theme] body[data-jarvis] .jarvis-access .mtrLoginIntro{display:none}
 html[data-mtr-theme] body[data-jarvis] .jarvis-access .mtrAccountLogin{width:100%;padding:16px}
 html[data-mtr-theme] body[data-jarvis] .jarvis-content :is(.mtrProfileLayout,.mtrMessenger){grid-template-columns:1fr}
 html[data-mtr-theme] body[data-jarvis] .jarvis-content .mtrProfileIdentity{display:flex}
 html[data-mtr-theme] body[data-jarvis] .jarvis-content .mtrSettings{grid-template-columns:1fr}
}

/* JARVIS SVG SHELL END */
/* Event-driven HUD light: decorative, never captures pointer input. */
body[data-jarvis] .jarvis-header{position:relative}
body[data-jarvis] .mtr-hud-scan{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1;border-radius:inherit}
body[data-jarvis] .mtr-hud-scan>span{display:block;position:absolute;left:0;top:0;width:100%;height:2px;background:linear-gradient(90deg,transparent,#38dfff 35%,#b3edff 50%,#739dff 65%,transparent);box-shadow:0 0 12px #39caff;opacity:0;pointer-events:none}
body[data-jarvis] :is(.jarvis-sidebar button,.jarvis-queue-legend button,.station-tile,.employee-tile){transition:border-color .16s ease,background-color .16s ease}
body[data-jarvis] :is(.jarvis-sidebar button,.jarvis-queue-legend button):is(:hover,:focus-visible){border-color:var(--t-accent);background:color-mix(in srgb,var(--t-accent) 9%,var(--t-surface-solid))}
body.mtr-motion-off .mtr-hud-scan{display:none}
body.mtr-motion-off :is(.jarvis-sidebar button,.jarvis-queue-legend button,.station-tile,.employee-tile){transition:none}
@media(prefers-reduced-motion:reduce){body[data-jarvis] .mtr-hud-scan{display:none}body[data-jarvis] :is(.jarvis-sidebar button,.jarvis-queue-legend button,.station-tile,.employee-tile){transition:none}}

/* Station selection retains category, occupancy and confirmation logic. */
html[data-mtr-theme] body[data-jarvis] .jarvis-station{max-width:1440px;padding:32px;margin:auto;font-family:var(--j-font)}
html[data-mtr-theme] body[data-jarvis] .jarvis-station .station-choice{max-width:900px;margin:32px auto;background:var(--t-surface);border:1px solid var(--t-line);border-radius:8px;padding:28px}
html[data-mtr-theme] body[data-jarvis] .jarvis-station h1{font-family:var(--j-heading);font-size:38px;line-height:1.15}
html[data-mtr-theme] body[data-jarvis] .jarvis-station .station-tile{min-height:100px;border-radius:8px;font-family:var(--j-heading);font-size:24px}
html[data-mtr-theme] body[data-jarvis] .jarvis-station .station-tile small{font-family:var(--j-font);font-size:12px}
@media(max-width:760px){html[data-mtr-theme] body[data-jarvis] .jarvis-station{padding:16px}html[data-mtr-theme] body[data-jarvis] .jarvis-station .station-choice{padding:16px;margin-top:24px}html[data-mtr-theme] body[data-jarvis] .jarvis-station h1{font-size:30px}html[data-mtr-theme] body[data-jarvis] .jarvis-station .jarvis-session{display:none}}

html[data-mtr-theme] body[data-jarvis] .jarvis-header .jarvis-wordmark{display:block;width:160px;flex:none;height:auto;aspect-ratio:1032/136;background:var(--t-text)}
@media(max-width:760px){html[data-mtr-theme] body[data-jarvis] .jarvis-header .jarvis-wordmark{width:140px}}

/* JARVIS WORK START */
/* Jarvis work: D08-D11, D35, M07-M12 and Z01/Z02. Existing workflow remains authoritative. */
html[data-mtr-theme] body[data-jarvis] .jw-work-heading{margin:0 0 22px;min-width:0}
html[data-mtr-theme] body[data-jarvis] .jw-work-heading h2{font-size:clamp(24px,2.5vw,36px);font-weight:600;letter-spacing:.01em;line-height:1.2;margin:8px 0 12px}
html[data-mtr-theme] body[data-jarvis] :is(.jw-work-heading,.jw-work-panel)>p{font-size:14px;line-height:1.6;color:var(--t-muted)}
html[data-mtr-theme] body[data-jarvis] :is(.jw-mix-columns,.jw-work-columns){display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr);gap:24px;align-items:start;min-width:0}
html[data-mtr-theme] body[data-jarvis] .jw-work-panel{min-width:0;padding:24px;background:var(--t-surface-solid);border:1px solid var(--t-line);border-radius:8px}
html[data-mtr-theme] body[data-jarvis] .jw-work-panel>h3{margin:0 0 22px;font-size:19px;font-weight:600;line-height:1.35}
html[data-mtr-theme] body[data-jarvis] .jw-work-panel>h3 small{font-size:12px;font-weight:400;color:var(--t-muted)}
html[data-mtr-theme] body[data-jarvis] .jw-product{display:grid;min-width:0;gap:7px;text-align:left}
html[data-mtr-theme] body[data-jarvis] .jw-product :is(small,b,strong,span,h3){margin:0;overflow-wrap:anywhere;line-height:1.4}
html[data-mtr-theme] body[data-jarvis] .jw-product small{color:var(--t-accent-text);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}
html[data-mtr-theme] body[data-jarvis] .jw-product :is(b,strong,h3){font-size:15px;font-weight:600}
html[data-mtr-theme] body[data-jarvis] .jw-product span{font-size:14px;color:var(--t-muted)}
html[data-mtr-theme] body[data-jarvis] .jw-work-primary{width:100%;min-height:50px;margin-top:16px}
html[data-mtr-theme] body[data-jarvis] .jw-current>.jw-product,html[data-mtr-theme] body[data-jarvis] .jw-completed+aside>.jw-product{padding:22px;margin:16px 0;border:1px solid var(--t-line);border-radius:8px}
html[data-mtr-theme] body[data-jarvis] .jw-destination{display:block;font-size:clamp(32px,4vw,58px);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.2;letter-spacing:.01em;color:var(--t-accent-text)!important;margin:24px 0 32px;overflow-wrap:anywhere}
html[data-mtr-theme] body[data-jarvis] .jw-bay{margin:20px 0}
html[data-mtr-theme] body[data-jarvis] .jw-bay h4{font:16px ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--t-accent-text);margin:0 0 12px}
html[data-mtr-theme] body[data-jarvis] .jw-bay-grid{display:grid;grid-template-columns:repeat(var(--jw-bay-columns,3),minmax(0,1fr));gap:12px}
html[data-mtr-theme] body[data-jarvis] .jw-bay-grid>span{display:flex;min-height:78px;gap:3px;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--t-line);border-radius:8px;background:var(--t-field);font-size:18px;font-weight:600}
html[data-mtr-theme] body[data-jarvis] .jw-bay-grid small{font-size:11px;font-weight:400;color:var(--t-muted)}
html[data-mtr-theme] body[data-jarvis] .jw-bay-grid>.is-target{background:var(--t-primary);color:var(--t-primary-ink);border-color:var(--t-primary-edge)}
html[data-mtr-theme] body[data-jarvis] .jw-bay-grid>.is-target small{color:inherit}
html[data-mtr-theme] body[data-jarvis] .jw-sequence ol{list-style:none;margin:0;padding:0}
html[data-mtr-theme] body[data-jarvis] .jw-sequence .movement-task-step{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;margin:0;padding:17px 0;background:transparent;border:0;border-bottom:1px solid var(--t-line);border-radius:0;box-shadow:none}
html[data-mtr-theme] body[data-jarvis] .jw-sequence .movement-task-step>div{display:grid;gap:7px;min-width:0}
html[data-mtr-theme] body[data-jarvis] .jw-sequence .movement-task-step :is(b,span,small){overflow-wrap:anywhere;font-size:12px;line-height:1.5}
html[data-mtr-theme] body[data-jarvis] .jw-step-number,html[data-mtr-theme] body[data-jarvis] .jw-sequence .movement-task-step b{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
html[data-mtr-theme] body[data-jarvis] .jw-sequence .is-next{color:var(--t-accent-text)}
html[data-mtr-theme] body[data-jarvis] .jw-sequence .is-done .movement-task-step-state{color:var(--t-success)}
html[data-mtr-theme] body[data-jarvis] .jw-work-warning{color:var(--t-warn)!important;line-height:1.55}
html[data-mtr-theme] body[data-jarvis] .jw-completion-ring{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(240px,75vw);aspect-ratio:1;margin:28px auto;border:7px solid var(--t-accent);border-radius:50%;outline:1px solid var(--t-line-strong);outline-offset:10px;box-shadow:inset 0 0 0 12px var(--t-surface-solid),inset 0 0 0 13px var(--t-line-strong)}
html[data-mtr-theme] body[data-jarvis] .jw-completion-ring strong{font:600 38px ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--t-accent-text)!important}
html[data-mtr-theme] body[data-jarvis] .jw-completion-ring span{font:10px ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase;color:var(--t-muted);margin-top:10px}
html[data-mtr-theme] body[data-jarvis] .jw-work-state{border:1px solid var(--t-line);border-radius:7px;padding:10px;text-align:center;text-transform:uppercase;font-weight:600;color:var(--t-success)!important}
html[data-mtr-theme] body[data-jarvis] #poolPicking.pool-list{padding:32px max(24px,calc((100vw - 1120px)/2));background:var(--t-bg);border-radius:0}




html[data-mtr-theme] body[data-jarvis] #poolPicking button{min-height:48px;font-size:14px;padding:10px 16px;border:1px solid var(--t-line);border-radius:8px}
html[data-mtr-theme] body[data-jarvis] #poolPicking .jw-pool-progress{margin:14px 0 22px}
html[data-mtr-theme] body[data-jarvis] #poolPicking .jw-pool-progress p{font-size:13px;color:var(--t-muted);line-height:1.5}
html[data-mtr-theme] body[data-jarvis] #poolPicking progress{display:block;width:100%;height:5px;accent-color:var(--t-accent)}
html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-return{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;margin:0 0 16px;background:var(--t-warn-bg);border:1px solid var(--t-warn);border-radius:8px}
html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-return p{margin:0;flex:1 1 220px;font-size:15px;line-height:1.5}





html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-location-group{padding:24px;margin:22px 0;background:var(--t-surface-solid);border:1px solid var(--t-line);border-radius:8px}
html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-location-group>h3{font-size:20px;margin:0 0 20px;font-weight:500}
html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-location-group>p{font-size:14px;color:var(--t-muted)}
html[data-mtr-theme] body[data-jarvis] #poolPicking [data-location-group="missing"]>h3{color:var(--t-warn)}
html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:center;padding:22px;margin:16px 0;border-radius:8px}
html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-product h3{font-size:16px;font-weight:600;line-height:1.45;margin:0}
html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-collected{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:0 18px;border:1px solid var(--t-line-strong);border-radius:7px;font-size:14px;cursor:pointer}
html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-collected input{width:18px;height:18px;accent-color:var(--t-accent)}
html[data-mtr-theme] body[data-jarvis] #poolPicking .is-collected{border-color:var(--t-success)}
html[data-mtr-theme] body[data-jarvis] #poolPicking .is-collected .pool-collected{color:var(--t-success)}
html[data-mtr-theme] body[data-jarvis] #poolPicking .jw-pool-handoff{padding:20px 0 32px}
html[data-mtr-theme] body[data-jarvis] #poolPicking .jw-pool-handoff p{line-height:1.6;color:var(--t-muted)}
html[data-mtr-theme] body[data-jarvis] #poolPicking.pool-map{width:min(360px,36vw);padding:16px}



html[data-mtr-theme] body[data-jarvis] #poolPicking.pool-map .pool-location-group{padding:12px}
html[data-mtr-theme] body[data-jarvis] #poolPicking.pool-map .pool-item{grid-template-columns:minmax(0,1fr);gap:12px;padding:12px}
@media(max-width:760px){
 html[data-mtr-theme] body[data-jarvis] :is(.jw-mix-columns,.jw-work-columns){grid-template-columns:minmax(0,1fr);gap:20px}
 html[data-mtr-theme] body[data-jarvis] .jw-work-panel{padding:18px}html[data-mtr-theme] body[data-jarvis] .jw-work-primary{min-height:56px;font-size:16px}
 html[data-mtr-theme] body[data-jarvis] .jw-bay-grid>span{min-height:56px}
 html[data-mtr-theme] body[data-jarvis] .jw-bay-grid small{display:none}
 html[data-mtr-theme] body[data-jarvis] #poolPicking.pool-list{padding:22px 18px max(100px,env(safe-area-inset-bottom));}
 
 
 html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-location-group{padding:0;border:0;background:transparent}
 html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-item{grid-template-columns:minmax(0,1fr);gap:16px;padding:20px;background:var(--t-surface-solid)}
 html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-collected{min-height:52px}
 html[data-mtr-theme] body[data-jarvis] #poolPicking .jw-pool-handoff button{width:100%;min-height:56px}
 html[data-mtr-theme] body[data-jarvis] #poolPicking.pool-map{left:8px;right:8px;top:auto;bottom:68px;width:auto;height:40dvh;padding:14px}
}
@media(max-width:390px){html[data-mtr-theme] body[data-jarvis] .jw-work-panel{padding:14px}html[data-mtr-theme] body[data-jarvis] .jw-destination{font-size:36px}html[data-mtr-theme] body[data-jarvis] .jw-bay-grid{gap:8px}}

/* JARVIS WORK END */

/* JARVIS ORDERS RETURNS START */
/* Orders, returns and label handling — SVG composition with live application controls. */
body[data-jarvis] :is(.jarvis-page-heading,.orders-main>header){margin:0 0 24px;padding:0;border:0;background:none;box-shadow:none}
body[data-jarvis] :is(.jarvis-page-heading h1,.jarvis-page-heading h2,.orders-main>header h2){font-family:var(--j-heading);font-size:36px;line-height:1.12;font-weight:600;margin:0 0 10px}
body[data-jarvis] .jarvis-page-heading h3{font-family:var(--j-heading);font-size:28px;margin:0 0 8px}
body[data-jarvis] .jarvis-page-heading p{font-size:13px;color:var(--t-muted);margin:0}
body[data-jarvis] .orders-workspace{display:block}
body[data-jarvis] .orders-sidebar{position:static;max-height:none;border:0;padding:14px 0 0}
body[data-jarvis] .orders-sidebar .fulfillment-groups{display:grid;grid-template-columns:1fr 1fr;gap:20px}
body[data-jarvis] .orders-sidebar>h3{display:none}
body[data-jarvis] .jarvis-status-panel{margin:0 0 16px}
body[data-jarvis] .jarvis-queue-overview{margin:0 0 20px}
html[data-mtr-theme] body[data-jarvis] .orders-page.jarvis-page{max-width:2240px}
body[data-jarvis] .jarvis-orders-frame{display:grid;grid-template-columns:220px minmax(0,1fr) 220px;align-items:start;gap:20px}
body[data-jarvis] .jarvis-orders-frame>.jarvis-layout{min-width:0;grid-template-columns:150px minmax(0,1fr);gap:16px}
body[data-jarvis] .jarvis-order-wing{--wing-accent:#35dcff;position:sticky;top:20px;min-width:0;max-height:calc(100dvh - 40px);overflow:auto;padding:18px 14px;border:1px solid color-mix(in srgb,var(--wing-accent) 40%,var(--t-line));border-radius:18px 5px 18px 5px;background:var(--t-surface-solid);box-shadow:0 0 24px color-mix(in srgb,var(--wing-accent) 9%,transparent),inset 0 1px 0 color-mix(in srgb,var(--wing-accent) 30%,transparent)}
body[data-jarvis] .jarvis-order-wing[data-overview-kind=pack]{--wing-accent:#8da4ff;border-radius:5px 18px 5px 18px}
body[data-jarvis] .jarvis-order-wing>summary{color:var(--t-accent-text);font:600 21px var(--j-heading);cursor:pointer;min-height:36px}
body[data-jarvis] .jarvis-order-wing .jarvis-queue-chart{flex-direction:column;gap:18px}
body[data-jarvis] .jarvis-order-wing .jarvis-queue-legend{width:100%}
body[data-jarvis] .jarvis-order-wing .jarvis-queue-legend>button{width:100%;min-height:44px}
body[data-jarvis] .jarvis-order-wing .jarvis-queue-ring{box-shadow:0 0 20px color-mix(in srgb,var(--wing-accent) 16%,transparent);outline:1px solid color-mix(in srgb,var(--wing-accent) 30%,transparent);outline-offset:6px}
body[data-jarvis] .jarvis-orders-frame .orders-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-jarvis] .jarvis-orders-frame .orders-search{grid-column:1/-1}
@media(max-width:1599px){body[data-jarvis] .jarvis-orders-frame{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-jarvis] .jarvis-orders-frame>.jarvis-layout,body[data-jarvis] .jarvis-orders-frame>.orders-main{grid-column:1/-1;grid-row:2}body[data-jarvis] .jarvis-order-wing{position:static;max-height:none;grid-row:1;margin:0}body[data-jarvis] .jarvis-order-wing[data-overview-kind=pack]{grid-column:1}body[data-jarvis] .jarvis-order-wing[data-overview-kind=pick]{grid-column:2}}
@media(max-width:600px){body[data-jarvis] .jarvis-orders-frame{display:flex;flex-direction:column;gap:12px}body[data-jarvis] .jarvis-orders-frame>.jarvis-layout{order:2;width:100%}body[data-jarvis] .jarvis-order-wing{width:100%;padding:14px}body[data-jarvis] .jarvis-orders-frame .orders-main{order:2}body[data-jarvis] .jarvis-orders-frame .orders-tools{grid-template-columns:1fr}}
body[data-jarvis] .jarvis-queue-chart{display:flex;align-items:center;gap:24px;margin:20px 0 12px}
body[data-jarvis] .jarvis-queue-ring{width:160px;height:160px;flex:0 0 160px;border-radius:50%;padding:12px;box-sizing:border-box}
body[data-jarvis] .jarvis-queue-ring>div{height:100%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--t-surface)}
body[data-jarvis] .jarvis-queue-ring strong{font:600 32px var(--j-heading);font-variant-numeric:tabular-nums}
body[data-jarvis] .jarvis-queue-ring small,body[data-jarvis] .jarvis-queue-note{font-size:12px;color:var(--t-muted)}
body[data-jarvis] .jarvis-queue-legend{display:flex;flex-wrap:wrap;align-content:center;gap:8px;min-width:0;flex:1}
body[data-jarvis] .jarvis-queue-legend>button{display:flex;align-items:center;gap:12px;min-height:44px;max-width:100%;padding:8px 12px;border:1px solid var(--t-line);border-left:3px solid var(--queue-color);border-radius:6px;background:var(--t-surface);text-align:left}
body[data-jarvis] .jarvis-queue-legend>button[aria-pressed=true]{outline:1px solid var(--queue-color);outline-offset:2px}
body[data-jarvis] .jarvis-queue-legend span{color:var(--queue-color);font-size:12px;overflow-wrap:anywhere}
body[data-jarvis] .jarvis-queue-legend strong{font:600 17px var(--j-heading);font-variant-numeric:tabular-nums;margin-left:auto}
html[data-mtr-theme="light"] body[data-jarvis] .jarvis-queue-legend span{color:color-mix(in srgb,var(--queue-color) 45%,#001c32)}
@media(max-width:600px){body[data-jarvis] .jarvis-queue-chart{flex-direction:column;align-items:stretch;gap:16px}body[data-jarvis] .jarvis-queue-ring{align-self:center}body[data-jarvis] .jarvis-queue-legend>button{flex:1 1 140px}}
body[data-jarvis] .orders-tools{display:grid;grid-template-columns:minmax(150px,1fr) minmax(170px,1fr) minmax(240px,2.4fr);gap:14px;align-items:start}
body[data-jarvis] .orders-tools>details{width:auto;padding:0;border:1px solid var(--t-line);border-radius:6px;font-size:13px;background:var(--t-surface)}
body[data-jarvis] .orders-tools>details>summary{min-height:46px;padding:13px 16px;text-align:center;line-height:20px;font-weight:600}
body[data-jarvis] .orders-tools>details[open]{grid-column:1/-1;order:2;padding:0 20px 20px}
body[data-jarvis] .orders-tools>.jarvis-assignment>summary{background:var(--t-accent);color:var(--t-primary-ink);border-radius:5px}
body[data-jarvis] .orders-search{margin:0;font-size:11px}
body[data-jarvis] .orders-search>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body[data-jarvis] .orders-search input{min-height:48px;margin:0}
body[data-jarvis] .jarvis-assignment-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px 0 0}
body[data-jarvis] .jarvis-assignment-form>:is(h3,p,button){grid-column:1/-1}
body[data-jarvis] .jarvis-handoff{padding:20px;border:1px solid var(--t-line);border-radius:6px}
body[data-jarvis] .orders-console .order-bulk{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1.2fr) minmax(180px,1.1fr);gap:14px;padding:12px 0 20px;margin:0;align-items:end}
body[data-jarvis] .orders-console .order-bulk :is(select,button){width:100%;min-height:46px;font-size:13px}
body[data-jarvis] .orders-console .order-bulk>.order-select{min-height:46px;border:1px solid var(--t-line);border-radius:6px;padding:12px}
body[data-jarvis] .orders-console .order-bulk>:is([role=status],[role=alertdialog]){grid-column:1/-1}
body[data-jarvis] :is(.admin-order-list,.returns-table-wrap){border:1px solid var(--t-line);border-radius:6px;background:var(--t-surface);box-shadow:none}
body[data-jarvis] :is(.order-overview,.returns-table){font-size:13px;border-collapse:collapse;width:100%;text-align:left}
body[data-jarvis] :is(.order-overview,.returns-table) th{font:10px var(--j-mono);text-transform:uppercase;letter-spacing:.03em;background:var(--t-control);padding:13px 12px;color:var(--t-muted)}
body[data-jarvis] :is(.order-overview,.returns-table) td{padding:14px 12px;border:0;border-top:1px solid var(--t-line);line-height:1.5;vertical-align:top}
body[data-jarvis] .orders-console .order-overview td:nth-child(2){border-left:0}
body[data-jarvis] .orders-console .order-overview small{font-size:11px}
body[data-jarvis] .orders-console .order-status-label{font-size:12px}
body[data-jarvis] .fulfillment-pages{display:flex;gap:20px;justify-content:flex-start;margin-top:24px}
body[data-jarvis] .fulfillment-pages button{min-width:150px;min-height:46px}
body[data-jarvis] .orders-administration{margin-top:28px}
body[data-jarvis] .jarvis-bulk-confirm{padding:24px!important;background:var(--t-surface)!important;border:1px solid var(--t-line)!important;border-radius:6px}
body[data-jarvis] .jarvis-bulk-confirm h3{font:600 28px var(--j-heading);margin:0 0 16px}
body[data-jarvis] .jarvis-bulk-confirm .order-table-scroll{margin:20px 0}
body[data-jarvis] .jarvis-bulk-confirm button{max-width:350px;margin:12px 12px 0 0!important}
body[data-jarvis] .returns-search-toolbar{display:grid;grid-template-columns:minmax(220px,2fr) minmax(150px,1fr) 150px 180px;gap:14px;align-items:end;margin:20px 0 24px}
body[data-jarvis] .returns-search-toolbar :is(label,input,select,button){margin:0}
body[data-jarvis] .returns-search-toolbar :is(input,select,button){min-height:46px}
body[data-jarvis] .returns-import{margin:0 0 18px}
body[data-jarvis] .jarvis-returns [data-list]>p{font:11px var(--j-mono);color:var(--t-muted)}
body[data-jarvis] .returns-table .return-row-actions button{background:none;color:var(--t-text);box-shadow:none;border:0;padding:4px 0;text-align:left;min-height:44px}
body[data-jarvis] .returns-table .return-row-actions button.mtrPrimary{padding:8px 16px;text-align:center;white-space:nowrap}
body[data-jarvis] .returns-table th:nth-child(2){width:32%}
body[data-jarvis] .returns-table th:nth-child(4){width:15%}
body[data-jarvis] .returns-table th:nth-child(5){width:16%}
/* The row action stays reachable while the wide table scrolls inside its own container. */
body[data-jarvis] .returns-table-wrap .returns-table :is(th,td):last-child{position:sticky;right:0;z-index:1;background:var(--t-surface-solid);box-shadow:-10px 0 12px -12px rgba(0,0,0,.55)}
body[data-jarvis] .return-dialog{width:min(1180px,calc(100vw - 48px));max-width:none;border:1px solid var(--t-line);border-radius:8px;padding:30px;background:var(--t-bg);color:var(--t-text)}
body[data-jarvis] .return-dialog>header{padding:0 0 24px;border-bottom:1px solid var(--t-line);margin-bottom:24px;align-items:start}
body[data-jarvis] .return-dialog>header h2{font:600 32px var(--j-heading);margin:0}
body[data-jarvis] .return-checklist{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body[data-jarvis] .return-checklist-toggle{min-height:60px;align-items:center;text-align:center;font-size:13px;border-radius:6px}
body[data-jarvis] .return-checklist-toggle[aria-expanded=true]{background:var(--t-accent);color:var(--t-primary-ink)}
body[data-jarvis] .return-checklist-toggle[aria-expanded=true] small{color:inherit}
body[data-jarvis] .return-step-content{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr);gap:24px;align-items:start;padding:8px 4px 8px 0}
body[data-jarvis] :is(.return-step,.return-context-card,.return-verified-summary){padding:24px;border:1px solid var(--t-line);border-radius:6px;background:var(--t-surface);min-width:0}
body[data-jarvis] :is(.return-step,.return-context-card,.return-verified-summary) h3{font:600 22px var(--j-heading);margin:0 0 20px}
body[data-jarvis] .return-step label{display:block;margin:14px 0;font-size:13px}
body[data-jarvis] .return-step-instruction{font-size:17px;line-height:1.6;margin:0 0 20px}
body[data-jarvis] .return-step input[type=file]{display:block;width:100%;padding:14px;border:1px solid var(--t-line);min-height:50px;border-radius:6px;margin-top:10px}
body[data-jarvis] .return-step input[type=file]::file-selector-button{padding:8px 12px;margin-right:12px;border:1px solid var(--t-line);border-radius:4px;background:var(--t-control);color:var(--t-text);cursor:pointer}
body[data-jarvis] .return-file-receipt{padding:10px;border:1px solid var(--t-line);border-radius:6px;color:var(--t-warn);overflow-wrap:anywhere;font-size:12px}
body[data-jarvis] .return-file-receipt[data-complete=true],body[data-jarvis] .return-summary-state{color:var(--t-success)}
body[data-jarvis] .return-inspection-help{margin-top:24px;padding-top:24px;border-top:1px solid var(--t-line);font-size:13px}
body[data-jarvis] .return-inspection-help li{margin-bottom:12px}
body[data-jarvis] :is(.return-inspection-help p,.return-context-card small,.return-verified-summary>p:last-child){color:var(--t-warn);line-height:1.6}
body[data-jarvis] .return-step fieldset{padding:18px;margin-bottom:20px;border:1px solid var(--t-line);border-radius:6px}
body[data-jarvis] .return-step-nav [data-save]{min-width:280px;background:var(--t-accent);color:var(--t-primary-ink);min-height:48px}
body[data-jarvis] .return-verified-summary{margin-bottom:24px}
body[data-jarvis] .return-verified-summary .returns-table{min-width:580px}
body[data-jarvis] :is(.jarvis-mass-admin,.jarvis-mass-worker) .packing-received{padding:22px;border:1px solid var(--t-line);border-radius:6px;background:var(--t-surface);box-shadow:none}
body[data-jarvis] .jarvis-mass-admin>[data-import]{display:flex;gap:18px;align-items:end;padding:20px 0}
body[data-jarvis] .jarvis-mass-admin>[data-import]>label{flex:1}
body[data-jarvis] .jarvis-mass-admin>[data-import]>button{min-height:48px}
body[data-jarvis] .jarvis-mass-admin .order-table-scroll{margin:24px 0;border:1px solid var(--t-line);border-radius:6px}
body[data-jarvis] .jarvis-mass-admin [data-recovery]>form{border:1px solid var(--t-line);border-radius:6px;background:var(--t-surface);padding:22px;margin:16px 0}
body[data-jarvis] .jarvis-pack-contents{padding:24px;border:1px solid var(--t-line);border-radius:6px;background:var(--t-surface);margin:0 0 24px}
body[data-jarvis] .jarvis-pack-contents h3{font:600 24px var(--j-heading);margin:0 0 18px}
body[data-jarvis] .jarvis-pack-contents .quick-pack-product-row{border:1px solid var(--t-line);border-radius:6px;padding:18px;margin:14px 0}
body[data-jarvis] .jarvis-mass-worker .mass-print-sku{font:11px var(--j-mono);color:var(--t-accent);display:block;margin:8px 0}
body[data-jarvis] .jarvis-mass-worker>.mtrPrimary{width:min(100%,520px);min-height:50px}
body[data-jarvis] .jarvis-print-progress{display:block;width:100%;height:6px;accent-color:var(--t-accent);margin:18px 0 24px}
body[data-jarvis] .quick-pack-order{padding:24px;border:1px solid var(--t-line);border-radius:6px;background:var(--t-surface)}
body[data-jarvis] .quick-pack-summary>h3{font:600 24px var(--j-heading);margin:0 0 18px}
body[data-jarvis] .quick-pack-order .quick-pack-product-row{padding:18px;border:1px solid var(--t-line);border-radius:6px;margin:14px 0}
@media(max-width:1000px){body[data-jarvis] .returns-search-toolbar{grid-template-columns:1fr 1fr}body[data-jarvis] .orders-tools{grid-template-columns:1fr 1fr}body[data-jarvis] .orders-search{grid-column:1/-1}body[data-jarvis] .orders-console .order-bulk{grid-template-columns:1fr 1fr}body[data-jarvis] .order-bulk>[data-bulk-submit]{grid-column:1/-1}}
@media(max-width:760px){body[data-jarvis] .return-dialog{width:calc(100vw - 20px);padding:18px;max-height:calc(100dvh - 20px)}body[data-jarvis] .return-checklist-dialog[open]{height:calc(100dvh - 20px)}body[data-jarvis] .return-dialog>header{gap:12px;padding-bottom:16px;margin-bottom:16px}body[data-jarvis] .return-dialog>header h2{font-size:26px}body[data-jarvis] .return-dialog>header button{font-size:11px;min-height:44px;padding:8px}body[data-jarvis] .return-checklist{gap:6px}body[data-jarvis] .return-checklist-toggle{font-size:11px;padding:9px 6px;min-height:70px}body[data-jarvis] .return-checklist-toggle small{font-size:9px}body[data-jarvis] .return-step-content{grid-template-columns:1fr;gap:14px}body[data-jarvis] :is(.return-step,.return-context-card,.return-verified-summary){padding:18px}body[data-jarvis] .return-step-nav [data-save]{width:100%;min-width:0}body[data-jarvis] .returns-search-toolbar{gap:10px}body[data-jarvis] .returns-search-toolbar>label:first-child{grid-column:1/-1}body[data-jarvis] .returns-search-toolbar>[data-verified]{grid-column:1/-1}body[data-jarvis] .jarvis-assignment-form{grid-template-columns:1fr}body[data-jarvis] .orders-console .order-bulk{grid-template-columns:1fr}body[data-jarvis] .orders-console .order-bulk label{width:100%;min-width:0}body[data-jarvis] .orders-tools{gap:10px;grid-template-columns:1fr}body[data-jarvis] .jarvis-mass-admin>[data-import]{display:grid}body[data-jarvis] .jarvis-pack-contents{padding:18px}body[data-jarvis] .orders-sidebar .fulfillment-groups{grid-template-columns:1fr}body[data-jarvis] .fulfillment-pages button{min-width:0;flex:1}body[data-jarvis] .orders-console .order-overview{min-width:680px}}

/* JARVIS ORDERS RETURNS END */

/* JARVIS WAREHOUSE START */
/* Warehouse SVG references D05–D07/D28, M04–M06; live geometry and existing operation forms. */
html[data-mtr-theme] body.jarvis-warehouse{overflow:auto!important;height:auto!important;min-height:100dvh;background:var(--t-bg)}
html[data-mtr-theme] body.jarvis-warehouse #jarvisWarehouse{position:relative;z-index:70;box-sizing:border-box;min-height:100dvh;background:var(--t-bg);color:var(--t-text)}
/* The warehouse page lives outside the full-width shell: span the whole screen so no side strips of the old scene background show, keep the content in the same 1600px column as the other pages (narrower screens are already full width). */
@media(min-width:1601px){html[data-mtr-theme] body.jarvis-warehouse #jarvisWarehouse.jarvis-page{max-width:none;padding-inline:calc((100% - 1536px)/2)!important}}
html[data-mtr-theme] body.jarvis-warehouse :is(#hud,#jarvisDeskNav,#jarvisMobileNav,#warehouseSummary),html[data-mtr-theme] body.jarvis-warehouse>#mtrSceneBar{display:none!important}
html[data-mtr-theme] body.jarvis-warehouse #jarvisWarehouse #app{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;z-index:auto!important;transform:none!important}
html[data-mtr-theme] body.jarvis-warehouse #app canvas{display:block;width:100%!important;height:100%!important}
html[data-mtr-theme] body.jarvis-warehouse #panel{z-index:140;top:240px;left:auto;right:32px;max-height:calc(100dvh - 270px)}
html[data-mtr-theme] body[data-jarvis] .jw-content{min-width:0;display:grid;grid-template-columns:minmax(0,2.3fr) minmax(280px,1fr);grid-template-rows:auto auto 1fr auto;gap:24px;align-items:start}
html[data-mtr-theme] body[data-jarvis] .jw-hallbar{grid-column:1/-1;grid-row:1;min-width:0}
html[data-mtr-theme] body.jarvis-warehouse #sceneControls{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;display:flex!important;flex-wrap:wrap;gap:10px;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;overflow:visible}
html[data-mtr-theme] body.jarvis-warehouse #sceneControls :is(button,select){min-height:48px;background:var(--t-surface);color:var(--t-text);border:1px solid var(--t-line);border-radius:8px;font:14px var(--j-font)}
html[data-mtr-theme] body.jarvis-warehouse #sceneControls [data-scene-hall]{flex:1;min-width:100px}
html[data-mtr-theme] body.jarvis-warehouse #sceneControls [aria-pressed=true]{background:var(--t-accent);border-color:var(--t-accent);color:var(--t-primary-ink)}
html[data-mtr-theme] body[data-jarvis] :is(.jw-scene,.jw-warehouse-product,.jw-search,.jw-tools,.jw-bay-card,.jw-product-locations){box-sizing:border-box;padding:24px;border:1px solid var(--t-line);border-radius:8px;background:var(--t-surface);min-width:0}
html[data-mtr-theme] body[data-jarvis] .jw-scene{grid-column:1;grid-row:2/5}
html[data-mtr-theme] body[data-jarvis] :is(.jw-scene,.jw-warehouse-product,.jw-product-dialog) h2{font:600 22px/1.3 var(--j-heading);margin:0 0 20px}
/* The scene sits straight on its panel: no inner frame and no full-screen #app glow (no window in a window). */
html[data-mtr-theme] body[data-jarvis] .jw-canvas{height:clamp(320px,min(48vw,calc(100dvh - 350px)),560px);min-width:0;overflow:hidden;border:0;background:none}
html[data-mtr-theme] body.jarvis-warehouse #jarvisWarehouse #app{background:none!important}
html[data-mtr-theme] body[data-jarvis] .jw-scene-hint{font:11px/1.6 var(--j-mono,monospace);color:var(--t-muted);margin:24px 0 0}
html[data-mtr-theme] body[data-jarvis] .jw-search{grid-column:2;grid-row:2;border-bottom:0;border-radius:8px 8px 0 0;padding-bottom:0;margin-bottom:-24px;z-index:1}
html[data-mtr-theme] body[data-jarvis] .jw-search label{display:block;font:600 22px var(--j-heading);margin-bottom:20px}
html[data-mtr-theme] body[data-jarvis] .jw-search input{box-sizing:border-box;width:100%;min-height:48px;background:var(--t-bg);color:var(--t-text);border:1px solid var(--t-line);border-radius:8px;text-align:center;font:14px var(--j-font);padding:12px}
html[data-mtr-theme] body[data-jarvis] .jw-search-hits{display:grid;gap:8px;max-height:340px;overflow:auto;padding-top:12px}
html[data-mtr-theme] body[data-jarvis] .jw-search-hits[hidden]{display:none}
html[data-mtr-theme] body[data-jarvis] .jw-search-hits button{text-align:left;display:grid;gap:6px}
html[data-mtr-theme] body[data-jarvis] .jw-warehouse-product{grid-column:2;grid-row:3;border-top:0;border-radius:0 0 8px 8px}
html[data-mtr-theme] body[data-jarvis] .jw-warehouse-product h2{margin:18px 0}
html[data-mtr-theme] body[data-jarvis] :is(.jw-warehouse-product,.jw-product-dialog) p{font:14px/1.5 var(--j-font);color:var(--t-muted)}
html[data-mtr-theme] body[data-jarvis] :is(.jw-warehouse-product,.jw-tools,.jw-product-dialog,.jw-search) button{box-sizing:border-box;min-height:48px;padding:12px 16px;border:1px solid var(--t-line);border-radius:8px;background:var(--t-surface);color:var(--t-text);font:600 14px var(--j-font);cursor:pointer}
html[data-mtr-theme] body[data-jarvis] .jw-warehouse-product>button{display:block;width:100%;margin-top:16px}
html[data-mtr-theme] body[data-jarvis] .jw-kicker{display:block;color:var(--t-accent);font:12px/1.5 var(--j-mono,monospace);overflow-wrap:anywhere}
html[data-mtr-theme] body[data-jarvis] .jw-primary{background:var(--t-accent)!important;color:var(--t-primary-ink)!important;border-color:var(--t-accent)!important}
html[data-mtr-theme] body[data-jarvis] .jw-first-location{padding:9px;border:1px solid var(--t-line);border-radius:8px;text-align:center;color:var(--t-text)!important}
html[data-mtr-theme] body[data-jarvis] .jw-tools{grid-column:2;grid-row:4;padding:20px}
html[data-mtr-theme] body[data-jarvis] .jw-tools>summary{cursor:pointer;font:600 22px var(--j-heading)}
html[data-mtr-theme] body[data-jarvis] .jw-tool-buttons{display:grid;gap:10px;margin-top:18px}
html[data-mtr-theme] body.jarvis-warehouse .jw-worker-slot #mtrSceneBar.worker{position:static!important;inset:auto!important;transform:none!important;display:block!important;max-height:none!important;width:auto!important;margin-top:16px;padding:0!important;border:0!important;box-shadow:none!important;background:none!important}
html[data-mtr-theme] body.jarvis-warehouse .jw-worker-slot .workerDockHead{position:static}
html[data-mtr-theme] body[data-jarvis] .jw-design .jw-search,html[data-mtr-theme] body[data-jarvis] .jw-design .jw-tools,html[data-mtr-theme] body[data-jarvis] .jw-design .jw-hallbar{display:none}
html[data-mtr-theme] body[data-jarvis] .jw-design .jw-scene{grid-row:1/5}
html[data-mtr-theme] body[data-jarvis] .jw-designer-slot{grid-row:1/5;border:1px solid var(--t-line);border-radius:8px}
html[data-mtr-theme] body.jarvis-warehouse #sceneDesigner{position:static!important;inset:auto!important;width:auto!important;max-width:none!important;max-height:none!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
html[data-mtr-theme] body[data-jarvis] .jw-product-dialog{box-sizing:border-box;width:min(1200px,calc(100vw - 48px));max-height:92dvh;padding:32px;border:1px solid var(--t-line);border-radius:8px;background:var(--t-bg);color:var(--t-text);font-family:var(--j-font);overflow:auto}
html[data-mtr-theme] body[data-jarvis] .jw-product-dialog::backdrop{background:var(--t-backdrop,rgba(0,0,0,.8))}
html[data-mtr-theme] body[data-jarvis] .jw-product-dialog>header{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:28px}
html[data-mtr-theme] body[data-jarvis] .jw-product-dialog h1{font:600 36px/1.2 var(--j-heading);margin:12px 0}
html[data-mtr-theme] body[data-jarvis] .jw-product-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:24px;align-items:start}
html[data-mtr-theme] body[data-jarvis] .jw-warehouse-bay-grid{display:grid;grid-template-columns:repeat(var(--jw-bay-columns,3),minmax(0,1fr));gap:12px}
html[data-mtr-theme] body[data-jarvis] .jw-warehouse-bay-grid button{text-align:left;display:flex;flex-direction:column;gap:7px;min-height:110px;overflow-wrap:anywhere}
html[data-mtr-theme] body[data-jarvis] .jw-warehouse-bay-grid small{color:var(--t-muted);font-weight:400}
html[data-mtr-theme] body[data-jarvis] .jw-warehouse-bay-grid [aria-pressed=true]{border-color:var(--t-accent);box-shadow:inset 0 0 0 1px var(--t-accent)}
html[data-mtr-theme] body[data-jarvis] .jw-product-locations button{display:block;width:100%;margin:0 0 16px}
/* Existing verification dialog: preserve actual hall/rack/bay choices, drafts, confirmations and ACL. */
html[data-mtr-theme] body[data-jarvis] #locationOperations{width:min(1320px,calc(100vw - 48px));max-height:94dvh;border-radius:8px;padding:28px;background:var(--t-bg);font-family:var(--j-font)}
html[data-mtr-theme] body[data-jarvis] #locationOperations>header h2{font:600 36px var(--j-heading)}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-navigation{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(170px,1fr) minmax(240px,1.8fr);gap:16px;align-items:start}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-racks{max-height:150px;overflow:auto;align-content:start;margin:0}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-bay-workspace{gap:24px}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-bay{min-width:0;border:1px solid var(--t-line);border-radius:8px;padding:24px;background:var(--t-surface)}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-bay-level{border:0;padding:0;margin-bottom:12px}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-bay-heading{padding:0 0 18px}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-bay-heading strong{color:var(--t-accent);font:600 22px var(--j-heading)}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-bay-columns{display:none}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-bay-slots{gap:12px}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-pallet{min-height:112px;padding:15px;text-align:left;border:1px solid var(--t-line);border-radius:8px;background:var(--t-surface)}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-pallet>b{font:12px var(--j-mono,monospace);color:var(--t-accent)}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-pallet-products{justify-content:start;padding:8px 0}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-pallet-product{align-items:start;max-width:none}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-photo{display:none}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-product-name{display:block}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-empty-mark{min-height:30px;text-align:left;align-self:start}
html[data-mtr-theme] body[data-jarvis] #locationOperations [data-place-management]{position:static;padding:24px;border-radius:8px;background:var(--t-surface)}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-pallet[aria-pressed=true]{outline-color:var(--t-accent)}
@media(max-width:1000px) and (min-width:761px){html[data-mtr-theme] body[data-jarvis] .jw-content{grid-template-columns:minmax(0,1fr) 250px;gap:16px}html[data-mtr-theme] body[data-jarvis] :is(.jw-scene,.jw-search,.jw-warehouse-product,.jw-tools){padding:16px}html[data-mtr-theme] body[data-jarvis] .jw-search{margin-bottom:-16px;padding-bottom:0}}
@media(max-width:760px){
 html[data-mtr-theme] body.jarvis-warehouse #jarvisWarehouse{padding-bottom:96px}
 html[data-mtr-theme] body[data-jarvis] .jw-content{display:flex;flex-direction:column;gap:20px}
 html[data-mtr-theme] body[data-jarvis] .jw-content>*{width:100%}
 html[data-mtr-theme] body[data-jarvis] .jw-search{order:0;border:0;padding:0;margin:0;background:none}
 html[data-mtr-theme] body[data-jarvis] .jw-search label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 html[data-mtr-theme] body[data-jarvis] .jw-search input{font-size:16px;min-height:48px;background:var(--t-surface)}
 html[data-mtr-theme] body[data-jarvis] .jw-hallbar{order:1}
 html[data-mtr-theme] body.jarvis-warehouse #sceneControls{gap:6px}
 html[data-mtr-theme] body.jarvis-warehouse #sceneControls :is(button,select){font-size:12px;min-height:44px;padding:6px}
 html[data-mtr-theme] body[data-jarvis] .jw-scene{order:2;border:0;padding:0;background:none}
 html[data-mtr-theme] body[data-jarvis] .jw-scene h2{font-size:18px;margin-bottom:12px}
 html[data-mtr-theme] body[data-jarvis] .jw-canvas{height:310px}
 html[data-mtr-theme] body[data-jarvis] .jw-scene-hint{margin-top:10px;font-size:10px}
 html[data-mtr-theme] body[data-jarvis] .jw-warehouse-product{order:3;border:1px solid var(--t-line);border-radius:8px;padding:16px}
 html[data-mtr-theme] body[data-jarvis] .jw-tools{order:4;padding:16px}
 html[data-mtr-theme] body.jarvis-warehouse #panel{top:auto;bottom:72px;left:16px;right:16px;width:auto;max-height:45dvh}
 html[data-mtr-theme] body[data-jarvis] .jw-product-dialog{width:calc(100vw - 20px);max-height:95dvh;padding:16px}
 html[data-mtr-theme] body[data-jarvis] .jw-product-dialog h1{font-size:28px}
 html[data-mtr-theme] body[data-jarvis] .jw-product-layout{display:flex;flex-direction:column;gap:16px}
 html[data-mtr-theme] body[data-jarvis] .jw-product-layout>*{width:100%;padding:16px}
 html[data-mtr-theme] body[data-jarvis] .jw-warehouse-bay-grid{gap:8px}
 html[data-mtr-theme] body[data-jarvis] .jw-warehouse-bay-grid button{padding:10px 7px;min-height:80px;font-size:11px}
 html[data-mtr-theme] body[data-jarvis] #locationOperations{width:calc(100vw - 16px);padding:16px;max-height:96dvh}
 html[data-mtr-theme] body[data-jarvis] #locationOperations>header h2{font-size:28px}
 html[data-mtr-theme] body[data-jarvis] #locationOperations .location-navigation{display:block}
 html[data-mtr-theme] body[data-jarvis] #locationOperations .location-racks{max-height:125px;margin:12px 0}
 html[data-mtr-theme] body[data-jarvis] #locationOperations :is(.location-bay,[data-place-management]){padding:12px}
 html[data-mtr-theme] body[data-jarvis] #locationOperations .location-bay-slots{gap:7px}
 html[data-mtr-theme] body[data-jarvis] #locationOperations .location-pallet{padding:8px;min-height:88px}
 html[data-mtr-theme] body[data-jarvis] #locationOperations .location-pallet>b{font-size:10px}
 html[data-mtr-theme] body[data-jarvis] #locationOperations .location-bay-heading span{display:none}
}

html[data-mtr-theme] body[data-jarvis] .jw-product-photo{display:grid;place-items:center;float:right;width:72px;height:72px;margin:0 0 12px 12px;background:var(--t-bg);border:1px solid var(--t-line);border-radius:6px;font-size:10px;color:var(--t-muted)}
html[data-mtr-theme] body[data-jarvis] .jw-product-photo img{max-width:100%;max-height:100%;object-fit:contain}
html[data-mtr-theme] body.jarvis-warehouse .jw-search #locationSearch,html[data-mtr-theme] body.jarvis-warehouse .jw-search #workerSearch{display:block!important;position:static!important;inset:auto!important;transform:none!important;width:100%!important;margin:0!important;max-width:none!important;opacity:1!important}
html[data-mtr-theme] body.jarvis-warehouse .jw-search .product-search-results{position:static!important;width:100%!important;max-width:none!important;max-height:400px;margin-top:12px;box-shadow:none!important;background:var(--t-surface)!important;border-color:var(--t-line)!important}
html[data-mtr-theme] body.jarvis-warehouse .jw-warehouse-product #workerFound{margin:0;max-height:none;overflow:visible}
html[data-mtr-theme] body[data-jarvis] #locationOperations .location-level-label{display:block;color:var(--t-muted);font-size:11px;padding:0 0 5px}

/* JARVIS WAREHOUSE END */

/* The route provides the title; embedded return tools retain their own heading. */
body[data-jarvis] [data-jarvis-page=returns] .returns-panel>.jarvis-page-heading,body[data-jarvis] .returns-panel>[data-result]:empty{display:none}

/* Embedded MIX task map reuses the existing scene without exposing editing tools. */
html[data-mtr-theme] .mix-scene{height:340px;min-width:0;overflow:hidden;border:1px solid var(--t-line);border-radius:8px;background:var(--t-bg)}
html[data-mtr-theme] body.mtr-mix-scene .mix-scene #app{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:100%!important;transform:none!important;z-index:auto!important}
html[data-mtr-theme] .mix-scene canvas{display:block;width:100%!important;height:100%!important;pointer-events:none}
html[data-mtr-theme] [data-mix-resolve]{display:grid;gap:12px;margin:14px 0}
html[data-mtr-theme] [data-mix-resolve] label{display:block}
@media(max-width:600px){html[data-mtr-theme] .mix-scene{height:270px}}
/* Grouped navigation and account shortcuts. */
html[data-mtr-theme] body[data-jarvis] .jarvis-header-actions{display:flex;align-items:center;gap:8px;flex:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-icon-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:10px;border:1px solid var(--t-line);border-radius:10px;background:var(--t-surface-solid);color:var(--t-text);cursor:pointer;list-style:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-icon-button::-webkit-details-marker{display:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-icon-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
html[data-mtr-theme] body[data-jarvis] .jarvis-settings-menu{position:relative;margin:0;padding:0;border:0;background:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-settings-options{position:absolute;right:0;top:calc(100% + 8px);z-index:100;display:grid;gap:8px;padding:12px;width:220px;max-width:calc(100vw - 32px);border:1px solid var(--t-line);border-radius:12px;background:var(--t-surface-solid);box-shadow:var(--t-shadow-soft)}
html[data-mtr-theme] body[data-jarvis] .jarvis-settings-options button{width:100%;min-height:44px}
html[data-mtr-theme] body[data-jarvis] .jarvis-nav-group>summary{font-size:14px;font-weight:700;color:var(--t-text);border:1px solid var(--t-line);border-radius:10px;padding:14px 10px}
@media(max-width:760px){html[data-mtr-theme] body[data-jarvis] .jarvis-header{flex-wrap:wrap;gap:8px}html[data-mtr-theme] body[data-jarvis] .jarvis-header-actions{margin-left:auto}html[data-mtr-theme] body[data-jarvis] .jarvis-session{max-width:110px}}
html[data-mtr-theme] .mtrUsersPanel{width:min(1000px,100%)}
html[data-mtr-theme] .mtrUsersPanel #mtrUsersList{grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:12px}
html[data-mtr-theme] .mtrUsersPanel #mtrUsersList article{aspect-ratio:1;min-width:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr auto;justify-items:center;align-items:center;text-align:center;gap:12px;padding:20px}
html[data-mtr-theme] .mtrUsersPanel #mtrUsersList button{grid-column:1;grid-row:3;justify-self:stretch}
html[data-mtr-theme] .mtrUserAvatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--t-selected);color:var(--t-accent-text);font-weight:700}
html[data-mtr-theme] .mtrUserIdentity{display:grid;gap:5px;overflow-wrap:anywhere}
html[data-mtr-theme] .mtrUserIdentity small{color:var(--t-muted)}
html[data-mtr-theme] .mtrCreateUserDialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border:1px solid var(--t-line);border-radius:16px;background:var(--t-surface-solid);color:var(--t-text);box-shadow:var(--t-shadow)}
html[data-mtr-theme] .mtrCreateUserDialog::backdrop{background:var(--t-backdrop)}
html[data-mtr-theme] .mtrCreateUserDialog form{display:grid;gap:14px}
html[data-mtr-theme] .mtrUsersPanel [data-create-user]{justify-self:start}
html[data-mtr-theme] .mtrUsersPanel [data-station-section]{border:1px solid var(--t-line);border-radius:12px;padding:12px;margin-top:12px}
html[data-mtr-theme] .mtrUsersPanel [data-station-section]>summary{cursor:pointer;font-weight:700;padding:8px;min-height:44px}
@media(max-width:480px){html[data-mtr-theme] #mtrUsersDialog{padding:8px}html[data-mtr-theme] .mtrUsersPanel{padding:16px}html[data-mtr-theme] .mtrUsersPanel #mtrUsersList article{gap:12px;padding:20px}html[data-mtr-theme] .mtrUserAvatar{width:36px;height:36px}}
@media (max-width:640px){}
html[data-mtr-theme] form[data-mix-close]{display:grid;gap:14px}html[data-mtr-theme] form[data-mix-close] label{display:grid;gap:6px;min-width:0}html[data-mtr-theme] form[data-mix-close] input{width:100%;min-width:0;box-sizing:border-box}
@media (max-width:899px){}
@media (prefers-reduced-motion:reduce){}
html[data-mtr-theme] body[data-jarvis] .jarvis-sync{position:absolute;left:50%;top:calc(50% - 12px);transform:translate(-50%,-50%);display:grid;gap:6px;justify-items:center;width:min(520px,42vw);pointer-events:auto}
html[data-mtr-theme] body[data-jarvis] .jarvis-sync[hidden]{display:none}
html[data-mtr-theme] body[data-jarvis] .jarvis-sync-label{font:10px/1.4 var(--j-mono);color:var(--t-muted);text-align:center;max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html[data-mtr-theme] body[data-jarvis] .jarvis-sync-bar{display:block;width:100%;height:4px;border-radius:2px;background:var(--t-line);overflow:hidden}
html[data-mtr-theme] body[data-jarvis] .jarvis-sync-bar i{display:block;height:100%;width:0;border-radius:inherit;background:var(--t-accent);transition:width .4s ease}
html[data-mtr-theme] body[data-jarvis] .jarvis-sync[data-state=running] .jarvis-sync-label{color:var(--t-accent)}
html[data-mtr-theme] body[data-jarvis] .jarvis-sync[data-state=error] .jarvis-sync-bar i{background:var(--t-danger,#e5484d)}
html[data-mtr-theme] body[data-jarvis] .jarvis-sync[data-state=error] .jarvis-sync-label{color:var(--t-danger,#e5484d)}
@media (max-width:899px){html[data-mtr-theme] body[data-jarvis] .jarvis-header:has(.jarvis-sync:not([hidden])){flex-wrap:wrap}html[data-mtr-theme] body[data-jarvis] .jarvis-sync{position:static;transform:none;order:10;flex:1 0 100%;width:100%;gap:4px}}
@media (prefers-reduced-motion:reduce){html[data-mtr-theme] body[data-jarvis] .jarvis-sync-bar i{transition:none}}
html[data-mtr-theme] body[data-jarvis] .jarvis-sync-nolabel{display:inline;min-height:0;padding:0;border:0;background:none;color:var(--t-accent);font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
html[data-mtr-theme] body[data-jarvis] .jarvis-sync-nolabel:disabled{color:inherit;text-decoration:none;cursor:default}
html[data-mtr-theme] .jarvis-sync-dialog{max-width:min(420px,calc(100vw - 32px));padding:24px;border:1px solid var(--t-line);border-radius:var(--t-radius-sm);background:var(--t-surface-solid);color:var(--t-text)}
html[data-mtr-theme] .jarvis-sync-dialog::backdrop{background:#0009}
html[data-mtr-theme] .jarvis-sync-dialog h2{margin:0 0 8px;font-size:18px}html[data-mtr-theme] .jarvis-sync-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}html[data-mtr-theme] .jarvis-sync-dialog-actions button{min-height:44px;padding:0 16px}
/* Zbieranie na Zebrze/telefonie: lista jest podstawowym ekranem zadania (w stronie Praca), lokalizacja i ilość największe; makieta to zamykane okno #poolMapPopup. */
html[data-mtr-theme] #poolPicking.pool-inline{position:static!important;inset:auto!important;width:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;z-index:auto!important}
html[data-mtr-theme] body[data-jarvis] #poolPicking :is([data-close],[data-map-close]){flex:0 0 auto;white-space:nowrap}html[data-mtr-theme] body[data-jarvis] #poolPicking .jw-pool-progress{margin:6px 0 10px}
html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-item{display:block;padding:12px 14px;margin:10px 0}html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-item-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-loc{font-size:26px;font-weight:800;letter-spacing:.02em;font-variant-numeric:tabular-nums;color:var(--t-text)}html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-item-head .pickup-quantity{font-size:26px;font-weight:800;text-decoration:none;white-space:nowrap;color:var(--t-accent-text)}
html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-item .pool-product{margin-top:6px;gap:10px;align-items:center}html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-item .pool-product-photo{width:48px;height:48px;flex:0 0 48px}html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-item .pool-product h3{font-size:15px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-item .jw-product small{display:block;font-size:12px;color:var(--t-muted)}
html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-item-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:8px;margin-top:10px}html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-item-actions button{min-height:52px;padding:8px 6px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-item-actions button:only-child{grid-column:1/-1}html[data-mtr-theme] body[data-jarvis] #poolPicking .is-collected{opacity:.85}html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-scan-hint{margin:6px 0 0;font-size:13px;font-weight:600;color:var(--t-muted)}html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-scan-hint.is-required{color:var(--t-warn)}html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-item.is-scan-confirmed{border-color:var(--t-success);box-shadow:inset 0 0 0 2px var(--t-success)}html[data-mtr-theme] body[data-jarvis] #poolPicking .is-scan-confirmed .pool-scan-hint{color:var(--t-success)}html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-item-actions :is(.pool-scan-fallback,.pool-missing){grid-column:1/-1;min-height:44px;font-size:13px}

html[data-mtr-theme] body.pool-map-popup #app,html[data-mtr-theme] body.jarvis-warehouse.pool-map-popup #jarvisWarehouse #app{position:fixed!important;inset:auto 0 0 0!important;top:var(--pool-popup-h,96px)!important;width:100vw!important;height:calc(100dvh - var(--pool-popup-h,96px))!important;z-index:125!important}
html[data-mtr-theme] body.pool-map-popup .jarvis-mobile-nav{display:none!important}
html[data-mtr-theme] body[data-jarvis] #poolPicking .pool-collected-list summary{min-height:44px;display:flex;align-items:center;font-size:14px}
html[data-mtr-theme] #poolMapPopup{position:fixed;top:0;left:0;right:0;z-index:130;padding:10px 14px;box-sizing:border-box;background:var(--t-surface-solid);color:var(--t-text);border-bottom:1px solid var(--t-line);border-radius:0 0 12px 12px}html[data-mtr-theme] #poolMapPopup .pool-popup-head{display:flex;align-items:center;justify-content:space-between;gap:12px}html[data-mtr-theme] #poolMapPopup h2{font-size:22px;margin:4px 0 0}html[data-mtr-theme] #poolMapPopup p{margin:2px 0 0;font-size:13px}html[data-mtr-theme] #poolMapPopup [data-map-close]{flex:0 0 auto;white-space:nowrap;min-height:48px;padding:0 16px}html[data-mtr-theme] body.pool-map-popup #mtrSceneBar{display:none!important}
html[data-mtr-theme] .packing-page.pool-picking-page .jarvis-title,html[data-mtr-theme] .packing-page.pool-picking-page [data-work-active]>:is(h2,p:not(.ui-eyebrow),.mtr-rich-content,[data-complete-active]){display:none!important}html[data-mtr-theme] .packing-page.pool-picking-page [data-work-active]>.ui-eyebrow{font-size:14px;margin:0 0 4px}
html[data-mtr-theme] .packing-page.pool-picking-page{padding-left:max(16px,env(safe-area-inset-left))!important;padding-right:max(16px,env(safe-area-inset-right))!important;padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}html[data-mtr-theme] .packing-page.pool-picking-page [data-work-active]{padding:14px 12px 16px!important}html[data-mtr-theme] .packing-page.pool-picking-page [data-work-active]>.ui-eyebrow{margin:0 2px 6px!important}html[data-mtr-theme] .packing-page.pool-picking-page #poolPicking .jw-pool-progress{margin:0 2px 10px}html[data-mtr-theme] .packing-page.pool-picking-page #poolPicking .pool-item{padding:12px}
html[data-mtr-theme] #poolMapPopup{margin:0;padding:max(10px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 10px max(14px,env(safe-area-inset-left))}html[data-mtr-theme] #poolMapPopup [data-map-error]:empty{display:none}html[data-mtr-theme] #poolMapPopup [data-map-error]{color:var(--t-warn);font-weight:600}html[data-mtr-theme] #poolPicking.pool-inline{max-width:760px}
/* 0.3.69 quick packing: only the task number and date above the list; a card holds the order number, the item and one action slot (Drukuj, then Spakowano). */html[data-mtr-theme] .packing-task-card.quick-packing-task>:is(h1,.mtr-rich-content){display:none!important}html[data-mtr-theme] .quick-packing-panel .quick-pack-id{display:block;font-size:20px;margin:0 0 8px}html[data-mtr-theme] .quick-packing-panel .quick-pack-product-row>span{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:baseline}html[data-mtr-theme] .quick-packing-panel .quick-pack-product-row .packing-quantity{font-size:20px}html[data-mtr-theme] .quick-packing-panel .quick-pack-name{grid-column:1/-1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}html[data-mtr-theme] .quick-packing-panel .quick-pack-name.is-expanded{-webkit-line-clamp:unset;display:block}html[data-mtr-theme] .quick-packing-panel .quick-pack-action{display:block;width:100%;min-height:52px;font-size:16px;margin:10px 0 0}html[data-mtr-theme] .quick-packing-panel .quick-pack-secondary{display:block;margin:8px auto 0;min-height:40px;background:transparent;border:0;text-decoration:underline;font-size:14px}
html[data-mtr-theme] .quick-packing-panel .quick-pack-missing{display:block;margin:6px auto 0;min-height:40px;padding:0 18px;background:transparent;border:1px solid currentColor;border-radius:10px;font-size:14px;opacity:.85}
