:root {
  color-scheme: light;
  --bg: #f1f6f2;
  --bg-strong: #dcebe2;
  --card: rgba(255, 255, 255, 0.94);
  --line: #d6e4dc;
  --line-strong: #b8cfbf;
  --text: #1e3328;
  --muted: #66766c;
  --primary: #147d64;
  --primary-strong: #0f604d;
  --secondary: #eef4f0;
  --accent: #4057a7;
  --accent-warm: #c95d3f;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #027a48;
  --success-bg: #ecfdf3;
  --shadow: 0 18px 42px rgba(18, 42, 29, 0.09);
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(64, 87, 167, 0.10), transparent 28%),
    linear-gradient(180deg, #fbfcf8 0%, var(--bg) 100%);
  background-attachment: fixed;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: transparent;
}
button, input, textarea, select { font: inherit; }
textarea, select, input[type='email'], input[type='search'], input[type='number'], input[type='password'], input[type='text'] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
textarea:focus, input:focus {
  outline: none;
  border-color: rgba(20, 125, 100, 0.55);
  box-shadow: 0 0 0 4px rgba(20, 125, 100, 0.12);
}
textarea { resize: vertical; }
button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
button:hover { transform: translateY(-1px); }
a {
  color: inherit;
  text-decoration: none;
}
.primary {
  background: linear-gradient(180deg, #1d9478 0%, var(--primary) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(20, 125, 100, 0.24);
}
.primary:hover { background: linear-gradient(180deg, #197e67 0%, var(--primary-strong) 100%); }
.secondary {
  background: var(--secondary);
  color: var(--text);
}
.small-btn {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}
.small-btn.is-active-option {
  background: linear-gradient(180deg, #1d9478 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(20, 125, 100, 0.18);
}
.is-hidden {
  display: none !important;
}
.page-nav .page-nav-link.is-hidden {
  display: inline-flex !important;
  visibility: hidden;
  pointer-events: none;
}
.wide { width: 100%; }
.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}
.card {
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.hero {
  display: grid;
  grid-template-rows: 52px minmax(128px, auto);
  gap: 14px;
  margin-bottom: 20px;
  min-height: 230px;
  position: relative;
}
.hero-topbar {
  display: flex;
  justify-content: flex-end;
  min-height: 52px;
}
.hero-main {
  display: grid;
  grid-template-rows: 28px 42px 24px 54px;
  gap: 8px;
  align-items: start;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: #f4fafb;
  border: 1px solid var(--line);
}
.lang-btn {
  min-width: 52px;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  box-shadow: none;
}
.lang-btn.is-active {
  background: linear-gradient(180deg, #0698a1 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 140, 149, 0.18);
}
.hero h1,
.login-card h1,
.section-head h2 {
  margin: 0;
}
.hero-main > h1 {
  display: flex;
  align-items: center;
  min-height: 42px;
  line-height: 1.18;
}
.hero-main > .billing-subtitle,
.hero-main > .shipping-page-subtitle {
  min-height: 24px;
  overflow: hidden;
}
.eyebrow {
  display: table;
  margin: 0 auto 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dff6f4;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
@media (min-width: 961px) {
  .hero .eyebrow {
    position: absolute;
    left: 50%;
    top: 74px;
    transform: translateX(-50%);
    margin: 0;
    z-index: 1;
  }
}
.page-nav {
  display: inline-grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  width: 760px;
  max-width: 100%;
  height: 54px;
  margin: 0 0 14px;
  padding: 5px;
  border-radius: 999px;
  background: #f4fafb;
  border: 1px solid var(--line);
  overflow: hidden;
}
.page-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 0;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-nav-link.is-active {
  background: linear-gradient(180deg, #0698a1 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 140, 149, 0.18);
}
.muted { color: var(--muted); }
.small-text { font-size: 14px; }
.grid {
  display: grid;
  gap: 16px;
}
.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 20px;
}
.stat-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
}
.stat-card .label {
  color: var(--muted);
  font-size: 14px;
}
.stat-card strong {
  font-size: clamp(24px, 4vw, 34px);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}
.search-box {
  display: grid;
  gap: 8px;
  min-width: min(480px, 100%);
}
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.mode-submit-stack {
  display: grid;
  gap: 8px;
  align-items: stretch;
  min-width: 230px;
}
.mode-submit-stack > button {
  width: 100%;
}
.processing-bulk-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.processing-filter-wrap,
.stock-filter-wrap {
  display: inline-grid;
  grid-template-columns: auto minmax(120px, 150px);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}
.processing-filter-wrap select,
.stock-filter-wrap select {
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 700;
}
.refresh-live-btn {
  font-weight: 700;
}
.mode-toggle-btn {
  background: linear-gradient(180deg, #ede9fe 0%, #ddd6fe 100%);
  color: #4c1d95;
  border: 1px solid rgba(124, 58, 237, 0.24);
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.14);
  font-weight: 800;
  white-space: nowrap;
}
.mode-toggle-btn:hover {
  background: linear-gradient(180deg, #ddd6fe 0%, #c4b5fd 100%);
}
.processing-mode .mode-toggle-btn {
  background: linear-gradient(180deg, #ffedd5 0%, #fed7aa 100%);
  color: #9a3412;
  border-color: rgba(234, 88, 12, 0.18);
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.12);
}
.processing-mode .mode-toggle-btn:hover {
  background: linear-gradient(180deg, #fed7aa 0%, #fdba74 100%);
}
.names-toggle-btn {
  white-space: nowrap;
}
.refresh-head-actions .refresh-live-btn {
  width: 100%;
}
.refresh-head-actions .names-toggle-btn {
  display: none;
  width: 100%;
}
.refresh-head-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-direction: column;
}
.processing-mode .refresh-head-actions {
  align-items: stretch;
}
.checkbox-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  margin-right: 6px;
}
.checkbox-row input { width: auto; }
.table-card { margin-bottom: 20px; }
.compact-head { margin-bottom: 16px; }
.refresh-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f6fbfc;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.refresh-pill.is-running {
  border-color: rgba(0, 140, 149, 0.22);
  background: rgba(0, 140, 149, 0.08);
  color: var(--primary-strong);
}
.refresh-pill.is-ok {
  border-color: rgba(2, 122, 72, 0.2);
  background: rgba(2, 122, 72, 0.08);
  color: var(--success);
}
.refresh-pill.is-error {
  border-color: rgba(180, 35, 24, 0.2);
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
}
.refresh-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  opacity: 0;
}
.refresh-pill.is-running .refresh-spinner {
  display: inline-block;
  opacity: 1;
  animation: spin 1s linear infinite;
}
.table-wrap {
  overflow: auto;
  max-height: 70vh;
  border: 1px solid rgba(191, 208, 220, 0.65);
  border-radius: 18px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
thead th {
  position: sticky;
  top: 0;
  background: #f8fbfd;
  z-index: 1;
}
tbody tr:hover {
  background: #f9fcfd;
}
.sku {
  font-weight: 700;
  white-space: nowrap;
}
.supplier-name {
  min-width: 340px;
}
body.names-hidden #th-name,
body.names-hidden .supplier-name {
  display: none;
}
.live-stock,
.qty-input {
  font-variant-numeric: tabular-nums;
}
.live-stock {
  color: var(--muted);
  font-weight: 700;
}
.live-stock.is-positive {
  color: var(--success);
}
.qty-input {
  max-width: 130px;
}
.alert {
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-info {
  background: rgba(0, 140, 149, 0.1);
  color: var(--primary-strong);
  border-color: rgba(0, 140, 149, 0.18);
}
.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(2, 122, 72, 0.16);
}
.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.16);
}
.billing-progress-card {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.billing-progress-card.is-hidden {
  display: none;
}
.billing-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.billing-progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #e6eef3;
  border: 1px solid var(--line);
}
.billing-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0698a1 0%, var(--primary) 100%);
  transition: width .25s ease;
}
.history-card {
  margin-top: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.history-list {
  display: grid;
  gap: 12px;
  max-height: min(560px, 62vh);
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.history-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.history-download-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}
.danger-btn {
  background: linear-gradient(180deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.18);
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.12);
}
.danger-btn:hover {
  background: linear-gradient(180deg, #fecaca 0%, #fca5a5 100%);
}
.history-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fbfc;
  overflow: hidden;
}
.history-toggle {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.history-main {
  display: grid;
  gap: 4px;
  text-align: left;
}
.history-item strong {
  display: block;
}
.history-toggle-icon {
  min-width: 24px;
  text-align: center;
  color: var(--primary-strong);
  font-size: 20px;
  line-height: 1;
}
.history-details {
  padding: 0 14px 14px;
}
.history-change-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.history-change-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.no-pointer {
  cursor: default;
}
.billing-subtitle {
  margin: 0;
}
.billing-toolbar {
  margin-bottom: 16px;
}
.billing-table-head {
  align-items: end;
}
.billing-search-box {
  min-width: min(360px, 100%);
}
.toolbar-title {
  margin: 0 0 6px;
}
.billing-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 20px;
}
.billing-summary-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.billing-summary-scroll {
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}
.billing-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.billing-summary-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.billing-summary-list strong {
  font-variant-numeric: tabular-nums;
}
.billing-summary-list-rich li {
  align-items: flex-start;
}
.billing-summary-list-rich li > div {
  display: grid;
  gap: 4px;
}
.billing-country-item.is-missing-rate {
  border-color: rgba(0, 140, 149, 0.22);
  background: #f6fbfc;
}
.billing-country-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 88px;
}
.billing-country-side.is-editing {
  min-width: 0;
}
.billing-country-rate-editor {
  display: flex;
  align-items: center;
  gap: 8px;
}
.billing-country-rate-input {
  width: 90px;
  min-width: 90px;
  padding: 8px 10px;
}
.billing-country-rate-save {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
}
.shipping-page-subtitle {
  margin: 0;
}
.shipping-grid {
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  align-items: start;
  margin-bottom: 20px;
}
.shipping-rates-list {
  display: grid;
  gap: 12px;
}
.shipping-search-box {
  min-width: min(300px, 100%);
}
.shipping-rate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.shipping-rate-meta {
  display: grid;
  gap: 4px;
}
.shipping-rate-meta strong {
  font-size: 16px;
}
.shipping-rate-code {
  color: var(--muted);
  font-weight: 700;
}
.shipping-rate-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.shipping-rate-input {
  width: 140px;
  min-width: 120px;
}
.shipping-rate-remove {
  background: var(--danger-bg);
  color: var(--danger);
}
.shipping-form {
  display: grid;
  gap: 14px;
}
.shipping-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.shipping-form-hint {
  margin: 0;
}
.shipping-empty {
  padding: 10px 2px;
}
.shipping-empty-search {
  padding-top: 2px;
}
.history-delta {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.history-delta.is-plus {
  color: var(--success);
}
.history-delta.is-minus {
  color: var(--danger);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f6fbfc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.status-pill.is-sent {
  border-color: rgba(2, 122, 72, 0.2);
  background: rgba(2, 122, 72, 0.08);
  color: var(--success);
}
.status-pill.is-open {
  border-color: rgba(0, 140, 149, 0.22);
  background: rgba(0, 140, 149, 0.08);
  color: var(--primary-strong);
}
.status-pill.is-error {
  border-color: rgba(180, 35, 24, 0.18);
  background: var(--danger-bg);
  color: var(--danger);
}
.status-pill.is-muted {
  background: #eef2f5;
  color: var(--muted);
}
.gls-table-wrap {
  max-height: min(680px, 70vh);
}
.gls-error-text {
  max-width: 360px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.gls-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gls-address-edit-row td {
  background: #f6fbfc;
}
.gls-address-form {
  display: grid;
  gap: 14px;
}
.gls-address-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.gls-address-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.gls-address-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gls-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.admin-grid {
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  align-items: start;
}
.admin-user-list {
  display: grid;
  gap: 10px;
}
.admin-user-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.admin-user-item.is-active {
  border-color: rgba(0, 140, 149, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 140, 149, 0.08);
}
.admin-user-item span {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.admin-user-item em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-strong);
  background: #dff6f4;
  border-radius: 999px;
  padding: 4px 8px;
}
.admin-user-item small {
  color: var(--muted);
  line-height: 1.35;
}
.admin-empty {
  padding: 14px 0;
}
.admin-form {
  display: grid;
  gap: 16px;
}
.admin-form label {
  display: grid;
  gap: 8px;
}
.admin-permissions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.admin-permission-item {
  grid-template-columns: 20px 1fr;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.admin-permission-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.admin-permission-item.is-locked {
  background: #f6fbfc;
  color: var(--muted);
}
.admin-permission-item.is-locked input {
  cursor: not-allowed;
}
.admin-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.danger-action {
  color: var(--danger);
  background: var(--danger-bg);
}
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(0, 140, 149, 0.18), transparent 30%),
    linear-gradient(180deg, #f7fafc 0%, var(--bg-strong) 100%);
}
.login-body-simple {
  display: block;
  background: linear-gradient(180deg, #edf2fb 0%, #eef4f7 100%);
}
.login-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px 64px;
}
.login-copy-block {
  max-width: 520px;
  margin-bottom: 26px;
}
.login-copy-block h1 {
  margin: 10px 0 10px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
}
.login-copy-block p {
  margin: 0 0 6px;
  font-size: 16px;
}
.login-topbar-simple {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}
.login-shell {
  width: min(980px, calc(100vw - 32px));
}
.login-shell-compact {
  width: min(560px, calc(100vw - 32px));
}
.login-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.9));
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14);
  padding: 28px;
}
.login-card-simple {
  max-width: 520px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(195, 207, 221, .95);
  box-shadow: 0 24px 48px rgba(61, 91, 124, 0.14);
}
.login-brand {
  border-radius: 22px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(0, 140, 149, 0.1), rgba(0, 140, 149, 0.04));
  border: 1px solid rgba(0, 140, 149, 0.12);
}
.login-brand-minimal {
  padding: 0;
  background: transparent;
  border: 0;
}
.login-brand p,
.login-brand h1 {
  margin-bottom: 14px;
}
.login-panel {
  display: grid;
  gap: 16px;
  align-content: center;
}
.login-panel-minimal {
  padding-top: 4px;
}
.login-form {
  display: grid;
  gap: 14px;
}
.login-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.login-card-simple .login-form input[type='password'],
.login-card-simple .login-form input[type='text'] {
  min-height: 54px;
  border-radius: 16px;
  border: 2px solid #1d2631;
  box-shadow: none;
}
.login-helper {
  margin: 4px 0 0;
  font-size: 14px;
}
.login-submit {
  width: fit-content;
  min-width: 96px;
  padding-inline: 22px;
  border-radius: 999px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 960px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .page-nav {
    grid-template-columns: repeat(5, 145px);
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin-left: 0;
    margin-right: 0;
    scrollbar-width: none;
  }
  .page-nav::-webkit-scrollbar {
    display: none;
  }
  .page-nav-link {
    height: 42px;
    padding: 0 8px;
    font-size: 12px;
  }
  .hero-topbar {
    justify-content: flex-start;
  }
  .hero-actions {
    justify-content: space-between;
    width: 100%;
  }
  .hero-actions form {
    margin-left: auto;
  }
  .compact-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .login-card {
    grid-template-columns: 1fr;
  }
  .login-layout {
    padding-inline: 20px;
  }
  .refresh-head-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }
  .hero .eyebrow {
    position: static;
    transform: none;
    margin: 0 auto 10px;
  }
  .shipping-grid {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .shipping-rate-item {
    flex-direction: column;
    align-items: stretch;
  }
  .shipping-rate-actions {
    justify-content: stretch;
  }
  .billing-country-side,
  .billing-country-side.is-editing {
    width: 100%;
    justify-content: space-between;
  }
  .billing-country-rate-editor {
    width: 100%;
  }
  .billing-country-rate-input {
    width: 100%;
    min-width: 0;
  }
  .shipping-search-box {
    min-width: 100%;
  }
}
@media (max-width: 720px) {
  .shell { padding: 14px; }
  .hero {
    min-height: 230px;
  }
  .hero-main {
    grid-template-rows: 28px minmax(42px, auto) minmax(24px, auto) 54px;
  }
  .page-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    height: 54px;
    overflow: hidden;
    padding: 5px;
    border-radius: 999px;
  }
  .page-nav-link {
    grid-column: auto;
    height: 42px;
    min-height: 42px;
    padding: 0 4px;
    font-size: 0;
    white-space: nowrap;
  }
  .page-nav-link::after {
    content: attr(data-short);
    font-size: 11px;
    line-height: 1;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions form {
    width: auto;
  }
  .hero-actions .secondary {
    width: auto;
  }
  .toolbar-actions {
    gap: 12px;
  }
  .mode-submit-stack {
    width: 100%;
  }
  .processing-filter-wrap,
  .stock-filter-wrap {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .processing-filter-wrap select,
  .stock-filter-wrap select {
    max-width: 220px;
  }
  .refresh-head-actions .names-toggle-btn {
    display: inline-flex;
  }
  th, td {
    padding: 9px 8px;
    font-size: 14px;
  }
  th:first-child, td:first-child {
    padding-left: 14px;
  }
  th:last-child, td:last-child {
    padding-right: 14px;
  }
  thead th {
    padding-top: 8px;
    padding-bottom: 8px;
    vertical-align: middle;
  }
  .table-wrap {
    font-size: 14px;
  }
  .qty-input {
    max-width: 68px;
    min-width: 0;
    padding: 8px 6px;
    text-align: center;
  }
  body.names-hidden .table-wrap {
    overflow-x: hidden;
  }
  body.names-hidden .table-wrap table {
    table-layout: fixed;
    width: 100%;
  }
  body.names-hidden th:nth-child(1),
  body.names-hidden td:nth-child(1) {
    width: 44%;
  }
  body.names-hidden th:nth-child(3),
  body.names-hidden td:nth-child(3) {
    width: 16%;
    text-align: center;
  }
  body.names-hidden th:nth-child(4),
  body.names-hidden td:nth-child(4) {
    width: 40%;
    text-align: center;
  }
  body.names-hidden .sku {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.15;
  }
  body.names-hidden #th-live,
  body.names-hidden #th-new {
    min-width: 0;
  }
  body:not(.names-hidden) th:nth-child(2), body:not(.names-hidden) td:nth-child(2) {
    min-width: 280px;
  }
  .login-card,
  .login-brand,
  .login-card-simple {
    padding: 20px;
  }
  .login-copy-block h1 {
    font-size: 34px;
  }
  .login-topbar-simple {
    justify-content: flex-start;
  }
}
