a {
  color: var(--brand-700);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[hidden] {
  display: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.panel,
.metric,
.login-panel,
.toolbar {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-xs);
}

.panel {
  margin-bottom: 18px;
  padding: 20px;
}

.panel:hover {
  border-color: var(--border);
}

.panel-head {
  min-height: 34px;
  margin-bottom: 15px;
}

.panel h2,
.toolbar h2,
.operation-switch h2 {
  color: var(--text-strong);
  font-size: 17px;
  letter-spacing: -.01em;
}

.section-label {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--brand-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

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

.dashboard-metrics .metric strong {
  font-size: clamp(22px, 1.8vw, 29px);
  white-space: nowrap;
}

.metric {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  padding: 19px 20px;
}

.metric::before {
  top: 0;
  bottom: auto;
  width: 100%;
  height: 3px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--brand-600), var(--cyan-500));
}

.metric::after {
  position: absolute;
  right: -25px;
  bottom: -32px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: var(--brand-50);
  content: "";
}

.metric span {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.metric strong {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--text-strong);
  font-size: clamp(25px, 2.2vw, 32px);
  letter-spacing: -.04em;
}

.metric small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: var(--text-subtle);
}

.toolbar {
  margin-bottom: 16px;
  padding: 14px 16px;
}

.filters,
.actions,
.inline-form,
.row-form {
  gap: 8px;
}

input,
select,
textarea {
  min-height: var(--control-height);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--text-strong);
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #aebed2;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-focus);
}

input::placeholder,
textarea::placeholder {
  color: #9ba8b9;
}

input[readonly],
input:disabled,
select:disabled,
textarea:disabled {
  background: #f0f3f7;
  color: var(--text-muted);
}

label {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

label input,
label select,
label textarea {
  font-size: 14px;
  font-weight: 400;
}

label.check {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: max-content;
  min-height: var(--control-height);
  cursor: pointer;
}

label.check input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--brand-600);
  box-shadow: none;
}

.button {
  min-height: var(--control-height);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.button:hover {
  border-color: #a7b6c9;
  background: var(--surface-muted);
  color: var(--text-strong);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 35, 62, .08);
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--brand-600);
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  color: #fff;
  box-shadow: 0 5px 14px rgba(31, 99, 233, .22);
}

.button.primary:hover {
  border-color: var(--brand-700);
  background: var(--brand-700);
  color: #fff;
}

.button.danger,
.button.danger-solid {
  border-color: #e3a3a7;
  background: var(--danger-100);
  color: var(--danger-700);
}

.button.danger-solid {
  border-color: var(--danger-700);
  background: var(--danger-700);
  color: #fff;
}

.button.ghost {
  background: transparent;
  box-shadow: none;
}

.button.small,
.button.tiny {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 11px;
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.table-scroll {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: #fff;
  scrollbar-gutter: stable;
}

.panel > .table-scroll {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  position: sticky;
  z-index: 3;
  top: 0;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  background: #f5f8fc;
  color: #506078;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf0f5;
  color: var(--text);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #f8fbff;
}

td a {
  color: var(--brand-700);
}

.dense tbody td {
  padding-top: 9px;
  padding-bottom: 9px;
}

.badge {
  min-height: 23px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .01em;
}

.badge.IN_STOCK,
.badge.order-COMPLETED,
.badge.approval-APPROVED,
.badge.active,
.badge.test-ok {
  border-color: #bde8cf;
  background: var(--success-100);
  color: var(--success-700);
}

.badge.PARTIAL_OUT,
.badge.order-SUBMITTED,
.badge.approval-PENDING,
.badge.priority-use {
  border-color: #f0d28b;
  background: var(--warning-100);
  color: var(--warning-700);
}

.badge.OUTBOUND,
.badge.order-APPROVED {
  border-color: #bfd4f8;
  background: var(--info-100);
  color: var(--info-700);
}

.badge.SCRAPPED,
.badge.ABNORMAL,
.badge.order-REJECTED,
.badge.approval-REJECTED {
  border-color: #f0bfc3;
  background: var(--danger-100);
  color: var(--danger-700);
}

.badge.order-DRAFT,
.badge.order-CANCELLED,
.badge.approval-WAITING,
.badge.approval-CANCELLED {
  border-color: var(--border);
  background: #eef2f6;
  color: #536176;
}

.toast-viewport {
  position: fixed;
  z-index: 1200;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  display: grid;
  width: min(410px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  gap: 11px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: none;
  scrollbar-width: none;
}

.toast-viewport::-webkit-scrollbar {
  display: none;
}

.toast {
  --toast-accent: var(--info-700);
  --toast-soft: var(--info-100);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 36px;
  align-items: center;
  min-height: 78px;
  padding: 14px 11px 15px 14px;
  overflow: hidden;
  border: 1px solid rgba(191, 207, 228, .78);
  border-radius: 15px;
  background: rgba(255, 255, 255, .98);
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--toast-soft) 72%, transparent), transparent 11rem),
    rgba(255, 255, 255, .96);
  box-shadow:
    0 24px 64px rgba(7, 24, 43, .18),
    0 6px 18px rgba(7, 24, 43, .08),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px) saturate(135%);
  pointer-events: auto;
  animation: toast-enter 320ms cubic-bezier(.2, .85, .25, 1) both;
}

.toast::before {
  position: absolute;
  z-index: -1;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--toast-accent);
  content: "";
}

.toast-success {
  --toast-accent: var(--success-700);
  --toast-soft: var(--success-100);
}

.toast-warning {
  --toast-accent: var(--warning-700);
  --toast-soft: var(--warning-100);
}

.toast-error {
  --toast-accent: var(--danger-700);
  --toast-soft: var(--danger-100);
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--toast-accent) 20%, transparent);
  border-radius: 11px;
  background: var(--toast-soft);
  background: color-mix(in srgb, var(--toast-soft) 84%, #fff);
  color: var(--toast-accent);
}

.toast-icon svg,
.toast-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.toast-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 0 10px 0 2px;
}

.toast-copy strong {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

.toast-copy > span {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.toast-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-subtle);
  cursor: pointer;
}

.toast-close:hover,
.toast-close:focus-visible {
  background: rgba(20, 32, 51, .065);
  color: var(--text-strong);
  outline: none;
}

.toast-close:focus-visible {
  box-shadow: var(--shadow-focus);
}

.toast-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--toast-accent);
  background: linear-gradient(90deg, var(--toast-accent), color-mix(in srgb, var(--toast-accent) 58%, #fff));
  transform-origin: left center;
  animation: toast-countdown var(--toast-duration, 7000ms) linear forwards;
}

.toast.is-paused .toast-progress {
  animation-play-state: paused;
}

.toast.is-leaving {
  pointer-events: none;
  animation: toast-leave 190ms ease-in both;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translate3d(26px, -8px, 0) scale(.975);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes toast-leave {
  to {
    opacity: 0;
    transform: translate3d(20px, 0, 0) scale(.98);
  }
}

@keyframes toast-countdown {
  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast.is-leaving {
    animation-duration: 1ms;
  }

  .toast-progress {
    display: none;
  }
}

.empty {
  color: var(--text-muted);
}

.field-help {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.warning-text {
  color: var(--warning-700);
}

.label-info .label-ownership {
  justify-self: start;
  padding: 3px 8px;
  border: 1px solid #a9c7f6;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 30px 18px;
  color: var(--text-muted);
  text-align: center;
}

.empty-state-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 800;
}

.alert-strip,
.status-grid,
.overview-grid,
.report-grid {
  gap: 12px;
}

.alert-stat,
.status-chip,
.overview-grid div {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #f9fbfe);
}

.alert-stat:hover,
.status-chip:hover {
  border-color: #b8c9e1;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.alert-row {
  border-bottom-color: var(--border-soft);
}

.approval-timeline-step {
  grid-template-columns: 40px minmax(0, 1fr);
}

.approval-timeline-marker,
.workflow-step-number {
  width: 34px;
  height: 34px;
  border: 4px solid var(--brand-100);
  background: var(--brand-600);
  box-shadow: 0 0 0 1px #c8daf8;
}

.approval-timeline-copy,
.approval-route-selector,
.workflow-step-editor,
.workflow-config-card {
  border-color: var(--border);
  border-radius: 11px;
  background: var(--surface-muted);
}

.approval-route-selector {
  border-left: 3px solid var(--brand-500);
  background: var(--brand-50);
}

.location-map-scroll {
  border-color: var(--border);
  background: #eef3f9;
}

.location-tile,
.location-card {
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.location-tile.occupied {
  border-color: #8fb5f2;
  background: #edf4ff;
}

.inventory-scope-switcher,
.warehouse-switcher {
  display: grid;
  gap: 14px;
}

.scope-switcher-head,
.warehouse-switcher-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scope-switcher-head h2,
.warehouse-switcher h2 {
  margin: 0;
}

.purpose-tabs,
.warehouse-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.purpose-tabs .button b {
  min-width: 22px;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 35, 62, .08);
  font-size: 11px;
}

.purpose-tabs .button.active b {
  background: rgba(255, 255, 255, .2);
}

.warehouse-groups {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.warehouse-group {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.warehouse-group > span {
  padding-top: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.warehouse-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.warehouse-pill:hover {
  border-color: var(--brand-400);
  background: var(--brand-50);
  text-decoration: none;
}

.warehouse-pill.active {
  border-color: var(--brand-600);
  background: var(--brand-600);
  color: #fff;
}

.badge.purpose-maintenance {
  background: #eaf2ff;
  color: #2359a8;
}

.badge.purpose-repair {
  background: #fff1e7;
  color: #a4470b;
}

.location-tile.masked-occupancy {
  border-color: #b9c3cf;
  background: repeating-linear-gradient(135deg, #f3f5f8, #f3f5f8 9px, #e9edf2 9px, #e9edf2 18px);
  color: var(--text-muted);
  box-shadow: none;
}

.login-main .page-content {
  display: grid;
  width: min(900px, 100%);
  min-height: calc(100vh - 48px);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.login-panel {
  width: min(900px, 100%);
  min-height: 500px;
  padding: 0;
  overflow: hidden;
  grid-template-columns: 1.12fr .88fr;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 80px rgba(18, 47, 84, .18);
}

.login-panel::before {
  display: none;
}

.login-copy {
  position: relative;
  overflow: hidden;
  padding: 54px;
  background:
    radial-gradient(circle at 100% 0, rgba(54, 151, 255, .25), transparent 19rem),
    linear-gradient(145deg, var(--nav-900), #123d67);
  color: #fff;
}

.login-copy::after {
  position: absolute;
  right: -90px;
  bottom: -100px;
  width: 290px;
  height: 290px;
  border: 44px solid rgba(255, 255, 255, .045);
  border-radius: 50%;
  content: "";
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 46px;
}

.login-brand .brand-mark {
  flex: 0 0 auto;
}

.login-brand strong {
  display: block;
  font-size: 16px;
}

.login-brand span {
  color: #a8bfd9;
  font-size: 11px;
}

.login-copy h1 {
  position: relative;
  z-index: 1;
  max-width: 360px;
  color: #fff;
  font-size: 34px;
  line-height: 1.3;
}

.login-copy p {
  position: relative;
  z-index: 1;
  max-width: 370px;
  color: #bdcde0;
}

.login-feature-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.login-feature-list span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #dbe8f5;
  font-size: 11px;
}

.login-form-wrap {
  display: grid;
  align-content: center;
  padding: 52px 44px;
  background: rgba(255, 255, 255, .97);
}

.login-form-head {
  margin-bottom: 24px;
}

.login-form-head h2 {
  margin: 0 0 7px;
  color: var(--text-strong);
  font-size: 23px;
}

.login-form-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.login-form {
  gap: 17px;
}

.login-form label {
  gap: 7px;
}

.login-form input {
  min-height: 46px;
}

.login-form .button {
  min-height: 46px;
  margin-top: 4px;
}

.login-record {
  position: relative;
  z-index: 1;
  justify-self: stretch;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.login-record a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
}

.login-record a:hover,
.login-record a:focus-visible {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
  gap: 18px;
  margin-bottom: 18px;
}

.workbench-grid > .panel {
  margin: 0;
}

.todo-list,
.activity-list {
  display: grid;
  gap: 9px;
}

.todo-item,
.activity-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding: 12px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: #fff;
}

.todo-item:hover,
.activity-item:hover {
  border-color: #b8c9e1;
  background: var(--brand-50);
  text-decoration: none;
}

.todo-item span,
.activity-item span {
  color: var(--text-muted);
  font-size: 12px;
}

.todo-item small,
.activity-item small {
  grid-column: 1;
  color: var(--text-subtle);
}

.list-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #eef2f7;
}

.list-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.list-tabs a:hover,
.list-tabs a.active {
  background: #fff;
  color: var(--brand-700);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}

.list-tabs b {
  min-width: 19px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 10px;
  text-align: center;
}

.search-field {
  position: relative;
  min-width: min(300px, 100%);
}

.search-field input {
  width: 100%;
  padding-left: 36px;
}

.search-field::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  color: var(--text-subtle);
  content: "⌕";
  font-size: 17px;
  transform: translateY(-50%);
}

.mobile-shell {
  width: 100%;
  max-width: 860px;
}

.mobile-card,
.mobile-form-section {
  border-radius: 14px;
}

.mobile-action-hub {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(47, 118, 246, .1), transparent 18rem),
    #fff;
}

.mobile-scan-button {
  min-height: 50px;
  border-radius: 11px;
}

.mobile-operation-tabs {
  gap: 8px;
}

.mobile-operation-tabs .button {
  min-height: 44px;
}

.mobile-item {
  min-height: 64px;
  padding: 13px 14px;
  border-color: var(--border-soft);
  border-radius: 11px;
  box-shadow: var(--shadow-xs);
}

.mobile-item:hover {
  border-color: #b8cae4;
  background: var(--brand-50);
}

.mobile-status-card {
  border-left: 4px solid var(--brand-500);
}

.mobile-sticky-actions {
  z-index: 35;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 -10px 26px rgba(21, 45, 77, .09);
  backdrop-filter: blur(12px);
}

.mobile-sticky-actions .button {
  min-height: 48px;
}

.mobile-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.mobile-order-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.mobile-order-filter .wide,
.mobile-order-filter .button {
  grid-column: 1 / -1;
}

.mobile-summary-card {
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: #fff;
}

.mobile-summary-card span {
  color: var(--text-muted);
  font-size: 11px;
}

.mobile-summary-card strong {
  color: var(--text-strong);
  font-size: 21px;
}

.mobile-summary-card.primary {
  border-color: #bed2f7;
  background: var(--brand-50);
}

.mobile-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 4px 0 16px;
  padding: 0;
  list-style: none;
}

.mobile-stepper li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--text-subtle);
  font-size: 10px;
  text-align: center;
}

.mobile-stepper li::before {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  color: var(--text-muted);
  content: attr(data-step);
  font-weight: 800;
}

.mobile-stepper li::after {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #dbe2eb;
  content: "";
}

.mobile-stepper li:last-child::after {
  display: none;
}

.mobile-stepper li.complete::before,
.mobile-stepper li.active::before {
  border-color: var(--brand-600);
  background: var(--brand-600);
  color: #fff;
}

.mobile-stepper li.complete::after {
  background: var(--brand-600);
}

.mobile-stepper li.active {
  color: var(--brand-700);
  font-weight: 700;
}

.step-navigation {
  display: flex;
  gap: 9px;
  justify-content: space-between;
  margin: 12px 0 16px;
}

.step-navigation .button {
  flex: 1;
}

.js-enhanced .mobile-order-form [data-form-step][hidden] {
  display: none !important;
}

.mobile-approval-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 10px;
}

.mobile-approval-actions > form,
.mobile-approval-actions .button {
  width: 100%;
}

.mobile-approval-actions .button {
  min-height: 48px;
}

.attachment-capture input[type="file"] {
  min-height: 46px;
  padding: 8px;
}

.attachment-capture input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  border: 0;
  border-radius: 6px;
  background: var(--brand-100);
  color: var(--brand-700);
  font: inherit;
  font-weight: 700;
}

.scope-readonly {
  border-color: #d4dbe5 !important;
  background: #eef1f5 !important;
  filter: grayscale(.45) !important;
  opacity: .76;
}

.mobile-filter-details,
.mobile-disclosure,
.mobile-inline-disclosure {
  min-width: 0;
}

.mobile-filter-details > summary,
.mobile-disclosure > summary,
.mobile-inline-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  color: var(--text-strong);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.mobile-filter-details > summary::-webkit-details-marker,
.mobile-disclosure > summary::-webkit-details-marker,
.mobile-inline-disclosure > summary::-webkit-details-marker {
  display: none;
}

.mobile-filter-details > summary::after,
.mobile-disclosure > summary::after,
.mobile-inline-disclosure > summary::after {
  flex: 0 0 auto;
  color: var(--brand-600);
  content: "＋";
  font-size: 18px;
}

.mobile-filter-details[open] > summary::after,
.mobile-disclosure[open] > summary::after,
.mobile-inline-disclosure[open] > summary::after {
  content: "－";
}

.mobile-filter-details > summary span,
.mobile-disclosure > summary b {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
}

.mobile-disclosure > summary > span {
  display: grid;
  gap: 2px;
}

.mobile-disclosure > summary small {
  color: var(--text-subtle);
  font-size: 10px;
  font-weight: 650;
}

.mobile-disclosure > summary strong {
  font-size: 15px;
}

.mobile-filter-details form,
.disclosure-body,
.mobile-inline-disclosure > form,
.mobile-inline-disclosure > .mobile-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.mobile-essential-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.mobile-essential-actions .button {
  width: 100%;
  min-height: 48px;
}

.mobile-essential-kv dd strong {
  color: var(--brand-700);
  font-size: 18px;
}

.reel-essential-card {
  border-top: 4px solid var(--brand-600);
}

.mobile-inline-disclosure {
  margin: 16px 0;
  padding: 0 2px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.inventory-task-list .mobile-item::after {
  align-self: center;
  color: var(--brand-600);
  content: "›";
  font-size: 24px;
  grid-column: 2;
  grid-row: 1 / span 3;
}

.inventory-task-list .mobile-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.inventory-task-list .mobile-item > * {
  grid-column: 1;
}

.password-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.password-form {
  display: grid;
  gap: 17px;
}

.password-form label {
  display: grid;
  gap: 7px;
}

.password-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.password-actions .button {
  width: 100%;
  min-height: 48px;
}

.password-guide {
  align-content: start;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(47, 118, 246, .13), transparent 15rem),
    #fff;
}

.password-guide-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--brand-600), var(--cyan-600));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31, 99, 233, .2);
}

.password-guide ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--text-muted);
  list-style: none;
}

.password-guide li {
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
}

.password-guide li::before {
  position: absolute;
  top: .12em;
  left: 0;
  color: var(--cyan-600);
  content: "✓";
  font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
