:root {
  --semantic-canvas: #f5f5f7;
  --semantic-surface: #ffffff;
  --semantic-glass: rgba(246, 248, 252, 0.88);
  --semantic-text: #1d1d1f;
  --semantic-muted: #6e6e73;
  --semantic-edge: #d9d9de;
  --semantic-shadow: 0 10px 28px rgba(31, 35, 43, 0.09);
  --semantic-blue: #007aff;
  --semantic-amber: #f5a623;
  --semantic-success: #34c759;
  --semantic-danger: #ff453a;
  --ink: var(--semantic-text);
  --muted: var(--semantic-muted);
  --line: var(--semantic-edge);
  --panel: var(--semantic-surface);
  --bg: var(--semantic-canvas);
  --subtle-surface: #f8fafd;
  --red: #feecec;
  --orange: #fff4dd;
  --green: #eaf8ef;
  --blue: #eff6ff;
  --yellow: #fff4dd;
  --blue-900: #153c74;
  --blue-800: #1d4f91;
  --blue-600: #2d7de0;
  --blue-400: #72b7ff;
  --blue-100: #eaf5ff;
  --white: #ffffff;
  --page: var(--semantic-canvas);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --radius-control: 9px;
  --radius-panel: 13px;
  --radius-badge: 7px;
  --control-height: 40px;
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.22);
  --shadow-panel: 0 1px 2px rgba(15, 23, 42, 0.03), 0 6px 18px rgba(15, 23, 42, 0.04);
  --shadow-elevated: 0 2px 4px rgba(15, 23, 42, 0.04), 0 10px 24px rgba(15, 23, 42, 0.07);
  --motion-fast: 160ms;
  --ios-blue: var(--semantic-blue);
  --ios-green: var(--semantic-success);
  --ios-amber: var(--semantic-amber);
  --ios-red: var(--semantic-danger);
  --ios-gray: #94a3b8;
}

html[data-theme="night"] {
  color-scheme: dark;
  --semantic-canvas: #111113;
  --semantic-surface: #1c1c1e;
  --semantic-glass: rgba(44, 44, 46, 0.86);
  --semantic-text: #f5f5f7;
  --semantic-muted: #a1a1a6;
  --semantic-edge: #38383a;
  --semantic-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  --semantic-blue: #0a84ff;
  --semantic-amber: #ffd60a;
  --semantic-success: #30d158;
  --semantic-danger: #ff453a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  min-width: 0;
  overflow-x: hidden;
}

:where(h1, h2, h3, h4, h5, h6, [role="heading"], .dashboard-column-heading) {
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

:where(
  .login-orb-brand,
  .audit-heading-row,
  .customer-dashboard-card-heading,
  .customer-dashboard-group-heading,
  .customer-dashboard-heading,
  .dashboard-filter-form__heading,
  .settings-page__header,
  .status-chart__header,
  .status-operations-page__header,
  .task-detail-header,
  .team-section-heading,
  .task-workspace-panel__chrome
) {
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid rgba(78, 102, 137, 0.22);
  background: rgba(255, 255, 255, 0.94);
  color: #1468c4;
  padding: 7px 14px;
  border-radius: var(--radius-control);
  cursor: pointer;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.98), 0 7px 18px -14px rgba(31, 52, 82, 0.48);
  transition: background var(--motion-fast) ease-out, border-color var(--motion-fast) ease-out, box-shadow var(--motion-fast) ease-out, transform var(--motion-fast) ease-out;
  min-height: var(--control-height);
}

button:hover {
  background: #fff;
  border-color: rgba(0, 122, 255, 0.42);
  box-shadow: inset 0 1px #fff, 0 0 0 3px rgba(0, 122, 255, 0.08), 0 10px 22px -15px rgba(25, 71, 126, 0.48);
  transform: translateY(-1px);
}

button:active {
  box-shadow: 0 6px 14px rgba(0, 122, 255, 0.18);
  transform: translateY(0);
}

button.secondary {
  background: #ffffff;
  color: #334155;
  border-color: #d8e0ea;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

button.danger {
  background: #feecec;
  color: #b91c1c;
  border-color: #fecaca;
  box-shadow: none;
}

button.success,
button[data-next="completed"] {
  background: #16a34a;
  border-color: #16a34a;
  box-shadow: none;
}

button.warning,
button[data-next="arrived"] {
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: none;
}

button.neutral {
  background: #ffffff;
  color: #64748b;
  border-color: #d8e0ea;
  box-shadow: none;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: var(--radius-control);
  min-height: var(--control-height);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

textarea {
  min-height: 72px;
  resize: vertical;
}

.boot,
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.truck-loading-layer {
  --truck-accent: var(--semantic-blue);
  --truck-ink: var(--semantic-text);
  position: fixed;
  z-index: 1600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.truck-loading-layer[hidden] {
  display: none;
}

.truck-loading {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 168px;
  color: var(--truck-ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-align: center;
}

.truck-loading__visual {
  position: relative;
  width: clamp(128px, 10vw, 152px);
  height: 70px;
  overflow: hidden;
}

.truck-loading__vehicle {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: auto;
  color: var(--truck-ink);
  filter: drop-shadow(0 7px 9px rgba(35, 54, 78, 0.12));
  animation: truck-loading-suspension 760ms ease-in-out infinite;
}

.truck-loading__cargo,
.truck-loading__cab {
  fill: color-mix(in srgb, var(--truck-accent) 15%, #f7fbff);
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.truck-loading__cab {
  fill: var(--truck-accent);
}

.truck-loading__window {
  fill: rgba(245, 250, 255, 0.92);
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.truck-loading__wheels circle:not(.truck-loading__hub) {
  fill: var(--truck-ink);
}

.truck-loading__hub {
  fill: #dce8f7;
}

.truck-loading__lamp {
  fill: var(--semantic-amber);
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--semantic-amber) 44%, transparent));
  animation: truck-loading-lamp 1.1s ease-in-out infinite;
}

.truck-loading__road {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0 8%, var(--truck-ink) 8% 35%, transparent 35% 45%, var(--truck-accent) 45% 73%, transparent 73% 82%, var(--truck-ink) 82% 100%);
  background-size: 185% 100%;
  animation: truck-loading-road 1.1s linear infinite;
  opacity: 0.58;
}

.truck-loading__retry {
  min-height: 32px;
  padding: 5px 13px;
  border-color: color-mix(in srgb, var(--truck-accent) 42%, #d6dee9);
  border-radius: 999px;
  background: rgba(249, 252, 255, 0.94);
  color: #1f5fae;
  pointer-events: auto;
}

.truck-loading--error .truck-loading__visual {
  opacity: 0.72;
}

@keyframes truck-loading-suspension {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 2px, 0); }
}

@keyframes truck-loading-road {
  to { background-position: -185% 0; }
}

@keyframes truck-loading-lamp {
  0%, 100% { opacity: 0.58; transform: scale(0.88); transform-origin: center; }
  50% { opacity: 1; transform: scale(1); transform-origin: center; }
}

html[data-motion="off"] .truck-loading__vehicle,
html[data-motion="off"] .truck-loading__road,
html[data-motion="off"] .truck-loading__lamp,
.truck-loading[data-motion="off"] .truck-loading__vehicle,
.truck-loading[data-motion="off"] .truck-loading__road,
.truck-loading[data-motion="off"] .truck-loading__lamp {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) .truck-loading__vehicle,
  html:not([data-motion="on"]) .truck-loading__road,
  html:not([data-motion="on"]) .truck-loading__lamp {
    animation: none;
  }
}

@media (max-width: 520px) {
  .truck-loading-layer { padding: 18px; }
  .truck-loading__visual { width: clamp(104px, 29vw, 120px); height: 58px; }
  .truck-loading { min-width: 128px; }
}

.hero {
  position: relative;
  display: block;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #f7fbff;
}

.hero-bg {
  position: absolute;
  inset: auto auto 0 46%;
  z-index: 0;
  width: min(108vw, 1983px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: auto;
  filter: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 100%);
  transform: translateX(-50%);
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
}

.motion-logistics-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #f7fbff;
  pointer-events: none;
  user-select: none;
}

.login-port-poster,
.login-port-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}

.login-port-poster {
  z-index: 0;
  background: #f7fbff;
}

.login-port-video {
  z-index: 1;
}

.motion-logistics-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.75;
}

.motion-login-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(247, 251, 255, 0.94) 0%,
    rgba(247, 251, 255, 0.9) 24%,
    rgba(247, 251, 255, 0.42) 34%,
    rgba(247, 251, 255, 0.08) 46%,
    rgba(247, 251, 255, 0) 100%
  );
}

.motion-route {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2.4;
  stroke-dasharray: 11 22;
  vector-effect: non-scaling-stroke;
  animation: routeFlow 18s linear infinite;
}

.motion-route-primary {
  stroke: url(#routeBlue);
  opacity: 0.48;
}

.motion-route-secondary {
  stroke: #007aff;
  opacity: 0.22;
  animation-duration: 22s;
  animation-direction: reverse;
}

.motion-route-tertiary {
  stroke: #173b8f;
  opacity: 0.14;
  animation-duration: 26s;
}

.motion-particles circle,
.motion-particles rect {
  fill: #007aff;
  opacity: 0.2;
  filter: drop-shadow(0 0 8px rgba(0, 122, 255, 0.18));
}

.motion-particles rect {
  fill: #173b8f;
  opacity: 0.16;
}

.motion-particles circle:nth-child(1) {
  animation: particleA 16s ease-in-out infinite;
}

.motion-particles circle:nth-child(2) {
  animation: particleB 19s ease-in-out infinite;
}

.motion-particles circle:nth-child(3) {
  animation: particleC 22s ease-in-out infinite;
}

.motion-particles rect:nth-child(4) {
  animation: boxFloatA 18s ease-in-out infinite;
}

.motion-particles rect:nth-child(5) {
  animation: boxFloatB 24s ease-in-out infinite;
}

.motion-light-sweep {
  position: absolute;
  top: -24%;
  bottom: -24%;
  left: 28%;
  z-index: 1;
  width: 20%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.26) 45%,
    rgba(0, 122, 255, 0.1) 52%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-70vw) skewX(-14deg);
  animation: lightSweep 18s ease-in-out infinite;
}

.motion-conveyor-accent {
  position: absolute;
  right: 0;
  bottom: 15%;
  z-index: 1;
  width: min(52vw, 840px);
  height: 2px;
  overflow: hidden;
  opacity: 0.38;
  background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.32), transparent);
}

.motion-conveyor-accent::after {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(
    90deg,
    rgba(23, 59, 143, 0) 0 20px,
    rgba(23, 59, 143, 0.58) 20px 28px
  );
  animation: conveyorSlide 14s linear infinite;
}

@keyframes routeFlow {
  to {
    stroke-dashoffset: -144;
  }
}

@keyframes lightSweep {
  0% {
    transform: translateX(-70vw) skewX(-14deg);
  }

  42%,
  100% {
    transform: translateX(92vw) skewX(-14deg);
  }
}

@keyframes conveyorSlide {
  to {
    transform: translateX(56px);
  }
}

@keyframes particleA {
  0% {
    transform: translate(692px, 704px);
  }

  50% {
    transform: translate(1100px, 592px);
  }

  100% {
    transform: translate(692px, 704px);
  }
}

@keyframes particleB {
  0% {
    transform: translate(768px, 812px);
  }

  50% {
    transform: translate(1230px, 720px);
  }

  100% {
    transform: translate(768px, 812px);
  }
}

@keyframes particleC {
  0% {
    transform: translate(848px, 474px);
  }

  50% {
    transform: translate(1272px, 360px);
  }

  100% {
    transform: translate(848px, 474px);
  }
}

@keyframes boxFloatA {
  0% {
    transform: translate(958px, 652px);
  }

  50% {
    transform: translate(1120px, 604px);
  }

  100% {
    transform: translate(958px, 652px);
  }
}

@keyframes boxFloatB {
  0% {
    transform: translate(1178px, 544px);
  }

  50% {
    transform: translate(1358px, 486px);
  }

  100% {
    transform: translate(1178px, 544px);
  }
}

.login-panel {
  position: absolute;
  left: clamp(48px, 5.2vw, 90px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: min(470px, 32vw);
  min-height: 520px;
  padding: 86px 48px 56px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 70px rgba(23, 59, 143, 0.13);
  backdrop-filter: blur(10px);
  color: var(--blue-900);
  text-align: center;
}

.login-panel .locale-picker select {
  min-height: 44px;
}

.login-panel h1 {
  margin: 0 0 16px;
  color: #1261c9;
  font-size: clamp(48px, 4.2vw, 64px);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.04em;
}

.login-panel p {
  position: static;
  max-width: none;
  margin: 0 0 48px;
  color: rgba(20, 59, 115, 0.68);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 1;
  transform: none;
}

.login-panel span,
.login-panel small {
  position: static;
  font-size: 17px;
  opacity: 1;
  transform: none;
}

.login-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 38;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 12px;
  --glow-padding: 24px;
  --cone-spread: 24;
  --fill-opacity: 0.18;
  --card-bg: rgba(255, 255, 255, 0.98);
  --glow-color: hsl(205deg 95% 58% / 100%);
  --glow-color-60: hsl(205deg 95% 58% / 100%);
  --glow-color-50: hsl(205deg 95% 58% / 88%);
  --glow-color-40: hsl(205deg 95% 58% / 70%);
  --glow-color-30: hsl(205deg 95% 58% / 53%);
  --glow-color-20: hsl(205deg 95% 58% / 35%);
  --glow-color-10: hsl(205deg 95% 58% / 18%);
  --gradient-one: radial-gradient(at 80% 55%, #e0f2fe 0px, transparent 50%);
  --gradient-two: radial-gradient(at 69% 34%, #38bdf8 0px, transparent 50%);
  --gradient-three: radial-gradient(at 8% 6%, #0284c7 0px, transparent 50%);
  --gradient-four: radial-gradient(at 41% 38%, #e0f2fe 0px, transparent 50%);
  --gradient-five: radial-gradient(at 86% 85%, #38bdf8 0px, transparent 50%);
  --gradient-six: radial-gradient(at 82% 18%, #0284c7 0px, transparent 50%);
  --gradient-seven: radial-gradient(at 51% 4%, #38bdf8 0px, transparent 50%);
  --gradient-base: linear-gradient(#e0f2fe 0 100%);
  position: relative;
  display: grid;
  overflow: visible;
  isolation: isolate;
  border: 1px solid rgba(20, 59, 115, 0.16);
  border-radius: var(--border-radius);
  background: var(--card-bg);
  transform: translate3d(0, 0, 0.01px);
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
  pointer-events: none;
}

.border-glow-card:not(:hover)::before,
.border-glow-card:not(:hover)::after,
.border-glow-card:not(:hover) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one) border-box,
    var(--gradient-two) border-box,
    var(--gradient-three) border-box,
    var(--gradient-four) border-box,
    var(--gradient-five) border-box,
    var(--gradient-six) border-box,
    var(--gradient-seven) border-box,
    var(--gradient-base) border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one) padding-box,
    var(--gradient-two) padding-box,
    var(--gradient-three) padding-box,
    var(--gradient-four) padding-box,
    var(--gradient-five) padding-box,
    var(--gradient-six) padding-box,
    var(--gradient-seven) padding-box,
    var(--gradient-base) padding-box;
  opacity: calc(var(--fill-opacity) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  mask-composite: subtract, add, add, add, add, add;
}

.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  z-index: 1;
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black 2.5%,
      transparent 10%,
      transparent 90%,
      black 97.5%
    );
}

.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 1px 0 var(--glow-color-60),
    inset 0 0 3px 0 var(--glow-color-50),
    inset 0 0 6px 0 var(--glow-color-40),
    inset 0 0 15px 0 var(--glow-color-30),
    0 0 1px 0 var(--glow-color-60),
    0 0 3px 0 var(--glow-color-50),
    0 0 6px 0 var(--glow-color-40),
    0 0 15px 0 var(--glow-color-30);
}

.border-glow-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.system-input-glow {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 10px 26px rgba(2, 132, 199, 0.10),
    0 0 0 1px rgba(56, 189, 248, 0.12);
}

.system-input-glow .border-glow-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.system-input-glow input,
.system-input-glow textarea,
.system-input-glow select {
  width: 100%;
  height: 100%;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #0f2f55;
  font-size: 14px;
  font-family: inherit;
  box-shadow: none;
}

.system-input-glow textarea {
  min-height: 96px;
  padding-top: 14px;
  resize: vertical;
}

.system-input-glow input::placeholder,
.system-input-glow textarea::placeholder {
  color: rgba(15, 47, 85, 0.45);
}

.system-input-glow:focus-within {
  border-color: #0ea5e9;
  box-shadow:
    0 12px 30px rgba(14, 165, 233, 0.18),
    0 0 0 1px rgba(14, 165, 233, 0.35);
}

.system-input-glow.compact {
  height: 40px;
  border-radius: 10px;
  --border-radius: 10px;
  --glow-padding: 18px;
}

.system-input-glow.compact .border-glow-inner {
  border-radius: 10px;
}

.system-input-glow.compact input,
.system-input-glow.compact select {
  padding: 0 13px;
  font-size: 13px;
}

.system-input-glow.textarea-glow {
  height: auto;
  min-height: 96px;
}

/* Authenticated forms use a compact Apple-style floating label. The login
   screen is intentionally separate because its edge-following field motion
   has a different interaction contract. */
.authenticated-field {
  position: relative;
  display: grid;
  min-width: 0;
  margin-top: 5px;
  color: #667085;
}

.authenticated-field > .authenticated-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(99, 115, 138, .34);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, .74);
  padding: 12px 13px 8px;
  color: #172033;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84), 0 4px 12px rgba(23, 32, 51, .045);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.authenticated-field > textarea.authenticated-input {
  min-height: 88px;
  resize: vertical;
}

.authenticated-field__label {
  position: absolute;
  top: 50%;
  left: 11px;
  z-index: 1;
  max-width: calc(100% - 24px);
  overflow: hidden;
  border-radius: 7px;
  padding: 1px 4px;
  color: #697386;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: transform 180ms cubic-bezier(.22, 1, .36, 1), top 180ms ease,
    color 180ms ease, background 180ms ease;
  pointer-events: none;
}

.authenticated-field:focus-within > .authenticated-field__label,
.authenticated-field:has(.authenticated-input:not(:placeholder-shown)) > .authenticated-field__label {
  top: 0;
  background: color-mix(in srgb, #f5f6f8 88%, transparent);
  color: #47658b;
  transform: translateY(-45%) scale(.88);
}

.authenticated-field:focus-within > .authenticated-input {
  border-color: rgba(73, 116, 172, .7);
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 3px rgba(73, 116, 172, .11), 0 8px 22px rgba(23, 32, 51, .08);
}

html[data-theme="night"] .authenticated-field { color: #aeb5c2; }
html[data-theme="night"] .authenticated-field > .authenticated-input {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(44, 44, 46, .86);
  color: #f5f5f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 5px 14px rgba(0, 0, 0, .2);
}
html[data-theme="night"] .authenticated-field__label { color: #b4bac4; }
html[data-theme="night"] .authenticated-field:focus-within > .authenticated-field__label,
html[data-theme="night"] .authenticated-field:has(.authenticated-input:not(:placeholder-shown)) > .authenticated-field__label {
  background: rgba(28, 28, 30, .94);
  color: #d4d8df;
}

/* One responsive OGL Orb Login for desktop, mobile, first entry, and Logout. */
.login-orb-page {
  position: fixed;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: #fff;
  color: #14161c;
  isolation: isolate;
}

.login-orb-brand {
  position: relative;
  z-index: 1;
  justify-self: center;
  max-width: 100%;
}

.login-orb-wordmark {
  display: block;
  width: clamp(118px, 10vw, 154px);
  height: auto;
}

.login-orb-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(88vmin, 1320px, calc(100vw - 24px), calc(100dvh - 28px));
  aspect-ratio: 1;
  opacity: .98;
  filter: saturate(1.04) contrast(1.015);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.login-orb-canvas canvas { display: block; width: 100%; height: 100%; }
.login-orb-canvas--fallback::before {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 26%, rgba(250, 253, 255, .96) 0 8%, rgba(96, 205, 255, .92) 29%, transparent 48%),
    radial-gradient(circle at 68% 68%, #42ccff 0, #6078ff 45%, #ad54f0 73%, rgba(171, 76, 238, .08) 84%);
  content: "";
  filter: blur(7px) saturate(1.05);
  box-shadow: inset 12px 12px 34px rgba(255, 255, 255, .5), 0 0 28px rgba(87, 139, 255, .14);
}

.login-orb-content {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(430px, calc(100vw - 40px));
  gap: 17px;
  align-content: center;
  text-align: center;
}

.login-orb-title {
  display: flex;
  justify-content: center;
  margin: 0 0 7px;
  color: #343a46;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  font-size: clamp(36px, 3.8vw, 52px);
  font-weight: 540;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.login-orb-title > span { display: inline-block; }
.login-orb-form { position: relative; display: grid; gap: 14px; }

.login-orb-field {
  position: relative;
  display: block;
  min-width: 0;
}

.login-orb-field > .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.login-orb-field input {
  width: 100%;
  height: 54px;
  border: 1.35px solid rgba(34, 63, 103, .58);
  border-radius: 19px;
  outline: none;
  background: rgba(250, 253, 255, .24);
  padding: 0 50px 0 20px;
  color: #111827;
  font: inherit;
  font-size: 14px;
  font-weight: 560;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 22px rgba(29, 53, 91, .045);
  backdrop-filter: blur(13px) saturate(122%);
  -webkit-backdrop-filter: blur(13px) saturate(122%);
  transition: border-color 190ms ease, box-shadow 190ms ease, background 190ms ease;
}

.login-orb-field input::placeholder { color: rgba(54, 68, 91, .58); opacity: 1; }
.login-orb-field:focus-within input {
  border-color: rgba(39, 118, 232, .84);
  background: rgba(255, 255, 255, .34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    0 0 0 3px rgba(60, 150, 255, .12),
    0 0 18px rgba(100, 94, 245, .1);
}

.login-orb-field-state {
  position: absolute;
  top: 50%;
  right: 17px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid rgba(77, 94, 117, .28);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-50%) scale(.72);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1), background 180ms ease;
}

.login-orb-field[data-state="ready"] .login-orb-field-state,
.login-orb-field[data-state="authenticated"] .login-orb-field-state {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.login-orb-field[data-state="ready"] .login-orb-field-state::before,
.login-orb-field[data-state="authenticated"] .login-orb-field-state::before {
  width: 7px;
  height: 3px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}
.login-orb-field[data-state="ready"] .login-orb-field-state { background: rgba(255, 255, 255, .48); color: #526177; }
.login-orb-field[data-state="authenticated"] .login-orb-field-state {
  border-color: rgba(49, 160, 91, .42);
  background: #34c759;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, .1);
}
.login-orb-field[data-state="invalid"] input { border-color: rgba(207, 70, 74, .48); }

.login-orb-password-field .login-orb-field-state { right: 46px; }
.login-orb-password-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 0;
  align-items: center;
  gap: 0;
  transition: grid-template-columns 260ms cubic-bezier(.22, 1, .36, 1), gap 260ms cubic-bezier(.22, 1, .36, 1);
}

.login-orb-form[data-login-ready="true"] .login-orb-password-row {
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 9px;
}

.login-orb-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  min-width: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  place-items: center;
  color: #68758a;
  transform: translateY(-50%);
}
.login-orb-password-toggle svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.login-orb-submit {
  display: grid;
  width: 0;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: 2px;
  color: #183a75;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px) scale(.84);
  visibility: hidden;
  transition: opacity 220ms ease, transform 280ms cubic-bezier(.22, 1, .36, 1), filter 220ms ease;
}

.login-orb-form[data-login-ready="true"] .login-orb-submit {
  width: 54px;
  min-width: 54px;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  visibility: visible;
}

.login-orb-truck { width: 50px; overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.login-orb-truck__cab { fill: rgba(62, 135, 239, .18); }
.login-orb-truck__cargo { fill: rgba(245, 250, 255, .32); }
.login-orb-truck__window { fill: rgba(255, 255, 255, .78); }
.login-orb-truck__road { opacity: .52; stroke-dasharray: 6 4; }
.login-orb-truck__hub { fill: #cce4ff; }
.login-orb-truck__lamp { fill: #ff7a59; stroke: none; }
.login-orb-submit:hover { background: transparent; box-shadow: none; filter: drop-shadow(0 6px 8px rgba(47, 109, 199, .2)); transform: translateY(-2px) scale(1.06); }
.login-orb-submit:disabled { cursor: default; }
.login-orb-page .login-error { min-height: 18px; margin: 0; color: #b4232d; font-size: 11px; text-align: center; }
.login-orb-dashboard-wash {
  position: fixed;
  inset: -12vmax;
  z-index: 100;
  pointer-events: none;
  background:
    radial-gradient(circle at 38% 34%, rgba(248, 252, 255, .98) 0 7%, rgba(92, 205, 247, .94) 27%, transparent 52%),
    radial-gradient(circle at 62% 61%, rgba(68, 143, 255, .92) 0 19%, rgba(133, 82, 244, .92) 52%, rgba(245, 112, 232, .72) 72%, rgba(255, 255, 255, .96) 100%);
}

@media (max-width: 600px) {
  .login-orb-content { width: min(338px, calc(100vw - 44px)); gap: 13px; }
  .login-orb-canvas { width: min(96vw, calc(100dvh - 24px)); opacity: .98; }
  .login-orb-title { margin-bottom: 8px; font-size: clamp(32px, 9.5vw, 42px); }
  .login-orb-field input { height: 52px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) .login-orb-title > span,
  html:not([data-motion="on"]) .login-orb-field-state,
  html:not([data-motion="on"]) .login-orb-submit { transition: none; }
}

html[data-motion="on"] .login-orb-submit:hover .login-orb-truck {
  animation: login-orb-truck-motion 640ms ease-in-out infinite alternate;
}

@keyframes login-orb-truck-motion {
  to { transform: translateY(1.5px); }
}

.password-row {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 12px;
  align-items: center;
}

.password-row input {
  width: 100%;
}

.login-submit {
  width: 52px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #2367c8;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(35, 103, 200, 0.26);
  transition: transform 180ms ease, background 180ms ease;
}

.login-submit:hover {
  background: #174f9f;
  transform: translateX(2px);
}

.login-error {
  min-height: 20px;
  color: #b91c1c;
}


.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 43;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.brand {
  font-weight: 700;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav a {
  color: #1f2937;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 6px 8px;
  border-radius: 4px;
  display: inline-flex;
  min-height: var(--control-height);
  align-items: center;
  white-space: nowrap;
}

.nav a.active {
  background: #e0ecff;
  border-color: #bfdbfe;
}

.userbar {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  white-space: nowrap;
}

.page {
  padding: 16px;
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  min-width: 0;
}

.shell-navigation {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mobile-nav-toggle,
.mobile-nav-heading,
.mobile-nav-backdrop {
  display: none;
}

.page h1 {
  margin: 0 0 12px;
  font-size: 22px;
}

.toolbar,
.filters,
.form-grid,
.cards {
  display: grid;
  gap: 10px;
}

.toolbar {
  grid-template-columns: 1fr repeat(5, minmax(120px, auto));
  align-items: end;
  margin-bottom: 12px;
}

.filters {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  margin-bottom: 12px;
}

.cards {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  margin-bottom: 18px;
}

.card,
.panel {
  background: var(--panel);
  border: 0;
  border-radius: var(--radius-panel);
}

.card {
  position: relative;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(60, 60, 67, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--card-accent, #007AFF);
  pointer-events: none;
}

a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 59, 115, 0.12);
}

.card-blue {
  --card-accent: #007AFF;
  background: #DCEBFF;
  color: #084B9A;
}

.card-gray {
  --card-accent: #8E8E93;
  background: #F2F2F7;
  color: #3A3A3C;
}

.card-red-outline {
  --card-accent: #FF3B30;
  background: #FFE1DF;
  color: #B42318;
}

.card-yellow {
  --card-accent: #FFCC00;
  background: #FFF1B8;
  color: #7A5A00;
}

.card-orange {
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

.card-green {
  --card-accent: #34C759;
  background: #DDF8E7;
  color: #146C2E;
}

.card .label {
  margin-left: 18px;
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}

.card .value {
  font-size: 30px;
  font-weight: 800;
  color: currentColor;
}

/* Desktop Dashboard-only MagicBento adaptation. The operational cards keep
   their existing semantic surfaces; only the interactive border is chromatic. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  [data-dashboard-bento-enabled="true"] :is(
    .dashboard-cards > .card,
    .dashboard-donut-card,
    .customer-dashboard-card,
    .worker-donut-card,
    .worker-task-card,
    .today-work-queue-card
  ) {
    --dashboard-bento-x: 50%;
    --dashboard-bento-y: 50%;
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(148, 163, 184, 0.24);
    transition:
      transform 160ms ease-out,
      box-shadow 180ms ease-out,
      border-color 180ms ease-out;
  }

  [data-dashboard-bento-enabled="true"] :is(
    .dashboard-cards > .card,
    .dashboard-donut-card,
    .customer-dashboard-card,
    .worker-donut-card,
    .worker-task-card,
    .today-work-queue-card
  )::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 1px;
    border-radius: inherit;
    background:
      radial-gradient(
        180px circle at var(--dashboard-bento-x) var(--dashboard-bento-y),
        rgba(255, 255, 255, 0.76),
        transparent 58%
      ),
      conic-gradient(
        from 205deg at var(--dashboard-bento-x) var(--dashboard-bento-y),
        #5b8def,
        #4baeb0,
        #72b980,
        #d0ad57,
        #dc8468,
        #bd75a5,
        #8178c9,
        #5b8def
      );
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease-out;
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
  }

  [data-dashboard-bento-enabled="true"] :is(
    .dashboard-cards > .card,
    .dashboard-donut-card,
    .customer-dashboard-card,
    .worker-donut-card,
    .worker-task-card,
    .today-work-queue-card
  )[data-dashboard-bento-active="true"],
  [data-dashboard-bento-enabled="true"] :is(
    .dashboard-cards > .card,
    .dashboard-donut-card,
    .customer-dashboard-card,
    .worker-donut-card,
    .worker-task-card,
    .today-work-queue-card
  )[data-dashboard-bento-focus="true"] {
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: var(--shadow-panel), 0 9px 22px rgba(37, 99, 235, 0.08);
  }

  [data-dashboard-bento-enabled="true"] :is(
    .dashboard-cards > .card,
    .dashboard-donut-card,
    .customer-dashboard-card,
    .worker-donut-card,
    .worker-task-card,
    .today-work-queue-card
  )[data-dashboard-bento-active="true"]::after,
  [data-dashboard-bento-enabled="true"] :is(
    .dashboard-cards > .card,
    .dashboard-donut-card,
    .customer-dashboard-card,
    .worker-donut-card,
    .worker-task-card,
    .today-work-queue-card
  )[data-dashboard-bento-focus="true"]::after {
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-dashboard-bento-enabled="true"] :is(
    .dashboard-cards > .card,
    .dashboard-donut-card,
    .customer-dashboard-card,
    .worker-donut-card,
    .worker-task-card,
    .today-work-queue-card
  ) {
    transition: none;
  }

  [data-dashboard-bento-enabled="true"] :is(
    .dashboard-cards > .card,
    .dashboard-donut-card,
    .customer-dashboard-card,
    .worker-donut-card,
    .worker-task-card,
    .today-work-queue-card
  )[data-dashboard-bento-active="true"],
  [data-dashboard-bento-enabled="true"] :is(
    .dashboard-cards > .card,
    .dashboard-donut-card,
    .customer-dashboard-card,
    .worker-donut-card,
    .worker-task-card,
    .today-work-queue-card
  )[data-dashboard-bento-focus="true"] {
    transform: none;
  }
}

/* 2026 KM TMS visual master — shared enterprise shell and interactive access badge. */
.login-wrap.hero {
  min-height: 100dvh;
  height: auto;
  overflow: auto;
  background:
    radial-gradient(circle at 48% 28%, rgba(219, 234, 254, 0.26), transparent 34%),
    #fbfdff;
  color: #101828;
}

.login-brandbar {
  position: absolute;
  inset: 28px 38px auto;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-brandbar > a {
  color: #0f172a;
  font-size: 27px;
  font-weight: 780;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.login-brandbar > a span,
.brand span,
.mobile-brand span,
.mobile-nav-heading strong span {
  color: #0866ee;
}

.login-brandbar .locale-picker select {
  width: auto;
  min-width: 132px;
  border-color: #dce3ee;
  background: #fff;
  color: #344054;
  font-weight: 650;
}

.login-brandbar .locale-picker > span,
.userbar .locale-picker > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.login-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(400px, 0.92fr);
  align-items: center;
  gap: clamp(48px, 7vw, 118px);
  width: min(1220px, calc(100% - 96px));
  min-height: calc(100dvh - 108px);
  margin: 0 auto;
  padding: 82px 0 64px;
}

.login-lanyard-stage {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
  overflow: visible;
  user-select: none;
}

.login-lanyard-anchor {
  position: absolute;
  top: -145px;
  left: 50%;
  width: 210px;
  height: 330px;
  transform: translateX(-50%);
  pointer-events: none;
}

.login-lanyard-band {
  position: absolute;
  top: 0;
  width: 42px;
  height: 310px;
  border: 1px solid #0754d1;
  background: linear-gradient(90deg, #0a5ce5 0%, #1a76f8 49%, #0754d1 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 42px;
  text-align: center;
  text-orientation: mixed;
  writing-mode: vertical-rl;
  box-shadow: 0 8px 18px rgba(8, 102, 238, 0.18);
}

.login-lanyard-band--left {
  left: 47px;
  transform: rotate(-7deg);
  transform-origin: top center;
}

.login-lanyard-band--right {
  right: 47px;
  transform: rotate(7deg);
  transform-origin: top center;
}

.login-lanyard-ring {
  position: absolute;
  right: 76px;
  bottom: 0;
  width: 58px;
  height: 58px;
  border: 8px solid #c8d0da;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px #6b7280, 0 4px 9px rgba(15, 23, 42, 0.18);
}

.login-access-badge {
  --lanyard-x: 0px;
  --lanyard-y: 0px;
  --lanyard-rotate: -4deg;
  position: relative;
  z-index: 3;
  display: flex;
  width: 270px;
  min-height: 392px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin-top: 88px;
  border: 1px solid rgba(148, 163, 184, 0.48);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.93));
  color: #07469e;
  cursor: grab;
  outline: none;
  padding: 48px 36px 30px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.15), inset 0 1px 0 #fff;
  touch-action: none;
  transform: translate3d(var(--lanyard-x), var(--lanyard-y), 0) rotate(var(--lanyard-rotate));
  transform-origin: 50% -70px;
  will-change: transform;
}

.login-access-badge.is-dragging {
  cursor: grabbing;
  box-shadow: 0 32px 62px rgba(15, 23, 42, 0.22), inset 0 1px 0 #fff;
}

.login-access-badge:focus-visible {
  box-shadow: var(--focus-ring), 0 24px 48px rgba(15, 23, 42, 0.15);
}

.login-access-badge__slot {
  position: absolute;
  top: 22px;
  width: 58px;
  height: 16px;
  border-radius: 10px;
  background: #d8dee8;
  box-shadow: inset 0 2px 3px rgba(15, 23, 42, 0.17);
}

.login-access-badge strong {
  margin-bottom: 6px;
  color: #111827;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.login-access-badge strong span,
.login-access-badge small {
  color: #0764ed;
}

.login-access-badge small {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.login-access-badge svg {
  width: 112px;
  margin: 24px 0 14px;
}

.login-access-badge__rule {
  width: 100%;
  height: 1px;
  background: #d7dee9;
}

.login-access-badge__caption {
  margin-top: 15px;
  color: #111827;
  font-size: 15px;
}

.login-access-badge__id {
  margin-top: 13px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1261d6;
  padding: 6px 22px;
  font-weight: 650;
}

.login-lanyard-hint {
  position: absolute;
  bottom: 17px;
  left: 16px;
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.login-lanyard-hint span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-right: 9px;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: #0764ed;
  font-size: 19px;
}

.login-panel {
  position: static;
  width: 100%;
  min-height: 0;
  transform: none;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #101828;
  padding: 0;
  text-align: left;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: none;
}

.login-panel__body {
  padding: 38px 42px 32px;
}

.login-panel h1 {
  margin: 0;
  color: #101828;
  font-size: 29px;
  font-style: normal;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.login-panel p {
  margin: 7px 0 30px;
  color: #667085;
  font-size: 14px;
  font-weight: 450;
}

.login-form {
  gap: 10px;
}

.login-form > label {
  margin-top: 5px;
  color: #101828;
  font-size: 13px;
  font-weight: 650;
}

.login-field {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-field:focus-within {
  border-color: #2e74ef;
  box-shadow: 0 0 0 3px rgba(46, 116, 239, 0.13);
}

.login-field > span {
  display: grid;
  place-items: center;
  font-size: 16px;
}

.login-field input {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding: 8px 6px;
  box-shadow: none;
}

.login-password-toggle,
.login-forgot {
  width: auto;
  min-width: 44px;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: #456183;
  padding: 6px 12px;
  box-shadow: none;
}

.login-password-toggle:hover,
.login-forgot:hover {
  border: 0;
  background: transparent;
  color: #075fd8;
  box-shadow: none;
  transform: none;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 12px;
  color: #526581;
}

.login-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-options input {
  width: 20px;
  min-height: 20px;
}

.login-submit {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 7px;
  border: 1px solid rgba(0, 122, 255, .38);
  background: rgba(255, 255, 255, .94);
  color: #075fb9;
  box-shadow: inset 0 1px #fff, 0 9px 22px -17px rgba(0, 87, 184, .55);
  font-size: 15px;
  font-weight: 650;
}

.login-panel__footer {
  border-top: 1px solid #e5eaf1;
  color: #667085;
  padding: 20px 42px;
  text-align: center;
}

.login-panel__footer span {
  color: #0866ee;
}

.login-footer {
  position: absolute;
  inset: auto 38px 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e5eaf1;
  color: #526581;
  padding: 18px 0 22px;
}

.app-shell.operations-shell {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 100dvh;
  background: #fbfcfe;
}

.operations-shell .app-main {
  min-width: 0;
}

.operations-shell .shell-sidebar.shell-navigation {
  position: sticky;
  top: 0;
  z-index: 44;
  display: flex;
  height: 100dvh;
  min-width: 0;
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  border-right: 1px solid #e6ebf2;
  background: #fff;
  padding: 22px 13px 14px;
}

.operations-shell .shell-sidebar .brand {
  margin: 0 8px 30px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.operations-shell .shell-sidebar .nav {
  display: flex;
  overflow: visible;
  flex-direction: column;
  gap: 6px;
}

.operations-shell .shell-sidebar .nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  min-height: 38px;
  align-items: center;
  border-radius: 7px;
  color: #344054;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 560;
}

.operations-shell .shell-sidebar .nav a:hover {
  background: #f3f6fb;
}

.operations-shell .shell-sidebar .nav a.active {
  border-color: transparent;
  background: #eaf2ff;
  color: #075fd8;
}

.nav-icon {
  color: currentColor;
  font-size: 18px;
  text-align: center;
}

.operations-shell .sidebar-collapse {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  border-color: #e0e6ef;
  background: #fff;
  color: #526581;
  box-shadow: none;
}

.operations-shell .sidebar-userbar {
  display: none;
}

.app-shell.operations-shell.is-sidebar-collapsed {
  grid-template-columns: 70px minmax(0, 1fr);
}

.operations-shell.is-sidebar-collapsed .shell-sidebar .brand,
.operations-shell.is-sidebar-collapsed .shell-sidebar .nav a span:last-child,
.operations-shell.is-sidebar-collapsed .sidebar-collapse {
  font-size: 0;
}

.operations-shell.is-sidebar-collapsed .shell-sidebar .nav a {
  grid-template-columns: 1fr;
}

.operations-shell .topbar {
  position: sticky;
  top: 0;
  z-index: 43;
  display: flex;
  min-height: 64px;
  gap: 12px;
  justify-content: flex-end;
  border-bottom: 1px solid #e6ebf2;
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 18px;
  backdrop-filter: blur(12px);
}

.operations-shell .topbar-spacer {
  flex: 1 1 auto;
}

.operations-shell .mobile-brand {
  display: none;
}

.operations-shell .mobile-brand img {
  display: block;
  width: 106px;
  height: auto;
}

.operations-shell .topbar-date,
.operations-shell .topbar-search {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  border: 1px solid #dfe5ed;
  border-radius: 8px;
  background: #fff;
  color: #526581;
  padding: 6px 12px;
}

.operations-shell .topbar-search {
  width: min(280px, 25vw);
}

.operations-shell .topbar-search input {
  min-height: 26px;
  border: 0;
  outline: 0;
  padding: 0;
  box-shadow: none;
}

.operations-shell .topbar-search kbd {
  color: #98a2b3;
  font: inherit;
  font-size: 10px;
  white-space: nowrap;
}

.operations-shell .topbar-compact-action {
  min-height: 40px;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #526581;
  padding: 0 13px;
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.05);
}

.operations-shell .topbar-copy-containers {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 132px;
  justify-content: center;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.operations-shell .topbar-copy-containers:hover:not(:disabled),
.operations-shell .topbar-copy-containers:focus-visible {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px) scale(1.015);
}

.operations-shell .topbar-copy-containers[data-copy-state="success"] {
  border-color: rgba(16, 185, 129, 0.45);
  color: #087a55;
}

.operations-shell .topbar-copy-containers[data-copy-state="error"],
.operations-shell .topbar-copy-containers[data-copy-state="limit"] {
  border-color: rgba(239, 68, 68, 0.35);
  color: #b42318;
}

.operations-shell .userbar {
  display: grid;
  grid-template-columns: 38px auto auto auto;
  gap: 8px;
  color: #344054;
}

.operations-shell .shell-profile-menu {
  position: relative;
  flex: 0 0 auto;
}

.operations-shell .shell-profile-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  display: grid;
  width: min(220px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  gap: 10px;
  border: 1px solid #dfe5ed;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.16);
}

.operations-shell .shell-profile-popover[hidden] {
  display: none;
}

.operations-shell .shell-profile-popover .locale-picker {
  display: grid;
  gap: 5px;
}

.operations-shell .shell-profile-popover .locale-picker select,
.operations-shell .shell-profile-popover .user-menu-logout {
  width: 100%;
  min-height: 38px;
}

.operations-shell .user-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #edf1f7;
  color: #1d2939;
  font-weight: 700;
}

.operations-shell .user-identity {
  display: flex;
  min-width: 70px;
  flex-direction: column;
  line-height: 1.25;
}

.operations-shell .user-identity small {
  color: #667085;
  text-transform: capitalize;
}

.operations-shell .userbar .locale-picker select,
.operations-shell .user-menu-logout {
  width: auto;
  min-height: 38px;
}

.operations-shell .page {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 18px;
}

.page > h1,
.workflow-page-header h1,
.worker-dashboard-heading h1,
.customer-dashboard h1 {
  color: #101828;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.panel,
.card,
.dashboard-donut-card,
.customer-dashboard-card,
.worker-donut-card,
.worker-task-card,
.today-work-queue-card,
.workflow-action-card {
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
}

.dashboard-cards .card {
  min-height: 118px;
  border: 1px solid #e3e8ef;
  background: #fff;
  color: #101828;
}

.dashboard-cards .card::after {
  position: absolute;
  inset: auto 12px 13px;
  height: 25px;
  content: "";
  background: linear-gradient(170deg, transparent 48%, var(--card-accent, #0866ee) 50%, transparent 54%);
  opacity: 0.65;
  clip-path: polygon(0 74%, 8% 55%, 17% 68%, 27% 35%, 36% 61%, 47% 43%, 58% 64%, 68% 28%, 78% 58%, 89% 36%, 100% 49%, 100% 100%, 0 100%);
}

.dashboard-cards .card .value {
  margin-top: 4px;
  color: #101828;
}

.table-wrap,
table {
  border-color: #e5eaf1;
}

thead th {
  background: #fbfcfe;
  color: #526581;
  font-size: 11px;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: #f7faff;
}

@media (max-width: 900px) {
  .operations-shell .topbar-copy-containers {
    display: none;
  }
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .login-brandbar {
    inset: 22px 20px auto;
  }

  .login-brandbar > a {
    font-size: 22px;
  }

  .login-brandbar .locale-picker select {
    min-width: 98px;
  }

  .login-content {
    display: block;
    width: min(100% - 32px, 520px);
    min-height: 0;
    padding: 92px 0 86px;
  }

  .login-lanyard-stage {
    min-height: 510px;
  }

  .login-lanyard-anchor {
    top: -110px;
    transform: translateX(-50%) scale(0.82);
    transform-origin: top center;
  }

  .login-access-badge {
    width: 230px;
    min-height: 330px;
    margin-top: 86px;
    padding: 42px 30px 24px;
  }

  .login-lanyard-hint {
    display: none;
  }

  .login-panel__body {
    padding: 28px 24px 24px;
  }

  .login-panel__footer {
    padding: 17px 20px;
  }

  .login-footer {
    position: static;
    margin: 0 20px;
    justify-content: center;
    padding: 18px 0 26px;
  }

  .login-footer span:last-child {
    display: none;
  }

  .app-shell.operations-shell,
  .app-shell.operations-shell.is-sidebar-collapsed {
    display: block;
  }

  .operations-shell .shell-sidebar.shell-navigation {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(315px, 86vw);
    height: 100dvh;
    transform: translateX(-104%);
    transition: transform 190ms cubic-bezier(.22, 1, .36, 1);
  }

  .operations-shell .shell-sidebar.shell-navigation[data-open="true"] {
    transform: translateX(0);
  }

  .operations-shell .shell-sidebar .brand {
    display: none;
  }

  .operations-shell .sidebar-userbar {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    margin-top: auto;
    border-top: 1px solid #e6ebf2;
    padding-top: 14px;
  }

  .operations-shell .sidebar-userbar .locale-picker,
  .operations-shell .sidebar-userbar > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .operations-shell .sidebar-collapse {
    display: none;
  }

  .mobile-nav-heading {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }

  .mobile-nav-heading strong {
    font-size: 18px;
  }

  .operations-shell .mobile-brand {
    display: block;
  }

  .operations-shell .topbar {
    min-height: 58px;
    padding: 8px 12px;
  }

  .operations-shell .topbar-spacer,
  .operations-shell .topbar-date,
  .operations-shell .topbar-search,
  .operations-shell .userbar {
    display: none;
  }

  .operations-shell .topbar-notifications {
    margin-left: auto;
  }

  .mobile-nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-left: 0;
    border: 0;
    background: #0866ee;
    padding: 0;
  }

  .operations-shell .page {
    padding: 13px 12px calc(72px + env(safe-area-inset-bottom));
  }

  .dashboard-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .login-content {
    width: min(100% - 24px, 440px);
  }

  .login-lanyard-stage {
    min-height: 475px;
  }

  .login-access-badge {
    width: 210px;
    min-height: 305px;
    transform: translate3d(var(--lanyard-x), var(--lanyard-y), 0) rotate(var(--lanyard-rotate)) scale(0.94);
  }

  .login-panel h1 {
    font-size: 27px;
  }

  .login-panel p {
    margin-bottom: 24px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .login-forgot {
    padding-left: 0;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }
}

/* Static KM TMS access page — intentionally motion-free. */
.login-static-page {
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 50%, rgba(7, 93, 229, 0.035), transparent 26%),
    linear-gradient(118deg, #fbfbfc 0%, #f7f7f8 50%, #fff 100%);
  color: #0b1431;
}

.login-static-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(400px, 1.08fr);
  align-items: center;
  width: min(1480px, calc(100% - 8vw));
  min-height: 100svh;
  margin: 0 auto;
  gap: clamp(52px, 8vw, 148px);
}

.login-static-form-shell {
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
}

.login-static-brand {
  margin-bottom: clamp(72px, 10vh, 132px);
}

.login-static-brand h1 {
  margin: 0;
  color: #080e38;
  font-size: clamp(46px, 4vw, 68px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.login-static-brand h1 span,
.login-static-badge strong span {
  color: #075fe7;
}

.login-static-brand p {
  margin: 13px 0 0;
  color: #101a36;
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 560;
  letter-spacing: -0.015em;
}

.login-static-form {
  display: grid;
  gap: 20px;
}

.login-static-field {
  display: flex;
  align-items: center;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid #bcc3cd;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition: none;
}

.login-static-field:focus-within {
  border-color: #0b67f0;
  box-shadow: 0 0 0 3px rgba(11, 103, 240, 0.13), 0 8px 25px rgba(11, 103, 240, 0.08);
}

.login-static-field input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 24px;
  color: #0c1634;
  font: inherit;
  font-size: 15px;
  font-weight: 520;
}

.login-static-field input::placeholder {
  color: #8c929d;
  opacity: 1;
}

.login-static-password-row input {
  padding-right: 12px;
}

.login-static-password-toggle {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  min-height: 52px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #9197a1;
  cursor: pointer;
}

.login-static-password-toggle:focus-visible {
  outline: 2px solid #075fe7;
  outline-offset: -5px;
  border-radius: 12px;
}

.login-static-password-toggle svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.login-static-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 6px;
  gap: 26px;
  border: 1.5px solid #075fe7;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.4);
  color: #075fe7;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  transition: none;
}

.login-static-submit:hover,
.login-static-submit:focus-visible {
  background: #fff;
  color: #075fe7;
  box-shadow: 0 0 0 3px rgba(7, 95, 231, .08), 0 10px 24px -16px rgba(7, 95, 231, .5);
  outline: 0;
}

.login-static-submit:disabled {
  cursor: wait;
  opacity: 0.55;
}

.login-static-submit svg {
  width: 44px;
  fill: currentColor;
}

.login-static-form .login-error {
  min-height: 17px;
  margin: -7px 2px 0;
  color: #b42318;
  font-size: 12px;
}

.login-static-lanyard {
  position: relative;
  align-self: stretch;
  min-height: 640px;
}

.login-static-lanyard__bands {
  position: absolute;
  top: -7vh;
  left: 50%;
  width: 320px;
  height: 400px;
  transform: translateX(-50%);
}

.login-static-lanyard__band {
  position: absolute;
  top: -70px;
  width: 50px;
  height: 365px;
  border: 4px solid #0757de;
  background: linear-gradient(90deg, #0636c4 0%, #065eee 52%, #043fc7 100%);
  box-shadow: 0 13px 22px rgba(11, 26, 71, 0.2);
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-align: center;
  writing-mode: vertical-rl;
  line-height: 42px;
}

.login-static-lanyard__band--left {
  left: 61px;
  transform: rotate(-11deg);
}

.login-static-lanyard__band--right {
  right: 61px;
  transform: rotate(11deg);
}

.login-static-lanyard__ring {
  position: absolute;
  top: 267px;
  left: 139px;
  width: 44px;
  height: 44px;
  border: 6px solid #b7b9bc;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 1px 1px 0 #fff, 0 3px 5px rgba(0, 0, 0, 0.18);
}

.login-static-lanyard__clip {
  position: absolute;
  top: 301px;
  left: 145px;
  z-index: 2;
  width: 32px;
  height: 80px;
  border: 5px solid #a6a8ab;
  border-radius: 8px 8px 16px 16px;
  background: linear-gradient(90deg, #d8d9da, #fff 45%, #acafb2);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.2);
}

.login-static-badge {
  position: absolute;
  top: calc(50% - 62px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 268px;
  min-height: 372px;
  border: 1px solid rgba(214, 217, 223, 0.9);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 248, 0.97));
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.18), 0 3px 8px rgba(17, 24, 39, 0.08);
  padding: 58px 30px 30px;
  color: #0754d9;
  transform: translate(-50%, -50%) rotate(-2.5deg);
}

.login-static-badge__slot {
  position: absolute;
  top: 20px;
  width: 72px;
  height: 18px;
  border-radius: 10px;
  background: #eceeef;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.16);
}

.login-static-badge strong {
  color: #09132f;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.login-static-badge small {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
}

.login-static-badge > svg {
  width: 112px;
  margin: 23px 0 17px;
}

.login-static-badge__rule {
  width: 100%;
  height: 1px;
  background: #d5d9df;
}

.login-static-badge__caption {
  margin-top: 17px;
  color: #101a36;
  font-size: 15px;
  font-weight: 670;
}

.login-static-badge__id {
  width: 92%;
  margin-top: 13px;
  border-radius: 999px;
  background: #e8eeff;
  padding: 7px 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 750;
}

@media (max-width: 760px) {
  .login-static-page {
    overflow: auto;
  }

  .login-static-layout {
    grid-template-columns: minmax(0, 1fr);
    width: min(100% - 36px, 430px);
    min-height: 100svh;
    gap: 30px;
    padding: 44px 0 34px;
  }

  .login-static-form-shell {
    max-width: 390px;
  }

  .login-static-brand {
    margin-bottom: 62px;
  }

  .login-static-brand h1 {
    font-size: 46px;
  }

  .login-static-lanyard {
    min-height: 420px;
  }

  .login-static-lanyard__bands {
    top: -78px;
    transform: translateX(-50%) scale(0.72);
    transform-origin: top center;
  }

  .login-static-badge {
    top: 224px;
    transform: translate(-50%, -50%) rotate(-2deg) scale(0.78);
  }
}

/* Final desktop shell: permanently collapsed icon rail with overlay labels. */
@media (min-width: 901px) {
  body .app-shell.operations-shell,
  body .app-shell.operations-shell.is-sidebar-collapsed {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    width: 100%;
    min-height: 100svh;
    padding: 0;
    background: #f8fafc;
  }

  body .shell-sidebar.shell-navigation {
    position: sticky;
    inset: 0 auto auto 0;
    z-index: 80;
    display: flex;
    width: 68px;
    height: 100svh;
    min-height: 100svh;
    padding: 20px 10px 14px;
    overflow: visible;
    border-right: 1px solid #e7ecf3;
    background: rgba(255, 255, 255, 0.97);
    transform: none;
  }

  body .shell-sidebar .brand {
    width: 48px;
    margin: 0 0 25px;
    color: transparent;
    font-size: 0;
    text-align: center;
  }

  body .shell-sidebar .brand span {
    color: #0866ee;
    font-size: 15px;
    font-weight: 820;
    letter-spacing: -0.04em;
  }

  body .shell-sidebar .nav {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 48px;
    gap: 6px;
  }

  body .shell-sidebar .nav > a {
    position: relative;
    display: grid;
    width: 42px;
    min-height: 42px;
    grid-template-columns: 1fr;
    place-items: center;
    border-radius: 10px;
    padding: 0;
    color: #526178;
  }

  body .shell-sidebar .nav > a.active {
    background: #eaf2ff;
    color: #0866ee;
  }

  body .shell-sidebar .nav > a:hover,
  body .shell-sidebar .nav > a:focus-visible {
    background: #f0f5fc;
    color: #075fd8;
    outline: 0;
  }

  body .shell-sidebar .nav-icon,
  body .shell-sidebar .nav-icon svg {
    width: 19px;
    height: 19px;
  }

  body .shell-sidebar .nav-label {
    position: absolute;
    left: 50px;
    top: 50%;
    z-index: 120;
    width: max-content;
    max-width: 190px;
    visibility: hidden;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 31, 57, 0.16);
    padding: 8px 11px;
    color: #17233b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
  }

  body .shell-sidebar .nav > a:hover .nav-label,
  body .shell-sidebar .nav > a:focus-visible .nav-label {
    visibility: visible;
    opacity: 1;
  }

  body .shell-sidebar .sidebar-userbar,
  body .shell-sidebar .sidebar-collapse {
    display: none;
  }

  body .operations-shell .app-main {
    grid-column: 2;
    width: 100%;
    min-width: 0;
  }

  body .operations-shell .page {
    width: 100%;
    max-width: none;
    padding: 18px clamp(16px, 1.2vw, 26px) 28px;
  }
}

.container-operations-toolbar {
  position: relative;
}

.dashboard-filter-disclosure {
  position: relative;
}

.dashboard-filter-disclosure > summary {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: #344054;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.dashboard-filter-disclosure > summary::-webkit-details-marker {
  display: none;
}

.dashboard-filter-disclosure > summary::before {
  content: '';
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, transparent 42%, #65758b 43% 57%, transparent 58%);
  transform: rotate(45deg) translateY(-2px);
}

.dashboard-filter-disclosure[open] > summary::before {
  transform: rotate(225deg) translate(-2px, 0);
}

.dashboard-filter-disclosure__panel {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 45;
  min-width: 210px;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 31, 57, 0.14);
  padding: 12px;
}

.dashboard-filter-disclosure__panel label {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: 10px;
}

.dashboard-filter-disclosure__panel select {
  width: 100%;
  min-height: 36px;
}

.operations-shell .adaptive-container-table table {
  font-size: 11px;
}

.operations-shell .adaptive-container-table th,
.operations-shell .adaptive-container-table td {
  height: 36px;
  min-height: 36px;
  padding: 6px 9px;
  border-bottom: 1px solid #edf1f5;
}

.operations-shell .adaptive-container-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8fafc;
  color: #5b6b80;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.01em;
}

/* Approved single action surface: floating Work Queue, never layout width. */
.operations-dashboard-layout {
  display: block;
}

.floating-work-queue-host {
  position: fixed;
  top: 86px;
  right: 14px;
  z-index: 58;
  width: 188px;
  max-height: calc(100dvh - 112px);
  overflow: hidden;
  pointer-events: none;
}

.floating-work-queue-host .today-work-queue {
  width: 100%;
  max-height: inherit;
  overflow-y: auto;
  padding: 2px 3px 8px;
  pointer-events: auto;
  scrollbar-width: thin;
}

.floating-work-queue-host .today-work-queue__list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.floating-work-queue-host .today-work-queue__item {
  margin: 0;
  border: 0;
}

.floating-work-queue-host .today-work-queue-card {
  display: grid;
  width: 100%;
  min-height: 54px;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 4px;
  border: 1px solid #dce3ed;
  border-left: 3px solid #f79009;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.97);
  color: #172033;
  padding: 9px 10px;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.10);
  text-align: left;
}

.floating-work-queue-host .today-work-queue-card--action-required {
  border-left-color: #f04438;
}

.floating-work-queue-host .today-work-queue-card--progressing {
  border-left-color: #f5b82e;
}

.floating-work-queue-host .today-work-queue-card--completed {
  border-left-color: #12a95a;
}

.floating-work-queue-host .today-work-queue-card strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-work-queue-host .today-work-queue-card time {
  color: #667085;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.floating-work-queue-host .today-work-queue__retry {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  background: #fff;
  color: #475467;
}

@media (max-width: 900px) {
  .floating-work-queue-host {
    top: auto;
    right: 10px;
    bottom: calc(70px + env(safe-area-inset-bottom));
    width: min(188px, calc(100vw - 20px));
    max-height: 38dvh;
  }
}

/* 2026-07-14 pixel master — measured from Alan's approved desktop and mobile
   reference captures. This is the final visual authority for the login,
   operations dashboard, and persistent task workspace. */
:root {
  --km-blue: #0866ee;
  --km-ink: #0f1f3a;
  --km-muted: #60718d;
  --km-line: #e0e7f0;
  --km-panel: #ffffff;
  --km-canvas: #fbfcfe;
  --km-shadow: 0 3px 12px rgba(15, 35, 68, .045);
}

.nav-icon svg,
.topbar-control-icon svg,
.topbar-control-chevron svg,
.userbar-chevron svg,
.login-field__icon svg,
.login-password-toggle svg,
.login-panel__footer svg,
.dashboard-quickview__star svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body .login-wrap.hero,
body .app-shell.operations-shell {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Login master */
body .login-wrap.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 31% 38%, rgba(213, 227, 248, .24), transparent 31%),
    radial-gradient(circle at 67% 43%, rgba(231, 239, 251, .21), transparent 29%),
    #fcfdff;
}

body .login-brandbar {
  position: absolute;
  inset: 37px 44px auto;
  z-index: 20;
}

body .login-brandbar > a {
  color: #111d34;
  font-size: 29px;
  font-weight: 760;
  letter-spacing: -.035em;
}

body .login-brandbar > a span {
  color: var(--km-blue);
}

.locale-picker {
  position: relative;
}

.locale-picker__display {
  display: none;
}

body .login-brandbar .locale-picker {
  display: grid;
  min-width: 133px;
  min-height: 50px;
  place-items: center;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: rgba(255,255,255,.86);
  color: #233656;
}

body .login-brandbar .locale-picker__display {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 630;
  pointer-events: none;
}

body .login-brandbar .locale-picker__display::before {
  width: 19px;
  height: 19px;
  content: '';
  border: 1.8px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 46%, currentColor 47%, currentColor 53%, transparent 54%),
    linear-gradient(transparent 46%, currentColor 47%, currentColor 53%, transparent 54%);
  opacity: .9;
}

body .login-brandbar .locale-picker__display b {
  color: #9aa7ba;
  font-weight: 500;
}

body .login-brandbar .locale-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

body .login-content {
  position: relative;
  display: block;
  width: 100%;
  min-height: calc(100dvh - 78px);
  margin: 0;
  padding: 0;
}

body .login-lanyard-stage {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 59.7%;
  height: calc(100dvh - 78px);
  min-height: 0;
  overflow: visible;
}

body .login-lanyard-anchor {
  top: -116px;
  left: 49.5%;
  width: 224px;
  height: 362px;
}

body .login-lanyard-band {
  width: 36px;
  height: 324px;
  border-color: #0653cf;
  background: linear-gradient(90deg, #0558d8 0%, #1674ef 47%, #0453ce 100%);
  font-size: 13px;
  line-height: 36px;
  box-shadow: 0 5px 14px rgba(8, 84, 190, .16);
}

body .login-lanyard-band--left {
  left: 57px;
  transform: rotate(-8deg);
}

body .login-lanyard-band--right {
  right: 57px;
  transform: rotate(8deg);
}

body .login-lanyard-ring {
  right: 82px;
  bottom: -5px;
  width: 61px;
  height: 61px;
  border: 8px solid #d5dbe3;
  background: #f8fafc;
  box-shadow: inset 0 0 0 2px #7d8795, 0 3px 7px rgba(15,23,42,.16);
}

body .login-lanyard-ring::after {
  position: absolute;
  top: 36px;
  left: 17px;
  width: 28px;
  height: 78px;
  content: '';
  border: 6px solid #d7dde5;
  border-radius: 14px 14px 19px 19px;
  background: linear-gradient(90deg,#e7eaef,#fff 43%,#cdd4dd);
  box-shadow: inset 0 0 0 1px #8893a1, 0 5px 8px rgba(15,23,42,.17);
}

body .login-access-badge {
  position: absolute;
  top: 244px;
  left: calc(49.5% - 160px);
  width: 320px;
  min-height: 438px;
  margin: 0;
  border: 1px solid rgba(166,178,194,.56);
  border-radius: 16px;
  padding: 52px 39px 28px;
  background: linear-gradient(145deg,rgba(255,255,255,.99),rgba(250,252,255,.96));
  box-shadow: 0 15px 28px rgba(15,31,57,.17), inset 0 1px 0 #fff;
}

body .login-access-badge__slot {
  top: 22px;
  width: 60px;
  height: 17px;
}

body .login-access-badge strong {
  font-size: 34px;
}

body .login-access-badge small {
  font-size: 14px;
}

body .login-access-badge svg {
  width: 126px;
  margin: 25px 0 15px;
}

body .login-access-badge__caption {
  font-size: 16px;
}

body .login-access-badge__id {
  margin-top: 13px;
  padding: 7px 27px;
  font-size: 15px;
}

body .login-panel {
  position: absolute;
  top: 182px;
  left: 53.47%;
  width: 490px;
  min-height: 576px;
  border-color: #dbe3ed;
  border-radius: 10px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 8px 21px rgba(20,42,76,.085);
}

body .login-panel__body {
  padding: 52px 52px 31px;
}

body .login-panel h1 {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -.035em;
}

body .login-panel p {
  margin: 7px 0 36px;
  font-size: 16px;
}

body .login-form {
  gap: 11px;
}

body .login-form > label {
  margin-top: 4px;
  font-size: 14px;
}

body .login-field,
body .login-field.password-row {
  min-height: 56px;
  grid-template-columns: 52px minmax(0,1fr) 48px;
  border-radius: 8px;
}

body .login-field:not(.password-row) {
  grid-template-columns: 52px minmax(0,1fr);
}

body .login-field input {
  min-height: 54px;
  padding: 8px 4px;
  font-size: 15px;
}

.login-field__icon {
  display: grid;
  width: 19px;
  height: 19px;
  place-self: center;
  color: #526985;
}

body .login-password-toggle {
  display: grid;
  width: 48px;
  min-width: 48px;
  min-height: 54px;
  place-items: center;
  padding: 0;
}

body .login-password-toggle svg {
  width: 21px;
  height: 21px;
}

body .login-options {
  margin: 5px 0 17px;
  font-size: 14px;
}

body .login-options input {
  width: 20px;
  min-height: 20px;
}

body .login-submit {
  min-height: 53px;
  border: 1px solid rgba(0, 122, 255, .38);
  border-radius: 7px;
  background: rgba(255, 255, 255, .94);
  color: #075fb9;
  box-shadow: inset 0 1px #fff, 0 9px 22px -17px rgba(0, 87, 184, .55);
  font-size: 16px;
}

body .login-panel__footer {
  display: flex;
  min-height: 73px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 42px;
  font-size: 13px;
}

body .login-panel__footer > span {
  width: 24px;
  height: 24px;
}

body .login-footer {
  inset: auto 0 0;
  min-height: 79px;
  padding: 20px 44px;
  background: rgba(255,255,255,.35);
  font-size: 13px;
}

/* Desktop operations master */
@media (min-width: 1181px) {
  body .app-shell.operations-shell,
  body .app-shell.operations-shell.is-sidebar-collapsed {
    grid-template-columns: 168px minmax(0,1fr);
  }

  body .shell-sidebar.shell-navigation {
    width: auto;
    padding: 24px 14px 14px;
    border-right-color: #e3e9f1;
  }

  body .shell-sidebar .brand {
    margin: 0 8px 29px;
    color: #111d34;
    font-size: 20px;
    font-weight: 760;
    letter-spacing: -.04em;
  }

  body .shell-sidebar .nav {
    gap: 4px;
  }

  body .shell-sidebar .nav > a,
  body .shell-sidebar .sidebar-notifications .notification-bell {
    min-height: 48px;
    grid-template-columns: 28px minmax(0,1fr);
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 7px;
    padding: 0 10px;
    color: #354761;
    background: transparent;
    box-shadow: none;
    font-size: 12px;
    font-weight: 530;
  }

  body .shell-sidebar .nav > a.active {
    background: #eaf2ff;
    color: #0866ee;
  }

  body .shell-sidebar .nav > a:hover,
  body .shell-sidebar .sidebar-notifications .notification-bell:hover {
    background: #f2f6fb;
    color: #075fd8;
    transform: none;
  }

  body .shell-sidebar .nav-icon {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
  }

  body .shell-sidebar .nav-icon svg {
    width: 19px;
    height: 19px;
  }

  body .shell-sidebar .sidebar-notifications {
    order: initial;
    margin: 0;
  }

  body .shell-sidebar .sidebar-notifications .notification-bell::after {
    font-size: 12px;
  }

  body .shell-sidebar .sidebar-notifications .notification-bell > svg {
    width: 20px;
    height: 20px;
  }

  body .shell-sidebar .sidebar-userbar {
    display: none;
  }

  body .shell-sidebar .sidebar-collapse {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: auto;
    border: 1px solid #dfe6ef;
    border-radius: 7px;
    background: #fff;
    color: #66758c;
    padding: 7px 12px;
    box-shadow: none;
    font-size: 11px;
  }

  body .operations-shell .app-main {
    position: relative;
  }

  body .app-main > .topbar {
    position: relative;
    z-index: 70;
    min-height: 64px;
    flex-wrap: nowrap;
    gap: 12px;
    border-bottom: 0;
    background: #fbfcfe;
    padding: 13px 18px;
  }

  body .app-main > .topbar:has(.topbar-task-shelf.has-open-tasks) {
    min-height: 156px;
    align-items: flex-start;
    padding-top: 12px;
  }

  body .topbar-task-shelf.has-open-tasks {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 550px;
    max-width: calc(100% - 560px);
    transform: translateX(-50%);
  }

  body .topbar-spacer {
    flex: 1 1 auto;
  }

  body .topbar-date {
    display: grid;
    width: 143px;
    min-height: 42px;
    grid-template-columns: 20px 1fr 16px;
    align-items: center;
    gap: 7px;
    border: 1px solid #dce4ee;
    border-radius: 8px;
    background: #fff;
    color: #3d506b;
    padding: 0 10px;
    font-size: 10px;
  }

  body .topbar-control-icon {
    display: block;
    width: 17px;
    height: 17px;
  }

  body .topbar-control-chevron,
  body .userbar-chevron {
    display: block;
    width: 15px;
    height: 15px;
  }

  body .topbar-search {
    display: grid;
    width: 257px;
    min-height: 42px;
    grid-template-columns: 20px minmax(0,1fr) auto;
    align-items: center;
    gap: 7px;
    border: 1px solid #dce4ee;
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
  }

  body .topbar-search input {
    min-height: 38px;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    font-size: 10px;
  }

  body .topbar-search kbd {
    color: #7888a0;
    font-family: inherit;
    font-size: 8px;
  }

  body .operations-shell .topbar .userbar {
    display: grid;
    min-width: 160px;
    grid-template-columns: 38px minmax(72px,1fr) 15px;
    gap: 9px;
  }

  body .topbar .user-avatar {
    width: 38px;
    height: 38px;
    background: #e9eef5;
    color: #13223a;
    font-size: 13px;
  }

  body .topbar .user-identity strong {
    font-size: 11px;
  }

  body .topbar .user-identity small {
    color: #687891;
    font-size: 9px;
    text-transform: capitalize;
  }

  body .topbar .userbar .locale-picker {
    display: none;
  }

  body .app-main > .page {
    padding: 17px 14px 52px 20px;
  }

  body .operations-dashboard-heading {
    position: absolute;
    top: 24px;
    left: 20px;
    z-index: 71;
    margin: 0;
    pointer-events: none;
  }

  body .app-main > .topbar:has(.topbar-task-shelf.has-open-tasks) + .page .operations-dashboard-heading {
    top: 116px;
  }

  body .operations-dashboard-heading h1 {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -.02em;
  }

  body .operations-dashboard-heading p {
    margin-top: 4px;
    font-size: 10px;
  }

  body .operations-dashboard-layout {
    grid-template-columns: minmax(0,1fr) 236px;
    gap: 14px;
  }

  body .dashboard-metrics {
    gap: 12px;
    margin-bottom: 16px;
  }

  body .dashboard-metric-card {
    min-height: 129px;
    border-radius: 9px;
    padding: 14px 14px 31px;
  }

  body .dashboard-metric-card__top strong {
    font-size: 24px;
  }

  body .dashboard-action-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
    margin-bottom: 15px;
  }

  body .dashboard-action-grid > div,
  body .dashboard-action-grid .today-work-queue,
  body .dashboard-notification-summary {
    min-height: 282px;
  }

  body .dashboard-action-grid .today-work-queue__header,
  body .dashboard-notification-summary > header {
    min-height: 43px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  body .dashboard-action-grid .today-work-queue__header h2,
  body .dashboard-notification-summary h2 {
    font-size: 14px;
  }

  body .container-operations-panel {
    min-height: 417px;
    border-radius: 9px;
  }

  body .container-operations-panel__header {
    min-height: 55px;
  }

  body .dashboard-operations-table-wrap th,
  body .dashboard-operations-table-wrap td {
    height: 36px;
    font-size: 9px;
  }

  body .dashboard-quickview {
    top: 81px;
    min-height: calc(100dvh - 133px);
    border-radius: 9px;
    padding: 17px 16px;
  }

  body .dashboard-quickview h2 {
    font-size: 19px;
  }

  body .dashboard-quickview__header-actions {
    display: grid;
    grid-template-columns: 25px;
    gap: 6px;
  }

  body .dashboard-quickview__header-actions button {
    display: grid;
    width: 25px;
    min-width: 25px;
    height: 25px;
    min-height: 25px;
    place-items: center;
    border: 0;
    background: transparent;
    color: #536783;
    padding: 3px;
    box-shadow: none;
    font-size: 22px;
  }

  body .dashboard-quickview__star {
    color: #0866ee !important;
  }

  body .dashboard-quickview__star svg {
    width: 17px;
    height: 17px;
  }

  body .dashboard-quickview__star.is-favorite svg {
    fill: currentColor;
  }

  body .dashboard-secondary-data {
    display: none;
  }
}

/* Persistent task dock and action window */
body .task-workspace-dock {
  max-width: 550px;
  border-color: #d5deea;
  border-radius: 9px;
  padding: 8px 10px 10px;
  box-shadow: 0 9px 25px rgba(15,31,57,.15);
}

body .task-workspace-dock__label {
  margin: 0 0 6px 2px;
  font-size: 10px;
}

body .task-workspace-dock__items {
  grid-auto-columns: minmax(166px,1fr);
  gap: 9px;
}

body .task-workspace-tab {
  min-height: 53px;
  grid-template-columns: 7px minmax(0,1fr) 18px;
  border-radius: 7px;
  padding: 7px 9px;
}

body .task-workspace-tab strong {
  font-size: 10px;
}

body .task-workspace-tab small {
  font-size: 9px;
}

body .task-workspace-panel {
  top: 50%;
  width: min(562px,calc(100vw - 32px));
  max-height: min(566px,calc(100dvh - 126px));
  border-radius: 11px;
  box-shadow: 0 26px 68px rgba(15,23,42,.26);
}

body .task-workspace-panel__chrome {
  position: absolute;
  top: 10px;
  right: 11px;
  z-index: 3;
  min-height: 44px;
  border: 0;
  padding: 0;
}

body .task-workspace-panel__context {
  display: none;
}

body .task-workspace-panel__chrome button {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 7px;
  font-size: 19px;
}

body .task-workspace-panel__content {
  max-height: min(566px,calc(100dvh - 126px));
  padding: 17px 13px 13px;
}

body .task-workspace-panel__content .workflow-page-header {
  min-height: 66px;
  padding: 0 98px 10px 8px;
  border-bottom: 0;
}

body .task-workspace-panel__content .workflow-page-header .eyebrow {
  margin: 0 0 3px;
  color: #536783;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body .task-workspace-panel__content .workflow-page-header h1 {
  font-size: 20px;
  letter-spacing: -.02em;
}

body .task-workspace-panel__content .workflow-page-header > button {
  display: none;
}

body .task-workspace-panel__content .panel {
  border-color: #e0e7f0;
  border-radius: 9px;
  padding: 13px;
}

body .task-workspace-panel__content .workflow-form-grid {
  gap: 10px;
}

body .task-workspace-panel__content input,
body .task-workspace-panel__content select,
body .task-workspace-panel__content textarea {
  min-height: 40px;
  border-radius: 7px;
  font-size: 11px;
}

body .task-workspace-panel__content .actions {
  justify-content: flex-end;
}

body .task-workspace-panel__content .actions button {
  min-height: 38px;
  font-size: 10px;
}

/* Mobile access master and safe operations layout. */
@media (max-width: 900px) {
  html,
  body,
  #app,
  body .login-wrap.hero,
  body .app-shell.operations-shell {
    max-width: 100%;
    overflow-x: hidden;
  }

  body .login-wrap.hero {
    min-height: 910px;
    overflow-y: auto;
  }

  body .login-brandbar {
    inset: 29px 21px auto;
  }

  body .login-brandbar > a {
    font-size: 20px;
  }

  body .login-brandbar .locale-picker {
    min-width: 90px;
    min-height: 30px;
    border: 0;
    background: transparent;
  }

  body .login-brandbar .locale-picker__display {
    gap: 7px;
    font-size: 13px;
  }

  body .login-brandbar .locale-picker__display::before {
    display: none;
  }

  body .login-content {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0 0 72px;
  }

  body .login-lanyard-stage {
    position: relative;
    width: 100%;
    height: 396px;
    min-height: 396px;
  }

  body .login-lanyard-anchor {
    top: -118px;
    left: 50%;
    width: 135px;
    height: 285px;
  }

  body .login-lanyard-band {
    width: 25px;
    height: 263px;
    font-size: 9px;
    line-height: 25px;
  }

  body .login-lanyard-band--left { left: 32px; }
  body .login-lanyard-band--right { right: 32px; }

  body .login-lanyard-ring {
    right: 48px;
    bottom: -4px;
    width: 39px;
    height: 39px;
    border-width: 5px;
  }

  body .login-lanyard-ring::after {
    top: 23px;
    left: 10px;
    width: 19px;
    height: 50px;
    border-width: 4px;
  }

  body .login-access-badge {
    top: 162px;
    left: calc(50% - 66px);
    width: 132px;
    min-height: 206px;
    border-radius: 9px;
    padding: 28px 14px 12px;
    box-shadow: 0 9px 18px rgba(15,31,57,.17), inset 0 1px 0 #fff;
  }

  body .login-access-badge__slot {
    top: 10px;
    width: 31px;
    height: 8px;
  }

  body .login-access-badge strong {
    margin-bottom: 2px;
    font-size: 18px;
  }

  body .login-access-badge small {
    font-size: 7px;
  }

  body .login-access-badge svg {
    width: 65px;
    margin: 13px 0 7px;
  }

  body .login-access-badge__caption {
    margin-top: 8px;
    font-size: 9px;
  }

  body .login-access-badge__id {
    margin-top: 7px;
    padding: 3px 13px;
    font-size: 8px;
  }

  body .login-panel {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 88px);
    max-width: 344px;
    min-height: 343px;
    margin: 82px auto 0;
    border-radius: 8px;
  }

  body .login-panel__body {
    padding: 24px 16px 16px;
  }

  body .login-panel h1 {
    position: absolute;
    top: -72px;
    left: -20px;
    width: calc(100% + 40px);
    font-size: 25px;
    text-align: center;
  }

  body .login-panel p {
    position: absolute;
    top: -39px;
    left: -20px;
    width: calc(100% + 40px);
    margin: 0;
    font-size: 13px;
    text-align: center;
  }

  body .login-form {
    gap: 8px;
  }

  body .login-form > label {
    margin-top: 2px;
    font-size: 12px;
  }

  body .login-field,
  body .login-field.password-row {
    min-height: 41px;
    grid-template-columns: 40px minmax(0,1fr) 40px;
  }

  body .login-field:not(.password-row) {
    grid-template-columns: 40px minmax(0,1fr);
  }

  body .login-field input {
    min-height: 39px;
    font-size: 13px;
  }

  body .login-field__icon {
    width: 17px;
    height: 17px;
  }

  body .login-password-toggle {
    width: 40px;
    min-width: 40px;
    min-height: 39px;
  }

  body .login-options {
    align-items: center;
    flex-direction: row;
    margin: 3px 0 9px;
    font-size: 11px;
  }

  body .login-options input {
    width: 16px;
    min-height: 16px;
  }

  body .login-forgot {
    min-height: 32px;
    padding: 3px;
    font-size: 11px;
  }

  body .login-submit {
    min-height: 42px;
    font-size: 13px;
  }

  body .login-panel__footer {
    min-height: 49px;
    gap: 8px;
    padding: 11px 14px;
    font-size: 10px;
  }

  body .login-panel__footer > span {
    width: 19px;
    height: 19px;
  }

  body .login-footer {
    position: static;
    min-height: 64px;
    justify-content: center;
    border: 0;
    padding: 40px 20px 18px;
    font-size: 11px;
  }

  body .login-footer span:last-child {
    display: none;
  }

  body .topbar-task-shelf.has-open-tasks {
    position: static;
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  body .task-workspace-dock {
    max-width: 100%;
  }

  body .task-workspace-panel {
    bottom: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 150px);
  }

  body .dashboard-operations-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body .dashboard-quickview {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-access-badge {
    transform: none;
  }
}

.dashboard-month {
  margin: 8px 0 18px;
}

.dashboard-month > h1 {
  margin-bottom: 4px;
}

.month-range {
  margin: 0 0 12px;
  color: #3A3A3C;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.dashboard-donuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
}

.dashboard-donut-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow:
    0 12px 28px rgba(60, 60, 67, 0.08),
    0 0 0 1px rgba(60, 60, 67, 0.06);
  overflow: hidden;
}

.dashboard-donut-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.dashboard-donut-layout {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: center;
}

.dashboard-donut {
  width: 170px;
  height: 170px;
  overflow: visible;
}

.dashboard-donut-segment {
  transform-origin: 80px 80px;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  cursor: pointer;
  animation: donutSegmentReveal 950ms ease-out forwards;
  transition: transform 0.22s ease-out, stroke-width 0.22s ease-out, filter 0.22s ease-out, opacity 0.22s ease-out;
}

.dashboard-donut-segment:hover {
  filter: brightness(1.08) drop-shadow(0 0 7px var(--segment-glow));
  transform: scale(1.03);
  stroke-width: 24;
}

@keyframes donutSegmentReveal {
  to {
    stroke-dashoffset: 0;
  }
}

.chart-tooltip {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity 0.16s ease-out, transform 0.16s ease-out;
}

.chart-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 16px));
}

.donut-total {
  fill: #143b73;
  font-size: 24px;
  font-weight: 800;
}

.donut-caption {
  fill: var(--muted);
  font-size: 11px;
}

.dashboard-donut-legend {
  display: grid;
  gap: 8px;
}

.dashboard-donut-legend a {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
  color: #1D1D1F;
  text-decoration: none;
  font-weight: 650;
}

.dashboard-donut-legend span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(60, 60, 67, 0.04);
}

.dashboard-donut-legend em {
  color: #3A3A3C;
  font-style: normal;
  font-weight: 700;
}

.customer-dashboard {
  --customer-blue: #0a66d8;
  --customer-blue-soft: #eaf3ff;
  --customer-red: #c9342d;
  --customer-amber: #996000;
  --customer-green: #18783c;
  display: grid;
  min-width: 0;
  gap: 18px;
}

.customer-dashboard-heading,
.customer-dashboard-group-heading,
.customer-dashboard-card-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.customer-dashboard-heading h1,
.customer-dashboard-group-heading h2,
.customer-dashboard-card-heading h3,
.customer-dashboard-card-heading p {
  margin: 0;
  overflow-wrap: anywhere;
}

.customer-dashboard-heading p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
}

.customer-dashboard button,
.customer-dashboard a.customer-dashboard-detail-action {
  min-height: 44px;
  min-width: 44px;
}

.customer-dashboard-heading > button,
.customer-dashboard-pagination button,
.customer-dashboard-error button {
  flex: 0 0 auto;
}

.customer-dashboard-consistency,
.customer-dashboard-warning,
.customer-dashboard-empty,
.customer-dashboard-group-empty {
  margin: 0;
  border-radius: var(--radius-control);
  padding: 12px 14px;
  background: #f2f7fd;
  color: #31516f;
}

.customer-dashboard-warning {
  border: 1px solid #f0c874;
  background: #fff8e8;
  color: #684300;
}

.customer-dashboard-groups {
  display: grid;
  min-width: 0;
  gap: 22px;
}

.customer-dashboard-group {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.customer-dashboard-group-heading {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.customer-dashboard-group-heading span {
  color: var(--muted);
  white-space: nowrap;
}

.customer-dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 14px;
}

.customer-dashboard-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 5px solid var(--customer-blue);
  border-radius: var(--radius-panel);
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-panel);
  gap: 14px;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.customer-dashboard-priority-attention { border-left-color: var(--customer-red); }
.customer-dashboard-priority-in_progress { border-left-color: var(--customer-blue); }
.customer-dashboard-priority-upcoming { border-left-color: var(--customer-amber); }
.customer-dashboard-priority-completed_recent { border-left-color: var(--customer-green); }

.customer-dashboard-status {
  display: inline-flex;
  max-width: 55%;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--customer-blue-soft);
  color: #074eaa;
  padding: 5px 9px;
  font-size: 0.82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.customer-dashboard-priority-attention .customer-dashboard-status { background: #fff0ef; color: #9f241f; }
.customer-dashboard-priority-upcoming .customer-dashboard-status { background: #fff7e5; color: #744900; }
.customer-dashboard-priority-completed_recent .customer-dashboard-status { background: #ebf8ef; color: #11652f; }

.customer-dashboard-fields,
.customer-dashboard-detail-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  gap: 10px 14px;
}

.customer-dashboard-fields > div,
.customer-dashboard-detail-fields > div {
  min-width: 0;
}

.customer-dashboard-fields dt,
.customer-dashboard-detail-fields dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.customer-dashboard-fields dd,
.customer-dashboard-detail-fields dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.customer-dashboard-detail-action {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-control);
  color: var(--customer-blue);
  padding: 10px 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.customer-dashboard-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-dashboard-detail-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-panel);
}

.customer-dashboard-skeleton {
  display: grid;
  gap: 16px;
}

.customer-dashboard-skeleton-title,
.customer-dashboard-skeleton-grid > div {
  border-radius: var(--radius-control);
  background: linear-gradient(90deg, #edf1f6, #f8fafc, #edf1f6);
  background-size: 220% 100%;
  animation: customer-dashboard-shimmer 1.4s linear infinite;
}

.customer-dashboard-skeleton-title { width: min(320px, 80%); height: 38px; }
.customer-dashboard-skeleton-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.customer-dashboard-skeleton-grid > div { min-height: 180px; }

@keyframes customer-dashboard-shimmer {
  to { background-position: -220% 0; }
}

@media (max-width: 760px) {
  .customer-dashboard-card-grid,
  .customer-dashboard-detail-fields,
  .customer-dashboard-skeleton-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-dashboard-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-dashboard-heading > button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .customer-dashboard-card-heading {
    flex-direction: column;
  }

  .customer-dashboard-status { max-width: 100%; }
  .customer-dashboard-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .customer-dashboard * {
    animation: none !important;
    transition: none !important;
  }

  .dashboard-donut-segment {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.stats-chart {
  width: 100%;
  overflow-x: auto;
}

.stats-chart svg {
  width: 100%;
  min-width: 640px;
  height: 240px;
}

.month-dot {
  cursor: pointer;
  outline: none;
}

.month-dot circle {
  fill: #fff;
  stroke: #2367c8;
  stroke-width: 3;
}

.month-dot text {
  fill: #143b73;
  font-size: 11px;
}

.month-dot.active circle,
.month-dot:hover circle {
  fill: #2367c8;
}

.panel {
  padding: 14px;
  margin-bottom: 14px;
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-heading-row h2 {
  margin: 0 0 4px;
}

.admin-log-section {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
}

.admin-audit-timeline {
  background: #fff;
}

.audit-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #e4eaf2;
}

.audit-heading-row h2 {
  margin: 0 0 5px;
  color: #173b70;
  font-size: 21px;
  letter-spacing: 0;
}

.audit-heading-row p {
  margin: 0;
  color: #607087;
  line-height: 1.5;
}

.audit-page-size {
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf5ff;
  color: #145da6;
  font-size: 12px;
  font-weight: 700;
}

.audit-range-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 18px 24px;
  background: #f8fbff;
  border-bottom: 1px solid #e4eaf2;
}

.audit-range-form label span {
  color: #43546a;
  font-weight: 650;
}

.audit-range-form input {
  min-height: 44px;
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  background: #fff;
  padding: 9px 11px;
  box-shadow: 0 4px 12px rgba(23, 59, 112, 0.04);
}

.audit-range-form input:focus-visible {
  border-color: #007aff;
  outline: 3px solid rgba(0, 122, 255, 0.15);
  outline-offset: 1px;
}

.audit-search-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.audit-search-actions button,
.audit-pagination button,
.audit-new-events {
  min-height: 44px;
  white-space: nowrap;
}

.audit-feedback-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 24px;
}

.audit-status {
  color: #607087;
  font-size: 13px;
}

.audit-new-events {
  padding: 7px 13px;
  background: #e7f2ff;
  border-color: #b8d8ff;
  color: #075ca8;
  box-shadow: 0 5px 14px rgba(0, 122, 255, 0.1);
}

.audit-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #e4eaf2;
}

.audit-business-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: separate;
  border-spacing: 0;
}

.audit-business-table th {
  position: static;
  padding: 11px 14px;
  background: #f2f6fb;
  color: #415167;
  border-bottom: 1px solid #dce4ed;
  font-size: 11px;
  text-transform: uppercase;
}

.audit-business-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e7edf4;
  background: #fff;
  color: #26364a;
  line-height: 1.4;
}

.audit-business-table tr[data-audit-row]:hover td {
  background: #f8fbff;
}

.audit-business-table th:nth-child(1) { width: 175px; }
.audit-business-table th:nth-child(2) { width: 190px; }
.audit-business-table th:nth-child(3) { width: 210px; }
.audit-business-table th:nth-child(5) { width: 88px; text-align: center; }
.audit-business-table td:nth-child(5) { text-align: center; }

.icon-button.audit-expand-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  background: #edf5ff;
  border: 1px solid #c7ddf8;
  color: #145da6;
  box-shadow: none;
}

.audit-chevron {
  display: block;
  font-size: 27px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 180ms ease-out;
}

.audit-expand-button[aria-expanded="true"] .audit-chevron {
  transform: rotate(-90deg);
}

.audit-detail-row td {
  padding: 0;
  background: #f8fbff;
}

.audit-detail-panel {
  padding: 18px 22px 22px;
  border-left: 4px solid #007aff;
}

.audit-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px 20px;
  margin: 0 0 18px;
}

.audit-detail-meta div {
  min-width: 0;
}

.audit-detail-meta dt {
  margin-bottom: 3px;
  color: #718096;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.audit-detail-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #22334a;
  font-size: 13px;
}

.audit-field-change-list {
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #fff;
}

.audit-change-head,
.audit-change-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) repeat(2, minmax(220px, 1fr));
}

.audit-change-head {
  background: #edf3f9;
  color: #43546a;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.audit-change-head span,
.audit-change-row span {
  min-width: 0;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  border-right: 1px solid #e3e9f0;
}

.audit-change-head span:last-child,
.audit-change-row span:last-child {
  border-right: 0;
}

.audit-change-row + .audit-change-row {
  border-top: 1px solid #e7edf4;
}

.audit-change-row small {
  display: block;
  margin-top: 3px;
  color: #718096;
}

.audit-mobile-change-label {
  display: none;
}

.audit-technical-details {
  margin-top: 14px;
}

.audit-technical-details summary {
  width: fit-content;
  color: #145da6;
  cursor: pointer;
  font-weight: 700;
}

.audit-technical-details pre {
  max-height: 280px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #fff;
  color: #26364a;
  font-size: 12px;
  white-space: pre-wrap;
}

.audit-empty-state,
.audit-error-state {
  padding: 36px 24px;
  text-align: center;
  color: #607087;
}

.audit-error-state {
  color: #b42318;
}

.audit-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 20px;
}

.audit-log-table table {
  min-width: 1360px;
}

.audit-log-details summary {
  color: var(--blue-800);
  cursor: pointer;
  font-weight: 700;
}

.audit-log-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.audit-log-detail-grid pre {
  max-height: 260px;
  overflow: auto;
  margin: 6px 0 0;
  padding: 10px;
  border-radius: 10px;
  background: #f7fbff;
  color: #1f2937;
  font-size: 12px;
  white-space: pre-wrap;
}

.audit-log-meta {
  display: grid;
  gap: 4px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
}

.audit-copy-button {
  padding: 6px 10px;
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.34);
}

.modal-card {
  width: min(1040px, 96vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

.modal-header,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header {
  margin-bottom: 12px;
}

.modal-header h2 {
  margin: 0;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

.form-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.form-grid .wide {
  grid-column: 1 / -1;
}

label span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.quick-status-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
}

.quick-status-detail {
  margin: 0 0 12px;
}

.quick-status-detail .quick-status-actions {
  flex-wrap: wrap;
}

.quick-status-btn {
  width: auto;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(94, 124, 226, 0.24);
  background: linear-gradient(180deg, #F3F6FF, #E5EAFF);
  color: #4059C8;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(20, 59, 115, 0.08);
}

.quick-status-btn:hover {
  background: #EAF3FF;
  border-color: #5E7CE2;
  color: #2F49B8;
}

.quick-status-btn[data-quick-status="arrived_at_warehouse"] {
  border-color: rgba(245, 166, 35, 0.28);
  background: linear-gradient(180deg, #FFF9E6, #FFE6AD);
  color: #9A5F00;
}

.quick-status-btn[data-quick-status="empty_returned_to_terminal"] {
  border-color: rgba(52, 199, 89, 0.34);
  background: linear-gradient(180deg, #ECFDF1, #D8F8E0);
  color: #157A31;
}

.quick-status-btn[data-quick-status="empty_returned_to_terminal"]:hover {
  background: #D8F8E0;
  border-color: #34C759;
}

.quick-status-btn[data-disable-driver] {
  border-color: rgba(255, 59, 48, 0.3);
  background: linear-gradient(180deg, #FFF0EF, #FFDAD7);
  color: #C42720;
}

.quick-status-done {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #166534;
  font-size: 12px;
  white-space: nowrap;
}

.quick-status-pending,
.quick-status-readonly {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
}

.quick-status-readonly {
  border-radius: var(--radius-control);
  white-space: normal;
}

.edit-container-heading,
.edit-container-cell {
  text-align: center;
}

.edit-container-link {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(35, 103, 200, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #143b73;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
}

.edit-container-link:hover {
  background: #eaf5ff;
  border-color: #2367c8;
  color: #174f9f;
}

.table-wrap {
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  max-width: 100%;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.table-wrap:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.35);
  outline-offset: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef2f7;
  font-size: 12px;
  color: #374151;
}

tr.row-red td {
  background: var(--red);
}

tr.row-orange td {
  background: var(--orange);
}

tr.row-green td {
  background: var(--green);
}

tr.row-blue td {
  background: var(--blue);
}

tr.row-yellow td {
  background: var(--yellow);
}

.status {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid rgba(31, 41, 55, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.badge {
  display: inline-block;
  border: 1px solid rgba(31, 41, 55, 0.18);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 12px;
  white-space: nowrap;
}

.badge-linked {
  background: #dcfce7;
  color: #166534;
}

.badge-missing {
  background: #ffedd5;
  color: #9a3412;
}

.muted {
  color: var(--muted);
}

.notice {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #fbbf24;
  background: #fff7ed;
  border-radius: 4px;
}

.error {
  margin-top: 10px;
  color: #b91c1c;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: 420px;
  background: #111827;
  color: #fff;
  padding: 10px 12px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.user-email {
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-notification-bell] {
  display: inline-flex;
  flex: 0 0 auto;
}

.notification-bell,
.notification-icon-button {
  position: relative;
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #c8d8ee;
  border-radius: 8px;
  background: #fff;
  color: #174f9f;
  box-shadow: 0 4px 12px rgba(20, 59, 115, 0.09);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.notification-bell:hover,
.notification-icon-button:hover {
  border-color: #76a9e8;
  background: #eef6ff;
  box-shadow: 0 6px 16px rgba(20, 59, 115, 0.14);
  transform: none;
}

.notification-icon,
.notification-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.notification-unread-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  display: block;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e2352b;
  box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.15);
}

.notification-unread-dot[hidden] {
  display: none;
}

.notification-banner-host {
  position: relative;
  z-index: 9;
  display: grid;
  width: min(520px, calc(100% - 32px));
  gap: 8px;
  margin: 10px auto 0;
  pointer-events: none;
}

.notification-banner-host:empty {
  margin-top: 0;
}

.notification-feedback {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #efb3ae;
  background: #fff3f2;
  color: #9f231b;
  font-weight: 700;
}

.notification-feedback[hidden] {
  display: none;
}

.notification-banner-feedback {
  position: relative;
  z-index: 9;
  width: min(520px, calc(100% - 32px));
  margin: 8px auto 0;
  padding: 8px 10px 8px 14px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(121, 35, 28, 0.1);
}

.notification-drawer-feedback {
  flex: 0 0 auto;
  padding: 8px 12px 8px 16px;
  border-width: 0 0 1px;
}

.notification-feedback-retry {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 8px;
}

.notification-banner {
  --notification-accent: #2673c9;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  min-height: 62px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #c8d8ee;
  border-left: 4px solid var(--notification-accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 59, 115, 0.13);
  pointer-events: auto;
  animation: notification-banner-in 200ms ease-out both;
}

.notification-category-urgent_risk,
.notification-category-admin_security {
  --notification-accent: #d43c32;
}

.notification-category-operations {
  --notification-accent: #218c57;
}

/* KM TMS Modern Industrial OS — shared Container workflow */
/* KM TMS Modern Industrial OS — Today’s Work Queue */
#todayWorkQueueHost {
  width: min(100%, 1440px);
  min-width: 0;
  margin: 0 auto 24px;
}

.workflow-page > #todayWorkQueueHost {
  margin-bottom: 0;
}

.today-work-queue {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 12px;
}

.today-work-queue__header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.today-work-queue__header h2 {
  min-width: 0;
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.today-work-queue__header > span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: #41536d;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.today-work-queue__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.today-work-queue__item {
  min-width: 0;
}

.today-work-queue-card {
  display: grid;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius-panel);
  background: var(--panel);
  padding: 14px;
  box-shadow: var(--shadow-panel);
  gap: 12px;
}

.today-work-queue-card--action-required {
  border-left-color: var(--blue-600);
  background: #f7fbff;
}

.today-work-queue-card--waiting {
  border-left-color: #a86908;
  background: #fffcf2;
}

.today-work-queue-card--completed-today {
  border-left-color: #238047;
  background: #f5fbf7;
}

.today-work-queue-card__header,
.today-work-queue-card__footer {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.today-work-queue-card__header > div {
  min-width: 0;
}

.today-work-queue-card__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.today-work-queue-card h3 {
  margin: 0;
  color: #102a4c;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.today-work-queue-card__state,
.today-work-queue-card__priority {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

.today-work-queue-card__state {
  border: 1px solid #b9d5f5;
  background: var(--blue-100);
  color: var(--blue-900);
}

.today-work-queue-card--waiting .today-work-queue-card__state {
  border-color: #e8cf8e;
  background: #fff4d6;
  color: #684300;
}

.today-work-queue-card--completed-today .today-work-queue-card__state {
  border-color: #b7ddc3;
  background: #e8f7ed;
  color: #145b31;
}

.today-work-queue-card__state-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--blue-600);
}

.today-work-queue-card--waiting .today-work-queue-card__state-dot {
  background: #a86908;
}

.today-work-queue-card--completed-today .today-work-queue-card__state-dot {
  background: #238047;
}

.today-work-queue-card__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  gap: 9px 14px;
}

.today-work-queue-card__summary > div {
  min-width: 0;
}

.today-work-queue-card__summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.today-work-queue-card__summary dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.today-work-queue-card__footer {
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.today-work-queue-card__priority {
  border: 1px solid #d2d9e3;
  background: #f3f5f8;
  color: #43536a;
}

.today-work-queue-card__priority--urgent {
  border-color: #efb8b3;
  background: #fff0ef;
  color: #9a241d;
}

.today-work-queue-card__priority--due-today {
  border-color: #e8cf8e;
  background: #fff4d6;
  color: #684300;
}

.today-work-queue-card__footer a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-control);
  color: var(--blue-800);
  padding: 8px 10px;
  font-weight: 750;
  text-decoration: none;
}

.today-work-queue-card__footer a:hover {
  background: #eaf3ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.today-work-queue-card__footer a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.today-work-queue__empty {
  min-width: 0;
  margin: 0;
  border: 1px dashed #b9c6d8;
  border-radius: var(--radius-panel);
  background: #f8fafc;
  color: var(--muted);
  padding: 24px 16px;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .today-work-queue__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .today-work-queue-card {
    width: 100%;
  }
}

.container-task-detail {
  display: grid;
  gap: var(--space-4);
}

.task-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
}

.task-detail-header h1,
.task-detail-section h2,
.task-detail-subsection h3,
.task-detail-prefill-form h3 {
  margin-top: 0;
}

.task-detail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.task-detail-summary div,
.task-detail-readonly {
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--bg);
}

.task-detail-summary dt,
.task-detail-readonly span,
.task-detail-field > span {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.task-detail-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.task-detail-subsection,
.task-detail-prefill-form {
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.task-detail-subsection:first-child {
  padding-top: 0;
  border-top: 0;
}

.task-detail-field-grid,
.task-detail-readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.task-detail-field {
  display: block;
  min-width: 0;
}

.task-detail-field--wide {
  grid-column: 1 / -1;
}

.task-detail-field input,
.task-detail-field select,
.task-detail-field textarea {
  width: 100%;
}

.task-detail-field :disabled {
  color: var(--muted);
  background: #eef2f7;
  border-style: dashed;
}

.task-change-list {
  display: grid;
  gap: var(--space-3);
}

.task-change-card {
  padding: var(--space-4);
  border: 1px solid #f1c56f;
  border-left: 4px solid var(--ios-amber);
  border-radius: var(--radius-panel);
  background: #fffaf0;
}

.task-change-card h3 {
  margin: 0 0 var(--space-2);
}

.task-change-card .actions {
  margin-top: var(--space-3);
}

@media (max-width: 720px) {
  .task-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .task-detail-summary,
  .task-detail-field-grid,
  .task-detail-readonly-grid {
    grid-template-columns: 1fr;
  }

  .task-detail-section,
  .task-change-card {
    padding: var(--space-3);
  }

  .container-task-detail button,
  .container-task-detail .button,
  .container-task-detail .button-link {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .today-work-queue__header,
  .today-work-queue-card__header {
    align-items: stretch;
    flex-direction: column;
  }

  .today-work-queue__header > span,
  .today-work-queue-card__state {
    width: fit-content;
  }

  .today-work-queue-card__summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .today-work-queue *,
  .today-work-queue *::before,
  .today-work-queue *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.queue-detail-navigation {
  display: flex;
  width: min(1180px, 100%);
  min-width: 0;
  margin: 0 auto 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.queue-detail-navigation .button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8d2df;
  border-radius: var(--radius-control);
  background: var(--panel);
  color: #253b58;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--motion-fast) ease-out, border-color var(--motion-fast) ease-out;
}

.queue-detail-navigation .button-link:hover {
  border-color: #aebed1;
  background: #f3f6fa;
}

.queue-detail-navigation .button-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.workflow-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.workflow-page-section {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.workflow-section-header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.workflow-section-header h2 {
  margin-bottom: 4px;
  color: #102a4c;
  font-size: clamp(20px, 2.4vw, 26px);
}

.workflow-section-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 560px) {
  .queue-detail-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .queue-detail-navigation .button-link {
    width: 100%;
  }
}

.workflow-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.workflow-page-header h1,
.workflow-page h2,
.workflow-page p {
  margin-top: 0;
}

.workflow-page-header h1 {
  margin-bottom: 6px;
  color: #102a4c;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.workflow-page-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  max-width: 720px;
}

.workflow-page .eyebrow {
  margin-bottom: 6px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-page > .panel,
.workflow-page form.panel,
.workflow-queue {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--panel);
  box-shadow: 0 4px 14px rgba(21, 60, 116, 0.06);
}

.workflow-form,
.workflow-form-grid {
  display: grid;
  gap: 16px;
}

.workflow-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-form label,
.workflow-field {
  display: grid;
  align-content: start;
  gap: 7px;
  color: #31445f;
  font-weight: 650;
}

.workflow-form label.wide,
.workflow-form-grid .wide {
  grid-column: 1 / -1;
}

.workflow-form input,
.workflow-form select,
.workflow-form textarea {
  border-radius: var(--radius-control);
  border-color: #c9d4e3;
  background: #fff;
}

.workflow-form textarea {
  min-height: 96px;
  resize: vertical;
}

.workflow-form input:focus,
.workflow-form select:focus,
.workflow-form textarea:focus {
  outline: none;
  border-color: var(--ios-blue);
  box-shadow: var(--focus-ring);
}

.workflow-form .is-invalid,
.workflow-form input:invalid:not(:placeholder-shown),
.workflow-form select.is-invalid {
  border-color: var(--ios-red);
  background: #fffafa;
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.12);
}

.workflow-form small[data-field-error] {
  min-height: 16px;
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
}

.workflow-form-error {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-weight: 650;
}

.workflow-page button,
.workflow-page .button-link {
  min-height: 44px;
  border-radius: var(--radius-control);
  border: 1px solid rgba(0, 122, 255, .32);
  background: rgba(255, 255, 255, .94);
  box-shadow: inset 0 1px #fff, 0 8px 20px -16px rgba(0, 87, 184, .5);
  color: #075fb9;
  transform: none;
}

.workflow-page button:hover,
.workflow-page .button-link:hover {
  background: #fff;
  border-color: rgba(0, 122, 255, .5);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, .08), 0 10px 22px -16px rgba(0, 87, 184, .5);
  transform: translateY(-1px);
}

.workflow-page button.secondary {
  background: #fff;
  border-color: #c8d2df;
  color: #253b58;
  box-shadow: none;
}

.workflow-page button.secondary:hover {
  background: #f3f6fa;
}

.workflow-page .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #075fb9;
  font-weight: 700;
  text-decoration: none;
}

.workflow-inline-actions,
.workflow-page .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workflow-container-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: 14px;
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}

.workflow-container-row legend {
  padding: 0 8px;
  color: #102a4c;
  font-weight: 750;
}

.workflow-remove-row {
  align-self: center;
}

.workflow-action-list {
  display: grid;
  gap: 8px;
}

.workflow-action-card {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease;
}

.workflow-action-card:hover,
.workflow-action-card:focus-visible {
  border-color: #8fb9ec;
  background: #f8fbff;
  outline: none;
}

.workflow-action-indicator {
  align-self: stretch;
  border-radius: 3px;
  background: var(--ios-blue);
}

.workflow-action-card strong,
.workflow-action-card small,
.workflow-action-meta {
  display: block;
}

.workflow-action-card small,
.workflow-action-meta time {
  margin-top: 4px;
  color: var(--muted);
}

.workflow-action-meta {
  text-align: right;
}

.workflow-loading,
.workflow-empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.workflow-empty h1,
.workflow-empty h2 {
  color: #203753;
}

.workflow-empty.is-error {
  border-left: 4px solid var(--ios-red);
}

.workflow-empty.is-complete {
  border: 1px solid #b8e4c3;
  border-left: 4px solid var(--ios-green);
  border-radius: var(--radius-panel);
  background: #f5fcf7;
}

.workflow-confirmation {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.workflow-confirmation input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  margin-top: 1px;
}

.workflow-confirmation small {
  grid-column: 2;
}

.workflow-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.workflow-evidence-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: #f7f9fc;
}

.workflow-evidence-card img,
.workflow-evidence-unavailable {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eaf0f7;
}

.workflow-evidence-unavailable {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.workflow-evidence-card figcaption {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.workflow-evidence-card time,
.workflow-evidence-card span {
  color: var(--muted);
  font-size: 12px;
}

.workflow-task-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 !important;
  overflow: hidden;
  background: var(--line) !important;
}

.workflow-task-summary > div {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 16px;
  background: #fff;
}

.workflow-task-summary span,
.workflow-task-summary small {
  color: var(--muted);
  font-size: 12px;
}

.finance-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.finance-summary-cards > div {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: #fff;
}

.finance-summary-cards span {
  color: var(--muted);
}

.finance-summary-cards strong {
  color: #153c74;
  font-size: 24px;
}

.finance-lines table button {
  min-height: 36px;
  padding: 6px 10px;
}

@media (max-width: 820px) {
  .workflow-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .workflow-form-grid,
  .workflow-task-summary,
  .finance-summary-cards,
  .workflow-container-row {
    grid-template-columns: 1fr;
  }

  .workflow-action-card {
    grid-template-columns: 4px minmax(0, 1fr) 18px;
  }

  .workflow-action-meta {
    grid-column: 2;
    text-align: left;
  }

  .workflow-page .actions > *,
  .workflow-inline-actions > * {
    width: 100%;
  }

  .workflow-page > .panel,
  .workflow-page form.panel,
  .workflow-queue {
    padding: 16px;
  }
}

.notification-banner.is-container-completed {
  --notification-accent: #218c57;
  border-color: #b7dec7;
  background: #f2fbf5;
}

.notification-category-shipment_status {
  --notification-accent: #a86710;
}

.notification-banner-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 10px 12px;
}

.notification-banner-category,
.notification-item-category {
  color: #174f9f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.notification-banner-message {
  overflow: hidden;
  color: #1f2937;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-banner-dismiss {
  margin-right: 4px;
  border-color: transparent;
  box-shadow: none;
}

.notification-overflow {
  justify-self: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  pointer-events: auto;
}

.notification-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  background: rgba(17, 30, 48, 0);
  transition: background 200ms ease;
}

.notification-backdrop[hidden] {
  display: none;
}

.notification-backdrop[data-open="true"] {
  background: rgba(17, 30, 48, 0.34);
}

.notification-drawer {
  display: flex;
  width: min(420px, calc(100vw - 40px));
  height: 100dvh;
  max-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid #c8d8ee;
  background: #fff;
  box-shadow: -18px 0 42px rgba(20, 45, 75, 0.2);
  outline: none;
  transform: translateX(100%);
  transition: transform 200ms ease-out;
}

.notification-backdrop[data-open="true"] .notification-drawer {
  transform: translateX(0);
}

.notification-drawer-header,
.notification-drawer-actions {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #dbe5f2;
}

.notification-drawer-header h2 {
  min-width: 0;
  margin: 0;
  color: #173b73;
  font-size: 20px;
  line-height: 1.2;
}

.notification-drawer-actions {
  min-height: 58px;
  background: #f5f9ff;
}

.notification-unread-summary {
  color: #53657a;
  font-size: 13px;
  font-weight: 700;
}

.notification-mark-all {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 8px;
}

.notification-mark-all .notification-icon,
.notification-mark-all .notification-icon svg {
  width: 17px;
  height: 17px;
}

.notification-center-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notification-center-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  margin: 0;
  padding: 28px;
  color: #53657a;
  text-align: center;
}

.notification-center-state.is-error {
  color: #b42318;
}

.notification-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: stretch;
  border-bottom: 1px solid #e1e8f0;
  background: #fff;
}

.notification-item.is-unread {
  border-left: 4px solid #2673c9;
  background: #f3f8ff;
}

.notification-item.is-container-completed {
  background: #f6fcf8;
}

.notification-item.is-container-completed.is-unread {
  border-left-color: #218c57;
  background: #eef9f2;
}

.notification-item.is-container-completed .notification-item-category {
  color: #176a42;
}

.notification-item-main {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 96px;
  align-content: center;
  gap: 5px;
  padding: 14px 34px 14px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f2937;
  box-shadow: none;
  text-align: left;
  transition: background 180ms ease;
}

button.notification-item-main:hover {
  background: #e8f2ff;
  box-shadow: none;
  transform: none;
}

.notification-item-main > .notification-icon {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
}

.notification-item-main > .notification-icon svg {
  width: 16px;
  height: 16px;
}

.notification-item-message {
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.notification-item-time {
  color: #66778a;
  font-size: 12px;
}

.notification-mark-read {
  align-self: center;
  margin-right: 4px;
}

.notification-bell:focus-visible,
.notification-icon-button:focus-visible,
.notification-overflow:focus-visible,
.notification-mark-all:focus-visible,
.notification-item-main:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.42);
  outline-offset: 2px;
}

@keyframes notification-banner-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1600px) {
  .login-panel {
    width: 520px;
    min-height: 540px;
    padding: 90px 56px 60px;
  }

  .login-form {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .hero {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: #f7fbff;
  }

  .hero-bg {
    left: 50%;
    object-fit: contain;
    object-position: center bottom;
    opacity: 1;
  }

  .motion-logistics-svg {
    opacity: 0.38;
  }

  .motion-login-scrim {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(247, 251, 255, 0.88) 42%,
      rgba(247, 251, 255, 0.34) 100%
    );
  }

  .login-port-poster,
  .login-port-video {
    object-position: 70% center;
  }

  .motion-route-tertiary,
  .motion-particles rect,
  .motion-conveyor-accent {
    display: none;
  }

  .login-panel {
    position: absolute;
    left: 50%;
    right: auto;
    top: 50%;
    width: min(520px, calc(100vw - 48px));
    min-height: auto;
    padding: 40px 22px 28px;
    transform: translate(-50%, -50%);
    z-index: 3;
  }

  .login-panel h1 {
    font-size: clamp(42px, 13vw, 54px);
    line-height: 1;
  }

  .login-panel p {
    max-width: 300px;
    margin-inline: auto;
    font-size: 14px;
    margin-bottom: 28px;
  }

  .login-form {
    width: min(320px, 100%);
  }

  .login-form .system-input-glow {
    height: 44px;
  }

  .login-form input {
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
  }

  .password-row {
    grid-template-columns: 1fr 48px;
    gap: 10px;
  }

  .login-submit {
    width: 48px;
    height: 44px;
    border-radius: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .userbar {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }

  .user-email {
    max-width: none;
    flex: 1 1 140px;
  }

  .toolbar,
  .filters,
  .cards,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .notification-banner-host {
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .notification-banner-feedback {
    width: calc(100% - 16px);
  }

  .notification-drawer {
    width: 100vw;
    border-left: 0;
    box-shadow: none;
  }

  .notification-drawer-header,
  .notification-drawer-actions {
    padding-inline: 12px;
  }
}

@media (max-width: 780px) {
  .audit-heading-row {
    padding: 18px 16px 14px;
  }

  .audit-page-size {
    display: none;
  }

  .audit-range-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px 16px;
  }

  .audit-search-actions {
    grid-column: 1 / -1;
  }

  .audit-search-actions button {
    flex: 1;
  }

  .audit-feedback-row {
    align-items: stretch;
    flex-direction: column;
    padding: 8px 16px;
  }

  .audit-table-wrap {
    overflow: visible;
    padding: 0 12px;
    border: 0;
  }

  .audit-business-table,
  .audit-business-table tbody {
    display: block;
    min-width: 0;
  }

  .audit-business-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .audit-business-table tr[data-audit-row] {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    margin: 10px 0 0;
    overflow: hidden;
    border: 1px solid #dfe7f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(23, 59, 112, 0.08);
  }

  .audit-business-table tr[data-audit-row] td {
    display: grid;
    grid-template-columns: minmax(86px, 0.34fr) 1fr;
    gap: 10px;
    align-items: start;
    padding: 9px 12px;
    border: 0;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .audit-business-table tr[data-audit-row] td::before {
    content: attr(data-label);
    color: #718096;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
  }

  .audit-business-table tr[data-audit-row] td:nth-child(-n + 4) {
    grid-column: 1 / -1;
  }

  .audit-business-table tr[data-audit-row] td:nth-child(5) {
    grid-column: 2;
    display: block;
    padding: 10px 12px 12px 4px;
  }

  .audit-business-table tr[data-audit-row] td:nth-child(5)::before {
    display: none;
  }

  .audit-detail-row {
    display: block;
    margin: -2px 0 12px;
  }

  .audit-detail-row[hidden] {
    display: none;
  }

  .audit-detail-row td {
    display: block;
    padding: 0;
    border: 0;
  }

  .audit-detail-panel {
    padding: 16px;
    border: 1px solid #dfe7f0;
    border-top: 0;
    border-left: 4px solid #007aff;
    border-radius: 0 0 14px 14px;
  }

  .audit-detail-meta {
    grid-template-columns: 1fr;
  }

  .audit-change-head {
    display: none;
  }

  .audit-change-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .audit-change-row span {
    border-right: 0;
    border-bottom: 1px solid #e7edf4;
  }

  .audit-change-row span:last-child {
    border-bottom: 0;
  }

  .audit-change-row .audit-mobile-change-label {
    display: block;
    margin: 0 0 4px;
    color: #607087;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
  }

  .audit-pagination {
    justify-content: stretch;
    padding: 14px 16px 20px;
  }

  .audit-pagination button {
    flex: 1;
  }
}

@media (max-width: 390px) {
  .audit-range-form {
    grid-template-columns: 1fr;
  }

  .audit-search-actions {
    grid-column: auto;
  }
}

/* Assignment-focused driver dashboard */
.worker-dashboard {
  width: min(100%, 1440px);
  margin: 0 auto;
  color: #1c1c1e;
  overflow-wrap: anywhere;
}

.worker-dashboard-heading,
.worker-chart-heading,
.worker-group-heading,
.worker-task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.worker-dashboard-heading {
  margin-bottom: 18px;
}

.page .worker-dashboard-heading h1,
.worker-dashboard-error h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.worker-dashboard-heading p,
.worker-chart-heading span,
.worker-group-heading span,
.worker-task-header p,
.worker-chart-summary,
.worker-chart-text-summary {
  color: #636366;
}

.worker-segment-controls {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.worker-segment-control {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  background: #fff;
  color: #3a3a3c;
  padding: 8px 10px;
  text-align: left;
  box-shadow: none;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.worker-segment-control:hover,
.worker-segment-control.is-selected {
  border-color: #8ab8ee;
  background: #f4f9ff;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
  transform: none;
}

.worker-segment-control:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.3);
  outline-offset: 2px;
}

.worker-segment-control strong {
  color: #1c1c1e;
  white-space: nowrap;
}

.worker-segment-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--worker-segment-color, #8e8e93);
}

.worker-selection-results {
  min-width: 0;
}

.worker-dashboard-heading p {
  margin: 6px 0 0;
  line-height: 1.45;
}

.worker-month-control {
  display: grid;
  grid-template-columns: 44px minmax(136px, auto) 44px;
  flex: 0 0 auto;
  border: 1px solid #d1d1d6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.worker-month-control button,
.worker-retry {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-right: 1px solid #d1d1d6;
  border-radius: 0;
  background: #fff;
  color: #0066cc;
  box-shadow: none;
  padding: 8px 12px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}

.worker-month-control button:last-child {
  border-right: 0;
}

.worker-month-control button:hover,
.worker-month-control button:active,
.worker-retry:hover,
.worker-retry:active {
  background: #eaf3ff;
  box-shadow: none;
  transform: none;
}

.worker-month-control button:disabled {
  background: #f2f2f7;
  color: #8e8e93;
}

.worker-current-month {
  color: #1c1c1e !important;
  white-space: nowrap;
}

.worker-dashboard-warning,
.worker-dashboard-empty,
.worker-group-empty,
.worker-dashboard-error {
  border: 1px solid #d1d1d6;
  border-left: 4px solid #ff9500;
  border-radius: 6px;
  background: #fff;
  padding: 14px 16px;
}

.worker-dashboard-warning {
  margin: 0 0 16px;
  color: #6f4500;
}

.worker-dashboard-error {
  border-left-color: #ff3b30;
}

.worker-dashboard-error p {
  margin: 8px 0 14px;
  color: #8a1c17;
}

.worker-retry {
  border: 1px solid #007aff;
  border-radius: 6px;
}

.worker-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.worker-donut-card {
  min-width: 0;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 5px 16px rgba(28, 28, 30, 0.07);
}

.worker-chart-heading h2,
.worker-group-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.worker-donut-layout {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 180px;
}

.worker-donut {
  display: block;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  overflow: visible;
}

.worker-donut-track {
  stroke: #e5e5ea;
}

.worker-donut-segment {
  cursor: pointer;
  transform: rotate(-90deg);
  transform-origin: 80px 80px;
  transition: stroke-width 160ms ease, opacity 160ms ease;
  touch-action: manipulation;
}

.worker-donut-segment:hover,
.worker-donut-segment:focus,
.worker-donut-segment.is-selected {
  stroke-width: 25px;
  outline: none;
}

.worker-donut-segment:focus-visible {
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px #005fcc);
}

.worker-chart-copy {
  min-width: 0;
}

.worker-chart-selection {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
  min-height: 48px;
  font-size: 16px;
}

.worker-chart-selection span {
  color: #3a3a3c;
  font-size: 22px;
  font-weight: 750;
}

.worker-chart-summary {
  margin: 0 0 8px;
  font-weight: 700;
}

.worker-chart-text-summary {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.worker-assignment-groups {
  display: grid;
  gap: 24px;
}

.worker-assignment-group {
  min-width: 0;
}

.worker-group-heading {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d1d1d6;
}

.worker-task-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.worker-task-card {
  position: relative;
  min-width: 0;
  border: 1px solid #dfe3e8;
  border-left: 4px solid #8e8e93;
  border-radius: 6px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(28, 28, 30, 0.06);
}

.worker-task-card.is-urgent {
  border-left-color: #ff3b30;
}

.dispatch-cancellation {
  display: grid;
  gap: 16px;
  max-width: 760px;
  padding: clamp(16px, 3vw, 28px);
}

.dispatch-current-task {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: #f2f7ff;
}

.dispatch-cancellation .actions button,
.dispatch-cancellation select,
.dispatch-cancellation textarea {
  min-height: 44px;
}

.dispatch-cancellation-success {
  display: grid;
  gap: 12px;
}

@media (max-width: 520px) {
  .dispatch-current-task {
    grid-template-columns: 1fr;
  }

  .dispatch-cancellation .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dispatch-cancellation .actions button {
    width: 100%;
  }
}

.worker-task-card.priority-urgent {
  border-left-color: #ff3b30;
  background: linear-gradient(90deg, #fff6f5 0, #fff 18%);
}

.worker-task-card.priority-today {
  border-left-color: #ff9500;
  background: linear-gradient(90deg, #fff9ef 0, #fff 18%);
}

.worker-task-card.priority-upcoming {
  border-left-color: #007aff;
  background: linear-gradient(90deg, #f3f8ff 0, #fff 18%);
}

.worker-task-card.priority-schedule_missing,
.worker-task-card.priority-previous {
  border-left-color: #8e8e93;
  background: linear-gradient(90deg, #f7f7f8 0, #fff 18%);
}

.worker-task-card.priority-finished {
  border-left-color: #34c759;
  background: linear-gradient(90deg, #f2fbf4 0, #fff 18%);
}

.worker-task-header {
  align-items: flex-start;
  margin-bottom: 14px;
}

.worker-task-header h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}

.worker-task-header p {
  margin: 4px 0 0;
  font-weight: 650;
}

.worker-priority-label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #3a3a3c;
  font-size: 12px;
  font-weight: 750;
}

.worker-priority-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #8e8e93;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.priority-urgent .worker-priority-icon { background: #ff3b30; }
.priority-today .worker-priority-icon { background: #c56f00; }
.priority-upcoming .worker-priority-icon { background: #007aff; }
.priority-finished .worker-priority-icon { background: #248a3d; }

.worker-status-chip {
  max-width: 45%;
  border: 1px solid #b7cce5;
  border-radius: 4px;
  background: #eaf3ff;
  color: #174f9f;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-transform: capitalize;
}

.worker-task-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0 0 14px;
}

.worker-task-fields div {
  min-width: 0;
}

.worker-task-fields dt {
  margin-bottom: 3px;
  color: #6c6c70;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.worker-task-fields dd {
  margin: 0;
  color: #1c1c1e;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.worker-detail-action {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e5e5ea;
  color: #0066cc;
  padding-top: 10px;
  font-weight: 750;
  text-decoration: none;
}

.worker-detail-action span {
  font-size: 22px;
}

.worker-detail-action:focus-visible,
.worker-month-control button:focus-visible,
.worker-retry:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

.worker-dashboard-empty,
.worker-group-empty {
  margin: 0;
  border-left-color: #8e8e93;
  color: #636366;
}

.worker-dashboard-empty + .worker-assignment-group .worker-group-empty,
.worker-dashboard-empty + .worker-assignment-group + .worker-assignment-group .worker-group-empty,
.worker-dashboard-empty + .worker-assignment-group + .worker-assignment-group + .worker-assignment-group .worker-group-empty {
  display: none;
}

.worker-dashboard-skeleton {
  min-height: 620px;
}

.worker-skeleton-title,
.worker-skeleton-chart,
.worker-skeleton-row {
  border-radius: 6px;
  background: #e5e5ea;
  animation: worker-skeleton-pulse 1.2s ease-in-out infinite alternate;
}

.worker-skeleton-title {
  width: min(280px, 75%);
  height: 34px;
  margin-bottom: 20px;
}

.worker-skeleton-chart {
  min-height: 240px;
}

.worker-skeleton-row {
  height: 180px;
  margin: 12px 0;
}

@keyframes worker-skeleton-pulse {
  from { opacity: 0.58; }
  to { opacity: 1; }
}

@media (max-width: 767px) {
  .worker-dashboard-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .worker-month-control {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    width: 100%;
  }

  .worker-chart-grid,
  .worker-task-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .worker-donut-layout {
    grid-template-columns: minmax(124px, 160px) minmax(0, 1fr);
  }
}

@media (max-width: 390px) {
  .page:has(.worker-dashboard) {
    padding: 12px;
  }

  .page .worker-dashboard-heading h1 {
    font-size: 24px;
  }

  .worker-donut-card,
  .worker-task-card {
    padding: 14px;
  }

  .worker-donut-layout {
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 10px;
    min-height: 142px;
  }

  .worker-task-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .topbar {
    gap: 8px;
  }

  .shell-navigation {
    gap: 8px;
  }

  .nav a {
    padding-inline: 6px;
    font-size: 12px;
  }

  .userbar .user-email {
    display: none;
  }

  .shell-locale-picker > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (max-width: 900px) {
  .topbar {
    min-height: 64px;
    align-items: center;
    flex-direction: row;
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .dashboard-donuts {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-donut-card {
    min-width: 0;
  }

  .dashboard-donut-layout {
    grid-template-columns: clamp(120px, 36vw, 150px) minmax(0, 1fr);
    gap: 12px;
  }

  .dashboard-donut {
    width: clamp(120px, 36vw, 150px);
    height: clamp(120px, 36vw, 150px);
  }

  .dashboard-donut-legend {
    min-width: 0;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: var(--radius-control);
    padding: 0;
    font-size: 22px;
  }

  .shell-navigation {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 42;
    display: flex;
    width: min(88vw, 380px);
    height: 100dvh;
    min-height: 100svh;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    background: #fff;
    border-left: 1px solid #d8dee8;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) 16px;
    box-shadow: -18px 0 42px rgba(21, 60, 116, 0.16);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform var(--motion-fast) ease-out, visibility var(--motion-fast) step-end;
  }

  .shell-navigation[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--motion-fast) ease-out, visibility 0s step-start;
  }

  .mobile-nav-heading {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #153c74;
    font-size: 18px;
  }

  .mobile-nav-heading button {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--radius-control);
    background: #f2f2f7;
    color: #3a3a3c;
    box-shadow: none;
  }

  .nav {
    width: 100%;
    overflow: visible;
    flex-direction: column;
    gap: 4px;
  }

  .nav a {
    width: 100%;
    min-height: 44px;
    border-radius: var(--radius-control);
    padding: 10px 12px;
  }

  .userbar {
    width: 100%;
    min-width: 0;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: auto;
    white-space: normal;
  }

  .userbar .user-email {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .userbar > button,
  .userbar .locale-picker,
  .userbar .system-input-glow,
  .userbar [data-notification-bell] {
    width: 100%;
  }

  .userbar .notification-bell {
    width: 100%;
    justify-content: center;
  }

  .mobile-nav-backdrop:not([hidden]) {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 41;
    display: block;
    /* The backdrop owns only the area outside the drawer. This keeps every
       drawer control reliably tappable in scaled mobile viewports. */
    width: calc(100% - min(88vw, 380px));
    height: 100%;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    background: rgba(15, 47, 79, 0.26);
    padding: 0;
    box-shadow: none;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .page {
    width: 100%;
    max-width: 100vw;
    padding-top: 14px;
  }

  .login-wrap {
    height: 100dvh;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .login-panel {
    max-height: calc(100dvh - 48px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .table-wrap {
    width: 100%;
    max-width: calc(100vw - max(32px, env(safe-area-inset-left) + env(safe-area-inset-right)));
  }

  .toast {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    max-width: none;
  }
}

/* KM TMS compact enterprise operations layer.
   This is the final shared visual normalization layer for authenticated pages:
   it keeps the existing workflows intact while aligning density, surfaces,
   navigation, tables and touch behavior across every role. */
.mobile-bottom-nav {
  display: none;
}

.topbar-notifications {
  display: inline-flex;
  flex: 0 0 auto;
}

button.secondary:hover,
button.neutral:hover {
  border-color: #b8c5d6;
  background: #f8fafc;
  color: #1e293b;
}

button.danger:hover {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

button.success:hover,
button[data-next="completed"]:hover {
  border-color: #15803d;
  background: #15803d;
}

button.warning:hover,
button[data-next="arrived"]:hover {
  border-color: #d97706;
  background: #d97706;
}

.card,
.panel,
.dashboard-donut-card,
.customer-dashboard-card,
.worker-donut-card,
.worker-task-card,
.today-work-queue-card {
  border-color: var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

.card {
  padding: 16px;
}

.card::before {
  top: 14px;
  left: 16px;
  width: 8px;
  height: 8px;
}

.card .label {
  margin-left: 15px;
  font-size: 11px;
}

.card .value {
  font-size: 27px;
}

.card-orange {
  --card-accent: #f59e0b;
  background: #fff4dd;
  color: #7c4a03;
}

.dashboard-month {
  margin-block: 6px 16px;
}

.dashboard-donuts {
  gap: 14px;
}

.dashboard-donut-card {
  padding: 16px;
  overflow: hidden;
}

.dashboard-donut-card h2 {
  margin-bottom: 10px;
  font-size: 15px;
}

.dashboard-donut-layout {
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 14px;
}

.dashboard-donut {
  width: 154px;
  height: 154px;
}

.donut-total {
  font-size: 22px;
}

.dashboard-donut-legend {
  gap: 7px;
}

.customer-dashboard {
  gap: 16px;
}

.customer-dashboard-heading,
.customer-dashboard-group-heading,
.customer-dashboard-card-heading {
  gap: 14px;
}

.customer-dashboard-groups {
  gap: 18px;
}

.customer-dashboard-card-grid {
  gap: 12px;
}

.customer-dashboard-card {
  border-left-width: 4px;
  padding: 14px;
  gap: 12px;
}

.customer-dashboard-status,
.status,
.badge,
.today-work-queue-card__state,
.today-work-queue-card__priority {
  border-radius: var(--radius-badge);
}

.today-work-queue {
  gap: 10px;
}

.today-work-queue__header h2 {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 23px);
}

.today-work-queue__list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.today-work-queue-card {
  padding: 13px;
  gap: 10px;
}

.today-work-queue-card h3 {
  color: var(--ink);
  font-size: 16px;
}

.today-work-queue-card__footer {
  padding-top: 8px;
}

.table-wrap {
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}

table {
  font-size: 12px;
}

th,
td {
  padding: 7px 9px;
}

th {
  background: #f2f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

tbody tr:hover td {
  filter: brightness(0.985);
}

.notice,
.toast,
.notification-banner,
.notification-banner-feedback,
.notification-bell,
.notification-icon-button,
.worker-dashboard-warning,
.worker-dashboard-empty,
.worker-group-empty,
.worker-dashboard-error,
.worker-retry,
.worker-month-control,
.worker-segment-control,
.worker-skeleton-title,
.worker-skeleton-chart,
.worker-skeleton-row {
  border-radius: var(--radius-control);
}

.worker-dashboard {
  color: var(--ink);
}

.worker-dashboard-heading {
  margin-bottom: 16px;
}

.page .worker-dashboard-heading h1,
.worker-dashboard-error h1 {
  font-size: 25px;
}

.worker-dashboard-heading,
.worker-chart-heading,
.worker-group-heading,
.worker-task-header {
  gap: 14px;
}

.worker-chart-grid {
  gap: 14px;
  margin-bottom: 20px;
}

.worker-donut-card {
  padding: 16px;
}

.worker-chart-heading h2,
.worker-group-heading h2 {
  font-size: 16px;
}

.worker-donut-layout {
  grid-template-columns: minmax(132px, 162px) minmax(0, 1fr);
  min-height: 164px;
  gap: 14px;
}

.worker-donut {
  max-width: 162px;
}

.worker-chart-selection {
  font-size: 14px;
}

.worker-chart-selection span {
  font-size: 20px;
}

.worker-assignment-groups {
  gap: 20px;
}

.worker-task-list {
  gap: 10px;
}

.worker-task-card {
  padding: 14px;
}

.worker-task-header {
  margin-bottom: 12px;
}

.worker-task-header h3 {
  font-size: 15px;
}

.worker-status-chip {
  border-radius: var(--radius-badge);
}

.worker-task-fields {
  gap: 8px 14px;
  margin-bottom: 12px;
}

@media (min-width: 901px) {
  .app-shell {
    min-height: 100dvh;
    padding-left: 180px;
  }

  .topbar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 180px;
    height: 100dvh;
    min-height: 100svh;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 14px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 18px 12px 14px;
  }

  .brand {
    padding: 4px 8px;
    color: var(--ink);
    font-size: 18px;
    letter-spacing: -0.02em;
  }

  .topbar-notifications {
    padding-inline: 6px;
  }

  .topbar-notifications .notification-bell {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .shell-navigation {
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .nav {
    width: 100%;
    overflow: visible;
    flex-direction: column;
    gap: 4px;
  }

  .nav a {
    width: 100%;
    min-height: 38px;
    border-radius: var(--radius-control);
    padding: 8px 10px;
    font-size: 12px;
  }

  .nav a.active {
    border-color: #cfe0fa;
    background: #eaf2ff;
    color: #1d4ed8;
    font-weight: 700;
  }

  .userbar {
    width: 100%;
    min-width: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding: 10px 6px 0;
    border-top: 1px solid var(--line);
    white-space: normal;
  }

  .userbar .user-email {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .userbar .status {
    width: fit-content;
  }

  .userbar > button,
  .userbar .locale-picker,
  .userbar .system-input-glow {
    width: 100%;
  }

  .page {
    width: 100%;
    max-width: none;
    padding: 18px 20px;
  }
}

@media (max-width: 900px) {
  body {
    font-size: 12px;
  }

  .topbar {
    min-height: 56px;
    gap: 8px;
    padding: max(6px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left));
  }

  .brand {
    font-size: 15px;
  }

  .topbar-notifications {
    margin-left: auto;
  }

  .topbar-notifications .notification-bell {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .mobile-nav-toggle {
    margin-left: 0;
  }

  .page {
    padding: 12px max(12px, env(safe-area-inset-right)) calc(72px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .page h1 {
    font-size: 20px;
  }

  button,
  .customer-dashboard button,
  .customer-dashboard a.customer-dashboard-detail-action {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  input,
  select,
  textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .mobile-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 2px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    padding: 5px max(6px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: #64748b;
    padding: 5px 4px;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: normal;
    box-shadow: none;
    touch-action: manipulation;
  }

  .mobile-bottom-nav .nav-icon {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
  }

  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav button:hover {
    border: 0;
    background: #f1f5f9;
    color: #334155;
    box-shadow: none;
    transform: none;
  }

  .mobile-bottom-nav a.active {
    background: #eaf2ff;
    color: #1d4ed8;
  }

  .mobile-bottom-nav button span:first-child {
    font-size: 18px;
    line-height: 0.8;
  }

  .dashboard-donut-layout,
  .worker-donut-layout {
    grid-template-columns: clamp(112px, 34vw, 138px) minmax(0, 1fr);
    gap: 10px;
  }

  .dashboard-donut {
    width: clamp(112px, 34vw, 138px);
    height: clamp(112px, 34vw, 138px);
  }

  .worker-donut {
    max-width: 138px;
  }

  .dashboard-donut-card,
  .worker-donut-card,
  .worker-task-card,
  .customer-dashboard-card,
  .today-work-queue-card {
    padding: 13px;
  }

  .page .worker-dashboard-heading h1,
  .worker-dashboard-error h1 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none;
    transform: translateX(-50%);
  }

  .motion-route,
  .motion-particles circle,
  .motion-particles rect,
  .motion-light-sweep,
  .motion-conveyor-accent::after {
    animation: none;
  }

  .audit-chevron,
  .audit-business-table *,
  .admin-audit-timeline button {
    transition-duration: 0.01ms !important;
  }

  .notification-banner,
  .notification-backdrop,
  .notification-drawer,
  .notification-bell,
  .notification-icon-button,
  .notification-overflow,
  .notification-mark-all,
  .notification-item-main {
    animation: none !important;
    transition: none !important;
  }

  .worker-dashboard *,
  .worker-dashboard-skeleton * {
    animation: none !important;
    transition: none !important;
  }

  .shell-navigation,
  .mobile-nav-toggle,
  .mobile-nav-backdrop,
  button,
  a,
  input,
  select,
  textarea {
    animation: none !important;
    transition: none !important;
  }
}

/* Final visual-master overrides intentionally remain last so legacy role-page
   declarations cannot change the approved shared shell. */
body .app-shell.operations-shell {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 100dvh;
  padding-left: 0;
  background: #fbfcfe;
}

body .shell-sidebar.shell-navigation {
  position: sticky;
  inset: 0 auto auto 0;
  display: flex;
  width: auto;
  height: 100dvh;
  min-height: 100dvh;
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  border-right: 1px solid #e6ebf2;
  background: #fff;
  padding: 22px 13px 14px;
  transform: none;
}

body .shell-sidebar .nav {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 6px;
}

body .app-main > .topbar {
  position: sticky;
  inset: 0 auto auto 0;
  display: flex;
  width: auto;
  height: auto;
  min-height: 64px;
  align-items: center;
  flex-direction: row;
  justify-content: flex-end;
  gap: 12px;
  border-right: 0;
  border-bottom: 1px solid #e6ebf2;
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 18px;
  flex-wrap: wrap;
}

.topbar-task-shelf {
  display: none;
  min-width: 0;
}

.topbar-task-shelf.has-open-tasks {
  display: flex;
  width: min(610px, 46vw);
  max-width: 610px;
  flex: 1 1 420px;
  justify-content: center;
}

.topbar-task-shelf.has-open-tasks + .topbar-spacer {
  display: none;
}

body .app-main > .topbar:has(.topbar-task-shelf.has-open-tasks) {
  z-index: 84;
}

body .operations-shell .topbar .userbar {
  width: auto;
  min-width: 110px;
  grid-template-columns: 38px minmax(70px, auto) auto auto;
  align-items: center;
  flex-direction: initial;
  gap: 8px;
  margin-top: 0;
  border-top: 0;
  padding: 0;
  white-space: nowrap;
}

.sidebar-notifications {
  margin-top: 6px;
}

.sidebar-notifications [data-notification-bell] {
  display: block;
}

.sidebar-notifications .notification-bell {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  grid-template-columns: 28px minmax(0, 1fr);
  justify-items: start;
  gap: 0;
  border-color: transparent;
  background: transparent;
  color: #344054;
  padding: 6px 9px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 560;
}

.sidebar-notifications .notification-bell::after {
  align-self: center;
  content: 'Notifications';
}

.sidebar-notifications .notification-bell:hover,
.sidebar-notifications .notification-bell[aria-expanded='true'] {
  border-color: transparent;
  background: #eaf2ff;
  color: #075fd8;
  box-shadow: none;
}

.sidebar-notifications .notification-unread-dot {
  top: 3px;
  right: 6px;
}

.notification-banner-host,
.notification-banner-feedback {
  display: none !important;
}

body .app-main > .page {
  margin-left: 0;
  padding: 18px;
}

body .app-shell.operations-shell.is-sidebar-collapsed {
  grid-template-columns: 70px minmax(0, 1fr);
}

.task-workspace {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.task-workspace-dock {
  position: static;
  width: 100%;
  max-width: 610px;
  border: 1px solid #dce3ed;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.98);
  padding: 6px 8px 8px;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.11);
  pointer-events: auto;
}

.task-workspace-dock__label {
  display: block;
  margin: 0 0 6px 2px;
  color: #344054;
  font-size: 11px;
  font-weight: 650;
}

.task-workspace-dock__items {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 8px;
  overflow-x: auto;
}

.task-workspace-tab {
  display: grid;
  grid-template-columns: 7px 1fr 22px;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9e1ec;
  border-radius: 7px;
  background: #fff;
  color: #1d2939;
  padding: 6px 8px;
  text-align: left;
  box-shadow: none;
}

.task-workspace-tab:hover,
.task-workspace-tab.is-active {
  border-color: #2f75ef;
  background: #f8fbff;
  color: #101828;
  box-shadow: 0 0 0 1px rgba(47, 117, 239, 0.08);
  transform: none;
}

.task-workspace-tab__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
}

.task-workspace-tab > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.task-workspace-tab strong,
.task-workspace-tab small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-workspace-tab strong {
  font-size: 11px;
}

.task-workspace-tab small {
  color: #667085;
  font-size: 9px;
}

.task-workspace-tab__close {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 4px;
  color: #667085;
  font-size: 12px;
}

.task-workspace-tab__close:hover {
  background: #eef2f7;
  color: #b42318;
}

.task-workspace-backdrop {
  position: absolute;
  inset: 0;
  z-index: 80;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.24);
  padding: 0;
  box-shadow: none;
  pointer-events: auto;
  backdrop-filter: blur(1.2px);
}

.task-workspace-backdrop:hover {
  border: 0;
  background: rgba(15, 23, 42, 0.24);
  box-shadow: none;
  transform: none;
}

.task-workspace-panel {
  position: absolute;
  top: calc(50% + 32px);
  left: 50%;
  z-index: 82;
  width: min(590px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 128px));
  overflow: hidden;
  border: 1px solid #d7dee8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.task-workspace-panel__chrome {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5eaf1;
  padding: 8px 12px 8px 18px;
}

.task-workspace-panel__context {
  color: #526581;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.task-workspace-panel__chrome > div {
  display: flex;
  gap: 7px;
}

.task-workspace-panel__chrome button {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  border-color: #dce3ed;
  background: #fff;
  color: #526581;
  padding: 0;
  box-shadow: none;
}

.task-workspace-panel__chrome button:hover {
  background: #f7f9fc;
  color: #101828;
  transform: none;
}

.task-workspace-panel__content {
  max-height: calc(min(720px, 100dvh - 128px) - 52px);
  overflow: auto;
  padding: 18px;
}

.task-workspace-panel__content .workflow-page {
  gap: 12px;
}

.task-workspace-panel__content .workflow-page-header {
  margin-bottom: 0;
}

.task-workspace-panel__content .workflow-page-header h1 {
  font-size: 20px;
}

.task-workspace-panel__content .panel {
  padding: 14px;
  box-shadow: none;
}

@media (min-width: 901px) and (max-width: 1400px) {
  body .app-main > .topbar:has(.topbar-task-shelf.has-open-tasks) .topbar-search {
    display: none;
  }

  .topbar-task-shelf.has-open-tasks {
    width: min(560px, 52vw);
    flex-basis: 380px;
  }
}

@media (max-width: 900px) {
  body .app-shell.operations-shell,
  body .app-shell.operations-shell.is-sidebar-collapsed {
    display: block;
    padding-left: 0;
  }

  body .shell-sidebar.shell-navigation {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(315px, 86vw);
    height: 100dvh;
    transform: translateX(-104%);
  }

  body .shell-sidebar.shell-navigation[data-open="true"] {
    transform: translateX(0);
  }

  body .app-main > .topbar {
    min-height: 58px;
    padding: 8px 12px;
  }

  .sidebar-notifications {
    margin-top: 0;
  }

  .topbar-task-shelf.has-open-tasks {
    order: 20;
    width: 100%;
    max-width: none;
    flex: 1 0 100%;
  }

  .topbar-task-shelf .task-workspace-dock {
    max-width: none;
  }

  .topbar-notifications [data-notification-bell] {
    display: inline-flex;
  }

  body .app-main > .page {
    max-width: 100vw;
    overflow-x: clip;
    margin-left: 0;
    padding: 13px 12px calc(72px + env(safe-area-inset-bottom));
  }

  .task-workspace-dock {
    width: 100%;
  }

  .task-workspace-dock__items {
    grid-auto-columns: minmax(136px, 48vw);
  }

  .task-workspace-panel {
    top: auto;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 180px);
    border-radius: 14px;
    transform: translateX(-50%);
  }

  .task-workspace-panel__content {
    max-height: calc(100dvh - 240px);
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .task-workspace-panel,
  .task-workspace-tab,
  .task-workspace-backdrop {
    animation: none !important;
    transition: none !important;
  }
}

.operations-dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.operations-dashboard-heading h1 {
  margin: 0;
}

.operations-dashboard-heading p {
  margin: 3px 0 0;
  color: #667085;
  font-size: 11px;
}

.dashboard-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-action-grid > div,
.dashboard-action-grid .today-work-queue,
.dashboard-notification-summary {
  min-width: 0;
  height: 100%;
}

.dashboard-action-grid .today-work-queue__list {
  grid-template-columns: 1fr;
  max-height: 280px;
  overflow: auto;
}

.dashboard-action-grid .today-work-queue-card {
  min-height: 0;
  grid-template-columns: 1fr;
}

.dashboard-notification-summary {
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
  padding: 14px 16px;
}

.dashboard-notification-summary > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0f5;
  padding-bottom: 10px;
}

.dashboard-notification-summary h2 {
  margin: 0;
  color: #101828;
  font-size: 15px;
}

.dashboard-notification-summary header button {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: #0866ee;
  padding: 3px 6px;
  box-shadow: none;
}

.dashboard-notification-summary header button:hover {
  background: #f5f8fc;
  box-shadow: none;
  transform: none;
}

.dashboard-notification-summary ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-summary-item {
  border-bottom: 1px solid #edf0f5;
  animation: notificationItemEnter 220ms cubic-bezier(.22, 1, .36, 1) both;
}

.notification-summary-item:last-child {
  border-bottom: 0;
}

.notification-summary-item > button {
  display: grid;
  width: 100%;
  min-height: 62px;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #1d2939;
  padding: 9px 4px;
  text-align: left;
  box-shadow: none;
}

.notification-summary-item > button:hover {
  background: #f8faff;
  box-shadow: none;
  transform: none;
}

.notification-summary-item button > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.notification-summary-item strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-summary-item small {
  color: #667085;
  font-size: 10px;
}

.notification-summary-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #98a2b3;
}

.notification-summary-item.is-unread .notification-summary-dot {
  background: #0866ee;
}

.dashboard-notification-summary__empty {
  color: #667085;
  padding: 24px 4px;
  text-align: center;
}

.notification-item {
  animation: notificationItemEnter 220ms cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes notificationItemEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .dashboard-action-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification-summary-item,
  .notification-item {
    animation: none !important;
  }
}

/* Login stays identical to the approved access-card master at every size. */
body .login-wrap.hero {
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

body .login-panel {
  position: static;
  inset: auto;
  z-index: 2;
  width: 100%;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  padding: 0;
  transform: none;
}

body .login-panel h1 {
  color: #101828;
  font-size: 29px;
  font-style: normal;
  line-height: 1.15;
  text-align: left;
}

body .login-panel p {
  max-width: none;
  margin: 7px 0 30px;
  font-size: 14px;
  text-align: left;
}

body .login-form {
  width: 100%;
}

body .login-form input {
  height: auto;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  padding: 8px 6px;
}

body .login-field.password-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 0;
}

body .login-submit {
  width: 100%;
  height: auto;
  min-height: 50px;
  border-radius: 7px;
}

@media (min-width: 1600px) {
  body .login-panel {
    width: 100%;
    min-height: 0;
    padding: 0;
  }
}

@media (max-width: 900px) {
  body .login-content {
    display: block;
    width: min(100% - 32px, 520px);
    min-height: 0;
    padding: 92px 0 86px;
  }

  body .login-lanyard-stage {
    min-height: 510px;
  }

  body .login-panel {
    width: 100%;
  }

  body .login-panel h1 {
    font-size: 27px;
  }

  body .login-panel p {
    margin-bottom: 24px;
  }

  body .login-options {
    align-items: center;
    flex-direction: row;
  }
}

@media (max-width: 520px) {
  body .login-content {
    width: min(100% - 24px, 440px);
  }

  body .login-lanyard-stage {
    min-height: 475px;
  }

  body .login-panel__body {
    padding: 28px 24px 24px;
  }

  body .login-options {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Approved KM TMS operations master: dense white/blue shell, table-first work. */
.operations-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 226px;
  align-items: start;
  gap: 14px;
}

.operations-dashboard-main {
  min-width: 0;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-metric-card {
  --metric-accent: #0866ee;
  --metric-soft: #eaf2ff;
  position: relative;
  min-width: 0;
  min-height: 128px;
  overflow: hidden;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #fff;
  padding: 14px 14px 30px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
}

.dashboard-metric-card--action {
  --metric-accent: #f79009;
  --metric-soft: #fff4e5;
}

.dashboard-metric-card--due {
  --metric-accent: #7a5af8;
  --metric-soft: #f2efff;
}

.dashboard-metric-card--risk {
  --metric-accent: #f04438;
  --metric-soft: #fff0ef;
}

.dashboard-metric-card--returned {
  --metric-accent: #17a34a;
  --metric-soft: #eaf8ef;
}

.dashboard-metric-card__top {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.dashboard-metric-card__top > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.dashboard-metric-card__top > div > span {
  overflow: hidden;
  color: #475467;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-metric-card__top strong {
  color: #101828;
  font-size: 24px;
  line-height: 1.08;
}

.dashboard-metric-card__icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--metric-soft);
  color: var(--metric-accent);
}

.dashboard-metric-card__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-metric-card small {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  color: var(--metric-accent);
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-metric-card__spark {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  width: calc(100% - 24px);
  height: 24px;
  fill: none;
  stroke: var(--metric-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.dashboard-action-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-action-grid > div {
  display: flex;
}

.dashboard-action-grid .today-work-queue,
.dashboard-notification-summary {
  overflow: hidden;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
}

.dashboard-action-grid .today-work-queue {
  display: block;
  padding: 0;
}

.dashboard-action-grid .today-work-queue__header {
  min-height: 50px;
  border-bottom: 1px solid #edf0f5;
  padding: 12px 16px;
}

.dashboard-action-grid .today-work-queue__header h2 {
  font-size: 15px;
}

.dashboard-action-grid .today-work-queue__header > span {
  border: 0;
  background: transparent;
  color: #0866ee;
  padding: 0;
}

.today-work-queue__columns {
  display: none;
}

.dashboard-action-grid .today-work-queue__columns,
.dashboard-action-grid .today-work-queue-card {
  display: grid;
  grid-template-columns: 1.18fr 1fr 1.18fr .92fr 1.05fr 84px;
  align-items: center;
  column-gap: 10px;
}

.dashboard-action-grid .today-work-queue__columns {
  min-height: 34px;
  border-bottom: 1px solid #edf0f5;
  color: #667085;
  padding: 7px 16px;
  font-size: 9px;
  font-weight: 650;
}

.dashboard-action-grid .today-work-queue__list {
  display: block;
  max-height: 238px;
  overflow: auto;
  margin: 0;
}

.dashboard-action-grid .today-work-queue__item {
  border-bottom: 1px solid #edf0f5;
}

.dashboard-action-grid .today-work-queue__item:last-child {
  border-bottom: 0;
}

.dashboard-action-grid .today-work-queue-card {
  min-height: 56px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: #fff;
  padding: 8px 13px;
  box-shadow: none;
}

.dashboard-action-grid .today-work-queue-card--action-required {
  border-left-color: #0866ee;
}

.dashboard-action-grid .today-work-queue-card--waiting {
  border-left-color: #f79009;
}

.dashboard-action-grid .today-work-queue-card--completed-today {
  border-left-color: #17a34a;
}

.today-work-queue-card__container,
.today-work-queue-card__state-cell,
.today-work-queue-card__cell,
.today-work-queue-card__action {
  min-width: 0;
}

.today-work-queue-card__state-cell {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.today-work-queue-card__cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.today-work-queue-card__cell > span,
.today-work-queue-card__container .today-work-queue-card__eyebrow {
  display: none;
}

.today-work-queue-card__cell strong,
.today-work-queue-card__cell time {
  overflow: hidden;
  color: #344054;
  font-size: 10px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-action-grid .today-work-queue-card h3 {
  overflow: hidden;
  color: #0866ee;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-action-grid .today-work-queue-card__state,
.dashboard-action-grid .today-work-queue-card__priority {
  padding: 3px 6px;
  font-size: 8px;
}

.dashboard-action-grid .today-work-queue-card__state-dot {
  display: none;
}

.today-work-queue-card__action a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #9fc2ff;
  border-radius: 6px;
  color: #0866ee;
  padding: 5px 7px;
  font-size: 9px;
  font-weight: 650;
  text-decoration: none;
}

.dashboard-action-grid #todayWorkQueueHost {
  margin: 0;
}

.dashboard-notification-summary {
  padding: 0 16px;
}

.dashboard-notification-summary > header {
  min-height: 50px;
}

.container-operations-panel {
  overflow: hidden;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
}

.container-operations-panel__header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0f5;
  padding: 10px 14px;
}

.container-operations-panel__header h2 {
  margin: 0;
  color: #101828;
  font-size: 15px;
}

.container-operations-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.container-operations-toolbar label {
  margin: 0;
}

.container-operations-toolbar input,
.container-operations-toolbar select {
  width: 180px;
  min-height: 34px;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 10px;
}

.container-operations-toolbar select {
  width: 132px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.dashboard-operations-table-wrap {
  overflow: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.dashboard-operations-table-wrap table {
  min-width: 930px;
  border: 0;
}

.dashboard-operations-table-wrap th,
.dashboard-operations-table-wrap td {
  height: 38px;
  border-right: 0;
  padding: 7px 10px;
  font-size: 9px;
  white-space: nowrap;
}

.dashboard-operations-table-wrap tbody tr {
  cursor: pointer;
}

.dashboard-operations-table-wrap tbody tr.is-selected td:first-child {
  box-shadow: inset 3px 0 #0866ee;
}

.dashboard-status {
  display: inline-flex;
  border: 0;
  border-radius: 5px;
  background: #eef4ff;
  color: #075fd8;
  padding: 3px 7px;
  font-size: 9px;
}

.dashboard-status--empty-returned,
.dashboard-status--completed {
  background: #eaf8ef;
  color: #16733d;
}

.dashboard-status--pending,
.dashboard-status--action-required {
  background: #fff0ef;
  color: #b42318;
}

.dashboard-quickview {
  position: sticky;
  top: 78px;
  min-width: 0;
  min-height: 650px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
}

.dashboard-quickview > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #edf0f5;
  padding-bottom: 14px;
}

.dashboard-quickview h2 {
  margin: 0;
  color: #101828;
  font-size: 18px;
}

.dashboard-quickview p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 10px;
}

.dashboard-quickview dl {
  margin: 0;
}

.dashboard-quickview dl > div {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #edf0f5;
  padding: 14px 0;
}

.dashboard-quickview dt {
  color: #667085;
  font-size: 9px;
  font-weight: 650;
}

.dashboard-quickview dd {
  margin: 0;
  color: #1d2939;
  font-size: 10px;
}

.dashboard-quickview__actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.dashboard-quickview__actions .button-link {
  min-height: 40px;
  font-size: 10px;
}

.dashboard-secondary-data {
  margin-top: 18px;
}

@media (min-width: 901px) {
  body .login-access-badge {
    width: 300px;
    min-height: 430px;
    margin-top: 102px;
  }

  body .login-panel {
    transform: translateY(47px);
  }

  body .login-panel__body {
    padding: 34px 42px 26px;
  }

  body .login-panel p {
    margin-bottom: 22px;
  }

  body .login-form {
    gap: 8px;
  }

  body .login-options {
    margin: 0 0 8px;
  }

  body .login-panel__footer {
    padding: 18px 42px;
  }
}

@media (max-width: 1180px) {
  .operations-dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-quickview {
    position: static;
    min-height: 0;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-action-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-action-grid .today-work-queue__columns {
    display: none;
  }

  .dashboard-action-grid .today-work-queue-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
  }

  .dashboard-action-grid .today-work-queue-card__cell {
    grid-column: 1 / -1;
  }

  .dashboard-action-grid .today-work-queue-card__cell > span {
    display: block;
    color: #667085;
    font-size: 9px;
  }

  .dashboard-action-grid .today-work-queue-card__action {
    grid-column: 1 / -1;
  }

  .dashboard-action-grid .today-work-queue-card__action a {
    width: 100%;
    min-height: 44px;
  }

  .container-operations-panel__header {
    align-items: stretch;
    flex-direction: column;
  }

  .container-operations-toolbar,
  .container-operations-toolbar label,
  .container-operations-toolbar input,
  .container-operations-toolbar select {
    width: 100%;
  }

  .container-operations-toolbar {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .dashboard-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-metric-card {
    min-height: 108px;
  }

  .dashboard-quickview {
    display: none;
  }
}

/* Authoritative shell and density overrides. Keep this block last. */
@media (min-width: 901px) {
  html body .app-shell.operations-shell,
  html body .app-shell.operations-shell.is-sidebar-collapsed {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    width: 100%;
    min-height: 100svh;
    padding: 0;
  }

  html body .operations-shell .shell-sidebar.shell-navigation {
    position: sticky;
    inset: 0 auto auto 0;
    z-index: 80;
    display: flex;
    width: 68px;
    height: 100svh;
    min-height: 100svh;
    padding: 20px 10px 14px;
    overflow: visible;
    border-right: 1px solid #e7ecf3;
    background: rgba(255, 255, 255, .98);
    transform: none;
  }

  html body .shell-sidebar .brand {
    width: 48px;
    margin: 0 0 25px;
    color: transparent;
    font-size: 0;
    text-align: center;
  }

  html body .shell-sidebar .brand span {
    color: #0866ee;
    font-size: 15px;
    font-weight: 820;
  }

  html body .shell-sidebar .nav {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 48px;
    gap: 6px;
  }

  html body .shell-sidebar .nav > a {
    position: relative;
    display: grid;
    width: 42px;
    min-height: 42px;
    grid-template-columns: 1fr;
    place-items: center;
    border-radius: 10px;
    padding: 0;
  }

  html body .shell-sidebar .nav > a.active {
    background: #eaf2ff;
    color: #0866ee;
  }

  html body .shell-sidebar .nav-icon,
  html body .shell-sidebar .nav-icon svg {
    width: 19px;
    height: 19px;
  }

  html body .shell-sidebar .nav-label {
    position: absolute;
    left: 50px;
    top: 50%;
    z-index: 120;
    width: max-content;
    visibility: hidden;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 31, 57, .16);
    padding: 8px 11px;
    color: #17233b;
    font-size: 12px;
    font-weight: 650;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
  }

  html body .shell-sidebar .nav > a:hover .nav-label,
  html body .shell-sidebar .nav > a:focus-visible .nav-label {
    visibility: visible;
    opacity: 1;
  }

  html body .shell-sidebar .sidebar-userbar,
  html body .shell-sidebar .sidebar-collapse {
    display: none;
  }

  html body .operations-shell .app-main {
    grid-column: 2;
    width: 100%;
    min-width: 0;
  }

  html body .operations-shell .page {
    width: 100%;
    max-width: none;
    padding: 18px clamp(16px, 1.2vw, 26px) 28px;
  }
}

html body .operations-shell .adaptive-container-table table {
  font-size: 11px;
}

html body .operations-shell .adaptive-container-table th,
html body .operations-shell .adaptive-container-table td {
  height: 36px;
  min-height: 36px;
  padding: 6px 9px;
  border-bottom: 1px solid #edf1f5;
}

html body .operations-shell .adaptive-container-table th {
  background: #f8fafc;
  color: #5b6b80;
  font-size: 9px;
  font-weight: 720;
}

.adaptive-data-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  border-radius: 5px;
  background: #f2f4f7;
  padding: 3px 6px;
  color: #475467;
  font-size: 9px;
  font-weight: 680;
  line-height: 1.15;
}

.container-status {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  border: 1px solid color-mix(in srgb, currentColor 42%, transparent);
  border-radius: 8px;
  background: #f3f4f6;
  padding: 4px 7px;
  color: #586174;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
}

.container-status--danger { background: #fff0f2; color: #bd2f42; }
.container-status--active { background: #e9f2ff; color: #1767c7; }
.container-status--transit { background: #fff3df; color: #a25a00; }
.container-status--handoff { background: #f0ebff; color: #6841c6; }
.container-status--complete { background: #e8f7ed; color: #14733c; }
.container-status--cancelled { background: #edf0f4; color: #606b7d; }

.inspection-value--danger { color: #bd2f42; }
.inspection-value--active { color: #1767c7; }
.inspection-value--transit { color: #a25a00; }
.inspection-value--handoff { color: #6841c6; }
.inspection-value--complete { color: #14733c; }
.inspection-value--cancelled { color: #606b7d; }

.adaptive-data-chip--delivered-to-warehouse {
  background: #f2e9ff;
  color: #7a35b5;
}

.adaptive-data-chip--arrived,
.adaptive-data-chip--arrived-at-port {
  background: #ffe7ef;
  color: #c32862;
}

.adaptive-data-chip--available,
.adaptive-data-chip--available-for-pickup {
  background: #e6f0ff;
  color: #075fd8;
}

.adaptive-data-chip--pending,
.adaptive-data-chip--action-required,
.adaptive-data-chip--past-due {
  background: #fff0ef;
  color: #b42318;
}

.adaptive-data-chip--empty-returned,
.adaptive-data-chip--completed,
.adaptive-data-chip--paid,
.adaptive-data-chip--received {
  background: #e7f7ec;
  color: #14733c;
}

.adaptive-data-chip--cancelled {
  background: #eceff3;
  color: #596579;
}

.adaptive-data-chip--pre-alert,
.adaptive-data-chip--pre-alert-do {
  background: #e8f7ed;
  color: #177241;
}

.adaptive-data-chip--unpaid,
.adaptive-data-chip--not-received {
  background: #fff2df;
  color: #a85a00;
}

/* Edge-reveal navigation: the logo remains visible while page icons float. */
@media (min-width: 901px) {
  html body .app-shell.operations-shell,
  html body .app-shell.operations-shell.is-sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  html body .operations-shell .app-main {
    grid-column: 1;
  }

  html body .operations-shell .shell-sidebar.shell-navigation {
    position: fixed;
    inset: 0 auto 0 0;
    width: 5px;
    height: 100svh;
    padding: 72px 0 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: width 120ms ease, background-color 120ms ease,
      box-shadow 120ms ease, backdrop-filter 120ms ease;
  }

  html body .operations-shell .shell-sidebar.shell-navigation::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
  }

  html body .operations-shell .shell-sidebar.shell-navigation:hover,
  html body .operations-shell .shell-sidebar.shell-navigation:focus-within {
    width: 62px;
    border-right: 1px solid rgba(213, 222, 234, .75);
    background: rgba(248, 251, 255, .72);
    box-shadow: 8px 0 30px rgba(27, 49, 83, .09);
    backdrop-filter: blur(18px) saturate(145%);
  }

  html body .shell-sidebar .brand {
    position: fixed;
    top: 17px;
    left: 13px;
    z-index: 130;
    display: flex;
    width: 58px;
    height: 36px;
    margin: 0;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(219, 227, 238, .8);
    border-radius: 11px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 7px 22px rgba(26, 47, 80, .1);
    backdrop-filter: blur(14px) saturate(150%);
    color: #0f172a;
    font-size: 12px;
    line-height: 1;
  }

  html body .shell-sidebar .brand span {
    font-size: 13px;
  }

  html body .shell-sidebar .nav {
    position: absolute;
    top: 72px;
    left: 7px;
    width: 48px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-9px);
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
  }

  html body .shell-sidebar:hover .nav,
  html body .shell-sidebar:focus-within .nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  html body .shell-sidebar .nav-label {
    display: none;
  }

  html body .topbar {
    padding-left: 92px;
  }

  html body .operations-shell .operations-dashboard-heading {
    left: 92px;
  }
}

/* Right-edge floating Task cards with per-card proximity motion. */
html body #todayWorkQueueHost.floating-work-queue-host {
  position: fixed;
  top: 68px;
  right: 0;
  z-index: 105;
  width: 184px;
  max-width: none;
  max-height: calc(100svh - 84px);
  overflow: hidden;
  pointer-events: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  transform: none;
}

html body #todayWorkQueueHost.floating-work-queue-host:focus-within .today-work-queue,
html body #todayWorkQueueHost.floating-work-queue-host[data-revealed="true"] .today-work-queue,
html body #todayWorkQueueHost.floating-work-queue-host[data-pinned="true"] .today-work-queue {
  transform: translateX(0);
  pointer-events: auto;
}

html body .floating-work-queue-host .today-work-queue {
  display: grid;
  width: 100%;
  max-height: inherit;
  overflow: visible;
  gap: 5px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  pointer-events: none;
  transform: translateX(calc(100% - 6px));
  transition: transform 220ms cubic-bezier(.22, .8, .24, 1);
}

html body .floating-work-queue-host .today-work-queue__pin {
  display: grid;
  width: 24px;
  min-height: 24px;
  margin: 0 3px 0 auto;
  place-items: center;
  border: 1px solid rgba(204, 215, 229, .9);
  border-radius: 7px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 4px 12px rgba(29, 52, 84, .09);
  backdrop-filter: blur(14px) saturate(140%);
  color: #66758a;
  padding: 0;
}

html body .floating-work-queue-host .today-work-queue__pin[aria-pressed="true"] {
  border-color: rgba(8, 102, 238, .28);
  background: rgba(231, 241, 255, .92);
  color: #0866ee;
}

html body .floating-work-queue-host .today-work-queue__pin svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body .floating-work-queue-host .today-work-queue__list {
  display: grid;
  gap: 5px;
  margin: 0;
  width: 100%;
  max-height: calc(100svh - 118px);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1px 3px 8px 17px;
  list-style: none;
  scrollbar-width: none;
  scroll-snap-type: none;
  overscroll-behavior: contain;
}

html body .floating-work-queue-host .today-work-queue__list[data-fade-top="false"][data-fade-bottom="true"] {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 18px), transparent 100%);
}

html body .floating-work-queue-host .today-work-queue__list[data-fade-top="true"][data-fade-bottom="true"] {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

html body .floating-work-queue-host .today-work-queue__list[data-fade-top="true"][data-fade-bottom="false"] {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18px, #000 100%);
}

html body .floating-work-queue-host .today-work-queue__list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html body .floating-work-queue-host .today-work-queue__item {
  display: flex;
  width: 164px;
  justify-content: flex-end;
  background: transparent;
}

html body .floating-work-queue-host .today-work-queue-card {
  width: 164px;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid rgba(211, 220, 232, .92);
  border-left-width: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 5px 14px rgba(26, 46, 77, .075);
  backdrop-filter: blur(14px) saturate(140%);
  padding: 7px 9px;
  transform: translateX(calc(-24px * var(--work-queue-proximity, 0)));
  will-change: transform;
}

html body .floating-work-queue-host .today-work-queue-card--action-required {
  border-color: rgba(240, 68, 56, .38);
  border-left-color: #f04438;
  background: rgba(254, 243, 242, .94);
  box-shadow: -5px 4px 14px rgba(240, 68, 56, .15), 0 5px 12px rgba(26, 46, 77, .06);
}

html body .floating-work-queue-host .today-work-queue-card--progressing {
  border-color: rgba(245, 184, 46, .42);
  border-left-color: #f5b82e;
  background: rgba(255, 250, 235, .94);
  box-shadow: -5px 4px 14px rgba(245, 184, 46, .15), 0 5px 12px rgba(26, 46, 77, .06);
}

html body .floating-work-queue-host .today-work-queue-card--completed {
  border-color: rgba(18, 169, 90, .36);
  border-left-color: #12a95a;
  background: rgba(240, 253, 244, .94);
  box-shadow: -5px 4px 14px rgba(18, 169, 90, .14), 0 5px 12px rgba(26, 46, 77, .06);
}

html body .floating-work-queue-host .today-work-queue-card strong {
  font-size: 10px;
}

html body .floating-work-queue-host .today-work-queue-card time {
  margin-top: 3px;
  font-size: 8px;
}

@media (max-width: 900px) {
  html body .operations-shell .topbar {
    justify-content: flex-start;
  }

  html body .operations-shell .mobile-brand {
    display: flex;
    align-items: center;
    margin-right: auto;
    font-size: 16px;
    letter-spacing: -0.02em;
  }

  html body .operations-shell .mobile-nav-toggle {
    margin-left: auto;
  }

  html body #todayWorkQueueHost.floating-work-queue-host {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) body #todayWorkQueueHost.floating-work-queue-host .today-work-queue {
    transition: none;
  }

  html:not([data-motion="on"]) body .floating-work-queue-host .today-work-queue-card {
    transform: none;
    transition: none;
  }
}

html[data-motion="off"] body #todayWorkQueueHost.floating-work-queue-host .today-work-queue {
  transition: none;
}

html[data-motion="off"] body .floating-work-queue-host .today-work-queue-card {
  transform: none;
  transition: none;
}
