:root {
  color-scheme: light;
  --yc-primary: #2563eb;
  --yc-primary-strong: #1d4ed8;
  --yc-surface: #ffffff;
  --yc-surface-soft: #f6f8fb;
  --yc-page: #f6f8fb;
  --yc-border: #d8e0ea;
  --yc-border-strong: #aebccd;
  --yc-text: #172033;
  --yc-muted: #5d6b7f;
  --yc-amber: #d97706;
  --yc-green: #0f766e;
  --yc-radius-control: 8px;
  --yc-radius-card: 12px;
  --yc-radius-panel: 16px;
  --yc-radius-modal: 18px;
  --yc-shadow-card: 0 1px 2px rgba(23, 32, 51, 0.05), 0 10px 26px rgba(23, 32, 51, 0.06);
  --yc-shadow-float: 0 20px 54px rgba(23, 32, 51, 0.18);
  --yc-ring: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--yc-text);
  background: linear-gradient(180deg, #f8fafc 0%, var(--yc-page) 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button:not(:disabled),
a[href],
select {
  cursor: pointer;
}

button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}

button,
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  border-radius: var(--yc-radius-control) !important;
}

input:not([type="checkbox"]):not([type="radio"]),
select {
  min-height: 44px;
}

textarea {
  min-height: 96px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--yc-primary);
  outline-offset: 2px;
  box-shadow: var(--yc-ring);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

button {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

button:not(:disabled):active {
  transform: translateY(1px);
}

.password-toggle {
  min-width: 44px !important;
  min-height: 44px !important;
}

.password-toggle:not(:disabled):active {
  transform: translateY(-50%) scale(0.98) !important;
}

[class*="tracking-"] {
  letter-spacing: 0 !important;
}

.fixed {
  position: fixed;
}

.inset-0 {
  inset: 0;
}

.inset-x-0 {
  right: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.left-1\/2 {
  left: 50%;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.z-\[70\] {
  z-index: 70;
}

.z-\[80\] {
  z-index: 80;
}

.z-\[90\] {
  z-index: 90;
}

.rounded-xl,
.rounded-2xl,
[class*="rounded-[20px]"],
[class*="rounded-[22px]"] {
  border-radius: var(--yc-radius-card) !important;
}

[class*="rounded-[24px]"],
[class*="rounded-[26px]"],
[class*="rounded-[28px]"] {
  border-radius: var(--yc-radius-panel) !important;
}

[class*="rounded-[30px]"],
[class*="rounded-t-[30px]"] {
  border-radius: var(--yc-radius-modal) !important;
}

[class*="rounded-t-[30px]"] {
  border-radius: var(--yc-radius-modal) var(--yc-radius-modal) 0 0 !important;
}

button.rounded-xl,
button.rounded-2xl,
input.rounded-xl,
input.rounded-2xl,
select.rounded-xl,
select.rounded-2xl,
textarea.rounded-xl,
textarea.rounded-2xl {
  border-radius: var(--yc-radius-control) !important;
}

.shadow-sm,
.shadow-lg,
.shadow-xl {
  box-shadow: var(--yc-shadow-card) !important;
}

.shadow-2xl {
  box-shadow: var(--yc-shadow-float) !important;
}

.bg-white,
.bg-white\/95,
.bg-white\/96 {
  border-color: var(--yc-border);
}

.workbench-table-wrap {
  border-color: var(--yc-border) !important;
  border-radius: var(--yc-radius-panel) !important;
  box-shadow: var(--yc-shadow-card) !important;
}

.workbench-table {
  font-variant-numeric: tabular-nums;
}

.workbench-table thead th {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f8fafc;
  color: #334155;
}

.workbench-table th,
.workbench-table td {
  border-color: #e5eaf0 !important;
  line-height: 1.55;
}

.workbench-table tbody tr:nth-child(even) td {
  background-color: #fcfdff;
}

.workbench-table tbody tr:hover td {
  background-color: #eef6ff !important;
}

.workbench-table tbody tr.workbench-row-selected td {
  background-color: #eff6ff !important;
}

.workbench-table tbody tr.workbench-row-selected td:first-child {
  box-shadow: inset 3px 0 0 var(--yc-primary);
}

.workbench-row-actions .btn-primary,
.workbench-row-actions .btn-outline,
.detail-drawer-footer .btn-primary,
.detail-drawer-footer .btn-outline,
.task-card-actions .btn-primary,
.task-card-actions .btn-outline {
  border-radius: var(--yc-radius-control) !important;
  font-weight: 700 !important;
}

.desktop-workbench-list,
.desktop-insight-drawer,
.board-scroll {
  scrollbar-color: rgba(100, 116, 139, 0.42) transparent;
  scrollbar-width: thin;
}

.announcement-marquee-track {
  animation-duration: 34s !important;
}

.announcement-marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.announcement-marquee:hover .announcement-marquee-track {
  animation-play-state: paused;
}

.workbench-search-clear {
  min-height: 32px !important;
}

.workbench-search-clear:not(:disabled):active {
  transform: translateY(-50%) scale(0.96) !important;
}

.app-loading-panel {
  border-radius: var(--yc-radius-panel);
  border: 1px solid var(--yc-border);
  background: var(--yc-surface);
  box-shadow: var(--yc-shadow-card);
}

.login-shell {
  background:
    radial-gradient(circle at 14% 18%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(135deg, #f6f8fb 0%, #eef3f8 52%, #ffffff 100%);
}

.login-brief {
  color: var(--yc-text);
}

.login-brief-kicker,
.dispatch-eyebrow {
  color: var(--yc-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.login-brief h1 {
  max-width: 520px;
  margin: 18px 0 0;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.login-brief p {
  max-width: 480px;
  margin: 22px 0 0;
  color: var(--yc-muted);
  font-size: 17px;
  line-height: 1.9;
}

.login-route-card {
  display: grid;
  max-width: 560px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--yc-border);
  border-radius: var(--yc-radius-panel);
  background: var(--yc-border);
  box-shadow: var(--yc-shadow-card);
}

.login-route-card span {
  background: rgba(255, 255, 255, 0.92);
  padding: 18px 14px;
  color: var(--yc-text);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.dispatch-track {
  border: 1px solid var(--yc-border);
  border-radius: var(--yc-radius-panel);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: var(--yc-shadow-card);
  padding: 14px 16px;
}

.dispatch-track-compact {
  padding: 12px;
}

.dispatch-track-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.dispatch-title {
  margin-top: 2px;
  color: var(--yc-text);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.dispatch-note {
  max-width: 320px;
  color: var(--yc-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

.dispatch-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e5eaf0;
  border-radius: 14px;
  background: #e5eaf0;
  gap: 1px;
}

.dispatch-stop {
  display: flex;
  min-width: 0;
  gap: 10px;
  background: #fff;
  padding: 12px;
}

.dispatch-stop-marker {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--yc-primary);
  font-size: 12px;
  font-weight: 800;
}

.dispatch-stop-label {
  color: var(--yc-muted);
  font-size: 11px;
  font-weight: 700;
}

.dispatch-stop-value {
  margin-top: 2px;
  color: var(--yc-text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.dispatch-stop-hint {
  margin-top: 4px;
  color: #728197;
  font-size: 11px;
  line-height: 1.4;
}

.dispatch-stop-amber .dispatch-stop-marker {
  background: #fff7ed;
  color: var(--yc-amber);
}

.dispatch-stop-green .dispatch-stop-marker {
  background: #ecfdf5;
  color: var(--yc-green);
}

.dispatch-stop-slate .dispatch-stop-marker {
  background: #f1f5f9;
  color: #475569;
}

.erp-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 32px);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--yc-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.08);
}

.erp-rail {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid #dfe6ef;
  background: #172033;
  color: #fff;
  padding: 16px;
}

.erp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.erp-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #2563eb;
}

.erp-brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.erp-brand-subtitle,
.erp-user-role,
.erp-nav-copy small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.erp-user-card {
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
}

.erp-user-name {
  font-size: 14px;
  font-weight: 750;
}

.erp-nav {
  display: grid;
  gap: 6px;
}

.erp-nav-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px !important;
  background: transparent;
  padding: 10px;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
}

.erp-nav-item:hover,
.erp-nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.erp-nav-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
  font-weight: 750;
}

.erp-nav-count {
  min-width: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.erp-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.erp-workspace {
  min-width: 0;
  min-height: 0;
  background: #f6f8fb;
  padding: 14px;
}

.erp-command-bar,
.erp-table-head,
.erp-pagination,
.erp-batch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.erp-command-bar {
  border: 1px solid var(--yc-border);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
}

.erp-kicker {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.erp-command-title h1,
.erp-table-head h2 {
  margin: 2px 0 0;
  color: var(--yc-text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.erp-search-wrap {
  display: flex;
  min-width: 260px;
  flex: 1;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--yc-border);
  border-radius: 10px;
  background: #f8fafc;
  padding: 0 10px;
}

.erp-search-wrap input {
  min-height: 38px;
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
}

.erp-search-wrap button,
.erp-command-actions button,
.erp-command-actions select,
.erp-pagination button,
.erp-batch-bar button {
  min-height: 36px;
  border: 1px solid var(--yc-border);
  border-radius: 9px !important;
  background: #fff;
  padding: 0 12px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.erp-command-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.erp-command-actions .is-primary,
.erp-command-actions button.is-primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.erp-section-tabs {
  display: flex;
  gap: 6px;
  margin: 10px 0;
  overflow-x: auto;
}

.erp-section-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--yc-border);
  border-radius: 10px !important;
  background: #fff;
  padding: 8px 11px;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
}

.erp-section-tabs button.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.erp-section-tabs strong {
  color: inherit;
  font-size: 11px;
}

.erp-master-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 12px;
  min-height: 0;
}

.erp-admin-embedded {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--yc-border);
  border-radius: 14px;
  background: #fff;
}

.erp-payout-embedded {
  overflow: auto;
  padding: 14px;
}

.erp-payout-page {
  min-width: 0;
}

.erp-master-panel,
.erp-cockpit {
  min-width: 0;
  border: 1px solid var(--yc-border);
  border-radius: 14px;
  background: #fff;
}

.erp-master-panel {
  overflow: hidden;
  padding: 12px;
}

.erp-cockpit {
  max-height: calc(100vh - 124px);
  overflow-y: auto;
  padding: 10px;
}

.desktop-summary-panel {
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
}

.desktop-summary-panel.is-data {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.desktop-summary-panel.is-settlement {
  border-color: #ddd6fe;
  background: #f5f3ff;
}

.desktop-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.desktop-summary-kicker {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.desktop-summary-title {
  margin-top: 2px;
  color: var(--yc-text);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
}

.desktop-summary-desc {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.desktop-summary-count {
  flex: 0 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  padding: 5px 10px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.desktop-summary-primary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.desktop-summary-primary-card,
.desktop-summary-chip {
  border: 1px solid #dbe5f1;
  background: #fff;
}

.desktop-summary-primary-card {
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 8px;
  border-radius: 11px;
  padding: 9px 10px;
}

.desktop-summary-primary-card span,
.desktop-summary-chip span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.desktop-summary-primary-card strong {
  display: block;
  margin-top: 0;
  color: var(--yc-text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.desktop-summary-primary-card small {
  display: block;
  grid-column: 1 / -1;
  margin-top: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-summary-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.desktop-summary-chip-grid.is-dense {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.desktop-summary-chip {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 11px;
  padding: 8px 10px;
}

.desktop-summary-chip strong {
  flex: 0 0 auto;
  color: var(--yc-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.desktop-summary-primary-card.tone-blue,
.desktop-summary-chip.tone-blue {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.desktop-summary-primary-card.tone-rose,
.desktop-summary-chip.tone-rose {
  border-color: #fed7aa;
  background: #fff7ed;
}

.desktop-summary-primary-card.tone-emerald,
.desktop-summary-chip.tone-emerald {
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.desktop-summary-primary-card.tone-amber,
.desktop-summary-chip.tone-amber {
  border-color: #fde68a;
  background: #fffbeb;
}

.desktop-summary-primary-card.tone-violet,
.desktop-summary-chip.tone-violet {
  border-color: #ddd6fe;
  background: #f5f3ff;
}

.erp-table-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.erp-table-meta span {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  padding: 4px 8px;
}

.erp-filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  padding: 8px 10px;
}

.erp-filter-pills span {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.erp-filter-pills button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 4px;
  border: 1px solid #bfdbfe;
  border-radius: 999px !important;
  background: #fff;
  padding: 0 9px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
}

.erp-filter-pills button.is-muted {
  margin-left: auto;
  border-color: transparent;
  background: transparent;
  color: #64748b;
}

.erp-grid-scroll {
  margin-top: 10px;
  overflow: auto;
}

.erp-batch-bar {
  margin-top: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  padding: 8px 10px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 750;
}

.erp-pagination {
  margin-top: 10px;
  border-top: 1px solid #eef2f7;
  padding-top: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.mobile-erp-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--yc-border);
  border-radius: 15px;
  background: #fff;
  padding: 8px 10px;
  box-shadow: var(--yc-shadow-card);
}

.mobile-erp-command-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
}

.mobile-erp-command-actions button {
  min-height: 34px;
  border: 1px solid #dbe3ee;
  border-radius: 11px !important;
  background: #f8fafc;
  padding: 0 10px;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.mobile-erp-command-actions button.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.mobile-erp-command-actions button.is-primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.mobile-segment-panel {
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  box-shadow: var(--yc-shadow-card);
}

.mobile-segment-panel.is-compact {
  padding: 7px;
}

.mobile-segment-label {
  display: none;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
}

.mobile-segment-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-segment-scroll::-webkit-scrollbar {
  display: none;
}

.mobile-segment-scroll button {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 11px !important;
  background: #f8fafc;
  padding: 0 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.mobile-segment-scroll button.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.mobile-segment-scroll strong {
  min-width: 19px;
  border-radius: 999px;
  background: #e2e8f0;
  padding: 1px 6px;
  color: #334155;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.mobile-segment-scroll button.is-active strong {
  background: #2563eb;
  color: #fff;
}

.mobile-workbench-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  box-shadow: var(--yc-shadow-card);
}

.mobile-workbench-search-input {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #f8fafc;
  padding: 0 9px;
  color: #94a3b8;
}

.mobile-workbench-search-input input {
  min-width: 0;
  min-height: 36px;
  flex: 1;
  border: 0;
  background: transparent;
  color: #172033;
  font-size: 13px;
  outline: none;
}

.mobile-workbench-search-input button {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px !important;
  background: #e2e8f0;
  color: #64748b;
}

.mobile-workbench-search-actions {
  display: flex;
  gap: 6px;
}

.mobile-workbench-search-actions button {
  min-height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 11px !important;
  background: #f8fafc;
  padding: 0 10px;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
}

.mobile-workbench-search-actions button.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.buyer-materials-reminder {
  display: flex;
  gap: 12px;
  border: 1px solid #f59e0b;
  border-radius: 16px;
  background: #fffbeb;
  padding: 13px;
}

.buyer-materials-reminder-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 12px;
  background: #f97316;
  color: #fff;
}

.buyer-materials-reminder-title {
  color: #9a3412;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.buyer-materials-reminder-copy {
  margin-top: 4px;
  color: #b45309;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}

.mobile-sheet-logout {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  border: 1px solid #fecaca;
  border-radius: 999px !important;
  background: #fff1f2;
  padding: 0 10px;
  color: #be123c;
  font-size: 12px;
  font-weight: 850;
}

.mobile-center-dialog {
  max-height: min(520px, calc(100dvh - 96px));
}

.mobile-center-dialog > div:last-child {
  max-height: calc(100dvh - 210px);
  overflow-y: auto;
}

.mobile-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-admin-stack {
  display: grid;
  gap: 12px;
}

.mobile-admin-group {
  display: grid;
  gap: 7px;
}

.mobile-admin-section-title {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.mobile-admin-role-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mobile-admin-role-row span {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 850;
}

.mobile-admin-entry {
  min-height: 52px;
  border-radius: 14px !important;
  padding: 10px 12px !important;
}

.mobile-admin-primary {
  grid-column: auto;
}

.mobile-erp-dock {
  display: none;
}

.mobile-erp-dock button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border: 1px solid #e2e8f0;
  border-radius: 16px !important;
  background: #f8fafc;
  padding: 9px;
  text-align: left;
}

.mobile-erp-dock button.is-active {
  border-color: #2563eb;
  background: #eff6ff;
}

.mobile-erp-dock-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 10px;
  background: #172033;
  color: #fff;
}

.mobile-erp-dock-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mobile-erp-dock-copy strong {
  overflow: hidden;
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-erp-dock-copy small {
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-erp-dock-count {
  min-width: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  padding: 2px 6px;
  color: #334155;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.mobile-erp-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mobile-erp-metrics div {
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
  padding: 8px;
  box-shadow: var(--yc-shadow-card);
}

.mobile-erp-metrics span {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-erp-metrics strong {
  display: block;
  margin-top: 4px;
  color: #172033;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

.mobile-erp-inbox {
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  background: #fff;
  padding: 8px;
  box-shadow: var(--yc-shadow-card);
}

.mobile-erp-inbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 8px;
}

.mobile-erp-task-list {
  display: grid;
  gap: 8px;
}

.mobile-active-filter-pills,
.mobile-batch-strip {
  box-shadow: none !important;
}

.mobile-task-table-slot {
  min-width: 0;
}

.mobile-task-table-slot > .rounded-2xl.border-dashed {
  border-radius: 12px !important;
  padding: 12px !important;
}

.mobile-task-table-slot > .rounded-2xl.border-dashed > div:first-child {
  font-size: 13px;
  font-weight: 850;
}

.mobile-task-table-slot > .rounded-2xl.border-dashed > div:nth-child(2) {
  display: none;
}

.mobile-erp-eyebrow {
  color: #2563eb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.mobile-erp-title {
  margin-top: 2px;
  color: #172033;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.mobile-erp-subtitle {
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
}

.mobile-erp-count {
  flex-shrink: 0;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #f8fafc;
  padding: 5px 9px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.mobile-task-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}

.mobile-task-row.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.mobile-task-row input {
  margin-top: 5px;
}

.mobile-task-row-main {
  min-width: 0;
  text-align: left;
}

.mobile-task-row-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mobile-task-row-top strong {
  margin-left: auto;
  color: #172033;
  font-size: 13px;
  font-weight: 850;
}

.mobile-task-no {
  border-radius: 8px;
  background: #172033;
  padding: 4px 7px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 850;
}

.mobile-task-title {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mobile-task-meta {
  display: flex;
  gap: 8px;
  overflow: hidden;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.mobile-task-meta span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
}

.mobile-task-row-action {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.mobile-task-row-action button {
  min-height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 9px !important;
  background: #fff;
  padding: 0 9px;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.mobile-settlement-shell {
  display: grid;
  gap: 8px;
}

.mobile-settlement-compact-head {
  border: 1px solid #e9d5ff;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--yc-shadow-card);
}

.mobile-settlement-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-settlement-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #ddd6fe;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 0%, rgba(167, 139, 250, 0.28), transparent 34%),
    linear-gradient(135deg, #3b0764 0%, #6d28d9 54%, #8b5cf6 100%);
  padding: 18px;
  color: #fff;
  box-shadow: var(--yc-shadow-card);
}

.mobile-settlement-eyebrow {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.mobile-settlement-title {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.mobile-settlement-subtitle {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 650;
}

.mobile-settlement-badge {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid #e9d5ff;
  border-radius: 999px;
  background: #faf5ff;
  padding: 5px 9px;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 800;
}

.mobile-settlement-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.mobile-settlement-metrics div {
  min-width: 0;
  border: 1px solid #e9d5ff;
  border-radius: 12px;
  background: #faf5ff;
  padding: 7px;
}

.mobile-settlement-metrics span,
.mobile-settlement-amount-grid span {
  display: block;
  overflow: hidden;
  color: #7c3aed;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-settlement-metrics strong {
  display: block;
  margin-top: 4px;
  color: #2e1065;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.mobile-settlement-metrics small {
  display: none;
}

.mobile-settlement-list {
  display: grid;
  gap: 8px;
}

.mobile-settlement-card {
  display: block;
  width: 100%;
  border: 1px solid #e9d5ff;
  border-radius: 16px !important;
  background: #fff;
  padding: 10px;
  text-align: left;
  box-shadow: var(--yc-shadow-card);
}

.mobile-settlement-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-settlement-no {
  border-radius: 9px;
  background: #581c87;
  padding: 4px 7px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
}

.mobile-settlement-card-title {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 7px;
  color: #172033;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mobile-settlement-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.mobile-settlement-amount-grid div {
  min-width: 0;
  border-radius: 12px;
  background: #faf5ff;
  padding: 8px;
}

.mobile-settlement-amount-grid strong {
  display: block;
  margin-top: 4px;
  color: #2e1065;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.mobile-settlement-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  border-top: 1px solid #f3e8ff;
  padding-top: 8px;
}

.mobile-pool-panel {
  border-radius: 18px !important;
}

.mobile-pool-flat {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.mobile-pool-company-row {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  padding: 5px 7px 5px 10px;
}

.mobile-pool-company-row > span {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.mobile-pool-company-row button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 10px !important;
  background: #2563eb;
  padding: 0 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.mobile-pool-compact-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px;
}

.mobile-pool-back {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 4px;
  border: 1px solid #fcd34d;
  border-radius: 12px !important;
  background: #fffbeb;
  padding: 0 9px;
  color: #92400e;
  font-size: 12px;
  font-weight: 850;
}

.mobile-pool-title-block {
  min-width: 0;
}

.mobile-pool-title {
  color: #172033;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
}

.mobile-pool-subtitle {
  overflow: hidden;
  margin-top: 2px;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-pool-count {
  border: 1px solid #fcd34d;
  border-radius: 999px;
  background: #fffbeb;
  padding: 5px 8px;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
}

.mobile-pool-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.mobile-pool-list-flat {
  margin-top: 0;
}

.mobile-pool-empty {
  margin-top: 8px;
  border: 1px dashed #fcd34d;
  border-radius: 16px;
  background: #fffbeb;
  padding: 12px;
}

.mobile-pool-empty-flat {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border-color: #fde68a;
  border-radius: 12px;
  background: rgba(255, 251, 235, 0.7);
  padding: 8px 10px;
  color: #92400e;
  font-size: 13px;
  font-weight: 850;
}

.mobile-pool-rules {
  margin-top: 8px;
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0 10px;
}

.mobile-pool-rules summary {
  min-height: 42px;
  cursor: pointer;
  padding: 12px 0;
  color: #92400e;
  font-size: 12px;
  font-weight: 850;
}

.mobile-pool-rules > div {
  margin-bottom: 10px;
}

.mobile-pool-rules-inline {
  margin-top: 0;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none !important;
}

.mobile-pool-rules-inline summary {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.mobile-pool-rules-inline summary::-webkit-details-marker {
  display: none;
}

.mobile-pool-rules-inline summary span {
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
}

.mobile-pool-rules-inline summary small {
  color: #b45309;
  font-size: 11px;
  font-weight: 750;
}

.mobile-pool-rules-inline[open] {
  padding-bottom: 8px;
}

.mobile-pool-rules-inline[open] summary {
  margin-bottom: 8px;
  border-bottom: 1px solid #fde68a;
}

.mobile-pool-rules-inline > div {
  margin-bottom: 0;
}

.mobile-pool-rules-inline > div > div {
  border-radius: 14px !important;
  box-shadow: none !important;
}

.pending-pool-row-dense {
  border-radius: 16px !important;
  padding: 10px !important;
}

.pending-pool-row-dense .pending-pool-row-note {
  display: none;
}

.pending-pool-row-dense .pending-pool-row-meta {
  display: none !important;
}

.pending-pool-row-dense > button {
  margin-top: 6px !important;
  line-height: 1.25 !important;
}

.pending-pool-row-dense .pending-pool-row-actions {
  margin-top: 7px !important;
}

.pending-pool-row-dense .pool-claim-btn,
.pending-pool-row-dense .pending-pool-row-actions button {
  min-height: 42px;
}

.mobile-settlement-status span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.mobile-settlement-status span.is-green {
  color: #047857;
}

.mobile-settlement-status span.is-amber {
  color: #b45309;
}

.mobile-settlement-status small {
  min-width: 0;
  overflow: hidden;
  color: #7c3aed;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-erp-bottom-nav {
  position: fixed;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 10px;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid rgba(219, 227, 238, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  padding: 7px;
  box-shadow: 0 18px 45px rgba(23, 32, 51, 0.18);
  backdrop-filter: blur(18px);
}

.mobile-erp-bottom-nav button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  gap: 3px;
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 14px !important;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.mobile-erp-bottom-nav button > svg,
.mobile-erp-bottom-nav button > span,
.mobile-erp-bottom-nav button > strong {
  position: relative;
  z-index: 2;
}

.mobile-erp-bottom-nav button.is-active {
  background: #eff6ff;
  color: #1d4ed8;
}

.mobile-erp-bottom-nav button.is-pool-launcher {
  height: 48px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: linear-gradient(135deg, #e11d48 0%, #c026d3 52%, #6d28d9 100%);
  background-size: 180% 180%;
  color: #fff;
  box-shadow: 0 8px 18px rgba(190, 24, 93, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  transform-origin: center bottom;
}

.mobile-erp-bottom-nav button.is-pool-launcher.is-pool-idle {
  animation: mobile-pool-breathe 2.4s ease-in-out infinite;
}

.mobile-erp-bottom-nav button.is-pool-launcher.is-pool-hot {
  animation: mobile-pool-bounce 1.08s cubic-bezier(0.2, 0.85, 0.28, 1) infinite;
  box-shadow: 0 10px 22px rgba(190, 24, 93, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.82) inset;
}

.mobile-erp-bottom-nav button.is-pool-launcher::before,
.mobile-erp-bottom-nav button.is-pool-launcher::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.mobile-erp-bottom-nav button.is-pool-launcher::before {
  inset: 2px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-erp-bottom-nav button.is-pool-launcher::after {
  top: -42%;
  bottom: -42%;
  left: -62%;
  z-index: 1;
  width: 58%;
  border-radius: 18px;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.46) 48%, transparent 100%);
  filter: blur(1px);
  opacity: 0.78;
  transform: rotate(18deg);
  animation: mobile-pool-shine 2.2s ease-in-out infinite;
}

.mobile-erp-bottom-nav button.is-pool-launcher.is-pool-hot::after {
  opacity: 0;
  animation: none;
}

.mobile-erp-bottom-nav button.is-pool-launcher svg {
  filter: drop-shadow(0 2px 7px rgba(88, 28, 135, 0.34));
}

.mobile-erp-bottom-nav button.is-pool-launcher.is-active {
  color: #fff;
}

.mobile-erp-bottom-nav strong {
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 17px;
  border-radius: 999px;
  background: #172033;
  padding: 1px 5px;
  color: #fff;
  font-size: 9px;
  line-height: 1.4;
}

.mobile-erp-bottom-nav button.is-pool-launcher strong {
  top: 3px;
  right: 7px;
  background: #fff;
  color: #be123c;
  box-shadow: 0 4px 12px rgba(76, 29, 149, 0.25);
}

@keyframes mobile-pool-breathe {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow: 0 8px 18px rgba(190, 24, 93, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  }

  50% {
    background-position: 100% 50%;
    box-shadow: 0 10px 22px rgba(126, 34, 206, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.82) inset;
  }
}

@keyframes mobile-pool-shine {
  0% {
    left: -62%;
  }

  54%,
  100% {
    left: 112%;
  }
}

@keyframes mobile-pool-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  28% {
    transform: translateY(-5px);
  }

  48% {
    transform: translateY(0);
  }

  64% {
    transform: translateY(-2px);
  }

  78% {
    transform: translateY(0);
  }
}

.animate-in.slide-in-from-bottom {
  animation: slide-in-from-bottom 0.26s ease-out both;
}

.task-detail-panel {
  min-height: 0;
}

.task-detail-body {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.task-detail-footer-grid {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.task-detail-footer-grid > .task-detail-footer-danger {
  margin-right: auto;
}

@media (min-width: 921px) {
  .workbench-root > .fixed.inset-x-0.top-0 {
    display: none !important;
  }

  body:has(.workbench-root) {
    background: #f6f8fb;
  }

  .workbench-root {
    background: #f6f8fb !important;
  }

  .workbench-root > .fixed {
    border-bottom: 1px solid #dfe6ef !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  }

  .workbench-root > .fixed > div,
  .workbench-root > main {
    max-width: none !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .workbench-root > .fixed > div {
    gap: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .workbench-root > .fixed header,
  .workbench-root > .fixed section,
  .workbench-root > main section {
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .workbench-root > .fixed header {
    border-top: 0 !important;
    border-bottom: 1px solid #dfe6ef !important;
    background: #fff !important;
    padding: 10px 0 !important;
  }

  .workbench-root > .fixed section {
    border-top: 0 !important;
    border-bottom: 0 !important;
    background: #fbfcfe !important;
    padding: 10px 0 !important;
  }

  .workbench-root .announcement-bar {
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    border-color: #f1d7a6 !important;
    background: #fff8e6 !important;
    box-shadow: none !important;
    padding: 8px 0 !important;
  }

  .workbench-root .announcement-bar > div {
    gap: 10px !important;
  }

  .workbench-root .announcement-bar > div > div:first-child {
    height: 26px !important;
    width: 26px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
  }

  .workbench-root .announcement-bar .rounded-full {
    border-radius: 4px !important;
    background: transparent !important;
  }

  .workbench-root .workbench-section-menu,
  .workbench-root .company-filter-bar {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .workbench-root .workbench-section-menu {
    gap: 0 !important;
    border-bottom: 1px solid #dfe6ef !important;
  }

  .workbench-root .workbench-section-menu button,
  .workbench-root .company-filter-bar button {
    min-width: 0 !important;
    flex: 0 0 auto !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .workbench-root .workbench-section-menu button {
    position: relative;
    padding: 9px 18px !important;
  }

  .workbench-root .workbench-section-menu button[data-active="true"] {
    color: #1d4ed8 !important;
  }

  .workbench-root .workbench-section-menu button[data-active="true"]::after {
    position: absolute;
    right: 14px;
    bottom: -1px;
    left: 14px;
    height: 2px;
    background: #2563eb;
    content: "";
  }

  .workbench-root .workbench-section-menu button > div:first-child,
  .workbench-root .company-filter-bar button > div:first-child {
    height: 24px !important;
    width: 24px !important;
    border-radius: 6px !important;
    background: #f1f5f9 !important;
  }

  .workbench-root .workbench-section-menu button[data-active="true"] > div:first-child {
    background: #2563eb !important;
    color: #fff !important;
  }

  .workbench-root .company-filter-bar {
    margin-top: 2px;
  }

  .workbench-root .company-filter-bar > div {
    gap: 0 !important;
  }

  .workbench-root .company-filter-bar button {
    margin-right: 16px;
    padding: 8px 0 !important;
  }

  .workbench-root .company-filter-bar button[data-active="true"] {
    border-bottom: 2px solid #2563eb !important;
    color: #1d4ed8 !important;
  }

  .workbench-root > .fixed .mobile-segment-panel,
  .workbench-root > .fixed .mobile-workbench-search {
    border: 1px solid #dbe3ee !important;
    border-radius: 14px !important;
    background: #fff !important;
    padding: 6px !important;
    box-shadow: none !important;
  }

  .workbench-root > .fixed .mobile-segment-scroll button,
  .workbench-root > .fixed .mobile-workbench-search-actions button,
  .workbench-root > .fixed .mobile-workbench-search-input button {
    border-radius: 12px !important;
  }

  .workbench-root > .fixed .mobile-segment-scroll button {
    min-height: 36px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
  }

  .workbench-root > .fixed .mobile-segment-scroll button.is-active {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
  }

  .workbench-root > .fixed .mobile-workbench-search-input {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
  }

  .workbench-root > .fixed header > div:last-child button,
  .workbench-root > .fixed section button,
  .workbench-root > .fixed section select,
  .workbench-root > .fixed section input {
    min-height: 36px;
  }

  .workbench-root > .fixed section button {
    border-radius: 6px !important;
    box-shadow: none !important;
  }

  .workbench-root > main > div {
    gap: 0 !important;
  }

  .workbench-root > main > div > section {
    border-top: 1px solid #dfe6ef !important;
    border-bottom: 1px solid #dfe6ef !important;
    background: #fff !important;
    padding: 0 !important;
  }

  .workbench-root > main > div > section > div:first-child {
    background: #fff;
    padding: 12px 16px !important;
  }

  .workbench-root > main > div > section > .desktop-workbench-list {
    margin-top: 0 !important;
    border-top: 1px solid #dfe6ef;
    background: #fff;
  }

  .workbench-root .workbench-table-wrap {
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .workbench-root .workbench-table {
    min-width: 1120px !important;
  }

  .workbench-root .workbench-table thead th {
    background: #f6f8fb !important;
    color: #334155;
  }

  .workbench-root .workbench-table th,
  .workbench-root .workbench-table td {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .workbench-root .workbench-table tbody tr:nth-child(even) td {
    background-color: #fafbfc;
  }

  .workbench-root .workbench-table tbody tr:hover td {
    background-color: #eef4ff !important;
  }

  .workbench-root .workbench-row-actions button {
    min-height: 34px;
  }

  .workbench-root > main section > .rounded-2xl,
  .workbench-root > main section > [class*="rounded-[24px]"],
  .workbench-root > main section > [class*="rounded-[26px]"],
  .workbench-root > main section > [class*="rounded-[28px]"] {
    box-shadow: none !important;
  }
}

@media (max-width: 920px) {
  html,
  body,
  #app {
    width: 100%;
    overflow-x: hidden;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select {
    font-size: 16px !important;
    line-height: 1.35;
  }

  input::placeholder,
  textarea::placeholder {
    font-size: 16px;
  }

  .workbench-root,
  .workbench-root > .fixed,
  .workbench-root > main {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .workbench-root > .fixed > div {
    max-width: 100% !important;
    overflow: hidden;
  }

  .mobile-segment-scroll,
  .workbench-root .company-filter-bar > div {
    overscroll-behavior-x: contain;
  }

  .task-detail-overlay {
    align-items: flex-end;
    justify-content: center;
    padding-top: max(14px, env(safe-area-inset-top));
    background: rgba(15, 23, 42, 0.58) !important;
  }

  .task-detail-panel {
    width: 100%;
    max-width: none !important;
    height: min(92dvh, calc(100dvh - max(18px, env(safe-area-inset-top))));
    max-height: calc(100dvh - max(18px, env(safe-area-inset-top)));
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-bottom: 0;
    border-radius: var(--yc-radius-modal) var(--yc-radius-modal) 0 0 !important;
    animation: slide-in-from-bottom 0.26s ease-out both !important;
  }

  .task-detail-header {
    position: relative;
    flex-shrink: 0;
    align-items: flex-start !important;
    gap: 12px;
    background: #fff !important;
    padding: 14px 16px 10px !important;
  }

  .task-detail-header::before {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5e1;
    content: "";
    transform: translateX(-50%);
  }

  .task-detail-header > div {
    min-width: 0;
    padding-top: 10px;
  }

  .task-detail-header h2 {
    display: -webkit-box;
    overflow: hidden;
    color: #172033;
    font-size: 18px !important;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .task-detail-header button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
  }

  .task-detail-body {
    padding: 12px 16px 18px !important;
    scroll-padding-bottom: 128px;
  }

  .task-detail-body > * + * {
    margin-top: 18px !important;
  }

  .task-detail-body h3 {
    margin-bottom: 10px !important;
    font-size: 15px !important;
  }

  .task-detail-body section {
    scroll-margin-top: 14px;
  }

  .task-detail-footer {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom)) !important;
    box-shadow: 0 -16px 34px rgba(15, 23, 42, 0.12);
  }

  .task-detail-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
  }

  .task-detail-footer-grid > .task-detail-footer-danger {
    margin-right: 0;
  }

  .task-detail-footer .detail-drawer-action-group {
    display: contents !important;
  }

  .task-detail-footer .detail-drawer-action-group > .flex {
    display: contents !important;
  }

  .task-detail-footer button,
  .task-detail-footer .btn-primary,
  .task-detail-footer .btn-outline,
  .task-detail-footer .detail-drawer-action-group > span {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 6px 8px !important;
    justify-content: center;
    font-size: 12px !important;
    line-height: 1.18 !important;
  }

  .task-detail-footer .mt-2 {
    margin-top: 0 !important;
  }

  .mobile-task-row-action {
    grid-column: 1 / -1;
  }

  .mobile-task-row-action button,
  .mobile-task-row-action span {
    min-height: 40px;
  }
}

@media (max-width: 640px) {
  body {
    background: #f4f7fb;
  }

  .dispatch-track-head {
    display: block;
  }

  .dispatch-note {
    display: none;
  }

  .dispatch-rail {
    grid-template-columns: repeat(4, minmax(96px, 1fr));
    overflow-x: auto;
  }

  .dispatch-stop {
    padding: 10px;
  }

  .dispatch-stop-value {
    font-size: 20px;
  }

  button {
    min-height: 44px;
  }

  .workbench-table {
    min-width: 860px !important;
  }
}

.erp-shell {
  height: calc(100dvh - 88px);
  max-height: calc(100dvh - 88px);
  min-height: 560px;
  border-radius: var(--yc-radius-panel);
}

.erp-workspace {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px !important;
  border: 0 !important;
  background: #f6f8fb !important;
}

.erp-command-bar {
  flex: 0 0 auto;
  padding: 12px 14px !important;
  border: 1px solid var(--yc-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
}

.erp-section-tabs {
  flex: 0 0 auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.erp-master-detail {
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr) minmax(292px, 340px);
  overflow: hidden;
}

.erp-master-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.erp-master-panel > .erp-table-head,
.erp-master-panel > .erp-filter-pills,
.erp-master-panel > .erp-batch-bar,
.erp-master-panel > .erp-pagination {
  flex: 0 0 auto;
}

.desktop-workbench-list.erp-grid-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
}

.erp-cockpit {
  min-height: 0;
  max-height: none;
}

.workbench-table th,
.workbench-table td {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

.system-settings-panel {
  max-width: min(1180px, calc(100vw - 28px));
}

.system-settings-panel-embedded {
  max-width: none;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  animation: none;
}

.system-settings-panel-embedded .system-settings-rail {
  display: none !important;
}

.system-settings-panel-embedded .system-settings-mobile-tabs {
  display: block !important;
  flex: 0 0 auto;
  border-bottom: 1px solid #dfe6ef;
}

.system-settings-panel-embedded .system-settings-header {
  flex: 0 0 auto;
  background: #fff !important;
  padding: 10px 14px !important;
}

.system-settings-panel-embedded .system-settings-scroll {
  max-height: none !important;
  padding: 12px !important;
}

.system-overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.system-overview-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label value"
    "hint value";
  align-items: center;
  min-height: 42px;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  background: #fff;
  padding: 7px 9px;
}

.system-overview-stat span {
  grid-area: label;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
}

.system-overview-stat strong {
  grid-area: value;
  color: var(--yc-text);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.system-overview-stat small {
  grid-area: hint;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.2;
}

.system-overview-stat.tone-blue {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.system-overview-stat.tone-amber {
  border-color: #fde68a;
  background: #fffbeb;
}

.system-overview-stat.tone-emerald {
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.system-compact-card {
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.system-compact-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--yc-text);
  font-size: 13px;
  font-weight: 850;
}

.system-preference-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.system-preference-pill {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 7px 9px;
}

.system-preference-pill span {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.system-preference-pill strong {
  min-width: 0;
  overflow: hidden;
  color: #1e293b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-preference-pill.is-commission {
  grid-column: 1 / -1;
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.system-preference-pill.is-commission strong {
  color: #047857;
}

.system-preferences-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(252px, 300px);
  gap: 12px;
  align-items: start;
}

.system-density-panel,
.system-preview-panel {
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.system-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 9px;
}

.system-panel-eyebrow {
  color: #3b82f6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.system-save-button {
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  padding: 0 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.system-save-button:disabled {
  opacity: 0.7;
}

.system-setting-stack {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.system-setting-row,
.system-setting-block {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.system-setting-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.system-setting-block {
  padding: 10px;
}

.system-setting-label,
.system-setting-title {
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.system-setting-help {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.system-select-control,
.system-textarea-control,
.system-number-input,
.system-static-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  outline: none;
}

.system-select-control,
.system-number-input,
.system-static-input {
  min-height: 34px;
  padding: 7px 10px;
}

.system-textarea-control {
  margin-top: 8px;
  min-height: 96px;
  padding: 9px 10px;
  resize: vertical;
}

.system-choice-list {
  margin-top: 6px;
}

.system-choice-row {
  display: grid;
  width: 100%;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  border: 0;
  border-top: 1px solid #e2e8f0;
  background: transparent;
  padding: 8px 4px;
  text-align: left;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.system-choice-row:first-child {
  border-top: 0;
}

.system-choice-row.is-active {
  border-radius: 10px;
  background: #ecfeff;
  box-shadow: inset 3px 0 0 #06b6d4;
  padding-left: 8px;
}

.system-choice-indicator {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
}

.system-choice-row.is-active .system-choice-indicator {
  border-color: #06b6d4;
  background: #06b6d4;
}

.system-choice-copy strong,
.system-toggle-row strong,
.system-segment-row strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.system-choice-copy small,
.system-toggle-row small,
.system-segment-row small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.system-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.system-toggle-row {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 9px 11px;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.system-toggle-row em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 4px 8px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.system-toggle-row.is-blue {
  border-color: #93c5fd;
  background: #eff6ff;
}

.system-toggle-row.is-rose {
  border-color: #fda4af;
  background: #fff1f2;
}

.system-toggle-row.is-blue em {
  background: #dbeafe;
  color: #1d4ed8;
}

.system-toggle-row.is-rose em {
  background: #ffe4e6;
  color: #be123c;
}

.system-segment-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.system-segment-row button {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  text-align: left;
}

.system-segment-row button.is-active {
  border-color: #f59e0b;
  background: #fffbeb;
}

.system-segment-row small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.system-commission-panel {
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #ecfdf5;
  padding: 10px;
}

.system-commission-head,
.system-commission-rule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.system-inline-button,
.system-remove-button {
  flex: 0 0 auto;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  background: #fff;
  padding: 6px 9px;
  color: #047857;
  font-size: 11px;
  font-weight: 850;
}

.system-remove-button {
  border-color: #fed7aa;
  color: #9a3412;
}

.system-commission-rules {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.system-commission-rule {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.system-commission-rule-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.system-static-input {
  display: flex;
  align-items: center;
  color: #64748b;
}

.system-preview-panel {
  position: sticky;
  top: 0;
}

.system-preview-list,
.system-preview-commission {
  margin-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.system-preview-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed #e2e8f0;
  padding: 8px 0;
}

.system-preview-row span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.system-preview-row strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-address-section {
  display: grid;
  gap: 12px;
}

.system-address-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.system-address-directory {
  display: grid;
  gap: 10px;
}

.system-address-summary {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.system-address-summary > div {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  padding: 7px 10px;
}

.system-address-summary > div.is-default {
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.system-address-summary > div.is-note {
  border-color: #ddd6fe;
  background: #f5f3ff;
}

.system-address-summary span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.system-address-summary strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-address-list-panel,
.system-address-selector,
.system-address-edit-panel {
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.system-address-table th,
.system-address-table td {
  padding: 9px 10px !important;
  line-height: 1.4;
  vertical-align: top;
}

.system-address-mobile-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.system-address-mobile-row {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.system-address-mobile-head,
.system-address-mobile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.system-address-mobile-head strong {
  min-width: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-address-mobile-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dcfce7;
  padding: 2px 7px;
  color: #047857;
  font-size: 10px;
  font-weight: 900;
}

.system-address-mobile-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.system-address-mobile-detail {
  margin-top: 6px;
  color: #334155;
  font-size: 12px;
  line-height: 1.5;
}

.system-address-mobile-note {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

.system-address-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 18px 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}

.system-address-maintain {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 12px;
}

.system-address-selector-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.system-address-selector-row {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 9px 10px;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.system-address-selector-row.is-active {
  border-color: #8b5cf6;
  background: #f5f3ff;
}

.system-address-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.system-address-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  color: #0f172a;
  font-size: 13px;
  outline: none;
}

textarea.system-address-input {
  min-height: 72px;
  resize: vertical;
}

.address-recognition-panel {
  border-radius: 12px !important;
  padding: 10px !important;
}

.address-recognition-panel textarea {
  min-height: 64px;
}

.system-settings-content {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.system-settings-scroll {
  flex: 1 1 auto;
  min-height: 0;
}

.system-settings-panel .grid > .rounded-2xl,
.system-settings-panel .grid > [class*="rounded-[24px]"],
.system-settings-panel form,
.system-settings-panel table,
.system-settings-panel textarea,
.system-settings-panel input,
.system-settings-panel select {
  max-width: 100%;
}

.system-settings-panel table {
  width: 100%;
  table-layout: auto;
}

.system-settings-panel th,
.system-settings-panel td {
  line-height: 1.45;
}

@media (min-width: 921px) and (max-width: 1320px) {
  .erp-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .erp-rail {
    align-items: center;
    padding: 12px 8px;
  }

  .erp-brand {
    justify-content: center;
    width: 100%;
    padding-bottom: 12px;
  }

  .erp-brand > div:not(.erp-brand-mark),
  .erp-user-card,
  .erp-nav-copy,
  .erp-nav-count,
  .erp-logout span {
    display: none;
  }

  .erp-nav {
    width: 100%;
  }

  .erp-nav-item {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 12px 0;
  }

  .erp-logout {
    width: 100%;
    padding: 12px 0;
    font-size: 0;
  }

  .erp-logout svg {
    width: 18px;
    height: 18px;
  }

  .erp-master-detail {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 300px);
  }

  .workbench-table {
    min-width: 1040px !important;
  }
}

@media (max-width: 1200px) {
  .system-settings-panel {
    max-width: min(1040px, calc(100vw - 18px));
  }
}

@media (max-width: 1023px) {
  .system-settings-overlay {
    align-items: flex-end;
    justify-content: center;
  }

  .system-settings-panel {
    height: 100dvh;
    max-width: 100vw;
    border-left: 0 !important;
    border-radius: 0 !important;
  }

  .system-settings-rail {
    display: none !important;
  }

  .system-settings-mobile-tabs {
    display: block !important;
  }

  .system-settings-header {
    padding: 7px 10px !important;
  }

  .system-settings-scroll {
    max-height: none !important;
    padding: 10px !important;
  }

  .system-preferences-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .system-density-panel,
  .system-preview-panel {
    border-radius: 12px;
    padding: 10px;
  }

  .system-preview-panel {
    position: static;
  }

  .system-setting-stack {
    gap: 8px;
    margin-top: 8px;
  }

  .system-setting-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 9px;
  }

  .system-setting-block,
  .system-commission-panel,
  .system-commission-rule {
    padding: 9px;
  }

  .system-toggle-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .system-toggle-row {
    min-height: 50px;
    padding: 8px 10px;
  }

  .system-choice-row {
    padding: 7px 2px;
  }

  .system-choice-row.is-active {
    padding-left: 8px;
  }

  .system-choice-copy small {
    line-height: 1.35;
  }

  .system-segment-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .system-segment-row button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
  }

  .system-segment-row small {
    display: none;
  }

  .system-textarea-control {
    min-height: 84px;
  }

  .system-commission-rule-fields {
    gap: 8px;
  }

  .system-preview-list,
  .system-preview-commission {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 6px;
  }

  .system-address-section {
    gap: 10px;
  }

  .system-address-tabs {
    padding-bottom: 8px;
  }

  .system-address-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .system-address-summary > div {
    min-height: 36px;
    border-radius: 10px;
    padding: 6px 9px;
  }

  .system-address-summary strong {
    font-size: 13px;
  }

  .system-address-list-panel,
  .system-address-selector,
  .system-address-edit-panel {
    border-radius: 12px;
    padding: 10px;
  }

  .system-address-maintain {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .system-address-selector-list {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .system-address-selector-list::-webkit-scrollbar {
    display: none;
  }

  .system-address-selector-row {
    min-width: 172px;
    padding: 8px 9px;
  }

  .system-address-edit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 10px;
  }

  .system-address-input {
    padding: 8px 9px;
  }

  textarea.system-address-input {
    min-height: 82px;
  }

  .address-recognition-panel textarea {
    min-height: 70px;
  }

  .system-settings-user-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .system-settings-panel .md\:hidden {
    display: block !important;
  }

  .system-settings-panel .md\:block,
  .system-settings-panel .hidden.md\:block {
    display: none !important;
  }

  .system-settings-panel [class*="rounded-[24px]"],
  .system-settings-panel [class*="rounded-[28px]"],
  .system-settings-panel .rounded-2xl {
    border-radius: 12px !important;
  }

  .system-settings-panel .p-5 {
    padding: 12px !important;
  }

  .system-settings-panel .px-4.py-4,
  .system-settings-panel .px-4.py-3 {
    padding: 10px 12px !important;
  }

  .system-settings-panel .text-3xl {
    font-size: 24px !important;
    line-height: 1.1 !important;
  }

  .mobile-filter-fields {
    display: grid;
    gap: 9px;
  }

  .mobile-filter-fields > div {
    border-radius: 12px !important;
    background: #f8fafc !important;
    padding: 10px 12px !important;
  }

  .mobile-filter-fields > div > .text-sm {
    font-size: 12px !important;
  }

  .mobile-filter-fields input,
  .mobile-filter-fields select {
    margin-top: 6px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .mobile-task-table-slot .workbench-table-wrap {
    display: none !important;
  }

  .mobile-task-table-slot .mobile-task-row {
    display: grid !important;
  }
}

@media (max-width: 920px) {
  .workbench-root > main {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .mobile-erp-bottom-nav {
    right: 8px;
    left: 8px;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    border-radius: 18px;
    padding: 6px;
  }

  .mobile-erp-bottom-nav button {
    height: 46px;
    min-height: 46px;
    font-size: 10px;
  }

  .mobile-erp-bottom-nav button.is-pool-launcher {
    height: 46px;
    min-height: 46px;
  }

  .mobile-section-picker {
    display: grid;
    gap: 10px;
  }

  .mobile-section-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .mobile-section-choice {
    min-height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 7px 5px;
    color: #334155;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
  }

  .mobile-section-choice.is-active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
  }

  .mobile-section-choice span:last-child {
    margin-top: 2px !important;
    font-size: 10px !important;
  }

  .mobile-queue-choice-list {
    display: grid;
    gap: 6px;
  }

  .mobile-queue-choice {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 7px 10px;
    color: #334155;
    font-size: 12px;
    font-weight: 850;
    text-align: left;
  }

  .mobile-queue-choice.is-active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
  }
}

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

.line-clamp-1 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.animate-in.slide-in-from-right {
  animation: slide-in-from-right 0.28s ease-out both;
}

.animate-in.slide-in-from-top-4 {
  animation: slide-in-from-top 0.22s ease-out both;
}

.animate-in.zoom-in-95 {
  animation: zoom-in-95 0.18s ease-out both;
}

@keyframes slide-in-from-right {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-from-bottom {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-from-top {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoom-in-95 {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
