:root {
  color-scheme: light;
  --vf-primary: #7b61ff;
  --vf-primary-600: #6854f2;
  --vf-primary-700: #5642d9;
  --vf-blue: #4d6bff;
  --vf-cyan: #62cbff;
  --vf-violet-soft: #d9b8ff;
  --vf-gradient-primary: linear-gradient(100deg, #7b61ff 0%, #6854f2 42%, #4d6bff 72%, #62cbff 100%);
  --vf-gradient-primary-hover: linear-gradient(100deg, #8a72ff 0%, #6f59ff 40%, #5574ff 72%, #68d5ff 100%);
  --canvas: #ffffff;
  --page: #fafbff;
  --page-strong: #eef4ff;
  --panel: #ffffff;
  --panel-soft: #f6f7fb;
  --ink: #0f1221;
  --body: #2f3852;
  --muted: #6e758a;
  --faint: #a4abbd;
  --hairline: #e6e8f0;
  --line-strong: #d9ddf0;
  --primary: var(--vf-primary);
  --primary-active: var(--vf-primary-600);
  --primary-strong: var(--vf-primary-700);
  --coral: #ef4444;
  --coral-active: #dc2626;
  --coral-soft: #fff1f2;
  --forest: #16a34a;
  --forest-soft: #ecfdf3;
  --mint: rgba(22, 163, 74, 0.28);
  --yellow: #f59e0b;
  --yellow-soft: #fffbeb;
  --warning-text: #92400e;
  --cream: #f7f4ff;
  --peach: var(--vf-violet-soft);
  --link: var(--vf-primary-700);
  --danger: #ef4444;
  --danger-soft: #fff1f2;
  --focus: rgba(123, 97, 255, 0.18);
  --focus-border: var(--vf-primary);
  --shadow: 0 1px 2px rgba(15, 18, 33, 0.05), 0 12px 32px rgba(15, 18, 33, 0.06);
  --shadow-lift: 0 24px 70px rgba(15, 18, 33, 0.12);
  --shadow-button: 0 12px 24px rgba(77, 107, 255, 0.18);
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container: 100%;
  --workspace-x: clamp(16px, 1.8vw, 28px);
  --sticky-panel-top: 0px;
  --table-line: rgba(15, 18, 33, 0.08);
  --table-line-soft: rgba(15, 18, 33, 0.055);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  overflow-y: scroll;
  background: var(--page);
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--body);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.36;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 520;
  letter-spacing: 0;
}

h1 {
  font-size: 56px;
  line-height: 1.03;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

h3 {
  font-size: 14px;
  line-height: 1.25;
}

.app-shell {
  min-height: 100vh;
  background: var(--canvas);
  padding: 0 0 36px;
}

.workspace {
  width: min(100%, var(--container));
  margin-right: auto;
  margin-left: auto;
}

.panel-brand-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.nav-brand,
.auth-nav .nav-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--ink);
  font-weight: 720;
}

.nav-brand-logo {
  display: block;
  width: auto;
  height: 40px;
  max-width: 76px;
  flex: 0 1 auto;
  min-width: 0;
  object-fit: contain;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 820;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--vf-cyan);
}

.brand-mark span,
.brand-mark {
  isolation: isolate;
}

.panel-user-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.panel-user-actions form {
  margin: 0;
}

.product-admin-link {
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
  padding: 6px 10px;
}

.user-chip {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  min-width: 92px;
  justify-content: center;
}

.user-menu-trigger {
  display: inline-grid;
  grid-template-columns: 30px minmax(0, auto) 16px;
  align-items: center;
  max-width: 260px;
  min-height: 34px;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 560;
  padding: 2px 7px 2px 2px;
}

.user-menu-trigger:hover,
.user-menu-trigger[aria-expanded="true"] {
  background: var(--panel-soft);
}

.user-menu-trigger svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.user-avatar {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--vf-gradient-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.user-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(260px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  box-shadow: var(--shadow-lift);
  padding: 8px;
}

.user-menu[hidden] {
  display: none;
}

.user-menu-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--hairline);
  padding: 8px 8px 10px;
}

.user-menu-head .user-avatar {
  width: 34px;
  height: 34px;
}

.user-menu-head div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.user-menu-head strong,
.user-menu-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.user-menu-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.user-menu form {
  margin: 0;
}

.user-menu-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 38px;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--body);
  cursor: pointer;
  font-size: 13px;
  font-weight: 560;
  padding: 9px 8px;
  text-align: left;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
  background: var(--panel-soft);
  color: var(--ink);
}

.user-menu-item svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.status-pill.busy {
  gap: 6px;
  border-color: var(--yellow);
  background: var(--yellow-soft);
  color: var(--warning-text);
}

.status-pill.busy::before {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: status-pill-spin 720ms linear infinite;
  content: "";
}

@keyframes status-pill-spin {
  to {
    transform: rotate(360deg);
  }
}

.status-pill.error {
  border-color: rgba(239, 68, 68, 0.28);
  background: var(--danger-soft);
  color: var(--danger);
}

.status-pill.ok {
  border-color: var(--mint);
  background: var(--forest-soft);
  color: var(--forest);
}

.section-kicker {
  color: var(--coral);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.panel-head p,
.login-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 640;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
}

input:hover,
select:hover {
  border-color: var(--line-strong);
}

select {
  min-width: 0;
  font-weight: 560;
}

input::placeholder {
  color: var(--faint);
}

input[type="checkbox"] {
  accent-color: var(--primary);
  cursor: pointer;
}

input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

input:focus,
select:focus {
  border-color: var(--focus-border);
  box-shadow: 0 0 0 3px var(--focus);
}

.small-input {
  width: 74px;
  min-width: 74px;
}

.credential-actions,
.panel-actions,
.panel-actions-left,
.panel-actions-right,
.action-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.credential-actions {
  justify-content: flex-end;
}

.panel-actions {
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
}

.panel-actions-left {
  flex: 1 1 auto;
  min-width: 0;
}

.panel-actions-right {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-left: auto;
}

.ozon-panel .panel-head {
  align-items: flex-start;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: start;
  gap: 10px;
}

.panel-identity-row,
.panel-workspace-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  gap: 12px;
  min-width: 0;
}

.panel-identity-row {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 10px;
}

.panel-workspace-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

.panel-workspace-row h2 {
  white-space: nowrap;
}

.panel-actions .button {
  min-width: 154px;
}

.panel-actions .button.action-button {
  border-color: rgba(123, 97, 255, 0.34);
  background: #ffffff;
  color: var(--primary-strong);
  box-shadow: 0 1px 2px rgba(15, 18, 33, 0.05);
}

.panel-actions .button.action-button:hover:not(:disabled) {
  border-color: var(--primary);
  background: #faf8ff;
  color: var(--primary-strong);
  box-shadow: 0 8px 18px rgba(123, 97, 255, 0.12);
}

.panel-actions .button.action-button:focus-visible {
  box-shadow: 0 0 0 3px var(--focus);
}

.panel-actions .button.action-button--create {
  border-color: rgba(123, 97, 255, 0.44);
  background: linear-gradient(100deg, rgba(123, 97, 255, 0.16) 0%, rgba(77, 107, 255, 0.14) 72%, rgba(98, 203, 255, 0.18) 100%);
  color: var(--primary-strong);
  min-width: 184px;
  box-shadow: 0 1px 2px rgba(15, 18, 33, 0.05);
}

.panel-actions .button.action-button--create:hover:not(:disabled) {
  border-color: var(--primary);
  background: linear-gradient(100deg, rgba(123, 97, 255, 0.22) 0%, rgba(77, 107, 255, 0.19) 72%, rgba(98, 203, 255, 0.24) 100%);
  color: var(--primary-strong);
  box-shadow: 0 8px 18px rgba(123, 97, 255, 0.12);
}

.lookback-control {
  display: inline-grid;
  grid-template-columns: auto minmax(96px, 112px);
  align-items: center;
  min-height: 34px;
  gap: 8px;
  color: var(--muted);
}

.lookback-control span {
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
}

.lookback-control select {
  width: 100%;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 5px;
}

.top-selection-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 8px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 9px;
  white-space: nowrap;
}

.top-selection-toggle input {
  width: 16px;
  min-height: 16px;
}

.status-filter-slot {
  width: 164px;
  max-width: 100%;
}

.status-filter-placeholder {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  white-space: nowrap;
}

.supply-search-control {
  display: grid;
  grid-template-columns: 18px minmax(160px, 1fr);
  align-items: center;
  flex: 0 1 286px;
  min-width: 224px;
  min-height: 34px;
  gap: 8px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--muted);
  padding: 3px 9px;
}

.supply-search-control svg {
  width: 17px;
  height: 17px;
}

.supply-search-control input {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 560;
  outline: 0;
  padding: 0;
}

.supply-search-control:focus-within {
  border-color: var(--focus-border);
  box-shadow: 0 0 0 3px var(--focus);
}

.supply-search-control input::placeholder {
  color: var(--faint);
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 650;
  letter-spacing: 0;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.button {
  padding: 6px 12px;
  text-align: center;
  white-space: nowrap;
}

.button svg,
.icon-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.button:focus-visible,
.icon-button:focus-visible,
.supply-open:focus-visible,
.supply-route-select:focus-visible,
.status-filter summary:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus);
}

.button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.button:not(:disabled):active,
.icon-button:not(:disabled):active {
  transform: translateY(1px);
}

.button.primary {
  border-color: transparent;
  background: var(--vf-gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-button);
}

.button.primary:hover:not(:disabled) {
  border-color: transparent;
  background: var(--vf-gradient-primary-hover);
  box-shadow: 0 12px 24px rgba(77, 107, 255, 0.22);
}

.button.secondary {
  border-color: rgba(123, 97, 255, 0.34);
  background: var(--canvas);
  color: var(--primary-strong);
  box-shadow: 0 1px 2px rgba(15, 18, 33, 0.05);
}

.button.secondary:hover:not(:disabled),
.button.ghost:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  border-color: var(--primary);
  background: #faf8ff;
  color: var(--primary-strong);
}

.button.ghost {
  border-color: var(--hairline);
  background: var(--canvas);
  color: var(--muted);
}

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
}

.button.danger:hover:not(:disabled) {
  border-color: var(--coral-active);
  background: var(--coral-active);
}

.icon-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
  border-color: var(--hairline);
  background: var(--canvas);
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "ozon"
    "preview";
  align-content: start;
  min-height: 0;
  gap: 0;
  margin-top: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.panel {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ozon-panel {
  grid-area: ozon;
}

.preview-panel {
  grid-area: preview;
}

body.preview-open {
  overflow: hidden;
}

.preview-panel[hidden] {
  display: none;
}

.preview-panel {
  position: fixed;
  z-index: 80;
  top: 82px;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lift);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 12px var(--workspace-x);
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
}

.ozon-panel .panel-head {
  position: sticky;
  z-index: 25;
  top: var(--sticky-panel-top);
  box-shadow: none;
}

.preview-panel .panel-head {
  box-shadow: none;
}

.panel-head > div:first-child {
  min-width: 0;
}

.supply-list {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0;
  scrollbar-color: var(--line-strong) transparent;
}

.supply-table {
  min-width: 1360px;
  overflow: visible;
  border-top: 1px solid var(--table-line);
  background: var(--canvas);
}

.supply-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 1360px;
  border-top: 1px solid var(--table-line);
  background: var(--canvas);
  padding: 10px var(--workspace-x) 12px;
}

.supply-table.detailed-mode + .supply-pagination {
  min-width: 1360px;
}

.supply-page-summary,
.supply-page-number {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.supply-page-size {
  display: inline-grid;
  grid-template-columns: auto minmax(76px, max-content);
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.supply-page-size select {
  min-height: 34px;
  padding-right: 30px;
}

.supply-page-buttons {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.supply-table-head,
.supply-card {
  display: grid;
  grid-template-columns:
    minmax(220px, 0.9fr)
    minmax(130px, 0.55fr)
    minmax(330px, 1.25fr)
    minmax(280px, 1.1fr)
    minmax(160px, 0.65fr)
    minmax(170px, 0.7fr);
}

.supply-table.detailed-mode {
  min-width: 1360px;
}

.supply-table.detailed-mode .supply-table-head,
.supply-table.detailed-mode .supply-card {
  grid-template-columns:
    minmax(220px, 0.9fr)
    minmax(130px, 0.55fr)
    minmax(330px, 1.25fr)
    minmax(280px, 1.1fr)
    minmax(160px, 0.65fr)
    minmax(170px, 0.7fr);
}

.supply-table-head {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 52px;
  border-bottom: 1px solid var(--table-line);
  box-shadow: none;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.supply-table-head span {
  display: grid;
  align-content: center;
  min-width: 0;
  border-right: 1px solid var(--table-line-soft);
  padding: 8px 10px;
}

.supply-table-head span:last-child {
  border-right: 0;
}

.supply-table-head small {
  color: var(--faint);
  font-size: 12px;
  font-weight: 540;
}

.selection-summary {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
}

.status-filter {
  position: relative;
  width: 156px;
  max-width: 100%;
}

.status-filter summary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  padding: 6px 10px;
  white-space: nowrap;
}

.status-filter summary::-webkit-details-marker {
  display: none;
}

.status-filter summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.status-filter[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.status-filter-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  gap: 4px;
  width: min(330px, 84vw);
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  box-shadow: var(--shadow-lift);
  padding: 8px;
}

.status-filter-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 7px;
}

.status-filter-option:hover {
  background: var(--panel-soft);
}

.status-filter-option input {
  width: 16px;
  min-height: 16px;
}

.status-filter-count {
  color: var(--muted);
  font-size: 12px;
}

.empty {
  display: grid;
  min-height: 64px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 620;
  padding: 20px;
  text-align: center;
}

.supply-card {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--table-line);
  border-radius: 0;
  background: var(--canvas);
  color: var(--body);
  cursor: default;
  padding: 0;
  text-align: left;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    filter 120ms ease,
    box-shadow 120ms ease;
}

.supply-card:hover {
  filter: brightness(0.985);
  box-shadow: none;
}

.supply-card.active {
  background: var(--page-strong);
}

.supply-card.bulk-selected {
  background: var(--cream);
}

.supply-card.active:hover,
.supply-card.bulk-selected:hover,
.supply-card.match-matched:hover,
.supply-card.match-mismatch:hover,
.supply-card.match-missing:hover {
  filter: brightness(0.985);
}

.supply-card.match-matched {
  border-color: var(--table-line);
  background: var(--forest-soft);
}

.supply-card.match-mismatch {
  border-color: var(--table-line);
  background: var(--canvas);
}

.supply-card.match-missing {
  border-color: rgba(169, 54, 12, 0.12);
  background: var(--coral-soft);
}

.supply-cell {
  display: grid;
  align-content: flex-start;
  min-width: 0;
  min-height: 62px;
  border-right: 1px solid var(--table-line-soft);
  padding: 10px 12px;
}

.supply-cell:last-child {
  border-right: 0;
}

.supply-open {
  display: block;
  width: auto;
  max-width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.2;
  padding: 0;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.supply-open:hover {
  color: var(--link);
  text-decoration: none;
}

.supply-title {
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.supply-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.supply-created {
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

.supply-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  min-width: 0;
  gap: 8px;
}

.supply-select-box {
  display: inline-grid;
  width: 18px;
  min-width: 18px;
  cursor: pointer;
}

.supply-select-box input,
.supply-check input {
  flex: 0 0 auto;
  width: 16px;
  min-height: 16px;
  margin-top: 1px;
}

.supply-date-cell {
  align-content: flex-start;
  gap: 4px;
}

.supply-date-main {
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.25;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eef1ef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  padding: 4px 6px;
  white-space: nowrap;
}

.supply-status-cell,
.supply-move-cell {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: 5px;
}

.match-tag-stack {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
}

.match-tag-stack .tag {
  width: fit-content;
  max-width: 100%;
}

.candidate-move-list {
  display: grid;
  gap: 2px;
  color: var(--body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.neutral-tag {
  border-color: transparent;
  background: var(--panel-soft);
  color: var(--faint);
}

.direction-tag {
  white-space: normal;
}

.match-tag.match-matched {
  border-color: transparent;
  background: var(--forest-soft);
  color: var(--forest);
}

.match-tag.match-mismatch {
  border-color: transparent;
  background: var(--yellow-soft);
  color: var(--warning-text);
}

.match-tag.match-missing {
  border-color: transparent;
  background: var(--coral-soft);
  color: var(--coral);
}

.move-match-tag {
  flex-wrap: wrap;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
  column-gap: 4px;
  row-gap: 1px;
  white-space: normal;
}

.move-match-prefix {
  flex: 0 1 auto;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.move-match-number {
  flex: 0 0 auto;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.act-discrepancy-tag {
  border-color: transparent;
  background: var(--yellow-soft);
  color: var(--warning-text);
}

.manual-control-tag {
  max-width: 100%;
  border-color: transparent;
  background: var(--yellow-soft);
  color: var(--warning-text);
  overflow-wrap: anywhere;
  white-space: normal;
}

.supply-route {
  display: grid;
  align-content: flex-start;
  gap: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.25;
}

.supply-move-route {
  --supply-move-route-padding-y: 8px;
  display: grid;
  position: relative;
  align-content: center;
  gap: 8px;
  padding-top: var(--supply-move-route-padding-y);
  padding-bottom: var(--supply-move-route-padding-y);
}

.supply-move-route:not(.multi-cluster-route) {
  --supply-route-label-space: 22px;
  padding-bottom: calc(var(--supply-move-route-padding-y) + var(--supply-route-label-space));
}

.supply-move-route-readonly {
  align-content: flex-start;
  gap: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.25;
}

.supply-move-route-readonly:not(.multi-cluster-route) {
  padding-bottom: var(--supply-move-route-padding-y);
}

.supply-route-control {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.supply-move-route > .supply-route-control > span {
  line-height: 16px;
}

.supply-route-control select {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
}

.multi-cluster-parent {
  position: relative;
  cursor: default;
}

.cluster-panel-open {
  position: relative;
  z-index: 35;
}

.multi-cluster-route {
  position: relative;
  align-content: start;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.cluster-popover-anchor {
  display: inline-grid;
  width: fit-content;
  max-width: 100%;
}

.cluster-expand-button {
  display: inline-grid;
  grid-template-columns: 16px minmax(0, auto);
  align-items: center;
  justify-content: start;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  text-align: left;
}

.cluster-expand-button svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.cluster-route-overlay-root {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.supply-cluster-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  display: grid;
  width: min(420px, calc(100vw - 32px));
  max-height: min(64vh, 560px);
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  box-shadow: 0 18px 46px rgba(15, 18, 33, 0.14);
}

.supply-cluster-panel-head {
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  padding: 10px 12px;
}

.supply-cluster-panel-inner {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.supply-cluster-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 0 0 10px;
}

.supply-cluster-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.supply-cluster-name {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.supply-cluster-name strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.supply-route-row {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
  row-gap: 2px;
}

.supply-route-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.2;
  white-space: normal;
}

.supply-route-value {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.missing-date {
  color: var(--danger);
}

.form-grid {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.context-route {
  margin: 16px 16px 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 640;
  line-height: 1.35;
  padding: 12px;
  overflow-wrap: anywhere;
}

.action-strip {
  justify-content: flex-end;
  padding: 0 16px 16px;
}

.context-route + .action-strip {
  padding-top: 12px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  color: var(--muted);
}

.checkbox-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.checkbox-row input {
  width: 16px;
  min-height: 16px;
}

.settings-help-tip {
  display: inline-grid;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--canvas);
  color: var(--muted);
  cursor: help;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}

.settings-help-tooltip-portal {
  position: fixed;
  z-index: 220;
  width: max-content;
  max-width: min(360px, calc(100vw - 24px));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.3;
  padding: 7px 9px;
  pointer-events: none;
  text-align: left;
  box-shadow: var(--shadow-lift);
}

.settings-help-tooltip-portal[hidden] {
  display: none;
}

.settings-help-tip:hover,
.settings-help-tip:focus-visible {
  border-color: rgba(123, 97, 255, 0.38);
  color: var(--primary-strong);
  outline: none;
}

.recent {
  border-top: 1px solid var(--hairline);
  background: var(--panel-soft);
  padding: 13px 16px 16px;
}

.recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.recent-list {
  display: grid;
  gap: 7px;
  max-height: 188px;
  overflow: auto;
}

.recent-item {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--muted);
  font-size: 12px;
  padding: 9px;
}

.recent-item strong {
  color: var(--ink);
}

.summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.preview-head-actions {
  display: grid;
  justify-items: end;
  align-content: center;
  min-width: 0;
  gap: 7px;
}

.preview-create-move-button {
  min-width: 184px;
  border-color: rgba(123, 97, 255, 0.44);
  background: linear-gradient(100deg, rgba(123, 97, 255, 0.16) 0%, rgba(77, 107, 255, 0.14) 72%, rgba(98, 203, 255, 0.18) 100%);
  color: var(--primary-strong);
  box-shadow: 0 1px 2px rgba(15, 18, 33, 0.05);
}

.preview-create-move-button:hover:not(:disabled) {
  border-color: var(--primary);
  background: linear-gradient(100deg, rgba(123, 97, 255, 0.22) 0%, rgba(77, 107, 255, 0.19) 72%, rgba(98, 203, 255, 0.24) 100%);
  color: var(--primary-strong);
  box-shadow: 0 8px 18px rgba(123, 97, 255, 0.12);
}

.preview-create-notice {
  max-width: 320px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-align: right;
}

.preview-create-notice[hidden] {
  display: none;
}

.preview-create-notice.error {
  color: var(--danger);
}

.preview-create-notice.busy {
  color: var(--warning-text);
}

.preview-create-notice.ok {
  color: var(--forest);
}

.preview-title-group {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.preview-close-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.preview-close-button:hover,
.preview-close-button:focus-visible {
  color: var(--coral);
}

.preview-close-button svg {
  width: 18px;
  height: 18px;
}

.preview-body {
  overflow: auto;
  padding: 14px;
}

.bulk-preview-actions,
.selected-supply-list,
.bulk-preview-group {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
}

.reconcile-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--body);
  font-size: 13px;
  padding: 0;
}

.reconcile-summary strong,
.bulk-preview-actions strong,
.selected-supply-row strong,
.assortment-cell strong {
  color: var(--ink);
}

.reconcile-summary.match-matched {
  background: transparent;
}

.reconcile-summary.match-mismatch {
  background: transparent;
}

.reconcile-summary.match-missing {
  background: transparent;
}

.reconcile-summary p {
  color: var(--muted);
}

.reconcile-summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.24fr);
  gap: 16px;
  align-items: start;
}

.reconcile-summary-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.preview-supply-title,
.preview-move-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.preview-move-title {
  color: var(--ink);
  font-weight: 720;
}

.preview-direction-stack {
  display: grid;
  gap: 3px;
  color: var(--body);
}

.preview-route-sections {
  display: grid;
  gap: 8px;
}

.preview-route-section {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.preview-route-section strong {
  color: var(--ink);
  font-weight: 720;
}

.reconcile-message {
  color: var(--muted);
}

.reconcile-position-counts {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--muted);
  font-weight: 620;
  text-align: right;
}

.reconcile-position-counts span,
.move-route-summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.move-route-summary {
  display: grid;
  gap: 3px;
  color: var(--body);
  font-size: 13px;
  font-weight: 400;
}

.reconcile-issue-strip {
  display: grid;
  gap: 6px;
  margin: 0;
  border-top: 1px solid var(--yellow);
  background: var(--yellow-soft);
  color: var(--warning-text);
  padding: 9px 12px 10px;
}

.reconcile-issue-strip strong {
  color: var(--warning-text);
  font-weight: 620;
}

.reconcile-issue-strip ul {
  margin: 0;
  padding-left: 18px;
}

.bulk-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px;
}

.bulk-preview-actions p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.selected-supply-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: var(--canvas);
}

.selected-supply-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  padding: 10px 12px;
}

.selected-supply-row:last-child {
  border-bottom: 0;
}

.selected-supply-row span {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.bulk-preview {
  display: grid;
  gap: 12px;
}

.bulk-preview-group {
  overflow: hidden;
  background: var(--canvas);
}

.bulk-preview-group.error {
  border-color: rgba(239, 68, 68, 0.28);
  background: var(--danger-soft);
  padding: 12px;
}

.bulk-preview-group.error h3 {
  margin-bottom: 5px;
}

.bulk-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--hairline);
  background: var(--panel-soft);
  padding: 11px 12px;
}

.bulk-preview-head h3 {
  margin-right: auto;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  color: var(--body);
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--hairline);
  padding: 10px 9px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 760;
}

td {
  overflow-wrap: anywhere;
}

.assortment-cell {
  display: grid;
  gap: 3px;
}

.assortment-cell span {
  color: var(--body);
  font-size: 13px;
  font-weight: 400;
}

.assortment-cell .assortment-name {
  color: var(--body);
}

.assortment-cell .assortment-note {
  color: var(--link);
  font-size: 12px;
}

.assortment-cell strong {
  font-weight: 400;
}

.ok-text {
  color: var(--forest);
  font-weight: 560;
}

.error-text {
  color: var(--danger);
  font-weight: 600;
}

.stock-ok-text,
.stock-shortage-text {
  display: inline-block;
  max-width: 220px;
}

.stock-ok-text {
  color: var(--forest);
  font-weight: 560;
}

.stock-shortage-text {
  color: var(--danger);
  font-weight: 600;
}

.settings-open {
  overflow: hidden;
}

.settings-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(23, 27, 34, 0.48);
  padding: 24px;
}

.settings-overlay[hidden] {
  display: none;
}

.settings-modal {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: min(1152px, 100%);
  height: min(624px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lift);
  outline: none;
}

.settings-section-head > div {
  min-width: 0;
}

.settings-section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.settings-modal-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.settings-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  border-right: 1px solid var(--hairline);
  background: #fbfbfa;
  padding: 60px 8px 14px;
}

.settings-close-button {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.settings-close-button:hover:not(:disabled),
.settings-close-button:focus-visible {
  border-color: rgba(23, 27, 34, 0.08);
  background: rgba(23, 27, 34, 0.08);
  color: var(--ink);
  outline: none;
}

.settings-close-button svg {
  width: 18px;
  height: 18px;
}

.settings-tab-button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--body);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  padding: 9px 10px;
  text-align: left;
}

.settings-tab-button:hover {
  background: rgba(123, 97, 255, 0.08);
  color: var(--primary-strong);
}

.settings-tab-button.active {
  background: rgba(123, 97, 255, 0.10);
  color: var(--primary-strong);
}

.settings-tab-button svg {
  width: 17px;
  height: 17px;
}

.settings-content {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 0 60px 18px 16px;
}

.settings-panel {
  display: grid;
  gap: 16px;
}

.settings-panel[hidden] {
  display: none;
}

.settings-panel-title {
  position: sticky;
  z-index: 2;
  top: 0;
  border-bottom: 1px solid var(--hairline);
  background: var(--panel);
  padding: 16px 0 18px;
}

.settings-panel-title h2 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 560;
  line-height: 1.2;
}

.settings-section {
  display: grid;
  gap: 13px;
  border-bottom: 0;
  background: var(--panel);
  padding: 0 0 16px;
}

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

.settings-section-head h3 {
  display: inline-grid;
  grid-template-columns: 10px auto;
  align-items: center;
  column-gap: 8px;
}

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

.settings-grid-wide {
  grid-column: 1 / -1;
}

.settings-route-grid[hidden] {
  display: none;
}

.settings-detailed-mode-row,
.cluster-store-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-detailed-mode-row {
  justify-content: space-between;
}

.settings-feature-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-feature-locked .checkbox-control {
  color: var(--muted);
}

.settings-feature-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.settings-feature-note[hidden] {
  display: none;
}

.cluster-store-actions {
  justify-content: flex-end;
  margin-left: auto;
}

.compact-button {
  min-height: 34px;
  padding: 6px 10px;
}

.settings-cluster-routes {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.settings-cluster-routes[hidden] {
  display: none;
}

.settings-cluster-routes-intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.settings-cluster-routes-body {
  display: grid;
  gap: 18px;
}

.settings-cluster-route-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.settings-cluster-name {
  grid-column: 1 / -1;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.settings-cluster-empty {
  color: var(--muted);
  margin: 0;
}

.vf-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.vf-select-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  gap: 8px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--canvas);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 560;
  padding: 9px 12px;
  text-align: left;
}

.vf-select-trigger:hover:not(:disabled),
.vf-select-trigger[aria-expanded="true"] {
  border-color: var(--line-strong);
}

.vf-select-trigger:focus-visible {
  border-color: var(--focus-border);
  box-shadow: 0 0 0 3px var(--focus);
  outline: none;
}

.vf-select-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.vf-select-trigger-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-select-trigger-icon {
  width: 15px;
  height: 15px;
  transition: transform 140ms ease;
}

.vf-select-trigger[aria-expanded="true"] .vf-select-trigger-icon {
  transform: rotate(180deg);
}

.vf-select-menu {
  position: fixed;
  z-index: 260;
  display: grid;
  gap: 2px;
  max-height: min(320px, calc(100vh - 24px));
  overflow-y: auto;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--canvas);
  padding: 7px;
  box-shadow: var(--shadow-lift);
}

.vf-select-menu[hidden] {
  display: none;
}

.vf-select-option {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  text-align: left;
}

.vf-select-option:hover,
.vf-select-option:focus-visible,
.vf-select-option.active {
  background: var(--panel-soft);
  outline: none;
}

.vf-select-option[aria-selected="true"] {
  position: relative;
  padding-right: 32px;
  font-weight: 650;
}

.vf-select-option[aria-selected="true"]::after {
  content: "✓";
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  color: var(--ink);
}

.connection-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  align-self: center;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.settings-control-disabled {
  opacity: 0.62;
}

.settings-control-disabled select {
  cursor: not-allowed;
}

.settings-mode-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: -2px 0 0;
}

.settings-connection-alert {
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  padding: 9px 10px;
}

.settings-connection-alert[hidden] {
  display: none;
}

.connection-dot.pending {
  border-color: rgba(245, 158, 11, 0.42);
  background: var(--yellow);
}

.connection-dot.connected {
  border-color: rgba(22, 163, 74, 0.38);
  background: var(--forest);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.connection-dot.checking {
  border-color: rgba(123, 97, 255, 0.40);
  background: var(--vf-blue);
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.18);
}

.connection-dot.error {
  border-color: rgba(220, 38, 38, 0.42);
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.saved-credential-input {
  background: var(--panel-soft);
  color: var(--muted);
}

.saved-credential-input:focus {
  background: #fff;
  color: var(--ink);
}

.settings-section-actions {
  display: flex;
  justify-content: flex-start;
}

.settings-movement-actions {
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}

.login-page {
  position: relative;
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
  --vf-auth-primary: #7b61ff;
  --vf-auth-primary-600: #6854f2;
  --vf-auth-primary-700: #5642d9;
  --vf-auth-blue: #4d6bff;
  --vf-auth-cyan: #62cbff;
  --vf-auth-gradient: linear-gradient(100deg, #7b61ff 0%, #6854f2 42%, #4d6bff 72%, #62cbff 100%);
  --vf-auth-bg: #fafbff;
  --vf-auth-bg-soft: #f7f4ff;
  --vf-auth-bg-blue: #eef4ff;
  --vf-auth-surface: #ffffff;
  --vf-auth-glass: rgba(255, 255, 255, 0.78);
  --vf-auth-border: #e6e8f0;
  --vf-auth-border-strong: #d9ddf0;
  --vf-auth-text: #0f1221;
  --vf-auth-text-secondary: #2f3852;
  --vf-auth-muted: #6e758a;
  --vf-auth-placeholder: #a4abbd;
  --vf-auth-focus-ring: rgba(123, 97, 255, 0.18);
  --vf-auth-error: #ef4444;
  --vf-auth-error-bg: #fff1f2;
  --vf-auth-success: #16a34a;
  --vf-auth-success-bg: #ecfdf3;
  --vf-auth-disabled: #e9ebf2;
  --vf-auth-radius-input: 12px;
  --vf-auth-radius-card: 24px;
  --vf-auth-radius-mobile: 20px;
  --vf-auth-shadow-card: 0 24px 70px rgba(15, 18, 33, 0.12);
  --vf-auth-shadow-button: 0 12px 24px rgba(77, 107, 255, 0.22);
  background:
    radial-gradient(circle at 18% 16%, rgba(123, 97, 255, 0.10), transparent 32%),
    radial-gradient(circle at 84% 8%, rgba(98, 203, 255, 0.13), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, var(--vf-auth-bg-soft) 48%, var(--vf-auth-bg-blue) 100%);
  color: var(--vf-auth-text-secondary);
}

html:has(> body.login-page) {
  min-width: 0;
  overflow-y: auto;
  background: #fafbff;
  scrollbar-gutter: auto;
}

.login-page::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background: url("./verflex-ui/wave-background.svg") center bottom / cover no-repeat;
  opacity: 0.42;
}

.auth-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 48px, 1160px);
  min-height: 64px;
  margin: 18px auto 0;
  color: var(--vf-auth-muted);
  font-size: 13px;
  font-weight: 650;
}

.auth-nav .nav-brand {
  color: var(--vf-auth-text);
}

.auth-brand-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 86px;
  object-fit: contain;
}

.auth-nav-status {
  border: 1px solid rgba(123, 97, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--vf-auth-primary-700);
  box-shadow: 0 8px 24px rgba(15, 18, 33, 0.06);
  padding: 8px 12px;
}

.login-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 424px);
  align-items: center;
  justify-content: center;
  width: min(100% - 48px, 960px);
  min-height: calc(100vh - 100px);
  margin: 0 auto;
  padding: 42px 0 56px;
}

.login-shell--split {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 424px);
  justify-content: center;
  width: min(100% - 80px, 1180px);
  gap: 64px;
}

.login-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  border: 1px solid rgba(230, 232, 240, 0.82);
  border-radius: 32px;
  background:
    radial-gradient(circle at 68% 18%, rgba(123, 97, 255, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.38);
  box-shadow: 0 24px 80px rgba(15, 18, 33, 0.08);
}

.login-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background: url("./verflex-ui/wave-background.svg") center / cover no-repeat;
  opacity: 0.74;
}

.login-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.62));
}

.login-visual-logo {
  position: relative;
  z-index: 1;
  width: min(280px, 48vw);
  filter: drop-shadow(0 30px 80px rgba(123, 97, 255, 0.25));
}

.login-visual p {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin-top: 28px;
  color: var(--vf-auth-muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}

.login-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--vf-auth-border);
  border-radius: var(--vf-auth-radius-card);
  background: var(--vf-auth-glass);
  box-shadow: var(--vf-auth-shadow-card);
  backdrop-filter: blur(18px);
  padding: 40px;
}

.login-card-logo {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--vf-auth-text);
  font-size: 18px;
  font-weight: 760;
}

.login-card-logo img {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(123, 97, 255, 0.22));
}

.login-panel > * {
  position: relative;
}

.login-head {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.login-eyebrow {
  color: var(--vf-auth-primary-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.login-head h1 {
  max-width: 18ch;
  color: var(--vf-auth-text);
  font-size: 28px;
  line-height: 36px;
  font-weight: 760;
  letter-spacing: 0;
}

.login-head p {
  max-width: 32ch;
  color: var(--vf-auth-muted);
  font-size: 14px;
  line-height: 22px;
}

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

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form label span {
  color: var(--vf-auth-text-secondary);
  font-size: 13px;
  line-height: 18px;
  font-weight: 650;
}

.login-form input {
  min-height: 48px;
  border-color: var(--vf-auth-border);
  border-radius: var(--vf-auth-radius-input);
  background: #ffffff;
  color: var(--vf-auth-text);
  font-size: 14px;
  line-height: 20px;
  padding: 0 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-form input:hover {
  border-color: var(--vf-auth-border-strong);
}

.login-form input:focus {
  border-color: var(--vf-auth-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--vf-auth-focus-ring);
}

.login-form input[aria-invalid="true"],
.login-form label.has-error input {
  border-color: var(--vf-auth-error);
  background: var(--vf-auth-error-bg);
}

.field-error {
  color: var(--vf-auth-error);
  font-size: 12px;
  font-weight: 650;
}

.login-form .code-input {
  min-height: 52px;
  font-size: 22px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-align: center;
}

.login-form .button.primary {
  min-height: 48px;
  margin-top: 2px;
  border: 0;
  border-radius: var(--vf-auth-radius-input);
  background: var(--vf-auth-gradient);
  box-shadow: var(--vf-auth-shadow-button);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.login-form .button.primary:hover {
  box-shadow: 0 16px 30px rgba(77, 107, 255, 0.28);
  filter: saturate(1.1) brightness(1.02);
}

.login-form .button.primary:active {
  transform: translateY(1px);
  box-shadow: 0 8px 20px rgba(77, 107, 255, 0.22);
}

.login-form .button.primary:disabled {
  background: var(--vf-auth-disabled);
  box-shadow: none;
  color: var(--vf-auth-muted);
  cursor: not-allowed;
  opacity: 0.52;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--vf-auth-muted);
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.auth-switch a {
  color: var(--vf-auth-primary);
  font-weight: 760;
  text-decoration: none;
}

.auth-switch a:hover {
  color: var(--vf-auth-primary-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-error {
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 16px;
  background: var(--vf-auth-error-bg);
  color: var(--vf-auth-error);
  font-size: 13px;
  font-weight: 650;
  line-height: 20px;
  overflow-wrap: anywhere;
  padding: 12px 14px;
}

.auth-note {
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 16px;
  background: var(--vf-auth-success-bg);
  color: var(--vf-auth-success);
  font-size: 13px;
  font-weight: 650;
  line-height: 20px;
  overflow-wrap: anywhere;
  padding: 12px 14px;
}

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

.login-page {
  --vf-primary: #7b61ff;
  --vf-primary-600: #6854f2;
  --vf-primary-700: #5642d9;
  --vf-blue: #4d6bff;
  --vf-cyan: #62cbff;
  --vf-gradient-primary: linear-gradient(100deg, #7b61ff 0%, #6854f2 42%, #4d6bff 72%, #62cbff 100%);
  --vf-bg: #fafbff;
  --vf-surface: #ffffff;
  --vf-surface-glass: rgba(255, 255, 255, 0.78);
  --vf-surface-muted: #f6f7fb;
  --vf-border: #e6e8f0;
  --vf-border-strong: #d9ddf0;
  --vf-text: #0f1221;
  --vf-text-secondary: #2f3852;
  --vf-muted: #6e758a;
  --vf-text-muted: #6e758a;
  --vf-placeholder: #a4abbd;
  --vf-focus: #7b61ff;
  --vf-focus-ring: rgba(123, 97, 255, 0.18);
  --vf-error: #ef4444;
  --vf-error-bg: #fff1f2;
  --vf-shadow-card: 0 24px 70px rgba(15, 18, 33, 0.12);
  --vf-shadow-button: 0 12px 24px rgba(77, 107, 255, 0.22);
  --vf-radius-md: 12px;
  --vf-radius-card: 24px;
  --vf-radius-mobile: 20px;
  overflow: hidden;
  width: 100%;
  background: var(--vf-bg);
  color: var(--vf-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.vf-auth-page {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  background:
    url("./verflex-ui/concept-one-background.svg?v=20260704-concept-one-bg") center / cover no-repeat,
    #fbfbff;
}

.vf-visual {
  position: relative;
  display: grid;
  place-items: center;
  align-self: start;
  justify-self: center;
  grid-area: 1 / 1;
  min-width: 0;
  width: min(100%, 540px);
  overflow: hidden;
  background: transparent;
  padding: clamp(72px, 10vh, 104px) 40px 0;
}

.vf-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  display: none;
  pointer-events: none;
}

.vf-visual__logo {
  position: relative;
  z-index: 1;
  display: block;
}

.vf-visual__logo img {
  display: block;
  width: min(118px, 32vw);
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(123, 97, 255, 0.13));
}

.vf-auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  border: 1px solid var(--vf-border);
  border-radius: 14px;
  background: var(--vf-surface-glass);
  box-shadow: var(--vf-shadow-card);
  backdrop-filter: blur(18px);
}

.vf-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-area: 1 / 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  padding: 32px;
}

.vf-auth-card__body {
  padding: 34px 38px 30px;
}

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

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

.vf-form-head {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
  text-align: center;
}

.vf-form-head h1 {
  margin: 0;
  color: var(--vf-text);
  font-size: 18px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 24px;
}

.vf-form-head p {
  margin: 0;
  color: var(--vf-muted);
  font-size: 13px;
  line-height: 20px;
}

.vf-field {
  display: grid;
  gap: 8px;
}

.vf-label {
  color: var(--vf-text-secondary);
  font-size: 13px;
  font-weight: 650;
  line-height: 18px;
}

.vf-input-wrap {
  position: relative;
}

.vf-input-icon,
.vf-input-action {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  width: 20px;
  height: 20px;
  color: var(--vf-placeholder);
  place-items: center;
  transform: translateY(-50%);
}

.vf-input-icon {
  left: 14px;
}

.vf-input-action {
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.vf-input-action:hover {
  color: var(--vf-text-secondary);
  background: var(--vf-surface-muted);
}

.vf-input-action.is-active {
  color: var(--vf-primary-700);
  background: rgba(123, 97, 255, 0.10);
}

.vf-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius-md);
  outline: none;
  background: #ffffff;
  color: var(--vf-text);
  font-size: 14px;
  line-height: 20px;
  padding: 0 42px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.vf-input:hover {
  border-color: #cfd4e1;
}

.vf-input:focus {
  border-color: var(--vf-focus);
  box-shadow: 0 0 0 4px var(--vf-focus-ring);
}

.vf-field.is-error .vf-input {
  border-color: var(--vf-error);
  background: var(--vf-error-bg);
}

.vf-field--code {
  gap: 12px;
}

.vf-code-group {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.vf-code-slot {
  width: 100%;
  height: 48px;
  border: 0;
  border-bottom: 2px solid #d8dce5;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--vf-text);
  caret-color: transparent;
  font-size: 24px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  line-height: 32px;
  padding: 0 0 8px;
  text-align: center;
  transition: border-color 160ms ease;
}

.vf-code-slot:hover {
  border-bottom-color: #c9ced8;
}

.vf-code-slot:focus {
  border-bottom-color: #747b87;
  box-shadow: none;
}

.vf-resend-code {
  align-items: center;
  color: var(--vf-text-muted);
  display: flex;
  font-size: 13px;
  font-weight: 650;
  justify-content: center;
  line-height: 20px;
  min-height: 22px;
  text-align: center;
}

.vf-link-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--vf-primary-700);
  cursor: pointer;
  font: inherit;
  font-weight: 780;
  padding: 0;
  text-decoration: none;
}

.vf-link-button:hover {
  color: var(--vf-primary-800);
  text-decoration: underline;
}

.vf-link-button:disabled {
  color: var(--vf-text-muted);
  cursor: default;
  text-decoration: none;
}

.vf-note {
  border: 1px solid rgba(123, 97, 255, 0.18);
  border-radius: var(--vf-radius-md);
  background: rgba(123, 97, 255, 0.08);
  color: var(--vf-text-secondary);
  font-size: 13px;
  font-weight: 650;
  line-height: 20px;
  overflow-wrap: anywhere;
  padding: 12px 14px;
}

.vf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: var(--vf-radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.vf-button--primary {
  background: var(--vf-gradient-primary);
  box-shadow: var(--vf-shadow-button);
  color: #ffffff;
}

.vf-button--primary:hover {
  box-shadow: 0 15px 30px rgba(77, 107, 255, 0.28);
  filter: saturate(1.08) brightness(1.02);
}

.vf-button--primary:active {
  box-shadow: 0 8px 20px rgba(77, 107, 255, 0.22);
  transform: translateY(1px);
}

.vf-register-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  gap: 6px;
  border-top: 1px solid var(--vf-border);
  background: rgba(246, 247, 251, 0.78);
  color: var(--vf-muted);
  font-size: 13px;
  line-height: 18px;
  padding: 10px 18px;
  text-align: center;
}

.vf-register-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vf-primary-700);
  font-weight: 740;
  padding: 3px 4px;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.vf-register-cta a:hover {
  background: rgba(123, 97, 255, 0.08);
  color: var(--vf-primary-700);
}

.vf-alert {
  margin-bottom: 20px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 16px;
  background: var(--vf-error-bg);
  color: var(--vf-error);
  font-size: 13px;
  font-weight: 650;
  line-height: 20px;
  overflow-wrap: anywhere;
  padding: 12px 14px;
}

@media (max-width: 1023px) {
  .vf-auth-page {
    place-items: center;
    background: url("./verflex-ui/wave-background.svg") center / cover no-repeat, var(--vf-bg);
  }

  .vf-visual {
    grid-area: auto;
    align-self: auto;
    justify-self: stretch;
    min-height: 248px;
    width: auto;
    background: transparent;
    padding: 40px 24px 12px;
  }

  .vf-visual::after {
    display: none;
  }

  .vf-visual__logo img {
    width: 176px;
  }

  .vf-form-panel {
    padding: 32px 24px;
  }

  .vf-auth-card {
    max-width: 400px;
  }
}

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

  .vf-auth-page {
    width: 100vw;
    min-height: 100svh;
    overflow-x: hidden;
  }

  .vf-visual {
    min-height: 154px;
    padding-top: 26px;
  }

  .vf-form-panel {
    width: 100vw;
    padding: 22px 28px;
  }

  .vf-auth-card {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
  }

  .vf-auth-card__body {
    padding: 28px 24px 24px;
  }

  .vf-form {
    gap: 16px;
  }
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 1fr;
    grid-template-areas:
      "ozon"
      "preview";
  }
}

@media (max-width: 1480px) {
  .panel-workspace-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .panel-workspace-row h2 {
    white-space: normal;
  }
}

@media (max-width: 1180px) {
  .panel-actions {
    flex-wrap: wrap;
  }

  .panel-actions-right {
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  h1 {
    font-size: 42px;
  }

  .panel-identity-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .panel-brand-row {
    min-width: 0;
  }

  .panel-user-actions {
    justify-content: flex-end;
  }

  .login-shell {
    grid-template-columns: minmax(0, 448px);
  }

  .login-shell--split {
    grid-template-columns: minmax(0, 560px);
    width: min(100% - 64px, 720px);
    gap: 24px;
  }

  .login-visual {
    min-height: 260px;
  }

  .login-visual-logo {
    width: 156px;
  }

  .login-visual p {
    max-width: 360px;
    margin-top: 18px;
  }
}

@media (max-width: 720px) {
  :root {
    --sticky-panel-top: 0px;
  }

  body {
    font-size: 14px;
  }

  h1 {
    font-size: 34px;
  }

  .auth-nav {
    width: calc(100% - 24px);
    min-height: 56px;
    margin-top: 10px;
  }

  .auth-nav-status {
    display: none;
  }

  .login-shell {
    max-width: 100%;
    width: calc(100vw - 32px);
    min-height: 0;
    padding: 12px 0 22px;
  }

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

  .login-shell--split {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .auth-brand-logo {
    width: 154px;
  }

  .login-visual {
    min-height: 128px;
    border-radius: var(--vf-auth-radius-card);
  }

  .login-visual::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.58));
  }

  .login-visual-logo {
    width: 86px;
  }

  .login-visual p {
    display: none;
  }

  .login-panel {
    border-radius: var(--vf-auth-radius-mobile);
    gap: 14px;
    padding: 22px 20px;
  }

  .login-card-logo {
    gap: 6px;
  }

  .login-card-logo img {
    width: 56px;
  }

  .login-head h1 {
    font-size: 24px;
    line-height: 31px;
  }

  .login-form input,
  .login-form .button.primary {
    min-height: 48px;
  }

  .app-shell {
    padding: 0 0 24px;
  }

  .workspace {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .panel-identity-row,
  .panel-workspace-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .panel-user-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .product-admin-link,
  .user-menu-trigger {
    width: 100%;
  }

  .panel-brand-row {
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .status-pill {
    min-width: 78px;
  }

  .user-menu-trigger {
    max-width: none;
    grid-template-columns: 30px minmax(0, 1fr) 16px;
  }

  input,
  select {
    min-height: 40px;
  }

  .settings-modal {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    max-height: none;
    border-radius: 0;
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }

  .settings-overlay {
    align-items: stretch;
    padding: 0;
  }

  .settings-modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
  }

  .settings-nav {
    grid-auto-flow: column;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: minmax(0, 1fr);
    overflow-x: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    padding: 56px 8px 8px;
  }

  .settings-tab-button {
    min-width: 0;
  }

  .settings-content {
    min-height: 0;
    overflow-y: auto;
    padding: 0 12px 12px;
  }

  .settings-panel-title {
    padding: 12px 0 14px;
  }

  .settings-section-head,
  .settings-section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-detailed-mode-row {
    align-items: stretch;
    flex-direction: column;
  }

  .cluster-store-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .settings-cluster-route-row {
    grid-template-columns: 1fr;
  }

  .settings-cluster-name {
    grid-column: auto;
  }

  .settings-section-actions .button {
    width: 100%;
  }

  .credential-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .credential-actions .button {
    width: 100%;
  }

  .credential-actions .icon-button {
    width: 48px;
  }

  .panel-head {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .panel-actions {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
  }

  .panel-actions-left,
  .panel-actions-right {
    flex: 0 0 auto;
  }

  .panel-actions .button {
    width: 100%;
    min-width: 0;
  }

  .panel-actions .icon-button {
    width: 48px;
  }

  .lookback-control {
    grid-template-columns: 1fr;
    align-content: center;
    min-width: 0;
  }

  .supply-search-control {
    min-width: 0;
  }

  .top-selection-toggle,
  .status-filter-slot {
    width: 100%;
    min-width: 0;
  }

  .lookback-control span {
    display: none;
  }

  .small-input {
    width: 100%;
    min-width: 0;
  }

  .status-filter {
    width: 100%;
  }

  .status-filter summary {
    justify-content: space-between;
    width: 100%;
  }

  .status-filter-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
  }

  .supply-list {
    max-height: none;
  }

  .preview-panel {
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100vw - 24px);
  }

  .preview-head-actions {
    justify-items: stretch;
    width: 100%;
  }

  .preview-create-move-button {
    width: 100%;
    min-width: 0;
  }

  .preview-create-notice {
    max-width: none;
    text-align: left;
  }

  .supply-table {
    display: grid;
    gap: 10px;
    min-width: 0;
    border-top: 0;
    background: var(--panel-soft);
    padding: 10px;
  }

  .supply-pagination {
    align-items: stretch;
    justify-content: stretch;
    flex-wrap: wrap;
    min-width: 0;
    border-top: 0;
    background: var(--panel-soft);
    padding: 10px;
  }

  .supply-page-size {
    grid-template-columns: minmax(0, 1fr);
  }

  .supply-page-size,
  .supply-page-buttons {
    flex: 1 1 180px;
  }

  .supply-page-buttons {
    justify-content: flex-end;
  }

  .supply-table.detailed-mode {
    min-width: 0;
  }

  .supply-table-head {
    display: none;
  }

  .selected-supply-row,
  .bulk-preview-actions {
    align-items: stretch;
  }

  .supply-card {
    grid-template-columns: 1fr;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
  }

  .supply-table.detailed-mode .supply-card {
    grid-template-columns: 1fr;
  }

  .supply-cluster-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .supply-cell {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    padding: 10px;
  }

  .supply-move-route {
    --supply-move-route-padding-y: 10px;
  }

  .supply-cell:last-child {
    border-bottom: 0;
  }

  .supply-status-cell,
  .supply-move-cell {
    justify-content: flex-start;
  }

  .selected-supply-row,
  .bulk-preview-actions {
    flex-direction: column;
  }

  .summary {
    justify-content: flex-start;
  }

  .reconcile-summary-layout,
  .move-route-summary {
    grid-template-columns: 1fr;
  }

  .reconcile-position-counts {
    justify-items: start;
    text-align: left;
  }

  .action-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .action-strip .checkbox-row {
    grid-column: 1 / -1;
  }

  .action-strip .button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .checkbox-row {
    margin-right: 0;
  }

  .selected-supply-row span {
    white-space: normal;
  }

  .auth-nav,
  .login-shell {
    width: min(100% - 24px, 1160px);
  }

  .auth-nav {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 12px;
  }

  .login-shell {
    gap: 18px;
    min-height: auto;
    padding: 22px 0 28px;
  }

  .login-panel {
    padding: 28px 20px;
  }

  .auth-switch {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .panel-user-actions {
    width: 100%;
  }

  .status-pill {
    min-width: 78px;
  }

  .action-strip {
    grid-template-columns: 1fr;
  }

  .panel-actions {
    flex-direction: column;
    overflow-x: visible;
  }

  .panel-actions-left,
  .panel-actions-right {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .panel-actions .icon-button {
    width: 100%;
  }

  .panel-actions .button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .icon-button,
  .supply-card {
    transition: none;
  }

  .status-pill.busy::before {
    animation: none;
  }

}

.admin-page {
  min-height: 100vh;
  background: var(--canvas);
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
}

.admin-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
  padding: 12px var(--workspace-x);
}

.admin-topbar h1 {
  font-size: 20px;
  line-height: 1.15;
}

.admin-topbar p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  margin-top: 2px;
}

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.admin-actions form {
  margin: 0;
}

.admin-transfer-link {
  min-width: 0;
}

.admin-main {
  min-width: 0;
  overflow-x: auto;
}

.admin-secret-inbox {
  display: grid;
  gap: 16px;
  margin: 16px var(--workspace-x) 0;
  border: 1px solid rgba(123, 97, 255, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 0, rgba(98, 203, 255, 0.13), transparent 34%),
    var(--panel);
  box-shadow: 0 14px 38px rgba(32, 36, 72, 0.08);
  padding: 20px;
}

.admin-secret-inbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-secret-inbox-head > div:first-child {
  min-width: 0;
}

.admin-secret-inbox-head span,
.admin-secret-text-field > span,
.admin-secret-file-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.admin-secret-inbox-head h2 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 720;
}

.admin-secret-inbox-head p {
  max-width: 720px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.admin-secret-inbox-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 32px;
  border: 1px solid rgba(22, 163, 74, 0.20);
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.08);
  color: #167342;
  font-size: 12px;
  font-weight: 700;
  padding: 0 11px;
}

.admin-secret-inbox-badge svg {
  width: 15px;
  height: 15px;
}

.admin-secret-inbox-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  align-items: stretch;
  gap: 12px;
}

.admin-secret-text-field,
.admin-secret-file-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.admin-secret-text-field textarea {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  outline: none;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 13px;
}

.admin-secret-text-field textarea:focus {
  border-color: rgba(123, 97, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.12);
}

.admin-secret-file-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.admin-secret-file-picker {
  display: grid;
  min-height: 128px;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border: 1px dashed rgba(123, 97, 255, 0.42);
  border-radius: 10px;
  background: rgba(123, 97, 255, 0.045);
  color: var(--body);
  cursor: pointer;
  padding: 14px;
  text-align: center;
}

.admin-secret-file-picker:hover,
.admin-secret-file-field input:focus-visible + .admin-secret-file-picker {
  border-color: var(--primary);
  background: rgba(123, 97, 255, 0.08);
}

.admin-secret-file-picker svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.admin-secret-file-picker strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-secret-file-picker small {
  color: var(--muted);
  font-size: 11px;
}

.admin-secret-inbox-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-secret-inbox-actions p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.admin-secret-inbox-actions p.is-success {
  color: #167342;
}

.admin-secret-inbox-actions p.is-error {
  color: var(--danger);
}

.admin-secret-inbox-actions .button {
  flex: 0 0 auto;
}

.admin-login-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 14px;
  margin: 16px var(--workspace-x) 0;
  overflow: hidden;
  border: 1px solid rgba(104, 101, 190, 0.18);
  border-radius: 14px;
  background: #11162d;
  box-shadow: 0 18px 48px rgba(20, 23, 54, 0.12);
  color: #f7f8ff;
}

.admin-login-map-head {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 0;
}

.admin-login-map-head > div:first-child {
  min-width: 0;
}

.admin-map-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  width: max-content;
  gap: 3px;
  margin-bottom: 14px;
  border: 1px solid rgba(202, 207, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  padding: 3px;
}

.admin-map-mode-button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(231, 234, 255, 0.64);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  padding: 0 13px;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.admin-map-mode-button:hover {
  color: #ffffff;
}

.admin-map-mode-button.is-active {
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(4, 7, 24, 0.18);
  color: #4338a8;
}

.admin-map-mode-button:focus-visible {
  outline: 2px solid #b8b0ff;
  outline-offset: 2px;
}

.admin-map-sales-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -5px 0 14px;
}

.admin-map-sales-controls[hidden] {
  display: none;
}

.admin-map-filter-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  border: 1px solid rgba(202, 207, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 3px;
  scrollbar-width: none;
}

.admin-map-filter-switch::-webkit-scrollbar {
  display: none;
}

.admin-map-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 29px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(231, 234, 255, 0.62);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 680;
  padding: 0 10px;
  white-space: nowrap;
}

.admin-map-filter-button:hover {
  color: #ffffff;
}

.admin-map-filter-button.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.admin-map-filter-button:focus-visible {
  outline: 2px solid #b8b0ff;
  outline-offset: 1px;
}

.admin-map-color-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.admin-map-color-dot.is-origin {
  background: #ee8138;
}

.admin-map-color-dot.is-destination {
  background: #7159ec;
}

.admin-login-map-eyebrow {
  color: #aeb8ff;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-login-map-head h2 {
  margin-top: 5px;
  color: #ffffff;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 740;
  line-height: 1.12;
}

.admin-login-map-head p {
  margin-top: 5px;
  color: rgba(231, 234, 255, 0.66);
  font-size: 12px;
  font-weight: 560;
}

.admin-login-map-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(84px, auto));
  overflow: hidden;
  border: 1px solid rgba(202, 207, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
}

.admin-login-map-stats article {
  display: grid;
  gap: 2px;
  min-width: 92px;
  padding: 10px 14px;
}

.admin-login-map-stats article + article {
  border-left: 1px solid rgba(202, 207, 255, 0.14);
}

.admin-login-map-stats strong {
  color: #ffffff;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  line-height: 1;
}

.admin-login-map-stats span {
  color: rgba(231, 234, 255, 0.62);
  font-size: 11px;
  font-weight: 600;
}

.admin-world-map {
  position: relative;
  min-width: 0;
  min-height: 340px;
  height: clamp(340px, 48vw, 520px);
  overflow: hidden;
  background: #e9eaf0;
}

.admin-world-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.admin-world-map .maplibregl-map {
  color: #20243a;
  font-family: inherit;
}

.admin-world-map .maplibregl-canvas {
  outline: 0;
}

.admin-world-map .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(61, 59, 111, 0.15);
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(25, 28, 55, 0.14);
}

.admin-world-map .maplibregl-ctrl-group button {
  width: 32px;
  height: 32px;
}

.admin-world-map .maplibregl-ctrl-attrib {
  color: #616477;
  font-size: 9px;
}

.admin-world-map .maplibregl-popup-content {
  overflow: hidden;
  border: 1px solid rgba(81, 76, 151, 0.15);
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(28, 30, 59, 0.22);
  padding: 0;
}

.admin-map-popup {
  display: grid;
  gap: 3px;
  min-width: 190px;
  color: #696b7c;
  padding: 12px 14px;
  text-align: left;
}

.admin-map-popup strong {
  color: #1f2233;
  font-size: 13px;
}

.admin-map-popup span,
.admin-map-popup small {
  overflow: hidden;
  font-size: 11px;
  font-weight: 560;
  text-overflow: ellipsis;
}

.admin-world-map-empty {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  display: grid;
  max-width: 360px;
  transform: translateX(-50%);
  justify-items: center;
  gap: 4px;
  border: 1px solid rgba(211, 216, 255, 0.14);
  border-radius: 10px;
  background: rgba(9, 13, 33, 0.76);
  color: rgba(231, 234, 255, 0.64);
  padding: 12px 16px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.admin-world-map-empty[hidden] {
  display: none;
}

.admin-world-map-empty svg {
  width: 18px;
  height: 18px;
  color: #a99cff;
}

.admin-world-map-empty strong {
  color: #ffffff;
  font-size: 13px;
}

.admin-world-map-empty span {
  font-size: 11px;
  font-weight: 560;
}

.admin-login-map-foot {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(202, 207, 255, 0.1);
  color: rgba(231, 234, 255, 0.52);
  padding: 11px 24px 14px;
  font-size: 11px;
  font-weight: 560;
}

.admin-login-map-foot > * {
  min-width: 0;
}

.admin-login-map-foot > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-login-map-foot svg {
  width: 14px;
  height: 14px;
}

.admin-login-map-recent {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.admin-login-map-recent span {
  white-space: nowrap;
}

.admin-login-map-recent strong {
  color: rgba(248, 249, 255, 0.86);
  font-weight: 650;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  min-width: 520px;
  padding: 14px var(--workspace-x);
}

.admin-metric {
  display: grid;
  gap: 6px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.admin-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.admin-metric strong {
  color: var(--ink);
  font-size: 28px;
  font-weight: 760;
  line-height: 1;
}

.admin-table-wrap {
  min-width: 1230px;
}

.admin-table {
  min-width: 1230px;
  background: var(--canvas);
}

.admin-table-head,
.admin-user-row {
  display: grid;
  grid-template-columns:
    78px
    minmax(250px, 1.3fr)
    minmax(170px, 0.85fr)
    minmax(100px, 0.42fr)
    minmax(170px, 0.85fr)
    minmax(170px, 0.78fr)
    minmax(150px, 0.65fr)
    minmax(150px, 0.65fr);
}

.admin-table-head {
  position: sticky;
  z-index: 10;
  top: 65px;
  min-height: 48px;
  border-bottom: 1px solid var(--table-line);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.admin-table-head span,
.admin-user-cell {
  display: grid;
  align-content: center;
  min-width: 0;
  border-right: 1px solid var(--table-line-soft);
  padding: 9px 12px;
}

.admin-table-head span:last-child,
.admin-user-cell:last-child {
  border-right: 0;
}

.admin-user-row {
  min-height: 62px;
  border-bottom: 1px solid var(--table-line);
  color: var(--body);
}

.admin-user-row:hover {
  background: var(--panel-soft);
}

.admin-user-row.is-clickable {
  cursor: pointer;
}

.admin-user-row.is-clickable:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.admin-user-map-select {
  align-items: center;
  justify-items: center;
}

.admin-user-map-select label {
  display: grid;
  width: 30px;
  height: 30px;
  cursor: pointer;
  place-items: center;
}

.admin-user-map-select input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #6f59e9;
  cursor: pointer;
}

.admin-user-map-select input:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.admin-user-main {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 10px;
}

.admin-user-main div,
.admin-user-cell {
  gap: 2px;
}

.admin-user-main strong,
.admin-user-main span,
.admin-user-cell strong,
.admin-user-cell span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-main strong,
.admin-user-cell strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.admin-user-main span,
.admin-user-cell span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.admin-sales-today strong {
  font-variant-numeric: tabular-nums;
}

.admin-sales-cell-error {
  color: var(--danger) !important;
}

.admin-empty {
  display: grid;
  min-height: 110px;
  place-items: center;
  color: var(--muted);
  font-weight: 650;
}

.admin-modal-open {
  overflow: hidden;
}

.admin-sales-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow-y: auto;
  background: rgba(17, 20, 38, 0.42);
  padding: 24px;
}

.admin-sales-overlay[hidden] {
  display: none;
}

.admin-sales-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(17, 20, 38, 0.24);
}

.admin-sales-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--hairline);
  padding: 18px 20px;
}

.admin-sales-head h2 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.admin-sales-head p,
.admin-sales-source {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.admin-sales-eyebrow {
  color: var(--primary);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sales-content {
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 154px);
  overflow: auto;
  padding: 20px;
}

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

.admin-sales-summary article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: var(--panel-soft);
  padding: 14px;
}

.admin-sales-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.admin-sales-summary strong {
  color: var(--ink);
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  line-height: 1;
}

.admin-sales-chart {
  display: grid;
  grid-template-columns: repeat(7, 50px);
  justify-content: center;
  gap: 10px;
  min-width: 520px;
  min-height: 250px;
  align-items: end;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      to top,
      transparent 0,
      transparent 55px,
      var(--table-line-soft) 56px
    ),
    var(--canvas);
  padding: 16px;
}

.admin-sales-day {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
}

.admin-sales-day > strong {
  width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sales-day > span,
.admin-sales-day > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.admin-sales-bar-track {
  display: flex;
  align-items: flex-end;
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  height: 176px;
  overflow: hidden;
  border-radius: 5px 5px 3px 3px;
  background: rgba(96, 87, 168, 0.08);
}

.admin-sales-bar {
  display: block;
  width: 100%;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, #7b61ff, #5575ff);
}

.admin-sales-loading,
.admin-sales-empty {
  display: grid;
  min-height: 260px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
  text-align: center;
}

.admin-sales-empty strong {
  color: var(--ink);
  font-size: 17px;
}

.admin-sales-empty span {
  max-width: 440px;
  font-size: 13px;
  font-weight: 560;
}

@media (max-width: 720px) {
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px;
    width: 100%;
  }

  .admin-actions .status-pill,
  .admin-actions .button,
  .admin-actions form {
    width: 100%;
  }

  .admin-actions #refreshUsersBtn {
    grid-column: 1 / 3;
  }

  .admin-login-map {
    margin: 12px 10px 0;
  }

  .admin-secret-inbox {
    margin: 12px 10px 0;
    padding: 16px;
  }

  .admin-secret-inbox-head,
  .admin-secret-inbox-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-secret-inbox-badge {
    width: max-content;
  }

  .admin-secret-inbox-form {
    grid-template-columns: 1fr;
  }

  .admin-secret-inbox-actions .button {
    width: 100%;
  }

  .admin-login-map-head {
    display: grid;
    gap: 14px;
    padding: 18px 16px 0;
  }

  .admin-map-mode-switch {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .admin-map-sales-controls {
    display: grid;
    gap: 7px;
    width: 100%;
  }

  .admin-map-filter-switch {
    width: 100%;
  }

  .admin-map-filter-button {
    flex: 1 0 auto;
  }

  .admin-login-map-stats {
    width: 100%;
  }

  .admin-login-map-stats article {
    min-width: 0;
  }

  .admin-world-map {
    height: 330px;
    min-height: 330px;
  }

  .admin-login-map-foot {
    align-items: flex-start;
    flex-direction: column;
    padding: 11px 16px 14px;
  }

  .admin-login-map-recent {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .admin-sales-overlay {
    align-items: stretch;
    padding: 0;
  }

  .admin-sales-modal {
    width: 100%;
    max-height: none;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .admin-sales-content {
    max-height: none;
    overflow-x: auto;
    padding: 16px;
  }

  .admin-sales-summary {
    grid-template-columns: 1fr;
  }
}

.vf-ms-body {
  background:
    radial-gradient(circle at 18% 0%, rgba(88, 108, 255, 0.14), transparent 36%),
    linear-gradient(180deg, #f7f9ff 0%, #ffffff 68%);
  color: #111426;
  min-height: 100vh;
}

.vf-ms-shell {
  display: grid;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
}

.vf-ms-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(107, 116, 148, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 72px rgba(23, 32, 88, 0.12);
  max-width: 720px;
  padding: 32px;
  width: min(100%, 720px);
}

.vf-ms-logo {
  display: block;
  height: 44px;
  margin-bottom: 24px;
  width: auto;
}

.vf-ms-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  padding: 8px 12px;
}

.vf-ms-status.is-ready {
  background: rgba(25, 135, 84, 0.12);
  color: #137049;
}

.vf-ms-status.is-waiting {
  background: rgba(153, 101, 21, 0.12);
  color: #87590f;
}

.vf-ms-panel h1 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.vf-ms-panel p {
  color: #4c5874;
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 620px;
}

.vf-ms-meta {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.vf-ms-meta div {
  align-items: center;
  border-top: 1px solid rgba(107, 116, 148, 0.16);
  display: grid;
  gap: 14px;
  grid-template-columns: 96px minmax(0, 1fr);
  padding-top: 10px;
}

.vf-ms-meta dt {
  color: #6d7691;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vf-ms-meta dd {
  color: #111426;
  font-size: 14px;
  margin: 0;
  overflow-wrap: anywhere;
}

.vf-ms-button {
  align-items: center;
  background: #4456ff;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  min-height: 42px;
  padding: 0 18px;
  text-decoration: none;
}

.vf-ms-button:hover {
  background: #3545e8;
}

@media (max-width: 560px) {
  .vf-ms-shell {
    padding: 16px;
  }

  .vf-ms-panel {
    padding: 22px;
  }

  .vf-ms-meta div {
    align-items: start;
    gap: 4px;
    grid-template-columns: 1fr;
  }
}
.vf-ms-embedded-workspace {
  background: var(--color-background, #f6f7f9);
}

.settings-connection-note {
  margin: 0;
  color: var(--text-muted, #667085);
  line-height: 1.5;
}
