:root {
  color-scheme: dark;
  --bg: #03080f;
  --bg-2: #07111c;
  --panel: #0b1724;
  --panel-2: #0e1d2b;
  --panel-3: #111f2d;
  --line: #223247;
  --line-soft: rgba(148, 163, 184, 0.16);
  --text: #e8eef7;
  --muted: #91a1b5;
  --faint: #5f7087;
  --blue: #2f7df6;
  --blue-2: #5aa3ff;
  --cyan: #19d4d8;
  --green: #22c55e;
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #ef4444;
  --purple: #8b5cf6;
  --radius: 8px;
  --v2-panel-radius: 18px;
  --v2-card-radius: 14px;
  --v2-control-radius: 10px;
  --v2-panel-blur: 18px;
  --v2-workspace-gap: 16px;
  --v2-panel-bg:
    linear-gradient(145deg, rgba(16, 31, 48, 0.92), rgba(7, 18, 31, 0.94)),
    rgba(7, 18, 31, 0.9);
  --v2-panel-border: rgba(116, 150, 194, 0.24);
  --v2-panel-shadow: 0 20px 54px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --v2-filter-panel-bg:
    linear-gradient(135deg, rgba(22, 78, 99, 0.16), rgba(37, 99, 235, 0.12) 48%, rgba(245, 158, 11, 0.08)),
    rgba(8, 19, 31, 0.78);
  --v2-input-bg: rgba(15, 23, 42, 0.58);
  --v2-tab-bg: rgba(7, 18, 31, 0.78);
  --v2-table-bg: rgba(8, 19, 31, 0.58);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --mono: "Fira Code", "Consolas", monospace;
  --sans: "Fira Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(47, 125, 246, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(47, 125, 246, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #03070d 0%, #07111c 48%, #02070e 100%);
  background-size: 72px 72px, 72px 72px, 100% 100%;
  font-family: var(--sans);
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

code,
pre,
.mono {
  font-family: var(--mono);
}

select {
  color-scheme: dark;
}

select option {
  color: #dbe7f6;
  background: #0e1d2b;
}

select option:checked,
select option:hover {
  color: #ffffff;
  background: #1f6feb;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  padding: 18px 10px;
  border-right: 1px solid var(--line);
  background: rgba(4, 12, 21, 0.94);
}

.brand {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 10px 8px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #06111f;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  clip-path: polygon(50% 0, 100% 100%, 72% 100%, 60% 72%, 40% 72%, 28% 100%, 0 100%);
  font-size: 0;
}

.brand-text {
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  flex: 1 1 auto;
  gap: 10px;
  min-height: 0;
  padding-right: 2px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.nav-list::-webkit-scrollbar {
  width: 4px;
}

.nav-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
}

.nav-section {
  display: grid;
  gap: 5px;
}

.nav-section + .nav-section {
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.nav-section-title {
  padding: 0 10px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.nav-section-items {
  display: grid;
  gap: 4px;
}

.nav-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: #c8d3e2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-item svg,
[data-icon] svg,
.icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.nav-item.is-active {
  color: #fff;
  border-color: #2357a6;
  background: linear-gradient(180deg, rgba(47, 125, 246, 0.44), rgba(47, 125, 246, 0.18));
  box-shadow: inset 3px 0 0 var(--blue-2);
}

.nav-item:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.08);
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 29, 43, 0.88), rgba(8, 19, 31, 0.9));
}

.sidebar-footer strong,
.user-menu strong {
  display: block;
  font-size: 14px;
}

.sidebar-footer small,
.user-menu small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.7);
}

.main-shell {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 12, 20, 0.94);
  backdrop-filter: blur(18px);
}

.topbar-title h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.topbar-title h1 span {
  margin-left: 6px;
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 14px;
}

.topbar-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.field-button,
.refresh-button,
.theme-toggle-button,
.user-menu,
.secondary-button,
.primary-button,
.ghost-button,
.segmented button,
.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(10, 23, 35, 0.72);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.field-button,
.refresh-button,
.theme-toggle-button,
.user-menu,
.secondary-button,
.primary-button,
.ghost-button {
  padding: 0 12px;
}

.field-button svg,
.refresh-button svg,
.theme-toggle-button svg,
.user-menu svg,
.secondary-button svg,
.primary-button svg,
.ghost-button svg,
.segmented button svg,
.table-action svg {
  flex: 0 0 auto;
}

.table-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 180px;
}

.field-button:hover,
.refresh-button:hover,
.theme-toggle-button:hover,
.user-menu:hover,
.secondary-button:hover,
.primary-button:hover,
.ghost-button:hover,
.segmented button:hover,
.table-action:hover {
  border-color: #326bbd;
  background: rgba(19, 39, 58, 0.94);
}

.refresh-button,
.primary-button {
  border-color: #1d4ed8;
  color: #8ec5ff;
  background: rgba(29, 78, 216, 0.18);
}

.theme-toggle-button[aria-pressed="true"] {
  border-color: rgba(90, 163, 255, 0.58);
  color: #e7f1ff;
  background: rgba(47, 125, 246, 0.22);
}

.refresh-button.is-loading svg {
  animation: spin 800ms linear infinite;
}

.field-button span,
.refresh-button span,
.theme-toggle-button span,
.user-menu span {
  white-space: nowrap;
}

.flag {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 20px;
  color: #0b1220;
  border-radius: 3px;
  background: linear-gradient(90deg, #15803d 0 33%, #f8fafc 33% 66%, #dc2626 66% 100%);
  font-size: 0;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #07111c;
  background: linear-gradient(135deg, #eef2ff, #9cc9ff);
  font-weight: 700;
}

.page {
  display: grid;
  gap: var(--v2-workspace-gap);
  padding: 20px 22px 22px;
  min-width: 0;
  max-width: 100%;
}

.page:focus {
  outline: none;
}

.dashboard-loading {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 96px);
  padding: 24px;
}

.dashboard-loading.is-compact {
  position: fixed;
  top: 86px;
  right: 22px;
  z-index: 35;
  min-height: 0;
  padding: 0;
  pointer-events: none;
}

.dashboard-loading-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  width: min(620px, calc(100vw - 48px));
  padding: 24px;
  border: 1px solid rgba(90, 163, 255, 0.28);
  border-radius: 8px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(47, 125, 246, 0.18), rgba(25, 212, 216, 0.08)),
    rgba(5, 15, 27, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-loading.is-compact .dashboard-loading-card {
  width: min(420px, calc(100vw - 28px));
  padding: 16px;
  gap: 14px;
  pointer-events: auto;
}

.module-loading-state {
  display: grid;
  place-items: center;
  min-height: min(520px, calc(100vh - 220px));
  padding: 32px 12px;
}

.module-loading-card {
  width: min(620px, calc(100vw - 48px));
}

.module-loading-state.module-loading-card {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.loading-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
}

.dashboard-loading.is-compact .loading-visual {
  width: 92px;
  height: 92px;
}

.loading-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(90, 163, 255, 0.52);
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, #2f7df6, #19d4d8);
  box-shadow: 0 0 34px rgba(47, 125, 246, 0.36);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
}

.dashboard-loading.is-compact .loading-core {
  width: 42px;
  height: 42px;
  font-size: 18px;
}

.loading-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(90, 163, 255, 0), #5aa3ff, #19d4d8, rgba(90, 163, 255, 0));
  animation: spin 1200ms linear infinite;
}

.loading-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(5, 15, 27, 0.96);
}

.loading-lanes {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.loading-lanes span {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  border: 1px solid rgba(90, 163, 255, 0.22);
  border-radius: 6px;
  color: #b9d9ff;
  background: rgba(90, 163, 255, 0.08);
  font-size: 11px;
  overflow: hidden;
}

.loading-lanes span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: translateX(-120%);
  animation: loadingSweep 1600ms ease-in-out infinite;
  animation-delay: var(--delay);
}

.dashboard-loading.is-compact .loading-lanes {
  display: none;
}

.loading-copy {
  min-width: 0;
}

.loading-eyebrow {
  color: var(--blue-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.loading-copy h2 {
  margin: 6px 0 8px;
  font-size: 22px;
}

.dashboard-loading.is-compact .loading-copy h2 {
  margin: 3px 0 5px;
  font-size: 16px;
}

.loading-copy p {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.loading-copy small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-loading.is-compact .loading-copy small {
  display: none;
}

.loading-meter {
  position: relative;
  height: 8px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.loading-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f7df6, #19d4d8, #22c55e);
  transition: width 180ms ease;
}

.loading-meter.is-indeterminate span {
  width: 42%;
  animation: loadingSweep 1500ms ease-in-out infinite;
}

.loading-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.loading-meta b {
  color: var(--text);
  font-weight: 700;
}

.dashboard-loading.is-done .loading-meter span {
  background: linear-gradient(90deg, #22c55e, #19d4d8);
}

.dashboard-loading.is-error .loading-meter span {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.operation-loading-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 96px);
  padding: 24px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 28% 36%, rgba(37, 99, 235, 0.26), transparent 34%),
    radial-gradient(circle at 78% 68%, rgba(14, 165, 233, 0.14), transparent 30%),
    linear-gradient(135deg, #020617 0%, #0f172a 52%, #020617 100%);
  isolation: isolate;
}

.operation-loading-page.is-glass {
  color: #0f172a;
  background:
    radial-gradient(circle at 12% 18%, rgba(96, 165, 250, 0.24), transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(168, 85, 247, 0.18), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 48%, #f8f5ff 100%);
}

.operation-loading-page.is-compact {
  position: fixed;
  top: 86px;
  right: 22px;
  z-index: 35;
  min-height: 0;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.module-loading-state .operation-loading-page {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: min(520px, calc(100vh - 220px));
  padding: 0;
  background: transparent;
}

.module-loading-state .operation-loading-card {
  justify-self: center;
  width: min(1040px, 100%);
}

.module-shell.visual-shell .module-loading-state {
  min-height: clamp(360px, 44vh, 520px);
  padding: 28px 0;
}

.module-shell.visual-shell .module-loading-state .operation-loading-card {
  width: min(1040px, calc(100% - 32px));
}

.operation-loading-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  align-items: center;
  gap: 58px;
  width: min(1040px, calc(100vw - 48px));
  min-height: 336px;
  padding: 48px 54px;
  border: 1px solid rgba(96, 165, 250, 0.20);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(37, 99, 235, 0.18),
    inset 0 1px 0 rgba(148, 163, 184, 0.14);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  overflow: hidden;
  animation: operationCardIn 420ms ease both;
}

.operation-loading-page.is-glass .operation-loading-card {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 32px 80px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.operation-loading-page.is-compact .operation-loading-card {
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  width: min(540px, calc(100vw - 28px));
  min-height: 0;
  padding: 20px 22px;
  border-radius: 26px;
  pointer-events: auto;
}

.operation-loading-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 18%, rgba(56, 189, 248, 0.18) 42%, transparent 64%);
  opacity: 0.6;
  transform: translateX(-75%);
  animation: operationBorderFlow 3.2s ease-in-out infinite;
  pointer-events: none;
}

.operation-loading-page.is-glass .operation-loading-card::before {
  background: linear-gradient(110deg, transparent 18%, rgba(37, 99, 235, 0.12) 42%, transparent 64%);
}

.operation-loading-visual {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 24px;
  min-width: 0;
}

.operation-loading-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 184px;
  height: 184px;
}

.operation-loading-page.is-compact .operation-loading-orb {
  width: 118px;
  height: 118px;
}

.operation-loader-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.26), transparent 58%),
    radial-gradient(circle, rgba(37, 99, 235, 0.30), transparent 64%);
  filter: blur(2px);
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.operation-loading-page.is-glass .operation-loader-glow {
  background:
    radial-gradient(circle, rgba(56, 189, 248, 0.30), transparent 58%),
    radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 64%);
}

.operation-loader-ring {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      #2563eb 0deg,
      #06b6d4 145deg,
      #22c55e 255deg,
      rgba(30, 41, 59, 0.36) 315deg,
      rgba(30, 41, 59, 0.22) 360deg
    );
  filter:
    drop-shadow(0 0 18px rgba(37, 99, 235, 0.55))
    drop-shadow(0 0 28px rgba(34, 211, 238, 0.25));
  animation: operationRotate 1.8s linear infinite;
}

.operation-loading-page.is-glass .operation-loader-ring {
  background:
    conic-gradient(
      from 0deg,
      #2563eb 0deg,
      #38bdf8 130deg,
      #22c55e 250deg,
      rgba(255, 255, 255, 0.16) 310deg,
      rgba(255, 255, 255, 0.12) 360deg
    );
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.35));
}

.operation-loader-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: inherit;
  background: rgba(2, 6, 23, 0.92);
}

.operation-loading-page.is-glass .operation-loader-ring::after {
  background: rgba(255, 255, 255, 0.68);
}

.operation-loader-disc {
  position: absolute;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(56, 189, 248, 0.18), transparent 36%),
    rgba(15, 23, 42, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.operation-loading-page.is-glass .operation-loader-disc {
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.operation-loading-page.is-compact .operation-loader-disc {
  width: 74px;
  height: 74px;
}

.operation-loader-center {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 50%;
  color: #e0f2fe;
  background:
    radial-gradient(circle at 35% 30%, rgba(56, 189, 248, 0.34), transparent 34%),
    rgba(2, 6, 23, 0.9);
  box-shadow:
    0 0 24px rgba(37, 99, 235, 0.45),
    inset 0 0 18px rgba(14, 165, 233, 0.18);
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 800;
  animation: floatIcon 2.8s ease-in-out infinite;
}

.operation-loading-page.is-glass .operation-loader-center {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow:
    0 18px 36px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.operation-loading-page.is-compact .operation-loader-center {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

.operation-loader-center svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.2;
}

.operation-loading-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
}

.operation-loading-page.is-compact .operation-loading-chips {
  display: none;
}

.operation-loading-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(37, 99, 235, 0.48);
  border-radius: 999px;
  color: #60a5fa;
  background: rgba(15, 23, 42, 0.64);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.16);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.operation-loading-page.is-glass .operation-loading-chip {
  border-color: rgba(147, 197, 253, 0.42);
  color: #2563eb;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.operation-chip-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.10);
}

.operation-loading-chip[data-loading-chip-status="loading"] {
  border-color: rgba(56, 189, 248, 0.72);
  color: #7dd3fc;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.22);
}

.operation-loading-page.is-glass .operation-loading-chip[data-loading-chip-status="loading"] {
  color: #2563eb;
}

.operation-loading-chip[data-loading-chip-status="loading"] .operation-chip-indicator {
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16), 0 0 12px rgba(56, 189, 248, 0.58);
}

.operation-loading-chip[data-loading-chip-status="success"] {
  border-color: rgba(34, 197, 94, 0.52);
  color: #22c55e;
}

.operation-loading-chip[data-loading-chip-status="success"] .operation-chip-indicator {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.operation-loading-chip[data-loading-chip-status="error"] {
  border-color: rgba(248, 113, 113, 0.62);
  color: #f87171;
}

.operation-loading-chip[data-loading-chip-status="error"] .operation-chip-indicator {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.operation-loading-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.operation-loading-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3b82f6;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.operation-loading-page.is-glass .operation-loading-badge {
  color: #2563eb;
}

.operation-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.62);
  animation: operationLivePulse 1.2s ease-in-out infinite;
}

.operation-loading-content h2 {
  margin: 10px 0 8px;
  color: #f8fafc;
  font-size: 34px;
  line-height: 1.18;
}

.operation-loading-page.is-glass .operation-loading-content h2 {
  color: #0f172a;
}

.operation-loading-content h3 {
  margin: 0;
  color: #e2e8f0;
  font-size: 21px;
  line-height: 1.36;
}

.operation-loading-page.is-glass .operation-loading-content h3 {
  color: #1e293b;
}

.operation-loading-content p {
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
}

.operation-loading-page.is-glass .operation-loading-content p {
  color: #64748b;
}

.operation-progress-track {
  position: relative;
  width: min(620px, 100%);
  height: 12px;
  margin-top: 30px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.56);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.operation-loading-page.is-glass .operation-progress-track {
  background: rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.operation-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 56%, #22c55e 100%);
  box-shadow:
    0 0 16px rgba(6, 182, 212, 0.42),
    0 0 22px rgba(34, 197, 94, 0.18);
  transition: width 180ms ease;
}

.operation-loading-page.is-glass .operation-progress-fill {
  background: linear-gradient(90deg, #2563eb 0%, #22d3ee 52%, #22c55e 100%);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.36);
}

.operation-progress-track.is-indeterminate .operation-progress-fill {
  width: 42%;
  animation: loadingSweep 1500ms ease-in-out infinite;
}

.operation-loading-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(620px, 100%);
  margin-top: 12px;
  color: #94a3b8;
  font-family: var(--mono);
  font-size: 13px;
}

.operation-loading-meta [data-loading-progress],
.operation-loading-meta b {
  color: #22d3ee;
  font-weight: 800;
}

.operation-loading-page.is-glass .operation-loading-meta {
  color: #64748b;
}

.operation-loading-page.is-glass .operation-loading-meta [data-loading-progress],
.operation-loading-page.is-glass .operation-loading-meta b {
  color: #2563eb;
}

.operation-loading-page[data-loading-status="success"] .operation-loader-ring {
  background: conic-gradient(from 0deg, #22c55e 0deg, #22d3ee 160deg, #22c55e 360deg);
}

.operation-loading-page[data-loading-status="error"] .operation-loader-ring,
.operation-loading-page[data-loading-status="partial"] .operation-loader-ring {
  background: conic-gradient(from 0deg, #ef4444 0deg, #f59e0b 160deg, rgba(30, 41, 59, 0.36) 360deg);
  animation: none;
}

.operation-loading-page[data-loading-status="error"] .operation-progress-fill,
.operation-loading-page[data-loading-status="partial"] .operation-progress-fill {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.30);
}

.operation-loading-page.is-done .operation-loading-card {
  animation: fadeOutScale 0.42s ease forwards;
}

.operation-loading-page.is-compact .operation-loading-content h2 {
  margin: 6px 0 4px;
  font-size: 18px;
}

.operation-loading-page.is-compact .operation-loading-content h3 {
  font-size: 14px;
}

.operation-loading-page.is-compact .operation-loading-content p {
  display: none;
}

.operation-loading-page.is-compact .operation-progress-track {
  height: 9px;
  margin-top: 14px;
}

.operation-loading-page.is-compact .operation-loading-meta {
  font-size: 11px;
}

.page-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--v2-panel-border);
  border-radius: var(--v2-panel-radius);
  background: var(--v2-panel-bg);
  box-shadow: var(--v2-panel-shadow);
  overflow: hidden;
  -webkit-backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
  backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
}

.page-head::after {
  content: "";
  position: absolute;
  top: -42px;
  right: 8%;
  width: 230px;
  height: 110px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 62%),
    radial-gradient(circle at 72% 48%, rgba(245, 158, 11, 0.10), transparent 58%);
  pointer-events: none;
}

.page-head-title-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.page-head-copy {
  min-width: 0;
}

.page-head-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #eaf4ff;
  border: 1px solid rgba(90, 163, 255, 0.38);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(47, 125, 246, 0.84), rgba(20, 184, 166, 0.66)),
    rgba(15, 23, 42, 0.84);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.page-head-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.15;
}

.page-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.page-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.page-actions,
.chart-actions,
.row-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.overview-kpi-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.overview-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--v2-panel-border);
  border-radius: var(--v2-panel-radius);
  background: var(--v2-filter-panel-bg);
  box-shadow: var(--v2-panel-shadow);
  -webkit-backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
  backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
}

.page-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--v2-panel-border);
  border-radius: var(--v2-card-radius);
  background: var(--v2-filter-panel-bg);
  box-shadow: var(--v2-panel-shadow);
  -webkit-backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
  backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
}

.overview-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.overview-filter-group > span,
.overview-date-inputs > span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  line-height: 1;
  white-space: nowrap;
}

.range-button-group,
.overview-date-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.range-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--v2-control-radius);
  background: var(--v2-input-bg);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.range-button.is-active {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.52);
  background: linear-gradient(135deg, rgba(47, 125, 246, 0.92), rgba(29, 78, 216, 0.84));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.date-range-trigger,
.overview-store-filter select {
  min-height: 36px;
  box-sizing: border-box;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--v2-control-radius);
  background: var(--v2-input-bg);
  line-height: 1;
}

.date-range-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  white-space: nowrap;
}

.date-range-trigger svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.date-range-trigger-separator {
  color: var(--muted);
  font-weight: 600;
}

.date-range-trigger:disabled {
  color: rgba(161, 179, 201, 0.55);
  border-color: rgba(137, 157, 180, 0.12);
}

.date-range-popover {
  position: absolute;
  z-index: 2200;
  width: min(392px, calc(100vw - 24px));
  padding: 18px;
  color: var(--text);
  border: 1px solid rgba(125, 184, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(9, 21, 36, 0.96), rgba(13, 31, 50, 0.92));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
}

.date-range-popover-head,
.date-range-footer,
.date-range-footer > div {
  display: flex;
  align-items: center;
}

.date-range-popover-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.date-range-popover-head strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
}

.date-range-jump {
  display: inline-grid;
  grid-template-columns: minmax(112px, auto) minmax(84px, auto);
  align-items: center;
  gap: 8px;
}

.date-range-jump select {
  min-height: 38px;
  padding: 0 32px 0 12px;
  color: var(--text);
  border: 1px solid rgba(125, 184, 255, 0.2);
  border-radius: 12px;
  background: rgba(15, 35, 58, 0.72);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.date-range-jump select:hover,
.date-range-jump select:focus {
  border-color: rgba(56, 189, 248, 0.46);
  outline: none;
}

.date-range-nav {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--text);
  border: 1px solid rgba(125, 184, 255, 0.2);
  border-radius: 12px;
  background: rgba(15, 35, 58, 0.72);
}

.date-range-nav:hover {
  border-color: rgba(56, 189, 248, 0.46);
  background: rgba(34, 81, 132, 0.58);
}

.date-range-nav svg {
  width: 18px;
  height: 18px;
}

.date-range-weekdays,
.date-range-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.date-range-weekdays {
  margin-bottom: 8px;
}

.date-range-weekdays span {
  display: grid;
  place-items: center;
  height: 26px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.date-range-day {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  min-height: 40px;
  padding: 0;
  color: var(--text);
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.date-range-day:hover {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.22);
}

.date-range-day.is-outside-month {
  color: rgba(161, 179, 201, 0.42);
}

.date-range-day.is-in-range {
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.16);
}

.date-range-day.is-range-start,
.date-range-day.is-range-end {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.98), rgba(37, 99, 235, 0.94));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.date-range-day.is-today:not(.is-range-start):not(.is-range-end) {
  outline: 1px solid rgba(56, 189, 248, 0.42);
  outline-offset: -1px;
}

.date-range-footer {
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(125, 184, 255, 0.16);
}

.date-range-footer > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.date-range-footer > div {
  gap: 8px;
}

.date-range-secondary,
.date-range-apply {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 750;
}

.date-range-secondary {
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 35, 58, 0.52);
}

.date-range-apply {
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.48);
  background: linear-gradient(135deg, rgba(47, 125, 246, 0.98), rgba(29, 78, 216, 0.9));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.date-range-apply:disabled {
  cursor: not-allowed;
  color: rgba(226, 232, 240, 0.48);
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(71, 85, 105, 0.34);
  box-shadow: none;
}

.overview-store-filter {
  margin-left: auto;
}

.kpi-card,
.panel {
  border: 1px solid var(--v2-panel-border);
  border-radius: var(--v2-card-radius);
  background: var(--v2-panel-bg);
  box-shadow: var(--v2-panel-shadow);
  -webkit-backdrop-filter: blur(var(--v2-panel-blur)) saturate(126%);
  backdrop-filter: blur(var(--v2-panel-blur)) saturate(126%);
}

.kpi-card {
  position: relative;
  min-height: 118px;
  padding: 14px;
  overflow: hidden;
}

.kpi-card::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 10px;
  width: 96px;
  height: 40px;
  opacity: 0.95;
  background: var(--sparkline, none);
  background-repeat: no-repeat;
  background-size: contain;
}

.kpi-title,
.panel-title,
.table-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dbe7f6;
  font-weight: 600;
}

.info-dot {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--muted);
  border: 1px solid var(--faint);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
}

.kpi-value {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.kpi-meta {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.delta {
  color: var(--green);
  font-family: var(--mono);
}

.delta.down {
  color: var(--cyan);
}

.delta.warn {
  color: var(--amber);
}

.mini-spark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 118px;
  height: 44px;
  opacity: 0.96;
}

.mini-spark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: var(--v2-workspace-gap);
}

.overview-dashboard-grid {
  display: grid;
  gap: var(--v2-workspace-gap);
  min-width: 0;
}

.overview-proposal-row {
  min-width: 0;
}

.overview-summary-grid,
.overview-operations-stack {
  display: grid;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.overview-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-operations-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-summary-grid .panel,
.overview-operations-stack .panel {
  min-width: 0;
  height: 100%;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: var(--v2-workspace-gap);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: var(--v2-workspace-gap);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.34fr);
  gap: var(--v2-workspace-gap);
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

.module-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--v2-panel-border);
  border-radius: var(--v2-panel-radius);
  background: var(--v2-panel-bg);
  box-shadow: var(--v2-panel-shadow);
  -webkit-backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
  backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
}

.module-workspace {
  min-width: 0;
}

.module-main,
.module-side {
  min-width: 0;
}

.module-main {
  display: grid;
  gap: 12px;
  align-content: start;
}

.module-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.module-shell .module-tabs,
.module-shell .overview-toolbar,
.module-shell .message-center-tabs,
.module-shell .message-filter-toolbar,
.module-shell .review-toolbar,
.module-shell .shipment-toolbar,
.module-shell .config-toolbar,
.module-shell .proposal-toolbar,
.module-shell .proposal-bulk-toolbar,
.module-shell .order-filter-strip,
.module-shell .page-inline-actions {
  margin: 0;
  border-color: var(--v2-panel-border);
  border-radius: var(--v2-card-radius);
  background: var(--v2-filter-panel-bg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
  backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
}

.module-shell .module-tabs {
  width: 100%;
  justify-content: flex-start;
}

.module-tabs button:disabled {
  cursor: default;
  opacity: 1;
}

.module-shell .secondary-button,
.module-shell .ghost-button,
.module-shell .range-button,
.module-shell .config-category-button,
.module-shell .sort-button,
.page-inline-actions .secondary-button,
.page-inline-actions .ghost-button,
.sticky-action-bar .secondary-button,
.sticky-action-bar .ghost-button {
  color: #d7e6f8;
  border-color: rgba(108, 147, 196, 0.34);
  background: rgba(10, 23, 35, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.module-shell .secondary-button:hover,
.module-shell .ghost-button:hover,
.module-shell .range-button:hover,
.module-shell .config-category-button:hover,
.module-shell .sort-button:hover,
.page-inline-actions .secondary-button:hover,
.page-inline-actions .ghost-button:hover,
.sticky-action-bar .secondary-button:hover,
.sticky-action-bar .ghost-button:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(19, 39, 58, 0.94);
}

.module-shell .primary-button,
.page-inline-actions .primary-button,
.sticky-action-bar .primary-button,
.module-shell .range-button.is-active,
.module-shell .config-category-button.is-active,
.module-shell .sort-button.is-active {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.42);
  background:
    linear-gradient(135deg, rgba(47, 125, 246, 0.9), rgba(29, 78, 216, 0.78)),
    rgba(15, 23, 42, 0.56);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.module-shell .primary-button:hover,
.page-inline-actions .primary-button:hover,
.sticky-action-bar .primary-button:hover,
.module-shell .range-button.is-active:hover,
.module-shell .config-category-button.is-active:hover,
.module-shell .sort-button.is-active:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.54);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.96), rgba(29, 78, 216, 0.9)),
    rgba(15, 23, 42, 0.66);
}

.module-toolbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
  margin-left: auto;
}

.module-shell .panel,
.module-shell .review-product-rail,
.module-shell .message-detail-panel,
.module-shell .message-card,
.module-shell .profit-import-upload-card,
.module-shell .profit-import-preview-card,
.module-shell .profit-import-summary-card {
  border-color: var(--v2-panel-border);
  border-radius: var(--v2-card-radius);
  background: rgba(13, 25, 39, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.module-shell .table-shell {
  border-radius: var(--v2-card-radius);
}

.module-shell.visual-shell {
  position: relative;
  overflow: hidden;
  gap: 14px;
  border-color: rgba(126, 167, 214, 0.22);
  background:
    linear-gradient(145deg, rgba(16, 30, 47, 0.84), rgba(8, 17, 29, 0.76)),
    rgba(8, 17, 29, 0.7);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.module-shell.visual-shell.message-center-shell {
  align-content: stretch;
  min-height: 0;
  overflow: hidden;
}

.module-shell.visual-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(125, 211, 252, 0.14), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(20, 184, 166, 0.14), transparent 30%);
}

.module-shell.visual-shell > * {
  position: relative;
  z-index: 1;
}

.module-shell.visual-shell .module-tabs,
.module-shell.visual-shell .module-toolbar,
.module-shell.visual-shell .listing-collection-toolbar,
.module-shell.visual-shell .tag-toolbar,
.module-shell.visual-shell .market-trends-toolbar,
.module-shell.visual-shell .competitor-seed-toolbar,
.module-shell.visual-shell .message-center-tabs,
.module-shell.visual-shell .message-filter-toolbar,
.module-shell.visual-shell .review-toolbar,
.module-shell.visual-shell .proposal-toolbar,
.module-shell.visual-shell .proposal-bulk-toolbar,
.module-shell.visual-shell .order-filter-strip,
.module-shell.visual-shell .page-inline-actions {
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 167, 214, 0.2);
  border-radius: var(--v2-card-radius);
  background:
    linear-gradient(135deg, rgba(15, 31, 49, 0.82), rgba(12, 24, 38, 0.7)),
    rgba(9, 18, 31, 0.66);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.module-shell.visual-shell .module-tabs button,
.module-shell.visual-shell .config-category-button {
  min-height: 36px;
  border-radius: var(--v2-control-radius);
  font-weight: 700;
}

.module-shell.visual-shell .panel,
.module-shell.visual-shell .listing-collection-form,
.module-shell.visual-shell .review-product-rail,
.module-shell.visual-shell .message-detail-panel,
.module-shell.visual-shell .message-card,
.module-shell.visual-shell .llm-prompt-card,
.module-shell.visual-shell .replenishment-settings,
.module-shell.visual-shell .profit-import-upload-card,
.module-shell.visual-shell .profit-import-preview-card,
.module-shell.visual-shell .profit-import-summary-card,
.module-shell.visual-shell .metric-mini,
.module-shell.visual-shell .kpi-card {
  border-color: rgba(126, 167, 214, 0.2);
  background:
    linear-gradient(145deg, rgba(15, 29, 46, 0.84), rgba(10, 21, 34, 0.7)),
    rgba(10, 21, 34, 0.68);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.module-shell.visual-shell .panel-header {
  min-height: 38px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(126, 167, 214, 0.14);
}

.module-shell.visual-shell .panel-title,
.module-shell.visual-shell .table-title {
  color: #edf7ff;
  font-weight: 800;
}

.module-shell.visual-shell .table-shell {
  border: 1px solid rgba(126, 167, 214, 0.18);
  background: rgba(6, 14, 24, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.module-shell.visual-shell th {
  background: rgba(11, 24, 39, 0.86);
}

.module-shell.visual-shell .user-form input,
.module-shell.visual-shell .user-form select,
.module-shell.visual-shell .shipment-search input,
.module-shell.visual-shell .listing-collection-search input,
.module-shell.visual-shell .listing-collection-form input,
.module-shell.visual-shell .listing-collection-form select,
.module-shell.visual-shell .listing-collection-form textarea,
.module-shell.visual-shell .listing-edit-input,
.module-shell.visual-shell .tag-search input,
.module-shell.visual-shell .market-filter input,
.module-shell.visual-shell .market-filter select,
.module-shell.visual-shell .llm-config-form input,
.module-shell.visual-shell .llm-config-form select,
.module-shell.visual-shell .llm-config-form textarea,
.module-shell.visual-shell input:not([type="checkbox"]):not([type="radio"]),
.module-shell.visual-shell select,
.module-shell.visual-shell textarea {
  border-color: rgba(126, 167, 214, 0.22);
  border-radius: var(--v2-control-radius);
  background: rgba(9, 18, 31, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.module-shell.visual-shell .user-form input:focus,
.module-shell.visual-shell .user-form select:focus,
.module-shell.visual-shell .shipment-search input:focus,
.module-shell.visual-shell .listing-collection-search input:focus,
.module-shell.visual-shell .listing-collection-form input:focus,
.module-shell.visual-shell .listing-collection-form select:focus,
.module-shell.visual-shell .listing-collection-form textarea:focus,
.module-shell.visual-shell .listing-edit-input:focus,
.module-shell.visual-shell .tag-search input:focus,
.module-shell.visual-shell .market-filter input:focus,
.module-shell.visual-shell .market-filter select:focus,
.module-shell.visual-shell .llm-config-form input:focus,
.module-shell.visual-shell .llm-config-form select:focus,
.module-shell.visual-shell .llm-config-form textarea:focus,
.module-shell.visual-shell input:not([type="checkbox"]):not([type="radio"]):focus,
.module-shell.visual-shell select:focus,
.module-shell.visual-shell textarea:focus {
  border-color: rgba(56, 189, 248, 0.58);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.module-shell.visual-shell .table-action {
  min-height: 30px;
  padding: 0 10px;
  border-color: rgba(126, 167, 214, 0.24);
  border-radius: 10px;
  background: rgba(10, 23, 35, 0.72);
}

.module-shell.visual-shell .table-action:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(19, 39, 58, 0.94);
}

.module-shell.visual-shell .secondary-button,
.module-shell.visual-shell .ghost-button,
.module-shell.visual-shell .range-button,
.module-shell.visual-shell .sort-button,
.module-shell.visual-shell .page-size-button,
.module-shell.visual-shell .config-category-button,
.module-shell.visual-shell .market-trends-actions button,
.module-shell.visual-shell .competitor-seed-toolbar button,
.module-shell.visual-shell .message-template-actions button,
.module-shell.visual-shell .order-load-actions .secondary-button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--v2-control-radius);
  border-color: rgba(126, 167, 214, 0.26);
  background:
    linear-gradient(135deg, rgba(13, 27, 43, 0.82), rgba(10, 21, 34, 0.66)),
    rgba(9, 18, 31, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-weight: 700;
  letter-spacing: 0;
}

.module-shell.visual-shell .primary-button:not(:disabled),
.module-shell.visual-shell .order-load-actions .primary-button:not(:disabled),
.module-shell.visual-shell .review-strategy-panel .primary-button:not(:disabled) {
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--v2-control-radius);
  color: #ffffff;
  border-color: rgba(47, 125, 246, 0.48);
  background: linear-gradient(135deg, #2f7df6, #1d4ed8);
  box-shadow: 0 12px 28px rgba(47, 125, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 800;
  letter-spacing: 0;
}

.module-shell.visual-shell button:focus-visible,
.module-shell.visual-shell a:focus-visible,
.module-shell.visual-shell .table-action:focus-visible,
.module-shell.visual-shell .range-button:focus-visible,
.module-shell.visual-shell .sort-button:focus-visible,
.module-shell.visual-shell .page-size-button:focus-visible,
.module-shell.visual-shell input:focus-visible,
.module-shell.visual-shell select:focus-visible,
.module-shell.visual-shell textarea:focus-visible {
  outline: none;
  border-color: rgba(56, 189, 248, 0.64);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.module-shell.visual-shell button:disabled,
.module-shell.visual-shell .table-action:disabled,
.module-shell.visual-shell .range-button:disabled,
.module-shell.visual-shell .sort-button:disabled,
.module-shell.visual-shell .page-size-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  filter: saturate(0.78);
}

.module-shell.visual-shell input::placeholder,
.module-shell.visual-shell textarea::placeholder {
  color: rgba(199, 220, 242, 0.56);
}

.module-shell.visual-shell .filter-result-count,
.module-shell.visual-shell .panel-link,
.module-shell.visual-shell .market-trends-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(126, 167, 214, 0.2);
  border-radius: 999px;
  color: #bdd1e7;
  background: rgba(9, 18, 31, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.module-shell.visual-shell .market-trend-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(126, 167, 214, 0.18);
  border-radius: var(--v2-card-radius);
  background: rgba(9, 18, 31, 0.38);
}

.module-shell.visual-shell .market-trend-category-strip.is-empty {
  color: #94a9c0;
  font-size: 12px;
}

.module-shell.visual-shell .market-trend-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  min-height: 34px;
  padding: 0 11px;
  color: #c9d8ea;
  border: 1px solid rgba(126, 167, 214, 0.24);
  border-radius: 999px;
  background: rgba(12, 25, 40, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.module-shell.visual-shell .market-trend-category-chip strong,
.module-shell.visual-shell .market-trend-category-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-shell.visual-shell .market-trend-category-chip strong {
  color: #edf7ff;
  font-weight: 800;
}

.module-shell.visual-shell .market-trend-category-chip span {
  color: #91a9c7;
  font-family: var(--mono);
}

.module-shell.visual-shell .market-trend-category-chip:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(19, 39, 58, 0.92);
}

.module-shell.visual-shell .market-trend-category-chip.is-pending:not(.is-active) {
  border-style: dashed;
}

.module-shell.visual-shell .market-trend-category-chip.is-pending:not(.is-active) span {
  color: #fbbf24;
}

.module-shell.visual-shell .market-trend-category-chip.is-active {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(135deg, rgba(47, 125, 246, 0.8), rgba(29, 78, 216, 0.72));
}

.module-shell.visual-shell .empty-row td {
  height: 94px;
  color: #aebfd4;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(15, 31, 49, 0.54), rgba(8, 17, 29, 0.34)),
    rgba(9, 18, 31, 0.28);
  box-shadow: inset 0 0 0 1px rgba(126, 167, 214, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.module-shell.visual-shell tbody tr:not(.empty-row):hover td {
  background: rgba(47, 125, 246, 0.08);
}

.module-shell.visual-shell .chip,
.module-shell.visual-shell .status-pill,
.module-shell.visual-shell .ad-status-chip,
.module-shell.visual-shell .proposal-type-chip,
.module-shell.visual-shell .suggestion-status-pill,
.module-shell.visual-shell .config-category-chip,
.module-shell.visual-shell .product-tag-chip,
.module-shell.visual-shell .review-topic-chip {
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.module-shell.visual-shell .module-tabs button.is-active,
.module-shell.visual-shell .range-button.is-active,
.module-shell.visual-shell .config-category-button.is-active,
.module-shell.visual-shell .sort-button.is-active,
.module-shell.visual-shell .page-size-button.is-active {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.46);
  background:
    linear-gradient(135deg, rgba(47, 125, 246, 0.86), rgba(29, 78, 216, 0.82)),
    rgba(15, 23, 42, 0.64);
  box-shadow: 0 12px 28px rgba(47, 125, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.module-shell.visual-shell .module-tabs button.is-active:hover,
.module-shell.visual-shell .range-button.is-active:hover,
.module-shell.visual-shell .config-category-button.is-active:hover,
.module-shell.visual-shell .sort-button.is-active:hover,
.module-shell.visual-shell .page-size-button.is-active:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.58);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.94), rgba(29, 78, 216, 0.9)),
    rgba(15, 23, 42, 0.7);
}

.module-shell.visual-shell .primary-row-action:not(:disabled) {
  color: #ccfbf1;
  border-color: rgba(20, 184, 166, 0.46);
  background: rgba(20, 184, 166, 0.16);
}

.module-shell.visual-shell .danger-button {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(127, 29, 29, 0.24);
}

.module-shell.visual-shell .empty-note {
  display: grid;
  min-height: 88px;
  place-items: center;
  padding: 18px;
  border: 1px dashed rgba(126, 167, 214, 0.22);
  border-radius: var(--v2-card-radius);
  background: rgba(9, 18, 31, 0.42);
}

.module-shell.visual-shell .permission-block,
.module-shell.visual-shell .permission-check {
  border-color: rgba(126, 167, 214, 0.18);
  background: rgba(9, 18, 31, 0.42);
}

.main-panel,
.side-panel {
  min-width: 0;
  max-width: 100%;
}

.side-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.product-analysis-workspace.workspace-grid,
.ads-workspace.workspace-grid,
.inventory-workspace.workspace-grid,
.order-query-workspace.workspace-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.3fr);
}

.inventory-workspace.workspace-grid.inventory-single-column {
  grid-template-columns: minmax(0, 1fr);
}

.product-analysis-main,
.ads-main-panel,
.inventory-main-panel,
.order-query-main {
  display: grid;
  gap: 12px;
}

.product-analysis-main {
  grid-column: 1 / -1;
}

.product-analysis-support-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ads-side-panel,
.inventory-side-panel,
.order-query-side {
  position: sticky;
  top: 12px;
}

.sticky-action-bar {
  position: sticky;
  bottom: 12px;
  z-index: 3;
  border: 1px solid var(--v2-panel-border);
  border-radius: var(--v2-card-radius);
  background: rgba(8, 19, 31, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(var(--v2-panel-blur)) saturate(132%);
  backdrop-filter: blur(var(--v2-panel-blur)) saturate(132%);
}

.right-stack,
.panel-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.panel {
  min-width: 0;
  padding: 16px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-link {
  color: var(--blue-2);
  text-decoration: none;
  font-size: 13px;
}

.chart-panel {
  min-height: 282px;
}

.chart-wrap {
  position: relative;
  width: 100%;
  min-height: 224px;
}

.chart-wrap svg {
  display: block;
  width: 100%;
  height: 224px;
}

.chart-wrap[data-trend-tooltip] {
  cursor: crosshair;
}

.axis-label {
  fill: #7d8da3;
  font-family: var(--mono);
  font-size: 10px;
}

.chart-y-axis,
.chart-x-axis {
  stroke: rgba(148, 163, 184, 0.32);
  stroke-width: 1;
}

.chart-y-label {
  font-size: 11px;
}

.grid-line {
  stroke: rgba(148, 163, 184, 0.13);
  stroke-width: 1;
}

.chart-hit-area {
  fill: transparent;
  cursor: crosshair;
  pointer-events: all;
}

.chart-hit-area:focus {
  outline: none;
}

.line-primary {
  fill: none;
  stroke: var(--blue-2);
  stroke-width: 3;
}

.line-cyan {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
}

.line-green {
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
}

.line-purple {
  fill: none;
  stroke: var(--purple);
  stroke-width: 3;
}

.area-primary {
  fill: rgba(47, 125, 246, 0.18);
}

.chart-legend,
.metrics-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.legend-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--swatch);
}

.donut-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.donut {
  position: relative;
  width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--donut-gradient, conic-gradient(var(--blue) 0 50%, var(--cyan) 50% 70%, var(--amber) 70% 85%, var(--purple) 85% 100%));
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.36);
}

.donut::after {
  content: "";
  position: absolute;
  inset: 54px;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.42);
}

.donut-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut-center strong {
  font-family: var(--mono);
  font-size: 17px;
}

.donut-center span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.donut-list {
  display: grid;
  gap: 13px;
}

.donut-item,
.compact-row,
.alert-row,
.rule-row,
.health-row,
.pipeline-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
}

.compact-row + .compact-row,
.alert-row + .alert-row,
.rule-row + .rule-row,
.health-row + .health-row {
  border-top: 1px solid var(--line-soft);
}

.chip,
.status-pill,
.risk-pill,
.mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.chip.blue,
.status-pill.approved,
.status-pill.done,
.mode-pill.semi {
  color: #9cc9ff;
  background: rgba(47, 125, 246, 0.18);
}

.chip.cyan {
  color: #7dd3fc;
  background: rgba(6, 182, 212, 0.18);
}

.chip.green,
.status-pill.ok,
.status-pill.passed,
.mode-pill.auto {
  color: #7ee59d;
  background: rgba(34, 197, 94, 0.16);
}

.chip.amber,
.status-pill.pending,
.risk-pill.l2 {
  color: #f8c777;
  background: rgba(245, 158, 11, 0.18);
}

.status-pill.deduped {
  color: #7aa6ff;
  background: rgba(37, 99, 235, 0.16);
}

.chip.orange {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.18);
}

.chip.red,
.status-pill.reduce,
.risk-pill.l3 {
  color: #ff9a9a;
  background: rgba(239, 68, 68, 0.18);
}

.chip.purple {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.18);
}

.task-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.task-summary-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 29, 43, 0.9), rgba(8, 18, 29, 0.86));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.task-summary-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(47, 125, 246, 0.18);
  filter: blur(2px);
}

.task-summary-card .chip {
  width: fit-content;
}

.task-summary-card strong {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 26px;
}

.task-summary-card small,
.task-summary-card em {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.task-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.24fr);
  gap: 12px;
  align-items: start;
}

.task-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 10px;
  min-width: 0;
}

.task-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 530px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 18, 29, 0.68);
}

.task-column-head,
.task-card-head,
.task-card-foot,
.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-column-head strong {
  display: block;
  font-size: 14px;
}

.task-column-head span,
.task-card-head span,
.task-card-foot span,
.timeline-row span {
  color: var(--muted);
  font-size: 12px;
}

.task-card-list {
  display: grid;
  gap: 9px;
  align-content: start;
}

.task-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--blue-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.task-card:hover {
  border-color: rgba(90, 163, 255, 0.5);
  background: rgba(47, 125, 246, 0.12);
  transform: translateY(-1px);
}

.task-card.high {
  border-left-color: var(--red);
}

.task-card.medium {
  border-left-color: var(--amber);
}

.task-card.low {
  border-left-color: var(--green);
}

.task-card strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.task-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.task-card-foot {
  padding-top: 2px;
  border-top: 1px solid var(--line-soft);
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-action-button {
  display: grid;
  gap: 5px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.quick-action-button:hover {
  border-color: rgba(90, 163, 255, 0.46);
  background: rgba(47, 125, 246, 0.12);
}

.quick-action-button small {
  color: var(--muted);
  font-size: 12px;
}

.timeline-list {
  display: grid;
  gap: 0;
}

.timeline-row {
  min-height: 38px;
  border-top: 1px solid var(--line-soft);
}

.timeline-row:first-child {
  border-top: 0;
}

.timeline-row strong {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-row span {
  flex: 0 0 48px;
  color: var(--blue-2);
}

.timeline-row small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-detail-modal {
  width: min(680px, calc(100vw - 28px));
}

.risk-pill.l1 {
  color: #7ee59d;
  background: rgba(34, 197, 94, 0.16);
}

.table-shell {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--v2-card-radius);
  background: var(--v2-table-bg);
}

.table-shell.is-wide {
  max-height: min(62vh, 720px);
  border-color: rgba(148, 163, 184, 0.18);
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.wide-table {
  min-width: 3600px;
}

.right-stack table {
  min-width: 100%;
}

.right-stack th,
.right-stack td {
  padding-right: 8px;
  padding-left: 8px;
  font-size: 12px;
}

th,
td {
  height: 38px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

td {
  color: #d7e0ed;
  font-size: 13px;
  user-select: text;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover,
tbody tr.is-selected {
  background: rgba(47, 125, 246, 0.12);
}

.table-action {
  min-height: 26px;
  padding: 0 10px;
  color: #9cc9ff;
  font-size: 12px;
}

.table-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.copyable-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  vertical-align: middle;
}

.copyable-value-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: text;
}

.copy-value-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  color: var(--blue-2);
  background: rgba(90, 163, 255, 0.08);
  border: 1px solid rgba(90, 163, 255, 0.24);
  border-radius: 5px;
  user-select: none;
}

.copy-value-button:hover {
  color: #d9ecff;
  background: rgba(90, 163, 255, 0.18);
  border-color: rgba(90, 163, 255, 0.45);
}

.copy-value-button svg {
  width: 12px;
  height: 12px;
}

.danger-button {
  color: #ffb4b4;
  border-color: rgba(239, 68, 68, 0.45);
}

.danger-button:hover:not(:disabled),
.danger-primary {
  color: #ffe1e1;
  border-color: rgba(239, 68, 68, 0.72);
  background: rgba(127, 29, 29, 0.42);
}

.compact-actions {
  gap: 6px;
  flex-wrap: nowrap;
}

.wide-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #0b1724;
}

.wide-table td {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(11, 23, 36, 0.96);
}

.wide-table th:nth-child(1),
.wide-table td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 102px;
  min-width: 102px;
  background: #0b1724;
}

.wide-table th:nth-child(2),
.wide-table td:nth-child(2) {
  position: sticky;
  left: 102px;
  z-index: 2;
  width: 126px;
  min-width: 126px;
  background: #0b1724;
}

.wide-table th:nth-child(3),
.wide-table td:nth-child(3) {
  position: sticky;
  left: 228px;
  z-index: 2;
  width: 138px;
  min-width: 138px;
  background: #0b1724;
}

.wide-table th:nth-child(4),
.wide-table td:nth-child(4) {
  position: sticky;
  left: 366px;
  z-index: 2;
  width: 132px;
  min-width: 132px;
  background: #0b1724;
}

.wide-table th:nth-child(-n + 4) {
  z-index: 5;
}

.wide-table th:last-child,
.wide-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  width: 88px;
  min-width: 88px;
  background: #0b1724;
}

.wide-table th:last-child {
  z-index: 5;
}

.wide-table td:nth-child(31) {
  max-width: 360px;
}

.ads-workspace {
  display: grid;
  gap: 12px;
}

.ads-date-toolbar {
  margin-bottom: 10px;
}

.ads-date-toolbar .primary-button {
  min-height: 34px;
}

.ads-date-toolbar .filter-result-count {
  margin-left: auto;
}

.ads-date-query-loading-banner {
  margin: 0 0 12px;
}

.ads-detail-search-toolbar {
  margin-bottom: 0;
}

.ads-detail-search-toolbar .filter-result-count {
  margin-left: auto;
}

.ads-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 12px;
}

.ad-detail-shell {
  max-height: min(68vh, 760px);
}

.ad-detail-table {
  min-width: 2860px;
}

.ad-detail-table th,
.ad-detail-table td {
  height: 42px;
  padding: 7px 8px;
  font-size: 12px;
}

.ad-detail-table th:nth-child(1),
.ad-detail-table td:nth-child(1) {
  width: 118px;
  min-width: 118px;
}

.ad-detail-table th:nth-child(2),
.ad-detail-table td:nth-child(2) {
  left: 118px;
  width: 76px;
  min-width: 76px;
}

.ad-detail-table th:nth-child(3),
.ad-detail-table td:nth-child(3) {
  left: 194px;
  width: 150px;
  min-width: 150px;
}

.ad-detail-table th:nth-child(4),
.ad-detail-table td:nth-child(4) {
  left: 344px;
  width: 190px;
  min-width: 190px;
}

.ad-detail-table td:nth-child(4) {
  max-width: 190px;
}

.cell-stack {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cell-stack strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-stack span,
.muted-text {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-campaign-cell {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ad-status-chip.is-active {
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(34, 197, 94, 0.16);
  color: #7ee59d;
}

.ad-status-chip.is-paused {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.16);
  color: #f8c777;
}

.ad-status-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 74px;
  height: 34px;
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  color: #dbeafe;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(23, 31, 44, 0.96), rgba(8, 12, 20, 0.96));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -7px 14px rgba(0, 0, 0, 0.28),
    0 6px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, opacity 160ms ease;
}

.ad-status-toggle::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 45%);
  opacity: 0.62;
  pointer-events: none;
}

.ad-status-toggle.is-active {
  justify-content: flex-end;
  border-color: rgba(96, 165, 250, 0.72);
  background:
    linear-gradient(145deg, rgba(96, 165, 250, 0.38), rgba(37, 99, 235, 0.2)),
    linear-gradient(180deg, #2f7df6, #1647d8);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.34),
    inset 0 -10px 16px rgba(2, 6, 23, 0.24),
    0 0 0 4px rgba(47, 125, 246, 0.12),
    0 0 22px rgba(47, 125, 246, 0.5);
}

.ad-status-toggle.is-active:hover,
.ad-status-toggle.is-active:focus-visible {
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.38),
    inset 0 -10px 16px rgba(2, 6, 23, 0.22),
    0 0 0 6px rgba(47, 125, 246, 0.16),
    0 0 30px rgba(47, 125, 246, 0.68);
}

.ad-status-toggle.is-paused:hover,
.ad-status-toggle.is-paused:focus-visible {
  border-color: rgba(203, 213, 225, 0.4);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 -7px 14px rgba(0, 0, 0, 0.3),
    0 0 0 5px rgba(148, 163, 184, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.2);
}

.ad-status-toggle:hover {
  transform: translateY(-1px);
}

.ad-status-toggle-knob {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.96), rgba(219, 234, 254, 0.9) 32%, rgba(148, 163, 184, 0.72) 68%, rgba(15, 23, 42, 0.32) 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.78),
    inset 0 -6px 10px rgba(15, 23, 42, 0.22),
    0 3px 7px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.ad-status-toggle.is-active .ad-status-toggle-knob {
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.86),
    inset 0 -6px 10px rgba(37, 99, 235, 0.2),
    0 3px 9px rgba(15, 23, 42, 0.36),
    0 0 16px rgba(219, 234, 254, 0.48);
}

.ad-status-toggle > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ad-status-toggle:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.ad-status-control-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  vertical-align: middle;
}

.ad-status-scope {
  flex: 0 0 auto;
  color: #93a8c3;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.ad-inline-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}

.ad-inline-edit > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-inline-edit-button {
  position: relative;
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border: 1px solid rgba(122, 174, 255, 0.44);
  border-radius: 10px;
  color: #78b7ff;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(72, 105, 171, 0.26), rgba(8, 20, 42, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -10px 18px rgba(5, 13, 30, 0.22),
    0 0 0 1px rgba(47, 125, 246, 0.08);
  overflow: hidden;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ad-inline-edit-button svg {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  stroke-width: 2.3;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.34));
}

.ad-inline-edit-button:hover,
.ad-inline-edit-button:focus-visible {
  color: #eff6ff;
  border-color: rgba(139, 190, 255, 0.86);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.34), transparent 38%),
    linear-gradient(145deg, rgba(71, 136, 255, 0.42), rgba(15, 37, 86, 0.34));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 3px rgba(47, 125, 246, 0.14),
    0 0 20px rgba(59, 130, 246, 0.36);
  transform: translateY(-1px);
}

.ad-products-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 62px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(72, 133, 255, 0.42);
  border-radius: 999px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 18% 50%, rgba(59, 130, 246, 0.2), transparent 24%),
    linear-gradient(145deg, rgba(47, 70, 120, 0.58), rgba(10, 20, 43, 0.52));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -10px 18px rgba(2, 6, 23, 0.22),
    0 8px 18px rgba(15, 23, 42, 0.16);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ad-products-button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.82);
}

.ad-products-button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid rgba(191, 219, 254, 0.76);
  border-right: 2px solid rgba(191, 219, 254, 0.76);
  transform: rotate(45deg);
  margin-left: 1px;
}

.ad-products-button:hover,
.ad-products-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(90, 163, 255, 0.82);
  background:
    radial-gradient(circle at 18% 50%, rgba(59, 130, 246, 0.28), transparent 26%),
    linear-gradient(145deg, rgba(47, 125, 246, 0.58), rgba(18, 39, 88, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 0 0 4px rgba(47, 125, 246, 0.12),
    0 0 24px rgba(47, 125, 246, 0.34);
}

.ad-products-modal {
  width: min(980px, calc(100vw - 28px));
}

.ad-campaign-edit-modal {
  width: min(520px, calc(100vw - 28px));
}

.ad-products-shell {
  max-height: min(62vh, 620px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: auto;
}

.ad-products-list {
  min-width: 760px;
}

.ad-products-list th,
.ad-products-list td {
  height: 44px;
  padding: 8px 10px;
}

.empty-row td {
  color: var(--muted);
  text-align: center;
}

.proposal-toolbar,
.proposal-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.proposal-toolbar {
  margin-bottom: 10px;
}

.decision-workspace {
  display: grid;
  gap: var(--v2-workspace-gap);
  min-width: 0;
  max-width: 100%;
}

.decision-workspace.workspace-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.32fr);
}

#pageRoot[data-page="decision"],
.decision-workspace > *,
#proposalQueuePanelMount,
#proposalQueuePanelMount > .panel {
  min-width: 0;
  max-width: 100%;
}

#pageRoot[data-page="decision"] {
  overflow-x: clip;
}

.decision-bottom-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
}

.decision-workspace.workspace-grid .decision-bottom-grid {
  grid-template-columns: 1fr;
}

.proposal-category-tabs,
.proposal-bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.proposal-category-tabs {
  flex-wrap: wrap;
}

.proposal-action-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(14, 29, 43, 0.66);
}

.proposal-action-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
}

.proposal-action-filter-button small {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--blue-2);
  background: rgba(47, 125, 246, 0.14);
  font-family: var(--mono);
}

.proposal-action-filter-button.is-active {
  color: #e8f3ff;
  border-color: rgba(47, 125, 246, 0.42);
  background: rgba(47, 125, 246, 0.2);
}

.proposal-category-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(14, 29, 43, 0.66);
}

.proposal-category-button small {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--blue-2);
  background: rgba(47, 125, 246, 0.14);
  font-family: var(--mono);
}

.proposal-category-button.is-active {
  color: #e8f3ff;
  border-color: rgba(47, 125, 246, 0.48);
  background: linear-gradient(145deg, rgba(47, 125, 246, 0.28), rgba(29, 78, 216, 0.18));
  box-shadow: 0 10px 26px rgba(47, 125, 246, 0.14), inset 0 -2px 0 rgba(90, 163, 255, 0.45);
}

.proposal-bulk-toolbar {
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}

.proposal-select-all,
.proposal-bulk-actions,
.proposal-action-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.proposal-select-all {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.proposal-bulk-actions {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.proposal-select-all strong {
  color: var(--blue-2);
  font-family: var(--mono);
}

.proposal-bulk-summary {
  color: var(--muted);
  font-size: 12px;
}

.proposal-action-bar,
.inventory-action-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
}

.proposal-action-bar.sticky-action-bar {
  z-index: 12;
}

.inventory-action-bar.sticky-action-bar {
  top: 12px;
  bottom: auto;
  z-index: 12;
}

.proposal-action-status {
  min-width: 0;
}

.proposal-action-status strong,
.proposal-action-status span {
  display: block;
}

.proposal-action-status span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.proposal-execute-button svg {
  width: 15px;
  height: 15px;
}

.proposal-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.proposal-search input {
  width: min(360px, 32vw);
  min-height: 34px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 23, 35, 0.62);
}

.proposal-table-shell {
  width: 100%;
  max-width: 100%;
  max-height: min(66vh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
}

.proposal-table {
  min-width: 3020px;
  border-collapse: separate;
  border-spacing: 0;
}

.proposal-table th:first-child,
.proposal-table td:first-child {
  width: 52px;
  min-width: 52px;
  text-align: center;
}

.proposal-table th:nth-child(1),
.proposal-table td:nth-child(1) {
  left: 0;
  z-index: 6;
}

.proposal-table th:nth-child(2),
.proposal-table td:nth-child(2) {
  left: 52px;
  width: 108px;
  min-width: 108px;
}

.proposal-table th:nth-child(3),
.proposal-table td:nth-child(3) {
  left: 160px;
  width: 150px;
  min-width: 150px;
}

.proposal-table th:nth-child(4),
.proposal-table td:nth-child(4) {
  left: 310px;
  width: 66px;
  min-width: 66px;
}

.proposal-table th:nth-child(5),
.proposal-table td:nth-child(5) {
  position: sticky;
  left: 376px;
  z-index: 2;
  width: 160px;
  min-width: 160px;
  background: #0b1724;
}

.proposal-table th:nth-child(-n + 5) {
  z-index: 7;
}

.proposal-select-cell {
  padding-right: 8px;
  padding-left: 8px;
}

.proposal-check {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

.proposal-check:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.proposal-image-cell {
  width: 62px;
}

.proposal-table .mlm-sku {
  min-width: 132px;
}

.proposal-action-reason-cell {
  min-width: 220px;
}

.proposal-action-reason {
  display: grid;
  gap: 3px;
  min-width: 180px;
  max-width: 240px;
  line-height: 1.25;
}

.proposal-action-reason strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proposal-action-reason small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proposal-value-cell {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 650;
}

.proposal-metric-label-cell span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  color: #cbd8e8;
  background: rgba(148, 163, 184, 0.1);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.proposal-metric-with-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font-family: var(--mono);
  font-weight: 650;
  cursor: help;
}

.proposal-metric-with-tooltip:hover,
.proposal-metric-with-tooltip:focus-visible {
  color: #dbeafe;
  border-color: rgba(47, 125, 246, 0.44);
  background: rgba(47, 125, 246, 0.16);
  outline: none;
}

.proposal-image-cell .product-thumb,
.proposal-image-cell .product-thumb-button {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.proposal-thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px dashed rgba(148, 163, 184, 0.38);
  border-radius: 6px;
  color: #8fa3bf;
  background: rgba(148, 163, 184, 0.1);
  font-size: 11px;
  font-weight: 600;
}

.proposal-group-row td {
  position: static !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none;
  height: 36px;
  padding: 6px 12px;
  color: var(--text);
  border-top: 1px solid rgba(90, 163, 255, 0.18);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(47, 125, 246, 0.12), rgba(47, 125, 246, 0.035));
}

.proposal-group-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 26px;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  text-align: left;
}

.proposal-group-row button svg {
  width: 14px;
  height: 14px;
  color: var(--blue-2);
}

.proposal-group-row button[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}

.proposal-group-row span {
  font-weight: 600;
}

.proposal-group-row small {
  margin-left: 8px;
  color: var(--muted);
  font-family: var(--mono);
}

.proposal-group-row.green td {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.14), rgba(34, 197, 94, 0.035));
}

.proposal-group-row.purple td {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.035));
}

.proposal-group-row.amber td {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.035));
}

.proposal-type-chip,
.suggestion-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.proposal-type-chip.green,
.suggestion-status-pill.green {
  color: #82efaa;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.14);
}

.proposal-type-chip.blue,
.suggestion-status-pill.blue {
  color: #8ec5ff;
  border: 1px solid rgba(47, 125, 246, 0.32);
  background: rgba(47, 125, 246, 0.16);
}

.proposal-type-chip.purple,
.suggestion-status-pill.purple {
  color: #c6b6ff;
  border: 1px solid rgba(139, 92, 246, 0.32);
  background: rgba(139, 92, 246, 0.16);
}

.proposal-type-chip.amber,
.suggestion-status-pill.orange,
.suggestion-status-pill.amber {
  color: #ffd28a;
  border: 1px solid rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.15);
}

.suggestion-status-pill.red {
  color: #ffb4b4;
  border: 1px solid rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.14);
}

.proposal-type-chip.slate,
.suggestion-status-pill.gray {
  color: #b6c3d3;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(148, 163, 184, 0.12);
}

.proposal-data-row.is-selected td {
  background: rgba(37, 99, 235, 0.18);
}

.batch-proposal-modal {
  width: min(560px, calc(100vw - 28px));
}

.batch-confirm-body {
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.batch-confirm-body strong {
  color: var(--text);
}

.batch-confirm-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.batch-confirm-list span {
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.proposal-count,
.proposal-pager,
.proposal-page-size span {
  color: var(--muted);
  font-size: 12px;
}

.proposal-page-size,
.pager-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shipment-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.shipment-page-size {
  flex-wrap: wrap;
}

.page-size-button,
.pager-button {
  min-height: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: #c8d5e4;
  background: rgba(14, 29, 43, 0.84);
}

.page-size-button {
  padding: 0 10px;
  font-size: 12px;
}

.page-size-button.is-active {
  border-color: rgba(90, 163, 255, 0.5);
  color: #e8f3ff;
  background: rgba(47, 125, 246, 0.24);
}

.pager-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  padding: 0;
}

.pager-button svg {
  width: 16px;
  height: 16px;
}

.pager-button.prev svg {
  transform: rotate(90deg);
}

.pager-button.next svg {
  transform: rotate(-90deg);
}

.pager-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.pager-index {
  min-width: 54px;
  color: var(--text);
  font-size: 12px;
  text-align: center;
}

.decision-pipeline {
  display: grid;
  grid-template-columns: repeat(8, minmax(92px, 1fr));
  gap: 8px;
}

.pipeline-node {
  position: relative;
  flex-direction: column;
  align-items: center;
  min-height: 96px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 23, 35, 0.62);
  text-align: center;
}

.pipeline-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--blue-2);
  border-radius: 50%;
  color: #dbeafe;
  font-family: var(--mono);
  font-weight: 700;
}

.pipeline-node.is-done .pipeline-index {
  border-color: var(--green);
  color: var(--green);
}

.pipeline-node strong {
  font-size: 13px;
}

.pipeline-node small {
  color: var(--muted);
  font-size: 11px;
}

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.42fr);
  gap: 12px;
}

.price-advisor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 228px;
  gap: 12px;
}

.advisor-card {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 19, 31, 0.8);
}

.advisor-value {
  color: var(--green);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
}

.product-card {
  display: grid;
  gap: 12px;
}

.product-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.product-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.product-image {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #172133, #0c1724);
}

.product-image svg {
  width: 34px;
  height: 34px;
  color: #b9c9dc;
}

.detail-list {
  display: grid;
  gap: 0;
}

.detail-list .compact-row {
  min-height: 36px;
}

.gauge {
  --value: 75%;
  position: relative;
  width: 180px;
  height: 92px;
  margin: 8px auto 0;
  overflow: hidden;
}

.gauge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 180px 180px 0 0;
  background: conic-gradient(from 270deg, var(--blue) 0 var(--value), rgba(148, 163, 184, 0.22) var(--value) 50%, transparent 50% 100%);
}

.gauge::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -66px;
  height: 132px;
  border-radius: 50%;
  background: var(--panel);
}

.gauge-label {
  position: absolute;
  inset: 34px 0 0;
  z-index: 1;
  text-align: center;
}

.gauge-label strong {
  display: block;
  font-family: var(--mono);
  font-size: 28px;
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.bar-track span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
}

.data-pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pipeline-box {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 23, 35, 0.72);
}

.pipeline-box strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
}

.pipeline-box svg {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  vertical-align: middle;
}

.pipeline-box p {
  margin: 10px 0 0;
  line-height: 1.6;
}

.pipeline-box.is-ok {
  border-color: rgba(34, 197, 94, 0.48);
}

.pipeline-box.is-warn {
  border-color: rgba(245, 158, 11, 0.52);
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-mini {
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.metric-mini strong {
  min-width: 0;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.22;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metric-mini span {
  color: var(--muted);
  font-size: 12px;
}

.side-panel .metric-mini strong {
  font-size: clamp(14px, 1.1vw, 18px);
}

.automation-control-status {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-bottom: 12px;
}

.automation-control-status strong,
.automation-control-status small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.automation-control-status strong {
  color: var(--text);
  font-size: 16px;
}

.automation-control-status small {
  color: var(--muted);
  line-height: 1.55;
}

.automation-shadow-run {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(12, 25, 42, 0.5);
  min-width: 0;
}

.automation-shadow-run div,
.automation-shadow-run strong,
.automation-shadow-run small,
.automation-shadow-run p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.automation-shadow-run div {
  display: grid;
  gap: 4px;
}

.automation-shadow-run strong {
  color: var(--text);
  font-size: 13px;
}

.automation-shadow-run small,
.automation-shadow-run p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.automation-shadow-run p {
  grid-column: 1 / -1;
  margin: 0;
}

.automation-readiness {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  min-width: 0;
}

.automation-readiness-head,
.automation-readiness-row {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.automation-readiness-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.automation-readiness-head strong,
.automation-readiness-row strong,
.automation-readiness-row small,
.automation-readiness-row p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.automation-readiness-list {
  display: grid;
  gap: 8px;
}

.automation-readiness-row {
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(8, 16, 29, 0.42);
}

.automation-readiness-row strong {
  color: var(--text);
  font-size: 13px;
}

.automation-readiness-row small,
.automation-readiness-row p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.automation-readiness-row p {
  margin: 0;
}

.action-observation-table {
  min-width: 680px;
}

.action-observation-table th,
.action-observation-table td {
  height: auto;
  padding: 8px;
  vertical-align: top;
}

.action-observation-table td strong,
.action-observation-table td small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.action-observation-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.action-observation-correction-table {
  min-width: 620px;
}

.action-observation-correction-table th,
.action-observation-correction-table td {
  height: auto;
  padding: 8px;
  vertical-align: top;
}

.autoops-shell {
  display: grid;
  gap: 16px;
}

.autoops-tabs {
  width: fit-content;
  max-width: 100%;
}

.autoops-workspace {
  min-width: 0;
}

.autoops-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.58fr);
  gap: var(--v2-workspace-gap);
  min-width: 0;
}

.autoops-single-column,
.autoops-main-column,
.autoops-side-column {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.autoops-task-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.autoops-task-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid rgba(90, 163, 255, 0.78);
  border-radius: 12px;
  background: rgba(8, 16, 29, 0.46);
}

.autoops-task-card.red {
  border-left-color: rgba(239, 68, 68, 0.95);
}

.autoops-task-card.amber,
.autoops-task-card.orange {
  border-left-color: rgba(245, 158, 11, 0.95);
}

.autoops-task-card.green {
  border-left-color: rgba(34, 197, 94, 0.95);
}

.autoops-task-card.purple {
  border-left-color: rgba(139, 92, 246, 0.95);
}

.autoops-task-media {
  min-width: 0;
}

.autoops-task-media .product-thumb,
.autoops-task-empty-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
}

.autoops-task-empty-thumb {
  display: grid;
  place-items: center;
  color: var(--blue-2);
  border: 1px solid var(--line-soft);
  background: rgba(47, 125, 246, 0.12);
}

.autoops-task-empty-thumb svg {
  width: 24px;
  height: 24px;
}

.autoops-task-body,
.autoops-task-head,
.autoops-value-pair,
.autoops-record-actions,
.autoops-log-actions,
.autoops-guidance,
.autoops-rule-list {
  min-width: 0;
}

.autoops-task-body {
  display: grid;
  gap: 8px;
}

.autoops-task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.autoops-task-body > strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.autoops-task-identity .mlm-sku {
  padding: 0;
  border: 0;
  background: transparent;
}

.autoops-task-body p,
.autoops-guidance span,
.autoops-log-actions span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

.autoops-value-pair span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.autoops-value-pair small {
  color: var(--muted);
  font-size: 11px;
}

.autoops-value-pair b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.autoops-record-actions,
.autoops-log-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.autoops-record-actions .secondary-button,
.autoops-record-actions .primary-button,
.autoops-log-actions .secondary-button {
  min-height: 32px;
  padding: 0 10px;
  gap: 6px;
  white-space: nowrap;
}

.autoops-record-actions svg,
.autoops-log-actions svg {
  width: 14px;
  height: 14px;
}

.autoops-approval-table {
  min-width: 1180px;
}

.autoops-approval-table th,
.autoops-approval-table td {
  height: auto;
  padding: 9px 10px;
  vertical-align: top;
}

.autoops-approval-table td strong,
.autoops-approval-table td small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.autoops-approval-table td small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.autoops-guidance {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(47, 125, 246, 0.08);
}

.autoops-guidance strong {
  color: var(--text);
  font-size: 13px;
}

.autoops-rule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.autoops-operation-log {
  max-height: min(58vh, 620px);
  overflow: auto;
}

@media (max-width: 1180px) {
  .autoops-two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .autoops-task-card {
    grid-template-columns: 1fr;
  }

  .autoops-value-pair {
    grid-template-columns: 1fr;
  }

  .autoops-tabs {
    width: 100%;
  }
}

.action-observation-correction-table td strong,
.action-observation-correction-table td small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.action-observation-correction-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.catalog-competition-workspace.workspace-grid {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-competition-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.catalog-competition-shell .table-shell {
  max-height: min(58vh, 640px);
}

.catalog-competition-table.wide-table {
  min-width: 1320px;
  table-layout: fixed;
}

.catalog-competition-table th,
.catalog-competition-table td {
  height: 32px;
  padding: 5px 6px;
  font-size: 12px;
}

.catalog-competition-table th {
  font-size: 11px;
}

.catalog-competition-table .product-thumb,
.catalog-competition-table .product-thumb-button {
  width: 34px;
  height: 34px;
}

.catalog-competition-table.wide-table th:nth-child(1),
.catalog-competition-table.wide-table td:nth-child(1) {
  left: 0;
  width: 54px;
  min-width: 54px;
}

.catalog-competition-table.wide-table th:nth-child(2),
.catalog-competition-table.wide-table td:nth-child(2) {
  left: 54px;
  width: 92px;
  min-width: 92px;
}

.catalog-competition-table.wide-table th:nth-child(3),
.catalog-competition-table.wide-table td:nth-child(3) {
  left: 146px;
  width: 132px;
  min-width: 132px;
}

.catalog-competition-table.wide-table th:nth-child(4),
.catalog-competition-table.wide-table td:nth-child(4) {
  left: 278px;
  width: 116px;
  min-width: 116px;
}

.catalog-competition-table.wide-table td {
  max-width: 150px;
}

.catalog-competition-table.wide-table th:last-child,
.catalog-competition-table.wide-table td:last-child {
  width: 132px;
  min-width: 132px;
}

.catalog-competition-table .table-action-group {
  gap: 4px;
  min-width: 118px;
}

.catalog-competition-table .table-action {
  min-height: 24px;
  padding: 0 6px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147483647;
  width: max-content;
  min-width: min(360px, calc(100vw - 44px));
  max-width: min(520px, calc(100vw - 44px));
  padding: 14px 16px;
  border: 1px solid rgba(90, 163, 255, 0.82);
  border-radius: var(--radius);
  color: #f5fbff;
  background: rgba(7, 19, 31, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(90, 163, 255, 0.18);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.filter-menu {
  position: absolute;
  z-index: 30;
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 19, 31, 0.98);
  box-shadow: var(--shadow);
}

.filter-menu button {
  min-height: 36px;
  padding: 0 10px;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}

.filter-menu button:hover {
  border-color: rgba(90, 163, 255, 0.36);
  background: rgba(47, 125, 246, 0.14);
}

.filter-menu button.is-active {
  color: #e8f3ff;
  border-color: rgba(90, 163, 255, 0.48);
  background: rgba(47, 125, 246, 0.22);
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 24;
  background: rgba(1, 7, 14, 0.62);
  backdrop-filter: blur(4px);
}

.action-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 25;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  width: min(520px, 100vw);
  height: 100vh;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 23, 35, 0.98), rgba(4, 12, 21, 0.98));
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.drawer-head,
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-head h3,
.modal-head h3 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.drawer-head p,
.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.drawer-kicker {
  color: var(--blue-2);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.preview-banner {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(90, 163, 255, 0.32);
  border-radius: var(--radius);
  color: #cfe5ff;
  background: rgba(47, 125, 246, 0.12);
}

.preview-banner.warning {
  border-color: rgba(245, 158, 11, 0.42);
  color: #ffe3b4;
  background: rgba(245, 158, 11, 0.12);
}

.preview-banner span,
.empty-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.drawer-grid {
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: auto;
}

.drawer-grid.compact {
  max-height: 260px;
}

.drawer-field {
  display: grid;
  grid-template-columns: minmax(96px, 0.38fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.drawer-field span {
  color: var(--muted);
  font-size: 12px;
}

.drawer-field strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.drawer-actions,
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.operation-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 26;
  display: grid;
  gap: 14px;
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 23, 35, 0.99), rgba(4, 12, 21, 0.99));
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
  overflow-y: auto;
}

.product-image-modal {
  width: min(760px, calc(100vw - 28px));
}

.product-profit-calculator {
  width: min(720px, calc(100vw - 28px));
}

.product-performance-modal {
  width: min(1320px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.product-performance-modal .modal-head {
  align-items: center;
}

.product-performance-modal .modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.product-performance-modal-content {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.product-profit-calculator-product {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.product-profit-calculator-product strong,
.product-profit-calculator-product span,
.product-profit-calculator-product small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-profit-calculator-product strong {
  color: var(--text);
}

.product-profit-calculator-product span,
.product-profit-calculator-product small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.product-profit-calculator-thumb {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.product-profit-calculator-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-profit-calculator-thumb.placeholder {
  color: var(--muted);
}

.product-profit-calculator-thumb.placeholder svg {
  width: 24px;
  height: 24px;
}

.profit-calculator-rate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profit-calculator-rate-actions .secondary-button,
.profit-calculator-rate-actions .ghost-button {
  min-height: 34px;
  padding: 8px 12px;
}

.profit-calculator-price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.profit-calculator-price-field {
  display: grid;
  gap: 8px;
}

.profit-calculator-price-field span {
  color: var(--muted);
  font-size: 12px;
}

.profit-calculator-price-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: 600 16px/1.2 var(--mono);
}

.product-profit-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.product-profit-result-grid .metric-mini small {
  color: var(--muted);
  font-size: 11px;
}

.product-profit-result-grid .metric-mini.highlight {
  border-color: rgba(90, 163, 255, 0.42);
  background: rgba(90, 163, 255, 0.12);
}

.profit-calculator-breakdown {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.profit-calculator-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.profit-calculator-breakdown strong {
  display: block;
  color: var(--text);
  font-family: var(--mono);
}

.profit-calculator-breakdown small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-family: var(--mono);
  text-align: right;
}

@media (max-width: 760px) {
  .product-profit-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-image-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.product-image-preview img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 720px);
  border-radius: 8px;
  object-fit: contain;
}

.operation-log {
  display: grid;
  gap: 8px;
}

.release-notes-modal {
  width: min(720px, calc(100vw - 28px));
}

.release-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.release-summary strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 20px;
}

.release-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.release-note-list {
  display: grid;
  gap: 10px;
}

.release-note-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.release-note-meta {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.release-note-meta span {
  color: var(--muted);
  font-size: 12px;
}

.release-note-meta strong {
  color: var(--blue-2);
  font-family: var(--mono);
  font-size: 13px;
}

.release-note-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.release-note-body h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.release-note-section {
  display: grid;
  gap: 6px;
}

.release-note-section span {
  color: var(--muted);
  font-size: 12px;
}

.release-note-section ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.release-note-section li {
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.llm-prompt-grid,
.llm-history,
.llm-result {
  display: grid;
  gap: 10px;
}

.llm-prompt-card,
.llm-history-item,
.llm-result-item,
.llm-evidence {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.llm-prompt-card div,
.llm-history-item div,
.llm-result-item div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.llm-prompt-card strong,
.llm-history-item strong,
.llm-result-item strong,
.llm-evidence strong {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.llm-prompt-card span,
.llm-history-item span,
.llm-result-item span,
.llm-result-item small,
.llm-evidence span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.llm-prompt-card button {
  flex: 0 0 auto;
}

.llm-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.llm-result-grid section {
  display: grid;
  gap: 8px;
}

.llm-result-grid h4 {
  margin: 0;
  color: #dbe7f6;
  font-size: 13px;
}

.llm-modal {
  width: min(780px, calc(100vw - 28px));
}

.operation-log-item {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.operation-log-item span,
.operation-log-item small {
  color: var(--muted);
  font-size: 12px;
}

.operation-log-item strong {
  font-size: 13px;
}

tr.is-previewed {
  outline: 1px solid rgba(90, 163, 255, 0.52);
  outline-offset: -1px;
  background: rgba(47, 125, 246, 0.08);
}

body.is-auth-page .topbar-controls {
  display: none;
}

.auth-screen {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  padding: 24px;
}

.auth-card {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 30, 45, 0.98), rgba(5, 14, 24, 0.98));
  box-shadow: var(--shadow);
}

.auth-mark {
  width: fit-content;
  padding: 5px 9px;
  color: #d7e7ff;
  border: 1px solid rgba(90, 163, 255, 0.5);
  border-radius: 6px;
  background: rgba(47, 125, 246, 0.16);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.auth-card h2 {
  margin: 0;
  font-size: 24px;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-error {
  padding: 10px 12px;
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.42);
  border-radius: var(--radius);
  background: rgba(239, 68, 68, 0.12);
  font-size: 13px;
}

.auth-form,
.user-form {
  display: grid;
  gap: 12px;
}

.auth-form label,
.user-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.auth-form input,
.user-form input,
.user-form select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

.auth-form input:focus,
.user-form input:focus,
.user-form select:focus {
  border-color: var(--blue-2);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(90, 163, 255, 0.12);
}

.user-admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.user-form {
  padding: 16px;
}

.toggle-row,
.permission-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
}

.toggle-row input,
.permission-check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--blue-2);
}

.permission-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.permission-block strong {
  font-size: 13px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.permission-check {
  min-height: 32px;
  padding: 6px 8px;
  color: var(--text) !important;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px !important;
}

.module-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--v2-panel-border);
  border-radius: var(--v2-panel-radius);
  background: var(--v2-tab-bg);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
  backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
}

.module-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 16px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.module-tabs button.is-active {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.42);
  background:
    linear-gradient(135deg, rgba(47, 125, 246, 0.9), rgba(29, 78, 216, 0.78)),
    rgba(15, 23, 42, 0.56);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.inventory-workspace {
  min-width: 0;
}

.inventory-workspace .table-shell.is-wide {
  height: calc(100vh - 205px);
  height: calc(100dvh - 205px);
  min-height: 560px;
  max-height: none;
  overflow: auto;
}

.inventory-table {
  min-width: 1900px;
}

.shipment-table {
  min-width: 2900px;
}

.inventory-table th:nth-child(1),
.inventory-table td:nth-child(1) {
  width: 76px;
  min-width: 76px;
}

.inventory-table th:nth-child(2),
.inventory-table td:nth-child(2) {
  left: 76px;
  width: 176px;
  min-width: 176px;
}

.inventory-table th:nth-child(3),
.inventory-table th:nth-child(4) {
  left: auto;
  z-index: 3;
}

.inventory-table td:nth-child(3),
.inventory-table td:nth-child(4) {
  position: static;
  left: auto;
  z-index: auto;
}

.inventory-table th:nth-child(-n + 2) {
  z-index: 5;
}

.inventory-age-table-shell {
  background: rgba(255, 255, 255, 0.025);
}

.inventory-age-mercado-table {
  min-width: 1876px;
  table-layout: fixed;
}

.inventory-age-mercado-table th,
.inventory-age-mercado-table td {
  vertical-align: middle;
  height: 112px;
  padding: 18px 18px;
  white-space: normal;
}

.inventory-age-mercado-table th {
  color: var(--text);
  background: rgba(226, 232, 240, 0.08);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.inventory-age-mercado-table th:nth-child(1),
.inventory-age-mercado-table td:nth-child(1) {
  width: 138px;
}

.inventory-age-mercado-table th:nth-child(2),
.inventory-age-mercado-table td:nth-child(2) {
  width: 190px;
}

.inventory-age-mercado-table th:nth-child(3),
.inventory-age-mercado-table td:nth-child(3) {
  width: 360px;
}

.inventory-age-mercado-table th:nth-child(n + 4):nth-child(-n + 8),
.inventory-age-mercado-table td:nth-child(n + 4):nth-child(-n + 8) {
  width: 168px;
}

.inventory-age-mercado-table th:nth-child(9),
.inventory-age-mercado-table td:nth-child(9) {
  width: 168px;
}

.inventory-age-mercado-table th:nth-child(10),
.inventory-age-mercado-table td:nth-child(10) {
  width: 180px;
}

.inventory-age-store-cell {
  color: var(--text);
  font-weight: 800;
}

.inventory-age-identity-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.inventory-age-identity-stack > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.inventory-age-product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.inventory-age-product .product-thumb,
.inventory-age-product .product-thumb-button {
  width: 64px;
  height: 64px;
}

.inventory-age-product strong,
.inventory-age-product span,
.inventory-age-product small {
  min-width: 0;
}

.inventory-age-product strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.inventory-age-ml-code {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.inventory-age-product-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.inventory-age-product-meta small {
  color: var(--muted);
  font-size: 12px;
}

.inventory-age-bucket-cell,
.inventory-age-total-cell {
  text-align: center;
}

.inventory-age-bucket-cell strong,
.inventory-age-total-cell strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.inventory-age-bucket-cell span,
.inventory-age-total-cell span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.inventory-age-total-cell strong {
  font-size: 16px;
}

.inventory-age-bucket-cell.is-empty {
  color: rgba(148, 163, 184, 0.58);
  font-size: 16px;
  font-weight: 700;
}

.inventory-age-sync-cell {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.shipment-toolbar,
.replenishment-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.quick-filter-strip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 34px;
}

.quick-filter-strip button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.quick-filter-strip button:hover,
.quick-filter-strip button.is-active {
  color: var(--text);
  border-color: rgba(96, 165, 250, 0.62);
  background: rgba(47, 125, 246, 0.18);
}

.quick-filter-strip strong {
  color: var(--blue-2);
  font-family: var(--mono);
  font-size: 12px;
}

.inventory-bottom-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.inventory-bottom-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.bottom-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bottom-panel-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.bottom-panel-head strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
}

.tag-page-stack {
  display: grid;
  gap: 14px;
}

.tag-toolbar {
  align-items: center;
  padding-bottom: 4px;
}

.tag-search {
  flex: 1 1 480px;
}

.tag-bottom-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.tag-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.tag-coverage-table {
  min-width: 1520px;
  table-layout: fixed;
}

.tag-coverage-table th,
.tag-coverage-table td {
  padding-right: 6px;
  padding-left: 6px;
}

.tag-coverage-table td {
  max-width: 160px;
}

.tag-coverage-table th:nth-child(1),
.tag-coverage-table td:nth-child(1) {
  width: 72px;
  min-width: 72px;
}

.tag-coverage-table th:nth-child(2),
.tag-coverage-table td:nth-child(2) {
  left: 72px;
  width: 150px;
  min-width: 150px;
}

.tag-coverage-table th:nth-child(3),
.tag-coverage-table td:nth-child(3) {
  left: 222px;
  width: 176px;
  min-width: 176px;
}

.tag-coverage-table th:nth-child(4),
.tag-coverage-table td:nth-child(4) {
  left: 398px;
  width: 82px;
  min-width: 82px;
}

.tag-coverage-table th:nth-child(5),
.tag-coverage-table td:nth-child(5) {
  width: 92px;
}

.tag-coverage-table th:nth-child(6),
.tag-coverage-table td:nth-child(6),
.tag-coverage-table th:nth-child(7),
.tag-coverage-table td:nth-child(7),
.tag-coverage-table th:nth-child(8),
.tag-coverage-table td:nth-child(8) {
  width: 112px;
}

.tag-coverage-table th:nth-child(9),
.tag-coverage-table td:nth-child(9) {
  width: 104px;
}

.tag-coverage-table th:nth-child(10),
.tag-coverage-table td:nth-child(10) {
  width: 110px;
}

.tag-coverage-table th:nth-child(11),
.tag-coverage-table td:nth-child(11) {
  width: 90px;
}

.tag-coverage-table th:last-child,
.tag-coverage-table td:last-child {
  width: 86px;
  min-width: 86px;
}

.table-header-sort {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 24px;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.table-header-sort strong {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.12);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
}

.table-header-sort:hover {
  color: #e0f2fe;
}

.tag-inventory-header {
  text-align: right;
}

.tag-inventory-sort {
  width: 100%;
  min-width: 0;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.tag-sort-arrow {
  display: inline-grid;
  flex: 0 0 18px;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.12);
  line-height: 1;
}

.tag-sort-arrow svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.tag-layer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  max-width: 100%;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.tag-chip-hero,
.tag-chip-high_margin,
.tag-chip-balanced,
.tag-chip-healthy_margin {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.16);
}

.tag-chip-growth,
.tag-chip-low_stock,
.tag-chip-low_margin {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.16);
}

.tag-chip-core {
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.34);
  background: rgba(59, 130, 246, 0.16);
}

.tag-chip-long_tail,
.tag-chip-new_or_idle,
.tag-chip-test,
.tag-chip-overstock,
.tag-chip-dead_stock {
  color: #ddd6fe;
  border-color: rgba(139, 92, 246, 0.34);
  background: rgba(139, 92, 246, 0.16);
}

.tag-chip-loss,
.tag-chip-out_of_stock,
.tag-chip-clearance {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.36);
  background: rgba(239, 68, 68, 0.16);
}

.tag-chip-unknown {
  color: var(--muted);
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.10);
}

.tag-layer-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.tag-layer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.tag-layer-order {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.16);
  font-family: var(--mono);
  font-weight: 800;
}

.tag-layer-card strong,
.tag-layer-card em,
.tag-layer-card small {
  display: block;
}

.tag-layer-card strong {
  color: var(--text);
  font-size: 14px;
}

.tag-layer-card em {
  margin-top: 3px;
  color: #60a5fa;
  font-style: normal;
  font-weight: 800;
}

.tag-layer-card p {
  margin: 10px 0 8px;
  color: var(--muted);
  line-height: 1.55;
}

.tag-layer-card small {
  color: var(--muted);
  line-height: 1.5;
}

.tag-explanation {
  display: grid;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.tag-explanation-row {
  display: grid;
  grid-template-columns: 104px repeat(5, minmax(150px, 1fr));
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}

.tag-explanation-row:last-child {
  border-bottom: 0;
}

.tag-explanation-tag,
.tag-explanation-row strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
}

.tag-explanation-detail {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tag-explanation-detail em {
  color: var(--text);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.tag-explanation-detail span {
  color: var(--muted);
  line-height: 1.55;
  white-space: normal;
}

.tag-override-modal {
  width: min(720px, calc(100vw - 28px));
}

.tag-override-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-override-context span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.tag-override-context strong {
  color: var(--text);
}

.tag-toggle-row {
  min-height: 40px;
  align-self: end;
}

.tag-switch-field {
  justify-items: start;
  min-height: 58px;
  gap: 8px !important;
}

.tag-switch-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.form-grid .tag-switch-input,
.shipment-form .tag-switch-input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.tag-switch-control {
  flex: 0 0 auto;
}

.tag-switch-input:checked + .tag-switch-control {
  justify-content: flex-end;
  border-color: rgba(96, 165, 250, 0.72);
  background:
    linear-gradient(145deg, rgba(96, 165, 250, 0.38), rgba(37, 99, 235, 0.2)),
    linear-gradient(180deg, #2f7df6, #1647d8);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.34),
    inset 0 -10px 16px rgba(2, 6, 23, 0.24),
    0 0 0 4px rgba(47, 125, 246, 0.12),
    0 0 22px rgba(47, 125, 246, 0.5);
}

.tag-switch-input:checked + .tag-switch-control .ad-status-toggle-knob {
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.86),
    inset 0 -6px 10px rgba(37, 99, 235, 0.2),
    0 3px 9px rgba(15, 23, 42, 0.36),
    0 0 16px rgba(219, 234, 254, 0.48);
}

.tag-switch-input:focus-visible + .tag-switch-control {
  outline: 2px solid rgba(96, 165, 250, 0.72);
  outline-offset: 3px;
}

.compact-toolbar {
  margin-top: 2px;
}

.shipment-search,
.replenishment-search {
  display: flex;
  align-items: center;
  flex: 1 1 360px;
  gap: 8px;
  min-width: min(420px, 100%);
}

.replenishment-settings {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 34px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.replenishment-settings-total {
  padding: 0 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.replenishment-settings label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.replenishment-settings input {
  width: 64px;
  min-height: 28px;
  padding: 0 8px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.04);
}

.shipment-search input,
.replenishment-search input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  box-sizing: border-box;
  padding: 0 11px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.shipment-search input:focus,
.replenishment-search input:focus {
  border-color: var(--blue-2);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(90, 163, 255, 0.12);
}

.listing-collection {
  display: grid;
  gap: 10px;
}

.listing-collection-form {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(180px, 1.1fr) repeat(5, minmax(92px, 130px)) minmax(280px, 2fr) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.listing-collection-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.listing-collection-form select,
.listing-collection-form input,
.listing-collection-form textarea,
.listing-edit-input,
.listing-collection-search input {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.listing-collection-form select,
.listing-collection-form input,
.listing-edit-input,
.listing-collection-search input {
  min-height: 38px;
  padding: 0 11px;
}

.listing-collection-form textarea {
  min-height: 92px;
  padding: 10px 11px;
  resize: vertical;
}

.listing-collection-form select:focus,
.listing-collection-form input:focus,
.listing-collection-form textarea:focus,
.listing-edit-input:focus,
.listing-collection-search input:focus {
  border-color: var(--blue-2);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(90, 163, 255, 0.12);
}

.listing-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.listing-collection-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-collection-search {
  display: flex;
  align-items: center;
  flex: 1 1 360px;
  gap: 8px;
  min-width: min(420px, 100%);
}

.listing-collection-workspace .listing-collection-table-shell {
  height: calc(100vh - 420px);
  height: calc(100dvh - 420px);
  min-height: 320px;
}

.listing-collection-table {
  min-width: 1680px;
}

.listing-collection-table td {
  vertical-align: middle;
}

.listing-collection-table .listing-edit-input {
  min-width: 120px;
  background: rgba(255, 255, 255, 0.035);
}

.listing-collection-table td:nth-child(3) .listing-edit-input,
.listing-collection-table td:nth-child(6) .listing-edit-input {
  min-width: 260px;
}

.listing-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.listing-row-actions .table-action {
  white-space: nowrap;
}

.primary-row-action:not(:disabled) {
  border-color: rgba(55, 193, 124, 0.5);
  color: var(--text);
  background: rgba(55, 193, 124, 0.16);
}

.listing-source-link {
  color: var(--blue-2);
  font-weight: 700;
  text-decoration: none;
}

.mono-cell {
  font-family: var(--mono);
}

.filter-result-count {
  color: var(--muted);
  font-size: 12px;
}

.shipment-filter-modal {
  width: min(720px, calc(100vw - 28px));
}

.suppression-table-shell {
  max-height: min(58vh, 560px);
}

.suppression-table {
  min-width: 1380px;
}

.filter-column-select {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.filter-column-select select {
  min-height: 38px;
  padding: 0 10px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.filter-check-list {
  display: grid;
  gap: 6px;
  max-height: min(46vh, 420px);
  padding-right: 4px;
  overflow: auto;
}

.filter-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.filter-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-2);
}

.filter-check span {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-check small {
  color: var(--muted);
  font-family: var(--mono);
}

.product-thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.product-thumb-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: zoom-in;
}

.product-thumb-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.product-thumb-button .product-thumb {
  display: block;
  width: 100%;
  height: 100%;
}

.product-thumb.placeholder svg {
  width: 22px;
  height: 22px;
  color: #9fb4cc;
}

.product-tag-chip {
  max-width: 100%;
}

.product-analysis-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.product-analysis-toolbar {
  align-items: center;
  margin-bottom: 10px;
}

.product-analysis-search {
  flex: 1 1 420px;
  min-width: min(460px, 100%);
}

.product-analysis-search .secondary-button,
.product-analysis-search .ghost-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.product-analysis-date-filter {
  display: flex;
  align-items: center;
  flex: 1 1 760px;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: min(720px, 100%);
}

.product-analysis-date-filter .overview-filter-group {
  flex: 0 0 auto;
  align-self: center;
}

.product-analysis-date-filter .range-button-group {
  flex-wrap: wrap;
}

.product-analysis-date-filter .overview-date-inputs {
  flex: 0 0 auto;
  align-self: center;
}

.product-analysis-date-filter .date-range-trigger {
  min-width: 236px;
}

.product-analysis-toolbar .filter-result-count {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-height: 36px;
  margin-left: auto;
  padding-top: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.product-analysis-workspace .table-shell.is-wide {
  height: calc(100vh - 300px);
  height: calc(100dvh - 300px);
  min-height: 520px;
}

.product-analysis-table {
  min-width: 2540px;
}

.product-analysis-table th,
.product-analysis-table td {
  height: 54px;
  max-width: 170px;
  padding: 6px 8px;
  font-size: 12px;
}

.product-analysis-table td.trend-cell {
  overflow: visible;
}

.product-analysis-table td.product-analysis-profit-positive {
  color: var(--green);
  font-weight: 700;
}

.product-analysis-table td.product-analysis-profit-negative {
  color: var(--red);
  font-weight: 700;
}

.product-analysis-table th:nth-child(1),
.product-analysis-table td:nth-child(1) {
  width: 70px;
  min-width: 70px;
}

.product-analysis-table th:nth-child(2),
.product-analysis-table td:nth-child(2) {
  left: 70px;
  width: 96px;
  min-width: 96px;
}

.product-analysis-table th:nth-child(3),
.product-analysis-table td:nth-child(3) {
  left: 166px;
  width: 112px;
  min-width: 112px;
}

.product-analysis-table th:nth-child(4),
.product-analysis-table td:nth-child(4) {
  left: 278px;
  width: 136px;
  min-width: 136px;
}

.product-analysis-table th:last-child,
.product-analysis-table td:last-child {
  position: sticky;
  right: 0;
  width: auto;
  min-width: 120px;
  background: var(--dashboard-table-sticky-cell-bg);
  box-shadow: var(--dashboard-table-sticky-shadow-right);
}

.product-analysis-table th:last-child {
  z-index: 7;
}

.profit-analysis {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.profit-toolbar {
  align-items: center;
}

.profit-toolbar .overview-filter-group {
  min-height: 34px;
}

.profit-toolbar select,
.profit-toolbar input {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.profit-toolbar select {
  min-height: 34px;
  padding: 0 10px;
}

.profit-search {
  flex: 1 1 360px;
  min-width: min(420px, 100%);
}

.profit-market-filter,
.profit-store-filter {
  margin-left: 0;
}

.profit-query-loading-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(120px, 180px);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: var(--radius);
  color: var(--text);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.08));
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.2);
}

.profit-query-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(147, 197, 253, 0.28);
  border-top-color: #60a5fa;
  border-radius: 999px;
  animation: spin 820ms linear infinite;
}

.profit-query-loading-banner div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profit-query-loading-banner strong,
.profit-query-loading-banner span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profit-query-loading-banner strong {
  font-size: 13px;
}

.profit-query-loading-banner div span {
  color: var(--muted);
  font-size: 12px;
}

.profit-query-loading-meter {
  position: relative;
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
}

.profit-query-loading-meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
  animation: loadingSweep 1200ms ease-in-out infinite;
}

.product-analysis-profit-loading-banner {
  margin: 0 0 12px;
}

@media (max-width: 760px) {
  .profit-query-loading-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profit-query-loading-meter {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.profit-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.profit-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.profit-comparison-panel {
  grid-column: 1 / -1;
}

.profit-donut-card {
  min-width: 0;
}

.profit-donut-layout {
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 14px;
}

.profit-donut-layout .donut {
  width: 168px;
}

.profit-donut-layout .donut::after {
  inset: 46px;
}

.profit-donut-list {
  gap: 8px;
}

.profit-donut-list .donut-item {
  min-height: 28px;
}

.profit-donut-list .legend-key {
  min-width: 0;
}

.profit-donut-list .legend-key,
.profit-donut-list strong,
.profit-donut-list span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profit-donut-negative {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: var(--radius);
  color: #ffb4b4;
  background: rgba(239, 68, 68, 0.08);
  font-size: 12px;
}

.profit-comparison-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.profit-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profit-compare-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.profit-compare-card > span {
  color: var(--muted);
  font-size: 12px;
}

.profit-compare-card strong {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profit-compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.profit-compare-row em {
  overflow: hidden;
  font-family: var(--mono);
  font-style: normal;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profit-analysis-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.profit-status-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.profit-status-filter .range-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profit-status-filter .range-button span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.profit-store-table-shell,
.profit-sku-table-shell {
  height: calc(100vh - 366px);
  height: calc(100dvh - 366px);
  min-height: 500px;
}

.profit-cost-workspace .config-table-shell {
  height: calc(100vh - 300px);
  height: calc(100dvh - 300px);
  min-height: 500px;
}

.profit-cost-toolbar {
  align-items: center;
}

.profit-cost-share-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 10px;
  min-width: 0;
}

.profit-cost-share-table-shell {
  min-height: 360px;
}

.profit-import-page {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.profit-import-page-head {
  align-items: center;
  min-height: 64px;
}

.profit-import-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profit-import-heading-icon {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(145deg, #7c96ff 0%, #1f6feb 100%);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.profit-import-heading-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.4;
}

.profit-import-page-head h2 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.profit-import-page-head p {
  font-size: 14px;
}

.profit-import-page-head .page-actions svg,
.profit-tabs svg,
.profit-import-card-head svg,
.profit-import-file-label svg,
.profit-import-action-buttons svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.profit-import-refresh-button {
  min-width: 126px;
  padding: 0 16px;
}

.profit-import-page-head .secondary-button,
.profit-fee-import .secondary-button,
.profit-fee-import .primary-button,
.profit-fee-import .ghost-button {
  padding: 0 14px;
}

.profit-fee-import {
  display: grid;
  gap: 14px;
}

.profit-fee-import .profit-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--v2-panel-border);
  border-radius: var(--v2-panel-radius);
  background: var(--v2-filter-panel-bg);
  box-shadow: var(--v2-panel-shadow);
  -webkit-backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
  backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
}

.profit-fee-import .profit-toolbar .overview-filter-group {
  min-height: 38px;
  color: var(--text);
  font-weight: 600;
}

.profit-fee-import .profit-toolbar > .overview-filter-group:first-child {
  grid-column: auto;
  grid-row: auto;
}

.profit-fee-import .profit-toolbar > .overview-date-inputs {
  grid-column: auto;
  grid-row: auto;
}

.profit-fee-import .profit-toolbar > .profit-store-filter {
  grid-column: auto;
  grid-row: auto;
}

.profit-fee-import .profit-toolbar > .profit-market-filter {
  grid-column: auto;
  grid-row: auto;
}

.profit-fee-import .profit-toolbar .range-button-group {
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
}

.profit-fee-import .profit-toolbar .range-button {
  min-width: 64px;
  min-height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--v2-control-radius);
  background: var(--v2-input-bg);
  color: var(--muted);
}

.profit-fee-import .profit-toolbar .range-button:last-child {
  border-right: 1px solid rgba(148, 163, 184, 0.22);
}

.profit-fee-import .profit-toolbar .range-button.is-active {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.52);
  background: linear-gradient(135deg, rgba(47, 125, 246, 0.92), rgba(29, 78, 216, 0.84));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.profit-fee-import .profit-toolbar .overview-date-inputs {
  gap: 10px;
}

.profit-fee-import .profit-toolbar select,
.profit-fee-import .profit-toolbar input,
.profit-fee-import .profit-search input {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profit-fee-import .profit-toolbar select,
.profit-fee-import .profit-toolbar input {
  padding: 0 12px;
}

.profit-fee-import .profit-search {
  position: relative;
  display: flex;
  flex: 1 1 420px;
  gap: 10px;
  min-width: min(460px, 100%);
}

.profit-fee-import .profit-search input {
  width: 100%;
  padding: 0 12px;
}

.profit-fee-import .profit-search::before {
  content: none;
  position: absolute;
  top: 10px;
  left: 14px;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  pointer-events: none;
  color: #93a4bd;
}

.profit-fee-import .profit-search::after {
  content: none;
  position: absolute;
  top: 25px;
  left: 28px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #93a4bd;
  transform: rotate(45deg);
}

.profit-fee-import .profit-analysis-head {
  justify-content: flex-start;
}

.profit-fee-import .profit-tabs {
  display: inline-flex;
  width: 100%;
  max-width: 100%;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--v2-panel-border);
  border-radius: var(--v2-card-radius);
  background: var(--v2-filter-panel-bg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profit-fee-import .profit-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 36px;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.profit-fee-import .profit-tabs button:last-child {
  border-right: 1px solid transparent;
}

.profit-fee-import .profit-tabs button::after {
  content: none;
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: transparent;
}

.profit-fee-import .profit-tabs button.is-active {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.42);
  background:
    linear-gradient(135deg, rgba(47, 125, 246, 0.9), rgba(29, 78, 216, 0.78)),
    rgba(15, 23, 42, 0.56);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.profit-fee-import .profit-tabs button.is-active::after {
  background: transparent;
}

.profit-import-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--v2-panel-border);
  border-radius: var(--v2-panel-radius);
  background: var(--v2-panel-bg);
  box-shadow: var(--v2-panel-shadow);
  -webkit-backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
  backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
}

.profit-import-stepper {
  display: grid;
  grid-template-columns: auto minmax(42px, 1fr) auto minmax(42px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 76px 10px;
}

.profit-import-step {
  display: grid;
  grid-template-columns: 32px auto;
  grid-template-areas: "index label";
  column-gap: 10px;
  align-items: center;
  color: #bdc9db;
  white-space: nowrap;
}

.profit-import-step-index {
  grid-area: index;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #8da0b8;
  font-size: 13px;
  font-weight: 800;
}

.profit-import-step strong {
  display: none;
}

.profit-import-step span:last-child {
  grid-area: label;
  font-size: 14px;
  font-weight: 700;
}

.profit-import-step.is-current .profit-import-step-index {
  color: #fff;
  border-color: rgba(90, 163, 255, 0.82);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16), 0 12px 24px rgba(37, 99, 235, 0.3);
}

.profit-import-step.is-done .profit-import-step-index {
  color: #fff;
  border-color: rgba(37, 99, 235, 0.62);
  background: linear-gradient(135deg, #2563eb, #1f6feb);
}

.profit-import-step.has-warning .profit-import-step-index {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.54);
  background: rgba(245, 158, 11, 0.16);
}

.profit-import-step.is-done,
.profit-import-step.is-current {
  color: var(--text);
}

.profit-import-step-line {
  height: 1px;
  border-top: 1px dashed rgba(148, 163, 184, 0.54);
  background: transparent;
}

.profit-import-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.3fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.profit-import-main,
.profit-import-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.profit-import-side {
  position: sticky;
  top: 12px;
}

.profit-import-upload-card,
.profit-import-preview-card,
.profit-import-summary-card,
.profit-import-action-bar {
  min-width: 0;
  border: 1px solid var(--v2-panel-border);
  border-radius: var(--v2-card-radius);
  background: rgba(13, 25, 39, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profit-import-upload-card,
.profit-import-preview-card,
.profit-import-summary-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.profit-import-section-title,
.profit-import-preview-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.profit-import-panel-header {
  margin-bottom: 0;
}

.profit-import-panel-title {
  min-width: 0;
}

.profit-import-panel-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--blue-2);
  border: 1px solid rgba(90, 163, 255, 0.24);
  border-radius: 7px;
  background: rgba(47, 125, 246, 0.12);
}

.profit-import-panel-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.profit-import-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 14px;
  align-items: stretch;
}

.profit-import-drop-target {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  min-height: 104px;
  padding: 16px;
  border: 1px dashed rgba(118, 151, 198, 0.58);
  border-radius: var(--v2-control-radius);
  background: rgba(15, 30, 48, 0.54);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.profit-import-drop-target:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.72);
  outline-offset: 2px;
}

.profit-import-upload-card.is-dragging .profit-import-drop-target,
.profit-import-drop-target:hover {
  border-color: rgba(37, 99, 235, 0.9);
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.profit-import-upload-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #8aa2bd;
}

.profit-import-upload-symbol svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.8;
}

.profit-import-upload-copy strong,
.profit-import-card-head strong,
.profit-import-selected-file strong,
.profit-import-summary-matrix strong,
.profit-import-summary-grid strong,
.profit-import-money-row strong,
.profit-import-category-row strong,
.profit-import-share-row strong {
  display: block;
  color: var(--text);
}

.profit-import-upload-copy span,
.profit-import-card-head span,
.profit-import-selected-file span,
.profit-import-summary-matrix span,
.profit-import-summary-grid span,
.profit-import-money-row span,
.profit-import-category-row span,
.profit-import-preview-note {
  color: var(--muted);
  font-size: 12px;
}

.profit-import-upload-actions,
.profit-import-action-buttons,
.profit-import-row-actions,
.profit-import-preview-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.profit-import-upload-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.profit-import-upload-actions .secondary-button,
.profit-import-upload-actions .profit-import-file-label {
  flex: 0 0 auto;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  overflow: hidden;
  white-space: nowrap;
}

.profit-import-upload-actions .secondary-button svg,
.profit-import-upload-actions .profit-import-file-label svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px;
  max-height: 16px;
  stroke-width: 2;
}

.profit-import-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.profit-import-file-label {
  min-height: 38px;
  padding: 0 15px;
  cursor: pointer;
}

.profit-import-selected-files {
  display: grid;
  gap: 8px;
}

.profit-import-selected-file {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
}

.profit-import-file-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 4px;
  color: #ffffff;
  background: linear-gradient(135deg, #1f9d55, #33c174);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.profit-import-file-ok {
  color: #22c55e;
}

.profit-import-file-ok svg {
  width: 22px;
  height: 22px;
}

.profit-import-settings-warning {
  padding: 9px 10px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.11);
  color: #fbbf24;
  font-size: 12px;
}

.profit-import-settings-actions {
  display: flex;
  justify-content: flex-end;
}

.profit-import-error {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(239, 68, 68, 0.26);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.profit-import-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.profit-import-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  animation: profitImportProgress 1.2s ease-in-out infinite alternate;
}

@keyframes profitImportProgress {
  from { transform: translateX(-32%); }
  to { transform: translateX(42%); }
}

.profit-import-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.profit-import-card-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profit-import-summary-matrix,
.profit-import-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.profit-import-summary-matrix {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.34);
}

.profit-import-summary-matrix div,
.profit-import-summary-grid div {
  min-width: 0;
}

.profit-import-summary-matrix .wide {
  grid-column: 1 / -1;
}

.profit-import-summary-matrix strong {
  overflow: hidden;
  margin-top: 4px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profit-import-summary-grid div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
}

.profit-import-summary-grid .ok strong {
  color: #22c55e;
}

.profit-import-summary-grid .warn strong {
  color: #f59e0b;
}

.profit-import-summary-grid .danger strong,
.profit-import-money-row.is-impact strong {
  color: #ff6b78;
}

.profit-import-money-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.profit-fee-import-preview {
  display: grid;
  gap: 10px;
}

.profit-import-table-shell {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
}

.profit-import-file-table,
.profit-import-preview-table {
  width: 100%;
  min-width: 820px;
  table-layout: fixed;
  border-collapse: collapse;
}

.profit-import-preview-table {
  min-width: 900px;
}

.profit-import-preview-table th:nth-child(1),
.profit-import-preview-table td:nth-child(1) {
  width: 28%;
}

.profit-import-preview-table th:nth-child(2),
.profit-import-preview-table td:nth-child(2),
.profit-import-preview-table th:nth-child(4),
.profit-import-preview-table td:nth-child(4) {
  width: 7%;
}

.profit-import-preview-table th:nth-child(3),
.profit-import-preview-table td:nth-child(3),
.profit-import-preview-table th:nth-child(7),
.profit-import-preview-table td:nth-child(7),
.profit-import-preview-table th:nth-child(8),
.profit-import-preview-table td:nth-child(8) {
  width: 10%;
}

.profit-import-preview-table th:nth-child(5),
.profit-import-preview-table td:nth-child(5),
.profit-import-preview-table th:nth-child(6),
.profit-import-preview-table td:nth-child(6) {
  width: 14%;
}

.profit-import-file-table th,
.profit-import-file-table td,
.profit-import-preview-table th,
.profit-import-preview-table td {
  height: 36px;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 12px;
  line-height: 1.35;
  vertical-align: middle;
}

.profit-import-file-table th,
.profit-import-preview-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #c6d2e2;
  background: rgba(24, 35, 51, 0.96);
  font-size: 11px;
  font-weight: 800;
}

.profit-import-file-table td:first-child strong,
.profit-import-preview-table td:first-child strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profit-import-file-table .muted-text,
.profit-import-preview-table .muted-text {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profit-import-preview-filter {
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.36);
}

.profit-import-preview-filter label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.profit-import-file-filter {
  min-width: min(340px, 100%);
}

.profit-import-file-filter select {
  min-width: 220px;
}

.profit-fee-import-preview select,
.profit-import-preview-filter select {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  height: 28px;
  max-width: 100%;
  padding: 0 8px;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.72);
  font-size: 11px;
}

.profit-import-category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.52);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profit-import-category-pill.blue,
.profit-import-tag.blue,
.profit-import-dot.blue,
.profit-import-share-bar i.blue {
  color: #83b7ff;
}

.profit-import-category-pill.cyan,
.profit-import-tag.cyan,
.profit-import-dot.cyan,
.profit-import-share-bar i.cyan {
  color: #38d3df;
}

.profit-import-category-pill.purple,
.profit-import-tag.purple,
.profit-import-dot.purple,
.profit-import-share-bar i.purple {
  color: #b392ff;
}

.profit-import-category-pill.teal,
.profit-import-tag.teal,
.profit-import-dot.teal,
.profit-import-share-bar i.teal {
  color: #47d6c4;
}

.profit-import-category-pill.amber,
.profit-import-tag.amber,
.profit-import-dot.amber,
.profit-import-share-bar i.amber {
  color: #f8b13b;
}

.profit-import-category-pill.indigo,
.profit-import-tag.indigo,
.profit-import-dot.indigo,
.profit-import-share-bar i.indigo {
  color: #6aa0ff;
}

.profit-import-category-pill.gray,
.profit-import-tag.gray,
.profit-import-dot.gray,
.profit-import-share-bar i.gray,
.profit-import-category-pill.slate,
.profit-import-tag.slate,
.profit-import-dot.slate,
.profit-import-share-bar i.slate {
  color: #aebbd0;
}

.profit-import-delete-button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.profit-import-row-actions {
  flex-wrap: nowrap;
}

.profit-import-row-actions .table-action {
  min-height: 26px;
  padding: 0 6px;
  border: 0;
  color: #61a5ff;
  background: transparent;
  font-size: 11px;
}

.profit-import-group-row td {
  height: auto;
  padding: 0;
  border-bottom-color: rgba(90, 163, 184, 0.18);
  background:
    linear-gradient(90deg, rgba(47, 125, 246, 0.18), rgba(20, 184, 166, 0.08)),
    rgba(15, 23, 42, 0.72);
}

.profit-import-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  color: #dbeafe;
}

.profit-import-group-summary div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profit-import-group-summary div:first-child {
  flex: 1 1 auto;
}

.profit-import-group-summary strong {
  color: var(--text);
  font-size: 13px;
}

.profit-import-group-summary span {
  overflow: hidden;
  color: #9fb0c8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profit-import-raw-row td {
  height: auto;
  background: rgba(15, 23, 42, 0.44);
}

.profit-import-raw-line {
  display: grid;
  grid-template-columns: 120px minmax(160px, 1fr) 120px 110px;
  gap: 8px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 11px;
}

.profit-import-empty-state {
  display: grid;
  min-height: 176px;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.38);
  text-align: center;
}

.profit-import-preview-note {
  padding: 8px 0 0;
}

.profit-import-category-header,
.profit-import-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 112px;
  gap: 8px;
  align-items: center;
}

.profit-import-category-header {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.profit-import-category-list,
.profit-import-share-list {
  display: grid;
  gap: 8px;
}

.profit-import-category-row {
  padding: 0;
  color: #d7e2ef;
  font-size: 12px;
}

.profit-import-category-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profit-import-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.profit-import-category-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profit-import-share-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.5fr) minmax(100px, 1fr) 56px;
  gap: 8px;
  align-items: center;
  color: #d7e2ef;
  font-size: 12px;
}

.profit-import-share-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.profit-import-share-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

.profit-import-action-bar {
  position: sticky;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 20px;
  background: rgba(8, 19, 31, 0.9);
  border-radius: var(--v2-card-radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(var(--v2-panel-blur)) saturate(135%);
  backdrop-filter: blur(var(--v2-panel-blur)) saturate(135%);
}

.profit-import-action-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profit-import-action-icon {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #8ebcff;
}

.profit-import-action-bar strong,
.profit-import-action-bar span {
  display: block;
}

.profit-import-action-bar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.profit-import-action-buttons {
  justify-content: flex-end;
}

.profit-import-action-buttons .primary-button {
  min-width: 246px;
}

body.theme-glass-light .profit-import-page-head h2 {
  color: #0d1b2f;
}

body.theme-glass-light .profit-import-page-head p {
  color: #485a75;
}

body.theme-glass-light .page-head-icon {
  color: #ffffff;
  border-color: rgba(47, 125, 246, 0.22);
  background:
    linear-gradient(145deg, rgba(47, 125, 246, 0.92), rgba(20, 184, 166, 0.72)),
    rgba(255, 255, 255, 0.56);
  box-shadow: 0 16px 34px rgba(47, 125, 246, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

body.theme-glass-light .profit-fee-import .profit-toolbar,
body.theme-glass-light .profit-fee-import .profit-tabs,
body.theme-glass-light .profit-import-shell,
body.theme-glass-light .profit-import-upload-card,
body.theme-glass-light .profit-import-preview-card,
body.theme-glass-light .profit-import-summary-card,
body.theme-glass-light .profit-import-action-bar {
  border-color: rgba(166, 187, 219, 0.48);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(31, 80, 146, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-glass-light .profit-fee-import .profit-toolbar {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(235, 244, 255, 0.66)),
    rgba(255, 255, 255, 0.7);
}

body.theme-glass-light .profit-fee-import .profit-toolbar .range-button,
body.theme-glass-light .profit-fee-import .profit-toolbar select,
body.theme-glass-light .profit-fee-import .profit-toolbar input,
body.theme-glass-light .profit-fee-import .profit-search input,
body.theme-glass-light .profit-import-drop-target,
body.theme-glass-light .profit-import-selected-file,
body.theme-glass-light .profit-import-category-pill,
body.theme-glass-light .profit-import-summary-matrix,
body.theme-glass-light .profit-import-preview-filter,
body.theme-glass-light .profit-import-empty-state,
body.theme-glass-light .profit-import-raw-row td {
  background: rgba(255, 255, 255, 0.78);
}

body.theme-glass-light .profit-import-upload-card.is-dragging .profit-import-drop-target,
body.theme-glass-light .profit-import-drop-target:hover {
  background: rgba(37, 99, 235, 0.08);
}

body.theme-glass-light .profit-fee-import .profit-toolbar .range-button {
  color: #23324a;
}

body.theme-glass-light .profit-fee-import .profit-toolbar .range-button.is-active,
body.theme-glass-light .profit-fee-import .profit-tabs button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #2f7df6, #1d4ed8);
}

body.theme-glass-light .profit-fee-import .profit-tabs button {
  color: #3a4a63;
}

body.theme-glass-light .profit-import-file-table th,
body.theme-glass-light .profit-import-preview-table th {
  color: #506079;
  background: rgba(240, 246, 255, 0.96);
}

body.theme-glass-light .profit-import-file-table td,
body.theme-glass-light .profit-import-preview-table td {
  border-bottom-color: rgba(118, 144, 180, 0.18);
}

body.theme-glass-light .profit-import-group-row td {
  background:
    linear-gradient(90deg, rgba(47, 125, 246, 0.14), rgba(20, 184, 166, 0.08)),
    rgba(232, 242, 255, 0.9);
}

body.theme-glass-light .profit-import-group-summary {
  color: #183153;
}

body.theme-glass-light .profit-import-group-summary span {
  color: #5a6b83;
}

body.theme-glass-light .profit-fee-import-preview select,
body.theme-glass-light .profit-import-preview-filter select {
  background: rgba(255, 255, 255, 0.9);
}

body.theme-glass-light .profit-import-upload-symbol {
  color: #2563eb;
}

body.theme-glass-light .profit-import-step {
  color: #7a8ba5;
}

body.theme-glass-light .profit-import-step.is-done,
body.theme-glass-light .profit-import-step.is-current {
  color: #1f6feb;
}

.pricing-shell {
  --pricing-surface: rgba(15, 23, 42, 0.72);
  --pricing-surface-strong: rgba(15, 23, 42, 0.88);
  --pricing-surface-soft: rgba(30, 41, 59, 0.56);
  --pricing-line: rgba(148, 163, 184, 0.16);
  --pricing-text: #e5eefc;
  --pricing-muted: #93a4b8;
  --pricing-subtle: rgba(229, 238, 252, 0.72);
  --pricing-primary: #3b82f6;
  --pricing-shadow: 0 24px 70px rgba(0, 0, 0, 0.33);
  --pricing-sticky-top: 86px;
  --pricing-list-max-height: min(820px, calc(100dvh - 220px));
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 8%, rgba(37, 99, 235, 0.34), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(14, 165, 233, 0.2), transparent 30%),
    radial-gradient(circle at 60% 84%, rgba(20, 184, 166, 0.14), transparent 34%),
    linear-gradient(180deg, #07111f 0%, #0b1220 100%);
}

.module-shell.visual-shell.pricing-shell {
  overflow: hidden;
}

body.theme-glass-light .pricing-shell {
  --pricing-surface: rgba(255, 255, 255, 0.72);
  --pricing-surface-strong: rgba(255, 255, 255, 0.9);
  --pricing-surface-soft: rgba(255, 255, 255, 0.54);
  --pricing-line: rgba(148, 163, 184, 0.24);
  --pricing-text: #102033;
  --pricing-muted: #64748b;
  --pricing-subtle: rgba(16, 32, 51, 0.72);
  --pricing-primary: #2563eb;
  --pricing-shadow: 0 18px 55px rgba(15, 23, 42, 0.1);
  border-color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 18% 12%, rgba(125, 211, 252, 0.5), transparent 32%),
    radial-gradient(circle at 82% 10%, rgba(191, 219, 254, 0.72), transparent 34%),
    radial-gradient(circle at 64% 88%, rgba(153, 246, 228, 0.56), transparent 32%),
    linear-gradient(180deg, #eefaff 0%, #eaf4ff 100%);
}

body:not(.theme-glass-light) .pricing-shell {
  --pricing-table-text-strong: #f1f5f9;
  --pricing-table-text-main: #d7e3f4;
  --pricing-table-text-muted: #90a4bc;
  --pricing-table-text-soft: #60758e;
  --pricing-table-line-soft: rgba(148, 163, 184, 0.18);
  --pricing-table-line-main: rgba(148, 163, 184, 0.28);
  --pricing-table-blue: #60a5fa;
  --pricing-table-green: #34d399;
  --pricing-table-red: #fb7185;
  --pricing-table-orange: #f59e0b;
  --pricing-table-bg: rgba(7, 18, 31, 0.82);
  --pricing-table-header-bg: #081727;
  --pricing-table-row-bg: rgba(8, 19, 31, 0.86);
  --pricing-table-row-hover: rgba(37, 99, 235, 0.16);
  --pricing-table-row-selected: rgba(37, 99, 235, 0.24);
}

.pricing-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.pricing-main-panel,
.pricing-side-panel {
  min-width: 0;
}

.pricing-main-panel,
.pricing-side-panel {
  display: grid;
  gap: 12px;
}

.pricing-filter-body {
  display: grid;
  gap: 12px;
}

.pricing-segments,
.pricing-list-actions,
.pricing-side-selection-actions,
.pricing-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pricing-list-actions .secondary-button,
.pricing-list-actions .ghost-button,
.pricing-side-selection-actions .secondary-button,
.pricing-side-selection-actions .ghost-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
}

.pricing-segment b {
  color: inherit;
  font-size: 11px;
}

.pricing-search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.45fr);
  gap: 8px;
}

.pricing-search-row > button {
  justify-self: stretch;
}

.pricing-filter-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.pricing-filter-inline > .pricing-search-field {
  flex: 1 1 320px;
}

.pricing-filter-inline > select {
  flex: 1 1 132px;
}

.pricing-filter-inline > button {
  flex: 0 0 auto;
  min-width: 74px;
}

.pricing-filter-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  color: var(--pricing-muted);
  border: 1px solid var(--pricing-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.pricing-filter-status::before,
.pricing-list-filtering span {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid rgba(47, 125, 246, 0.22);
  border-top-color: var(--primary);
  border-radius: 999px;
}

.pricing-filter-status:not(.is-active)::before {
  border-color: var(--pricing-line);
  background: var(--pricing-ok);
}

.pricing-filter-status.is-active::before,
.pricing-list-filtering span {
  animation: pricing-filter-spin 0.8s linear infinite;
}

.pricing-filter-body.is-filtering .pricing-search-field {
  border-color: rgba(47, 125, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.12);
}

.pricing-list-filtering {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 10px;
  padding: 8px 12px;
  color: var(--pricing-text);
  border: 1px solid rgba(47, 125, 246, 0.22);
  border-radius: 12px;
  background: rgba(47, 125, 246, 0.08);
  font-size: 12px;
  font-weight: 700;
}

body:not(.theme-glass-light) .pricing-filter-status {
  background: rgba(8, 19, 31, 0.72);
}

body:not(.theme-glass-light) .pricing-list-filtering {
  background: rgba(37, 99, 235, 0.14);
}

@keyframes pricing-filter-spin {
  to { transform: rotate(360deg); }
}

body[data-page="pricing"] {
  overflow-x: hidden;
}

body[data-page="pricing"] .main-shell {
  overflow-x: hidden;
}

#pageRoot[data-page="pricing"] {
  min-height: 0;
  overflow-x: hidden;
}

.pricing-advanced-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
  gap: 8px;
}

.pricing-search-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--pricing-muted);
  border: 1px solid var(--pricing-line);
  border-radius: 14px;
  background: var(--pricing-surface-strong);
}

.pricing-search-field svg {
  width: 17px;
  height: 17px;
}

.pricing-search-field input,
.pricing-filter-body select,
.pricing-adjustment-form input,
.pricing-adjustment-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  color: var(--pricing-text);
  border: 1px solid var(--pricing-line);
  border-radius: 14px;
  background: var(--pricing-surface-strong);
  font-size: 12px;
  font-weight: 700;
}

.pricing-search-field input {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.pricing-search-field input::placeholder {
  color: var(--pricing-muted);
}

.pricing-filter-body select,
.pricing-adjustment-form input,
.pricing-adjustment-form select {
  padding: 0 11px;
}

.pricing-adjustment-form input,
.pricing-adjustment-form select {
  border-color: rgba(37, 99, 235, 0.48);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12), 0 0 0 3px rgba(37, 99, 235, 0.07);
}

.pricing-adjustment-form input:focus,
.pricing-adjustment-form select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.36);
  outline-offset: 1px;
}

.pricing-target-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
  align-items: center;
}

.pricing-adjustment-form .pricing-target-price-input,
.pricing-adjustment-form .pricing-target-currency-input,
.pricing-target-currency-static {
  border-width: 1px;
  border-style: solid;
  border-color: rgba(37, 99, 235, 0.52);
  color: #0f172a;
  background: rgba(255, 255, 255, 0.98);
  caret-color: #2563eb;
  -webkit-text-fill-color: #0f172a;
}

.pricing-target-currency-static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
}

body:not(.theme-glass-light) .pricing-price-adjustment-modal .pricing-adjustment-form input,
body:not(.theme-glass-light) .pricing-price-adjustment-modal .pricing-adjustment-form select {
  color: var(--pricing-text);
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(8, 19, 31, 0.94);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.14), 0 0 0 3px rgba(96, 165, 250, 0.08);
  color-scheme: dark;
}

body:not(.theme-glass-light) .pricing-price-adjustment-modal .pricing-adjustment-form .pricing-target-price-input,
body:not(.theme-glass-light) .pricing-price-adjustment-modal .pricing-adjustment-form .pricing-target-currency-input,
body:not(.theme-glass-light) .pricing-price-adjustment-modal .pricing-target-currency-static {
  color: var(--pricing-text);
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(8, 19, 31, 0.98);
  caret-color: #93c5fd;
  -webkit-text-fill-color: var(--pricing-text);
}

body:not(.theme-glass-light) .pricing-price-adjustment-modal .pricing-adjustment-form .pricing-target-currency-input option {
  color: #e5edf8;
  background: #08131f;
}

.pricing-target-mxn-preview {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 8px;
  color: var(--pricing-muted);
  background: rgba(37, 99, 235, 0.07);
}

.pricing-target-mxn-preview strong,
.pricing-target-mxn-preview span,
.pricing-target-mxn-preview small {
  display: block;
  min-width: 0;
}

.pricing-target-mxn-preview strong {
  color: var(--pricing-text);
  font-size: 12px;
}

.pricing-target-mxn-preview span {
  color: var(--pricing-text);
  font-size: 15px;
  font-weight: 800;
}

.pricing-target-mxn-preview small {
  color: var(--pricing-muted);
  font-size: 12px;
  font-weight: 700;
}

.pricing-clear-query {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--pricing-muted);
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.pricing-clear-query svg {
  width: 14px;
  height: 14px;
}

.pricing-list-toolbar {
  position: sticky;
  top: var(--pricing-sticky-top);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  padding: 8px 0 10px;
  color: var(--pricing-muted);
  border-bottom: 1px solid var(--pricing-line);
  background: var(--pricing-surface);
  -webkit-backdrop-filter: blur(14px) saturate(128%);
  backdrop-filter: blur(14px) saturate(128%);
  font-size: 12px;
  font-weight: 700;
}

.pricing-list-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  min-width: 0;
}

.pricing-list-toolbar .pricing-list-actions {
  margin-left: auto;
}

.pricing-list-toolbar .pricing-pager {
  margin: 0;
}

.pricing-list-table-wrap {
  max-height: var(--pricing-list-max-height);
  overflow: auto;
}

.table-shell.is-wide.pricing-list-table-wrap {
  max-height: var(--pricing-list-max-height);
  overflow: auto;
}

.pricing-list-table {
  min-width: 1620px;
}

.pricing-list-table th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(11, 24, 39, 0.96);
}

.pricing-list-table th,
.pricing-list-table td {
  height: auto;
  padding: 14px 14px;
  vertical-align: top;
}

.pricing-list-table th {
  white-space: nowrap;
}

.pricing-list-table td {
  white-space: pre-line;
}

.pricing-list-table th:nth-child(1),
.pricing-list-table td:nth-child(1) {
  width: 58px;
  text-align: center;
}

.pricing-list-table th:nth-child(2),
.pricing-list-table td:nth-child(2) {
  min-width: 420px;
}

.pricing-list-table th:nth-child(3),
.pricing-list-table td:nth-child(3) {
  min-width: 160px;
}

.pricing-list-table th:nth-child(4),
.pricing-list-table th:nth-child(5),
.pricing-list-table th:nth-child(6),
.pricing-list-table th:nth-child(7),
.pricing-list-table td:nth-child(4),
.pricing-list-table td:nth-child(5),
.pricing-list-table td:nth-child(6),
.pricing-list-table td:nth-child(7) {
  min-width: 152px;
}

.pricing-list-table th:nth-child(8),
.pricing-list-table td:nth-child(8) {
  min-width: 128px;
}

.pricing-list-table th:nth-child(9),
.pricing-list-table td:nth-child(9) {
  min-width: 142px;
}

.pricing-list-row {
  cursor: pointer;
}

.pricing-list-row.is-active td,
.pricing-list-row.is-selected td {
  background: rgba(47, 125, 246, 0.12);
}

.pricing-row-check {
  display: inline-grid;
  place-items: center;
  padding-top: 6px;
}

.pricing-row-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pricing-row-check span {
  width: 18px;
  height: 18px;
  border: 1px solid var(--pricing-line);
  border-radius: 6px;
  background: var(--pricing-surface-soft);
}

.pricing-row-check input:checked + span {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.38);
}

.pricing-listing-cell,
.pricing-selected-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.pricing-thumb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  color: var(--pricing-primary);
  border: 1px solid var(--pricing-line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.88), rgba(248, 250, 252, 0.88));
}

.pricing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pricing-thumb svg {
  width: 20px;
  height: 20px;
}

.pricing-listing-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pricing-listing-copy strong,
.pricing-selected-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--pricing-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.pricing-selected-head strong {
  display: block;
  max-height: 2.5em;
  overflow-wrap: anywhere;
  white-space: normal;
  text-overflow: clip;
}

.pricing-listing-copy small,
.pricing-listing-copy em,
.pricing-selected-head small {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--pricing-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.pricing-link-stack {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  vertical-align: middle;
}

.pricing-link-stack a {
  color: var(--pricing-primary);
  text-decoration: none;
}

.pricing-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  max-width: 100%;
}

.pricing-product-tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pricing-product-tag-empty {
  color: var(--pricing-muted);
  font-family: var(--mono);
  font-size: 12px;
}

.pricing-row-number {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-top: 2px;
}

.pricing-list-table td.pricing-row-number {
  display: table-cell;
  padding-top: 14px;
}

.pricing-list-table td.pricing-row-number strong,
.pricing-list-table td.pricing-row-number small {
  display: block;
}

.pricing-list-table td.pricing-row-number strong + small {
  margin-top: 5px;
}

.pricing-row-number strong {
  min-width: 0;
  color: var(--pricing-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pricing-row-number small {
  color: var(--pricing-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.pricing-margin.is-low strong {
  color: #ef4444;
}

.pricing-margin.is-good strong {
  color: #16a34a;
}

.pricing-suggested-margin {
  display: grid;
  gap: 4px;
}

.pricing-suggested-margin.is-low strong {
  color: #ef4444;
}

.pricing-suggested-margin.is-good strong {
  color: #16a34a;
}

.pricing-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.pricing-status.is-ok {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.13);
}

.pricing-status.is-warn {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.14);
}

.pricing-status.is-danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.pricing-row-action {
  justify-self: end;
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

.pricing-bulkbar {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto max-content;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 4px;
  padding: 10px 12px;
  color: var(--pricing-text);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.12)), var(--pricing-surface-strong);
  box-shadow: var(--pricing-shadow);
}

.pricing-empty-state,
.pricing-list-skeleton {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 260px;
  padding: 24px;
  color: var(--pricing-muted);
  text-align: center;
}

.pricing-empty-state strong {
  color: var(--pricing-text);
  font-size: 16px;
}

.pricing-list-skeleton {
  align-items: stretch;
}

.pricing-list-skeleton div {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr 0.5fr;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 18px;
  background: var(--pricing-surface-strong);
}

.pricing-list-skeleton span {
  height: 22px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.pricing-side-panel {
  position: sticky;
  top: var(--pricing-sticky-top);
  display: grid;
  gap: 14px;
  align-self: start;
  max-height: calc(100vh - var(--pricing-sticky-top) - 14px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.pricing-selected-panel {
  position: static;
  z-index: 3;
}

.pricing-side-panel .panel {
  min-height: 0;
}

.pricing-side-metrics div,
.pricing-operation-item {
  padding: 11px;
  border: 1px solid var(--pricing-line);
  border-radius: 16px;
  background: var(--pricing-surface-strong);
}

.pricing-side-metrics span,
.pricing-operation-item span,
.pricing-operation-item small {
  display: block;
  color: var(--pricing-muted);
  font-size: 10px;
  font-weight: 800;
}

.pricing-selected-card,
.pricing-operation-list {
  display: grid;
  gap: 10px;
}

.pricing-side-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pricing-side-metrics b {
  display: block;
  margin-top: 4px;
  color: var(--pricing-text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.pricing-risk-box {
  display: grid;
  gap: 5px;
  padding: 11px;
  border-radius: 16px;
  font-size: 11px;
}

.pricing-risk-box strong {
  font-size: 12px;
}

.pricing-risk-box span {
  color: inherit;
}

.pricing-risk-box.is-ok {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
}

.pricing-risk-box.is-warn {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.pricing-risk-box.is-danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.pricing-profit-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 10px;
  color: var(--pricing-muted);
  border: 1px solid var(--pricing-line);
  border-radius: 14px;
  background: var(--pricing-surface-strong);
  font-size: 11px;
}

.pricing-profit-summary strong {
  color: var(--pricing-text);
}

.pricing-profit-summary small {
  color: var(--pricing-muted);
}

.pricing-profit-summary .price-profit-button {
  min-height: 28px;
  padding: 0 9px;
}

.pricing-side-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.pricing-operation-item {
  display: grid;
  gap: 3px;
}

.pricing-operation-item strong,
.pricing-operation-item em {
  color: var(--pricing-text);
  font-style: normal;
  overflow-wrap: anywhere;
}

.pricing-side-empty {
  padding: 14px;
  color: var(--pricing-muted);
  border: 1px dashed var(--pricing-line);
  border-radius: 16px;
  background: var(--pricing-surface-soft);
  font-size: 12px;
}

.pricing-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.pricing-support-grid .panel:first-child {
  grid-column: 1 / -1;
}

.pricing-workbench-toolbar,
.pricing-manual-form {
  display: grid;
  gap: 10px;
}

.pricing-promotion-table table {
  min-width: 760px;
}

.pricing-promotion-modal {
  width: min(82vw, calc(100vw - 24px));
  max-height: min(82vh, calc(100vh - 24px));
  overflow: hidden auto;
}

.pricing-price-adjustment-modal {
  display: grid;
  gap: 14px;
  height: min(82vh, calc(100vh - 24px));
  overflow-y: auto;
  overflow-x: hidden;
}

.pricing-price-adjustment-modal .modal-head {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pricing-line);
}

.pricing-adjustment-head-main {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pricing-adjustment-modal-title {
  flex: 0 0 auto;
  min-width: 0;
}

.pricing-adjustment-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  margin-left: 0;
}

.pricing-adjustment-head-actions > .ghost-button {
  flex: 0 0 auto;
}

.pricing-adjustment-listing-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: min(380px, 34vw);
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--pricing-line);
  border-radius: 12px;
  background: var(--pricing-surface-strong);
}

.pricing-adjustment-summary-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.pricing-adjustment-summary-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pricing-adjustment-summary-meta > span {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  color: var(--pricing-muted);
  font-size: 11px;
  line-height: 1.25;
}

.pricing-adjustment-summary-meta > span > b {
  color: var(--pricing-muted);
  font-weight: 700;
}

.pricing-adjustment-summary-meta > span > em,
.pricing-adjustment-summary-meta > span > .copyable-value {
  min-width: 0;
  color: var(--pricing-text);
  font-style: normal;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pricing-adjustment-summary-meta .copyable-value {
  display: inline-flex;
  overflow-wrap: normal;
  white-space: nowrap;
}

.pricing-adjustment-summary-meta .copyable-value-text {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.pricing-adjustment-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.9fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--pricing-line);
  border-radius: 16px;
  background: var(--pricing-surface-strong);
}

.pricing-listing-panel .pricing-adjustment-overview {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pricing-adjustment-overview .pricing-selected-head {
  align-items: center;
}

.pricing-adjustment-overview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pricing-adjustment-overview-metrics div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--pricing-line);
  border-radius: 12px;
  background: var(--pricing-surface-soft);
}

.pricing-adjustment-overview-metrics span {
  color: var(--pricing-muted);
  font-size: 11px;
  font-weight: 800;
}

.pricing-adjustment-overview-metrics strong {
  min-width: 0;
  color: var(--pricing-text);
  overflow-wrap: anywhere;
}

.pricing-adjustment-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  margin-top: 0;
}

.pricing-adjustment-form label {
  display: grid;
  gap: 6px;
}

.pricing-adjustment-form label span,
.pricing-promotion-current-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pricing-adjustment-actions {
  justify-content: flex-start;
  margin: 0;
}

.pricing-adjustment-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) 1px minmax(0, 1.28fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

.pricing-promotion-work-area > .pricing-modal-panel {
  height: 100%;
}

.pricing-target-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.pricing-target-profit-block {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--pricing-line);
}

.pricing-module-divider {
  min-width: 1px;
  width: 1px;
  height: 100%;
  background: rgba(148, 163, 184, 0.58);
}

.pricing-adjustment-history-divider {
  height: 1px;
  min-height: 1px;
  background: rgba(148, 163, 184, 0.58);
}

.pricing-history-panel {
  align-self: stretch;
}

.pricing-modal-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--pricing-line);
  border-radius: 12px;
  background: var(--pricing-surface-strong);
}

.pricing-section-title,
.pricing-modal-panel > .pricing-promotion-current-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: -2px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pricing-line);
}

.pricing-section-title strong,
.pricing-modal-panel > .pricing-promotion-current-head strong {
  color: var(--pricing-text);
  font-size: 14px;
  font-weight: 900;
}

.pricing-section-title span,
.pricing-modal-panel > .pricing-promotion-current-head span {
  color: var(--pricing-muted);
  font-size: 12px;
  font-weight: 800;
}

.pricing-profit-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.pricing-profit-comparison div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--pricing-line);
  border-radius: 12px;
  background: var(--pricing-surface-soft);
}

.pricing-profit-comparison span {
  color: var(--pricing-muted);
  font-size: 11px;
  font-weight: 800;
}

.pricing-profit-comparison strong {
  color: var(--pricing-text);
  overflow-wrap: anywhere;
}

.pricing-profit-calculator-preview .product-profit-result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-promotion-mercado-table table {
  width: 100%;
  min-width: 1120px;
}

.pricing-price-adjustment-modal .pricing-promotion-mercado-table {
  overflow-x: hidden;
}

.pricing-price-adjustment-modal .pricing-promotion-mercado-table table {
  min-width: 0;
  table-layout: fixed;
}

.pricing-promotion-mercado-table th,
.pricing-promotion-mercado-table td {
  vertical-align: top;
}

.pricing-price-adjustment-modal .pricing-promotion-mercado-table th,
.pricing-price-adjustment-modal .pricing-promotion-mercado-table td {
  overflow-wrap: anywhere;
  white-space: normal;
}

.pricing-promotion-mercado-table th:nth-child(1),
.pricing-promotion-mercado-table td:nth-child(1) {
  min-width: 180px;
}

.pricing-promotion-mercado-table th:nth-child(2),
.pricing-promotion-mercado-table td:nth-child(2) {
  min-width: 160px;
}

.pricing-promotion-mercado-table th:nth-child(3),
.pricing-promotion-mercado-table td:nth-child(3) {
  min-width: 220px;
}

.pricing-promotion-mercado-table th:nth-child(4),
.pricing-promotion-mercado-table td:nth-child(4),
.pricing-promotion-mercado-table th:nth-child(5),
.pricing-promotion-mercado-table td:nth-child(5) {
  min-width: 150px;
}

.pricing-promotion-mercado-table th:nth-child(6),
.pricing-promotion-mercado-table td:nth-child(6) {
  min-width: 190px;
}

.pricing-price-adjustment-modal .pricing-promotion-mercado-table th:nth-child(1),
.pricing-price-adjustment-modal .pricing-promotion-mercado-table td:nth-child(1) {
  width: 19%;
  min-width: 0;
}

.pricing-price-adjustment-modal .pricing-promotion-mercado-table th:nth-child(2),
.pricing-price-adjustment-modal .pricing-promotion-mercado-table td:nth-child(2) {
  width: 17%;
  min-width: 0;
}

.pricing-price-adjustment-modal .pricing-promotion-mercado-table th:nth-child(3),
.pricing-price-adjustment-modal .pricing-promotion-mercado-table td:nth-child(3) {
  width: 22%;
  min-width: 0;
}

.pricing-price-adjustment-modal .pricing-promotion-mercado-table th:nth-child(4),
.pricing-price-adjustment-modal .pricing-promotion-mercado-table td:nth-child(4),
.pricing-price-adjustment-modal .pricing-promotion-mercado-table th:nth-child(5),
.pricing-price-adjustment-modal .pricing-promotion-mercado-table td:nth-child(5) {
  width: 14%;
  min-width: 0;
}

.pricing-price-adjustment-modal .pricing-promotion-mercado-table th:nth-child(6),
.pricing-price-adjustment-modal .pricing-promotion-mercado-table td:nth-child(6) {
  width: 14%;
  min-width: 0;
}

.pricing-promotion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pricing-promotion-discount {
  display: grid;
  gap: 4px;
}

.pricing-promotion-discount .promotion-subsidy {
  color: #16a34a;
}

.pricing-data-missing {
  display: inline-block;
  color: var(--pricing-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
}

.pricing-operation-list-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-preview-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.pricing-preview-summary div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--pricing-line);
  border-radius: 12px;
  background: var(--pricing-surface-strong);
}

.pricing-preview-summary span {
  color: var(--pricing-muted);
  font-size: 11px;
  font-weight: 800;
}

.pricing-preview-summary strong {
  color: var(--pricing-text);
  overflow-wrap: anywhere;
}

.warning-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.pricing-stop-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pricing-text);
  font-size: 12px;
  font-weight: 800;
}

.pricing-stop-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.pricing-promotion-current-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 4px 0 8px;
}

.pricing-promotion-inline-note {
  margin: 0 0 8px;
  padding: 9px 11px;
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.pricing-promotion-table td strong,
.pricing-promotion-table td small {
  display: block;
}

.pricing-promotion-table td small {
  margin-top: 3px;
  color: var(--muted);
}

.pricing-promotion-table tr.is-special-promotion td {
  background: rgba(245, 158, 11, 0.06);
}

body.theme-glass-light .pricing-promotion-table tr.is-special-promotion td {
  background: rgba(245, 158, 11, 0.1);
}

/* Pricing typography normalization: keep layout intact, soften weight and improve numeric scanability. */
.pricing-shell,
.pricing-promotion-modal {
  --font-sans:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Inter",
    "PingFang SC",
    "Noto Sans SC",
    "Microsoft YaHei UI",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  --font-mono:
    "SFMono-Regular",
    "Cascadia Code",
    "Fira Code",
    "Consolas",
    monospace;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 13px;
  --text-lg: 14px;
  --text-xl: 15px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --leading-tight: 1.25;
  --leading-normal: 1.45;
  --leading-comfort: 1.6;
  --mono: var(--font-mono);
  --sans: var(--font-sans);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pricing-shell button,
.pricing-shell input,
.pricing-shell select,
.pricing-promotion-modal button,
.pricing-promotion-modal input,
.pricing-promotion-modal select {
  font-family: inherit;
  line-height: 1.4;
}

.pricing-search-field input,
.pricing-filter-body select,
.pricing-adjustment-form input {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  letter-spacing: 0;
}

.pricing-search-field input::placeholder {
  font-weight: var(--weight-regular);
}

.pricing-list-actions .secondary-button,
.pricing-list-actions .ghost-button,
.pricing-side-selection-actions .secondary-button,
.pricing-side-selection-actions .ghost-button,
.pricing-shell .table-action,
.pricing-promotion-modal .table-action {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.35;
}

.pricing-list-toolbar,
.pricing-segment b,
.pricing-product-tag-empty,
.pricing-stop-checkbox {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
}

.pricing-list-table th,
.pricing-promotion-table th {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
}

.pricing-list-table td,
.pricing-promotion-table td {
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
}

.pricing-listing-copy strong,
.pricing-selected-head strong,
.pricing-section-title strong,
.pricing-modal-panel > .pricing-promotion-current-head strong {
  color: var(--pricing-text);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: 0;
}

.pricing-listing-copy small,
.pricing-listing-copy em,
.pricing-selected-head small,
.pricing-section-title span,
.pricing-modal-panel > .pricing-promotion-current-head span,
.pricing-adjustment-form label span,
.pricing-promotion-current-head span,
.pricing-target-mxn-preview small,
.pricing-promotion-table td small {
  color: var(--pricing-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
}

.pricing-adjustment-form label span,
.pricing-promotion-current-head span,
.pricing-section-title span,
.pricing-modal-panel > .pricing-promotion-current-head span,
.pricing-target-mxn-preview strong {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.pricing-adjustment-overview-metrics span,
.pricing-side-metrics span,
.pricing-profit-summary small,
.pricing-profit-comparison span,
.pricing-preview-summary span {
  color: var(--pricing-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
}

.pricing-row-number strong,
.pricing-target-mxn-preview span,
.pricing-side-metrics b,
.pricing-profit-summary strong,
.pricing-adjustment-overview-metrics strong,
.pricing-preview-summary strong,
.pricing-profit-comparison strong,
.pricing-promotion-table td strong {
  color: var(--pricing-text);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.pricing-target-mxn-preview span {
  font-size: var(--text-xl);
  letter-spacing: 0;
}

.pricing-row-number strong,
.pricing-adjustment-overview-metrics strong,
.pricing-preview-summary strong,
.pricing-profit-comparison strong,
.pricing-promotion-table td strong {
  font-size: var(--text-md);
}

.pricing-row-number small,
.pricing-data-missing,
.warning-note,
.pricing-promotion-inline-note {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: var(--leading-comfort);
}

.pricing-shell :where(.price-pair, .pricing-row-number, .pricing-side-metrics, .pricing-profit-summary, .pricing-adjustment-overview-metrics, .pricing-profit-comparison, .pricing-target-mxn-preview, .pricing-preview-summary, .pricing-operation-list, .pricing-list-table, .pricing-promotion-table),
.pricing-promotion-modal :where(.price-pair, .pricing-row-number, .pricing-profit-comparison, .pricing-target-mxn-preview, .pricing-preview-summary, .pricing-operation-list, .pricing-promotion-table) {
  font-variant-numeric: tabular-nums;
}

.pricing-shell :where(.status-pill, .suggestion-status-pill, .product-tag-chip),
.pricing-promotion-modal :where(.status-pill, .suggestion-status-pill, .product-tag-chip) {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
}

@media (max-width: 1180px) {
  .pricing-adjustment-overview,
  .pricing-adjustment-grid {
    grid-template-columns: 1fr;
  }

  .pricing-module-divider {
    width: 100%;
    height: 1px;
    min-height: 1px;
  }

  .pricing-adjustment-form {
    grid-template-columns: 1fr;
  }

  .pricing-operation-list-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pricing-price-adjustment-modal .modal-head,
  .pricing-adjustment-head-main,
  .pricing-adjustment-head-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .pricing-adjustment-head-main {
    width: 100%;
  }

  .pricing-adjustment-modal-title {
    flex: 1 1 160px;
  }

  .pricing-adjustment-head-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .pricing-adjustment-listing-summary {
    flex: 1 1 260px;
    width: auto;
  }

  .pricing-adjustment-overview-metrics,
  .pricing-profit-comparison,
  .pricing-profit-calculator-preview .product-profit-result-grid,
  .pricing-operation-list-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .profit-fee-import .profit-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .profit-fee-import .profit-search {
    grid-column: 1 / -1;
  }

  .profit-import-stepper {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 1180px) {
  .profit-import-workspace {
    grid-template-columns: 1fr;
  }

  .profit-import-action-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .profit-import-action-buttons {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .profit-fee-import .profit-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profit-import-upload-grid,
  .profit-import-drop-target {
    grid-template-columns: 1fr;
  }

  .profit-import-upload-actions {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .profit-import-page-head {
    align-items: flex-start;
  }

  .profit-import-heading-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .profit-fee-import .profit-toolbar,
  .profit-fee-import .profit-search {
    grid-template-columns: 1fr;
  }

  .profit-fee-import .profit-toolbar .range-button-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .profit-fee-import .profit-toolbar .range-button {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  .profit-fee-import .profit-toolbar .range-button:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  .profit-import-stepper {
    grid-template-columns: 1fr;
    padding: 4px 0;
  }

  .profit-import-action-bar {
    position: static;
  }

  .profit-import-step-line {
    display: none;
  }

  .profit-import-preview-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .profit-import-group-summary,
  .profit-import-group-summary div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .profit-import-preview-filter label,
  .profit-import-preview-filter button,
  .profit-import-action-buttons button,
  .profit-import-file-label {
    width: 100%;
  }

  .profit-import-summary-grid,
  .profit-import-summary-matrix {
    grid-template-columns: 1fr;
  }

  .profit-import-category-header,
  .profit-import-category-row {
    grid-template-columns: minmax(0, 1fr) 56px 88px;
  }

  .profit-import-raw-line {
    grid-template-columns: 1fr;
  }
}

.profit-store-table {
  min-width: 2260px;
}

.profit-sku-table {
  min-width: 2980px;
}

.profit-store-table th,
.profit-store-table td,
.profit-sku-table th,
.profit-sku-table td {
  height: 44px;
  max-width: 180px;
  padding: 6px 8px;
  font-size: 12px;
}

.profit-product-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.profit-product-cell strong,
.profit-store-table td strong,
.profit-sku-table td strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profit-product-cell span,
.profit-store-table td > .muted-text,
.profit-sku-table td > .muted-text {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profit-mlm-sku-cell {
  display: grid;
  gap: 3px;
  min-width: 116px;
}

.profit-mlm-sku-cell > span {
  display: flex;
  align-items: center;
  min-width: 0;
}

.profit-row-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.profit-row-actions-grid {
  display: grid;
  gap: 4px;
  min-width: 128px;
}

.profit-row-actions-line {
  display: flex;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
}

.profit-row-actions-line .table-action {
  min-width: 0;
  padding: 3px 6px;
  font-size: 11px;
}

.profit-sku-table th:last-child,
.profit-sku-table td:last-child {
  width: 142px;
  max-width: 142px;
}

.positive-money {
  color: #7ee59d;
  font-family: var(--mono);
}

.negative-money {
  color: #ff9a9a;
  font-family: var(--mono);
}

.profit-detail-drawer {
  width: min(620px, 100vw);
}

.profit-sku-orders-modal {
  width: min(1560px, calc(100vw - 28px));
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.profit-sku-orders-modal #profitSkuOrdersBody {
  min-height: 0;
  overflow: auto;
}

.profit-sku-orders-table {
  min-width: 1960px;
}

.profit-sku-orders-table th,
.profit-sku-orders-table td {
  height: 38px;
  padding: 5px 7px;
  font-size: 12px;
}

.profit-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profit-source-list,
.profit-detail-extra {
  display: grid;
  gap: 8px;
}

.profit-source-list span {
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.order-query-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.order-query-workspace.workspace-grid {
  grid-template-columns: 1fr;
}

.order-query-main {
  min-width: 0;
}

.order-query-workspace .table-shell.is-wide {
  height: calc(100vh - 390px);
  height: calc(100dvh - 390px);
  min-height: 500px;
}

.order-toolbar {
  margin-bottom: 10px;
}

.order-search {
  min-width: min(560px, 100%);
}

.order-filter-strip {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(8, 20, 34, 0.34);
}

.order-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.order-filter-row > span {
  flex: 0 0 70px;
  color: var(--muted);
  font-size: 12px;
}

.order-filter-row .range-button-group {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.order-filter-row .range-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.order-filter-row .range-button span {
  color: currentColor;
  opacity: 0.72;
  font-family: var(--mono);
  font-size: 11px;
}

.order-region-panel {
  margin-bottom: 12px;
  overflow: hidden;
}

.order-region-controls,
.order-region-summary,
.order-region-layout,
.order-region-stat-grid,
.order-region-side,
.order-region-side-block,
.order-region-rank-list,
.order-region-city-list {
  display: grid;
  min-width: 0;
}

.order-region-controls {
  grid-auto-flow: column;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.order-region-controls .range-button-group {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.order-region-clear {
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.order-region-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.order-region-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.order-region-stat,
.order-region-summary-meta,
.order-region-map-wrap,
.order-region-side {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(8, 20, 34, 0.34);
}

.order-region-stat {
  padding: 10px;
}

.order-region-stat span,
.order-region-stat small,
.order-region-summary-meta span,
.order-region-side-title span,
.order-region-rank-row small,
.order-region-city-row span {
  color: var(--muted);
  font-size: 12px;
}

.order-region-stat strong,
.order-region-summary-meta strong,
.order-region-side-title strong,
.order-region-rank-row em,
.order-region-city-row strong {
  color: var(--text);
  font-style: normal;
  font-weight: 700;
}

.order-region-stat strong {
  display: block;
  margin: 5px 0 2px;
  font-family: var(--mono);
  font-size: 17px;
}

.order-region-summary-meta {
  display: grid;
  align-content: center;
  min-width: 148px;
  min-height: 72px;
  padding: 10px 12px;
  text-align: right;
}

.order-region-layout {
  grid-template-columns: minmax(520px, 1fr) minmax(300px, 0.42fr);
  gap: 12px;
}

.order-region-map-wrap {
  padding: 12px;
  overflow: hidden;
}

.order-region-map {
  position: relative;
  min-width: 0;
  min-height: 320px;
  isolation: isolate;
}

.order-region-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.18));
}

.order-region-state {
  cursor: pointer;
  fill: var(--region-fill);
  stroke: var(--region-stroke);
  stroke-width: 1.05;
  vector-effect: non-scaling-stroke;
  transition: fill 160ms ease, opacity 160ms ease, stroke 160ms ease, stroke-width 160ms ease, filter 160ms ease;
}

.order-region-state:not(.has-data) {
  opacity: 0.48;
  fill: rgba(148, 163, 184, 0.11);
  stroke: rgba(148, 163, 184, 0.22);
}

.order-region-state:hover,
.order-region-state:focus-visible,
.order-region-state.is-active {
  opacity: 1;
  stroke: rgba(125, 184, 255, 0.9);
  stroke-width: 1.65;
  filter: drop-shadow(0 0 10px var(--region-glow));
  outline: none;
}

.order-region-state.is-active {
  fill: color-mix(in srgb, var(--region-fill), rgba(90, 163, 255, 0.36) 32%);
}

.trend-tooltip .order-region-tooltip {
  display: grid;
  gap: 7px;
  min-width: 210px;
}

.trend-tooltip .order-region-tooltip-head,
.trend-tooltip .order-region-tooltip-cities > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 0;
}

.trend-tooltip .order-region-tooltip-head strong {
  color: var(--text);
  font-size: 13px;
}

.trend-tooltip .order-region-tooltip-head span,
.trend-tooltip .order-region-tooltip-cities strong {
  color: var(--blue);
  font-family: var(--mono);
}

.trend-tooltip .order-region-tooltip small,
.trend-tooltip .order-region-tooltip-cities span {
  color: var(--muted);
  font-size: 12px;
}

.trend-tooltip .order-region-tooltip-cities {
  display: grid;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--line-soft);
}

.order-region-scale {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.order-region-scale i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(25, 212, 216, 0.24), rgba(47, 125, 246, 0.58), rgba(245, 158, 11, 0.86));
}

.order-region-side {
  gap: 12px;
  padding: 12px;
}

.order-region-side-block {
  gap: 8px;
}

.order-region-side-title,
.order-region-city-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-region-rank-list,
.order-region-city-list {
  gap: 7px;
}

.order-region-rank-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  overflow: hidden;
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.order-region-rank-row:hover,
.order-region-rank-row.is-active {
  border-color: rgba(90, 163, 255, 0.48);
  background: rgba(47, 125, 246, 0.12);
}

.order-region-rank-row > span {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.order-region-rank-row b,
.order-region-rank-row em,
.order-region-city-row strong {
  font-family: var(--mono);
}

.order-region-rank-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-region-rank-row > i {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.order-region-rank-row > i span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--amber));
}

.order-region-city-row {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.026);
}

.order-hour-panel {
  margin-top: 12px;
  overflow: hidden;
}

.order-hour-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.order-hour-meta strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}

.order-hour-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.order-hour-stat,
.order-hour-chart {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(8, 20, 34, 0.34);
}

.order-hour-stat {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
}

.order-hour-stat span,
.order-hour-stat small {
  color: var(--muted);
  font-size: 12px;
}

.order-hour-stat strong {
  overflow: hidden;
  color: var(--text);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-hour-chart {
  overflow-x: auto;
  padding: 12px;
}

.order-hour-bars {
  display: grid;
  grid-template-columns: repeat(24, minmax(28px, 1fr));
  align-items: end;
  gap: 6px;
  min-width: 820px;
  height: 238px;
}

.order-hour-bar {
  display: grid;
  grid-template-rows: 24px minmax(0, 1fr) 22px;
  align-items: end;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.order-hour-bar:focus-visible {
  outline: 2px solid rgba(90, 163, 255, 0.72);
  outline-offset: 3px;
}

.order-hour-bar-value,
.order-hour-bar-label {
  display: block;
  overflow: hidden;
  width: 100%;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-hour-bar-value {
  color: var(--text);
}

.order-hour-bar-fill {
  align-self: end;
  display: block;
  width: 100%;
  height: var(--bar-height);
  min-height: 4px;
  border: 1px solid rgba(90, 163, 255, 0.2);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.9), rgba(90, 163, 255, 0.84));
  box-shadow: 0 10px 20px rgba(47, 125, 246, 0.14);
  opacity: 0.48;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.order-hour-bar.has-data .order-hour-bar-fill {
  opacity: 1;
}

.order-hour-bar:hover .order-hour-bar-fill,
.order-hour-bar:focus-visible .order-hour-bar-fill {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(245, 158, 11, 0.18), 0 10px 22px rgba(47, 125, 246, 0.2);
}

.trend-tooltip .order-hour-tooltip {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.trend-tooltip .order-hour-tooltip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 0;
}

.trend-tooltip .order-hour-tooltip-head strong {
  color: var(--text);
  font-size: 13px;
}

.trend-tooltip .order-hour-tooltip-head span {
  color: var(--blue);
  font-family: var(--mono);
}

.order-query-table {
  min-width: 4300px;
}

.order-query-table th,
.order-query-table td {
  height: 46px;
  max-width: 190px;
  padding: 6px 8px;
  font-size: 12px;
}

.order-query-table th:last-child,
.order-query-table td:last-child {
  position: static;
  right: auto;
  min-width: 160px;
  box-shadow: none;
}

.order-query-table th:nth-child(-n + 4) {
  left: auto;
  z-index: 3;
  width: auto;
  min-width: 0;
  box-shadow: none;
}

.order-query-table td:nth-child(-n + 4) {
  position: static;
  left: auto;
  z-index: auto;
  width: auto;
  min-width: 0;
  box-shadow: none;
}

.sort-header {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sort-header span {
  color: var(--blue-2);
  font-family: var(--mono);
}

.order-product-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 260px;
}

.order-product-cell strong,
.order-product-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-product-cell span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.order-product-cell a,
.table-link {
  color: var(--blue-2);
  text-decoration: none;
}

.order-product-cell a:hover,
.table-link:hover {
  text-decoration: underline;
}

.mono-cell {
  font-family: var(--mono);
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.order-load-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(8, 20, 34, 0.34);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.order-load-more strong,
.order-load-more span {
  display: block;
}

.order-load-more strong {
  color: var(--text);
  font-size: 13px;
}

.order-load-more span {
  margin-top: 2px;
  font-size: 12px;
}

.order-load-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.product-analysis-panel-load-more {
  margin-top: 0;
  padding: 6px 8px;
  border-radius: 10px;
}

.product-analysis-panel-load-more strong {
  font-size: 12px;
}

.product-analysis-panel-load-more span {
  font-size: 11px;
}

.order-load-actions .secondary-button,
.order-load-actions .primary-button {
  flex: 0 0 auto;
}

.order-load-complete {
  flex: 0 0 auto;
  color: var(--green);
}

.status-pill.warn {
  color: #f8c777;
  background: rgba(245, 158, 11, 0.18);
}

.price-pair {
  display: grid;
  gap: 2px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
}

.price-cell-stack {
  display: grid;
  gap: 6px;
  align-items: start;
  min-width: 118px;
}

.price-profit-button {
  justify-self: start;
  min-height: 28px;
  padding: 4px 8px;
  font-size: 11px;
}

.commission-type,
.mlm-sku {
  display: grid;
  gap: 2px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.25;
}

.commission-type small,
.mlm-sku small {
  color: var(--muted);
  font-size: 11px;
}

.commission-type-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 2px 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.commission-type-badge--classic {
  color: #fed7aa;
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(234, 88, 12, 0.22);
}

.commission-type-badge--premium {
  color: #ead8ff;
  border-color: rgba(168, 85, 247, 0.48);
  background: rgba(126, 34, 206, 0.24);
}

body.theme-glass-light .commission-type-badge--classic {
  color: #8a3f00;
  border-color: rgba(217, 119, 6, 0.45);
  background: #fff3df;
}

body.theme-glass-light .commission-type-badge--premium {
  color: #5b21b6;
  border-color: rgba(126, 34, 206, 0.35);
  background: #f3e8ff;
}

.mlm-sku .copyable-value {
  max-width: 180px;
}

.mlm-sku .copy-value-button {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0;
  border: 0;
  color: var(--blue-2);
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.product-link:hover {
  text-decoration: underline;
}

.mlm-sku .mlm-sku-link {
  justify-self: start;
  margin-top: 1px;
  font-size: 11px;
}

.sales-trend {
  position: relative;
  display: inline-block;
  width: 152px;
  min-height: 58px;
  color: var(--blue-2);
}

.sales-trend.empty {
  justify-content: center;
  width: 128px;
  min-height: 34px;
  color: var(--muted);
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius);
}

.sales-trend svg {
  width: 152px;
  height: 58px;
  overflow: visible;
}

.sales-trend-area {
  fill: rgba(90, 163, 255, 0.16);
}

.sales-trend-line {
  fill: none;
  stroke: var(--blue-2);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sales-trend circle {
  fill: var(--blue-2);
}

.trend-tooltip {
  display: grid;
  min-width: 142px;
  padding: 8px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 18, 29, 0.96);
  box-shadow: var(--shadow);
}

.floating-trend-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}

.floating-trend-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.trend-tooltip div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.trend-tooltip div + div {
  margin-top: 4px;
}

.trend-tooltip strong {
  color: var(--text);
  font-family: var(--mono);
}

.trend-tooltip strong.positive-money {
  color: #7ee59d;
}

.trend-tooltip strong.negative-money {
  color: #ff8a95;
}

.trend-tooltip.is-wide {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  display: block;
  overflow: auto;
}

.trend-tooltip-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
}

.trend-tooltip-column {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.trend-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.trend-tooltip-row span {
  min-width: 0;
  overflow: hidden;
  font-family: var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-help-popover {
  width: 322px;
  max-width: min(360px, calc(100vw - 28px));
  color: #e5edf8;
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 18, 33, 0.96), rgba(5, 12, 23, 0.94));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.floating-field-help-popover {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10020;
  padding: 14px;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.floating-field-help-popover.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-field-help-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(125, 211, 252, 0.25);
  border-left: 1px solid rgba(125, 211, 252, 0.25);
  background: rgba(8, 18, 33, 0.96);
  transform: rotate(45deg);
}

.floating-field-help-popover.is-above::before {
  top: auto;
  bottom: -7px;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid rgba(125, 211, 252, 0.25);
  border-bottom: 1px solid rgba(125, 211, 252, 0.25);
}

.field-help-content {
  display: grid;
  gap: 10px;
}

.field-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-help-title {
  min-width: 0;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.field-help-badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.10);
  font-size: 11px;
  font-weight: 650;
}

.field-help-desc {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.7;
}

.field-help-list {
  display: grid;
  gap: 10px;
}

.field-help-label {
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.field-help-code {
  display: block;
  width: 100%;
  padding: 7px 8px;
  overflow-wrap: anywhere;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.80);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
}

.field-help-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-help-value {
  min-height: 34px;
  padding: 7px 8px;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.42);
  font-size: 12px;
  line-height: 1.55;
}

.field-help-warning {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.10);
  font-size: 12px;
}

.field-help-warning span {
  color: #fcdca5;
  line-height: 1.5;
}

.field-help-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  padding-top: 10px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  font-size: 11px;
}

.product-analysis-column-modal {
  width: min(1120px, calc(100vw - 28px));
}

.product-analysis-column-modal .modal-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.product-analysis-column-modal .modal-head .ghost-button {
  flex: 0 0 auto;
  min-width: 56px;
  white-space: nowrap;
}

.column-config-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: var(--muted);
  border: 1px solid var(--v2-panel-border);
  border-radius: var(--v2-control-radius);
  background: var(--v2-filter-panel-bg);
  box-shadow: var(--v2-panel-shadow);
  font-size: 12px;
  -webkit-backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
  backdrop-filter: blur(var(--v2-panel-blur)) saturate(128%);
}

.column-config-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--v2-control-radius);
  background: rgba(255, 255, 255, 0.04);
}

.column-config-count strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.column-config-actions .column-config-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.column-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.column-order-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--v2-panel-border);
  border-radius: var(--v2-card-radius);
  background: var(--v2-panel-bg);
  box-shadow: var(--v2-panel-shadow);
}

.column-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.column-order-head h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.column-order-head span {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: #9bdcff;
  border: 1px solid rgba(90, 163, 255, 0.26);
  border-radius: 999px;
  background: rgba(47, 125, 246, 0.12);
  font-size: 12px;
}

.column-order-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  max-height: 300px;
  padding: 2px;
  overflow: auto;
}

.column-order-item {
  display: grid;
  grid-template-columns: 18px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--v2-control-radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: grab;
  user-select: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.column-order-item:hover {
  border-color: rgba(90, 163, 255, 0.38);
  background: rgba(47, 125, 246, 0.12);
  transform: translateY(-1px);
}

.column-order-item:active {
  cursor: grabbing;
}

.column-order-item.is-dragging {
  opacity: 0.48;
  border-style: dashed;
  transform: scale(0.985);
}

.column-order-item.is-drop-target {
  border-color: rgba(25, 212, 216, 0.62);
  background:
    linear-gradient(135deg, rgba(25, 212, 216, 0.14), rgba(47, 125, 246, 0.16)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(25, 212, 216, 0.12);
}

.column-order-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
}

.column-order-drag-handle svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.column-order-index {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--muted);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  font-family: var(--mono);
  font-size: 11px;
}

.column-order-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-order-actions {
  display: inline-flex;
  gap: 4px;
}

.column-order-actions .icon-button,
.column-order-button {
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.32);
}

.column-order-button:hover:not(:disabled) {
  color: #d8ebff;
  border-color: rgba(90, 163, 255, 0.42);
  background: rgba(47, 125, 246, 0.18);
}

.column-order-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.column-order-button svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.column-config-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--v2-panel-border);
  border-radius: var(--v2-card-radius);
  background: rgba(255, 255, 255, 0.035);
}

.column-config-group h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.column-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.column-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
}

.column-check.is-active {
  color: #cfe4ff;
  border-color: rgba(90, 163, 255, 0.56);
  background: rgba(47, 125, 246, 0.2);
}

.column-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue-2);
}

.link-button {
  min-height: 26px;
  padding: 0;
  color: var(--blue-2);
  border: 0;
  background: transparent;
  font-family: var(--mono);
}

.link-button:hover {
  color: #dbeafe;
  text-decoration: underline;
}

.sellable-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.header-with-help,
.table-header-label,
.sortable-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.metric-info-icon {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  color: #9bdcff;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(59, 130, 246, 0.08)),
    rgba(15, 23, 42, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(8, 13, 26, 0.16);
  cursor: help;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.metric-info-icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
}

.metric-info-icon svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.1;
}

.metric-info-icon:hover,
.metric-info-icon.is-open,
.metric-info-icon:focus-visible {
  color: #d9f7ff;
  border-color: rgba(56, 189, 248, 0.72);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(59, 130, 246, 0.16)),
    rgba(15, 23, 42, 0.64);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12), 0 10px 24px rgba(14, 165, 233, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  outline: none;
  transform: translateY(-1px);
}

body.theme-glass-light .metric-info-icon {
  color: #2563eb;
  border-color: rgba(47, 125, 246, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(226, 239, 255, 0.66)),
    rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 5px 14px rgba(47, 125, 246, 0.10);
}

body.theme-glass-light .metric-info-icon::before {
  background: radial-gradient(circle at 35% 28%, rgba(47, 125, 246, 0.16), rgba(47, 125, 246, 0) 60%);
}

body.theme-glass-light .metric-info-icon:hover,
body.theme-glass-light .metric-info-icon.is-open,
body.theme-glass-light .metric-info-icon:focus-visible {
  color: #0f4fc7;
  border-color: rgba(47, 125, 246, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(216, 235, 255, 0.84)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.12), 0 10px 24px rgba(47, 125, 246, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sort-button {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  color: #9cc9ff;
  border: 1px solid rgba(90, 163, 255, 0.26);
  border-radius: 6px;
  background: rgba(47, 125, 246, 0.1);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
}

.sort-button svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.module-shell .sort-button,
.module-shell.visual-shell .sort-button,
body.theme-glass-light .module-shell .sort-button,
body.theme-glass-light .module-shell.visual-shell .sort-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 6px;
  line-height: 1;
}

.module-shell .sort-button svg,
.module-shell.visual-shell .sort-button svg,
body.theme-glass-light .module-shell .sort-button svg,
body.theme-glass-light .module-shell.visual-shell .sort-button svg {
  display: block;
  width: 12px;
  height: 12px;
  margin: 0;
}

.sort-button:hover,
.sort-button.is-active {
  color: #ffffff;
  border-color: rgba(90, 163, 255, 0.7);
  background: rgba(47, 125, 246, 0.32);
}

.formula-dot:not(.metric-info-icon) {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.35);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.header-formula-dot {
  cursor: help;
}

.formula-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: none;
  width: 310px;
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #07111c;
  box-shadow: var(--shadow);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  white-space: normal;
  transform: translateX(-50%);
}

.header-formula-dot .formula-tooltip {
  top: calc(100% + 8px);
  bottom: auto;
  left: 50%;
  z-index: 40;
}

.formula-dot:hover .formula-tooltip,
.formula-dot:focus .formula-tooltip,
.formula-dot:focus-within .formula-tooltip {
  display: block;
}

.wide-modal {
  width: min(1040px, calc(100vw - 28px));
}

.shipment-form,
.llm-config-form {
  display: grid;
  gap: 14px;
}

.form-grid,
.llm-config-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.form-grid label,
.shipment-form label,
.llm-config-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.shipment-form input,
.shipment-form select,
.shipment-form textarea,
.llm-config-form input,
.llm-config-form select,
.llm-config-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

.form-grid textarea,
.llm-config-form textarea {
  padding: 10px;
  resize: vertical;
  font-family: var(--mono);
  line-height: 1.5;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.shipment-form input:focus,
.shipment-form select:focus,
.shipment-form textarea:focus,
.llm-config-form input:focus,
.llm-config-form select:focus,
.llm-config-form textarea:focus {
  border-color: var(--blue-2);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(90, 163, 255, 0.12);
}

.checkbox-field {
  display: flex !important;
  align-items: center;
  min-height: 38px;
  gap: 8px !important;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.checkbox-field input {
  width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--blue-2);
}

.form-wide {
  grid-column: span 2;
}

.full-span {
  grid-column: 1 / -1;
}

.task-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.llm-config-form .form-wide {
  grid-column: 1 / -1;
}

.config-workspace {
  display: grid;
  gap: 12px;
}

.config-toolbar {
  margin: 0;
}

.config-category-tabs {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.config-category-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.config-category-button:hover {
  color: var(--text);
  border-color: #326bbd;
  background: rgba(19, 39, 58, 0.72);
}

.config-category-button.is-active {
  color: #8ec5ff;
  border-color: rgba(90, 163, 255, 0.58);
  background: rgba(47, 125, 246, 0.2);
}

.config-category-button small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 12px;
}

.config-category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.config-category-chip.blue {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.2);
}

.config-category-chip.purple {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.2);
}

.config-category-chip.green {
  color: #86efac;
  background: rgba(22, 163, 74, 0.18);
}

.config-category-chip.cyan {
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.18);
}

.config-category-chip.red {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.18);
}

.config-category-chip.amber {
  color: #fcd34d;
  background: rgba(217, 119, 6, 0.18);
}

.config-category-chip.slate {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
}

.config-table-shell {
  max-height: calc(100vh - 430px);
  max-height: calc(100dvh - 430px);
  min-height: 320px;
}

.config-table {
  min-width: 1660px;
}

body.theme-glass-light {
  color-scheme: light;
  --bg: #edf5ff;
  --bg-2: #f6fbff;
  --panel: rgba(255, 255, 255, 0.58);
  --panel-2: rgba(255, 255, 255, 0.72);
  --panel-3: rgba(255, 255, 255, 0.86);
  --line: rgba(118, 144, 180, 0.34);
  --line-soft: rgba(99, 122, 158, 0.16);
  --text: #172033;
  --muted: #5f7088;
  --faint: #8492a8;
  --radius: 14px;
  --shadow: 0 24px 70px rgba(44, 78, 125, 0.14);
  --v2-panel-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(239, 247, 255, 0.68)),
    rgba(255, 255, 255, 0.7);
  --v2-panel-border: rgba(255, 255, 255, 0.76);
  --v2-panel-shadow: 0 24px 64px rgba(44, 78, 125, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  --v2-filter-panel-bg:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(229, 242, 255, 0.68) 52%, rgba(255, 247, 237, 0.58)),
    rgba(255, 255, 255, 0.66);
  --v2-input-bg: rgba(255, 255, 255, 0.72);
  --v2-tab-bg: rgba(255, 255, 255, 0.68);
  --v2-table-bg: rgba(255, 255, 255, 0.54);
  --glass-bg: rgba(255, 255, 255, 0.56);
  --glass-strong: rgba(255, 255, 255, 0.76);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-blur: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(47, 125, 246, 0.18), transparent 30%),
    radial-gradient(circle at 72% 2%, rgba(25, 212, 216, 0.14), transparent 28%),
    radial-gradient(circle at 88% 84%, rgba(139, 92, 246, 0.12), transparent 30%),
    linear-gradient(135deg, #eef6ff 0%, #f9fcff 48%, #eaf5ff 100%);
}

body.theme-glass-light select,
body.theme-glass-light .auth-form input,
body.theme-glass-light .user-form input,
body.theme-glass-light .user-form select,
body.theme-glass-light .shipment-search input,
body.theme-glass-light .replenishment-search input,
body.theme-glass-light .replenishment-settings input,
body.theme-glass-light .listing-collection-search input,
body.theme-glass-light .listing-collection-form input,
body.theme-glass-light .listing-collection-form select,
body.theme-glass-light .listing-collection-form textarea,
body.theme-glass-light .listing-edit-input,
body.theme-glass-light .filter-column-select select,
body.theme-glass-light .shipment-form input,
body.theme-glass-light .shipment-form select,
body.theme-glass-light .shipment-form textarea,
body.theme-glass-light .llm-config-form input,
body.theme-glass-light .llm-config-form select,
body.theme-glass-light .llm-config-form textarea {
  color-scheme: light;
}

body.theme-glass-light select option {
  color: #172033;
  background: #f8fbff;
}

body.theme-glass-light .sidebar,
body.theme-glass-light .topbar,
body.theme-glass-light .page-head,
body.theme-glass-light .module-shell,
body.theme-glass-light .overview-toolbar,
body.theme-glass-light .page-inline-actions,
body.theme-glass-light .sticky-action-bar,
body.theme-glass-light .kpi-card,
body.theme-glass-light .panel,
body.theme-glass-light .task-summary-card,
body.theme-glass-light .task-column,
body.theme-glass-light .task-card,
body.theme-glass-light .sidebar-footer,
body.theme-glass-light .auth-card,
body.theme-glass-light .filter-menu,
body.theme-glass-light .module-tabs,
body.theme-glass-light .replenishment-settings,
body.theme-glass-light .listing-collection-form,
body.theme-glass-light .action-drawer,
body.theme-glass-light .operation-modal,
body.theme-glass-light .dashboard-loading-card,
body.theme-glass-light .formula-tooltip {
  border-color: var(--glass-border);
  background: linear-gradient(145deg, var(--glass-strong), var(--glass-bg));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(138%);
  backdrop-filter: blur(var(--glass-blur)) saturate(138%);
}

body.theme-glass-light .loading-core {
  color: #ffffff;
  border-color: rgba(47, 125, 246, 0.2);
  background: linear-gradient(145deg, #2f7df6, #22c5ee);
  box-shadow: 0 14px 36px rgba(47, 125, 246, 0.2);
}

body.theme-glass-light .sticky-action-bar {
  box-shadow: 0 16px 36px rgba(44, 78, 125, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.theme-glass-light .sticky-action-bar strong {
  color: var(--text);
}

body.theme-glass-light .sticky-action-bar span {
  color: var(--muted);
}

body.theme-glass-light .sticky-action-bar .profit-import-action-icon {
  color: #2f7df6;
  background: rgba(219, 234, 254, 0.72);
  border: 1px solid rgba(47, 125, 246, 0.18);
  border-radius: 999px;
}

body.theme-glass-light .loading-ring::after {
  background: rgba(247, 251, 255, 0.88);
}

body.theme-glass-light .loading-lanes span {
  color: #1e5fd4;
  border-color: rgba(47, 125, 246, 0.18);
  background: rgba(224, 239, 255, 0.72);
}

body.theme-glass-light .loading-eyebrow,
body.theme-glass-light .loading-meta b {
  color: #1256d8;
}

body.theme-glass-light .loading-meter {
  background: rgba(100, 116, 139, 0.16);
}

body.theme-glass-light .sidebar {
  border-right-color: rgba(255, 255, 255, 0.86);
}

body.theme-glass-light .topbar {
  border-bottom-color: rgba(255, 255, 255, 0.86);
}

body.theme-glass-light .brand,
body.theme-glass-light .nav-item,
body.theme-glass-light .kpi-title,
body.theme-glass-light .panel-title,
body.theme-glass-light .table-title,
body.theme-glass-light .task-card strong,
body.theme-glass-light .drawer-field strong,
body.theme-glass-light .llm-prompt-card strong,
body.theme-glass-light .llm-history-item strong,
body.theme-glass-light .llm-result-item strong,
body.theme-glass-light .llm-evidence strong,
body.theme-glass-light .llm-result-grid h4,
body.theme-glass-light .permission-block strong,
body.theme-glass-light .filter-check span,
body.theme-glass-light td,
body.theme-glass-light .pager-index {
  color: var(--text);
}

body.theme-glass-light .topbar-title h1 span,
body.theme-glass-light .topbar-title p,
body.theme-glass-light .page-head p,
body.theme-glass-light .sidebar-footer small,
body.theme-glass-light .user-menu small,
body.theme-glass-light .task-card p,
body.theme-glass-light .task-column-head span,
body.theme-glass-light .task-card-head span,
body.theme-glass-light .task-card-foot span,
body.theme-glass-light .timeline-row span,
body.theme-glass-light .proposal-count,
body.theme-glass-light .proposal-pager,
body.theme-glass-light .proposal-page-size span,
body.theme-glass-light .drawer-head p,
body.theme-glass-light .modal-head p,
body.theme-glass-light .auth-card p,
body.theme-glass-light .auth-form label,
body.theme-glass-light .user-form label,
body.theme-glass-light .listing-collection-form label,
body.theme-glass-light .filter-result-count,
body.theme-glass-light .filter-column-select,
body.theme-glass-light .filter-check small,
body.theme-glass-light th,
body.theme-glass-light .empty-note {
  color: var(--muted);
}

body.theme-glass-light .brand-text {
  color: #1f6feb;
}

body.theme-glass-light .nav-item {
  background: transparent;
}

body.theme-glass-light .nav-item:hover {
  color: #0f1d33;
  border-color: rgba(47, 125, 246, 0.16);
  background: rgba(255, 255, 255, 0.46);
}

body.theme-glass-light .nav-item.is-active {
  color: #1256d8;
  border-color: rgba(47, 125, 246, 0.2);
  background: linear-gradient(145deg, rgba(231, 241, 255, 0.92), rgba(211, 229, 255, 0.68));
  box-shadow: inset 3px 0 0 var(--blue), 0 12px 32px rgba(47, 125, 246, 0.14);
}

body.theme-glass-light .autoops-task-card,
body.theme-glass-light .autoops-value-pair span,
body.theme-glass-light .autoops-guidance,
body.theme-glass-light .automation-shadow-run,
body.theme-glass-light .automation-readiness-row {
  border-color: rgba(117, 145, 182, 0.24);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-glass-light .autoops-task-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(232, 243, 255, 0.52)),
    rgba(255, 255, 255, 0.62);
}

body.theme-glass-light .autoops-task-empty-thumb {
  color: #1f6feb;
  border-color: rgba(47, 125, 246, 0.18);
  background: rgba(219, 234, 254, 0.72);
}

body.theme-glass-light .autoops-task-body > strong,
body.theme-glass-light .autoops-value-pair b,
body.theme-glass-light .autoops-guidance strong,
body.theme-glass-light .automation-control-status strong,
body.theme-glass-light .automation-shadow-run strong,
body.theme-glass-light .automation-readiness-head strong,
body.theme-glass-light .automation-readiness-row strong,
body.theme-glass-light .autoops-approval-table td strong {
  color: #0f1d33;
}

body.theme-glass-light .autoops-task-body p,
body.theme-glass-light .autoops-guidance span,
body.theme-glass-light .autoops-log-actions span,
body.theme-glass-light .autoops-value-pair small,
body.theme-glass-light .automation-control-status small,
body.theme-glass-light .automation-shadow-run small,
body.theme-glass-light .automation-shadow-run p,
body.theme-glass-light .automation-readiness-row small,
body.theme-glass-light .automation-readiness-row p,
body.theme-glass-light .autoops-approval-table td small {
  color: #52637c;
}

body.theme-glass-light .field-button,
body.theme-glass-light .refresh-button,
body.theme-glass-light .theme-toggle-button,
body.theme-glass-light .user-menu,
body.theme-glass-light .secondary-button,
body.theme-glass-light .primary-button,
body.theme-glass-light .ghost-button,
body.theme-glass-light .segmented button,
body.theme-glass-light .table-action,
body.theme-glass-light .range-button,
body.theme-glass-light .page-size-button,
body.theme-glass-light .pager-button,
body.theme-glass-light .filter-menu button,
body.theme-glass-light .module-tabs button,
body.theme-glass-light .config-category-button,
body.theme-glass-light .sort-button,
body.theme-glass-light .quick-action-button,
body.theme-glass-light .checkbox-field,
body.theme-glass-light .auth-form input,
body.theme-glass-light .user-form input,
body.theme-glass-light .user-form select,
body.theme-glass-light .date-range-trigger,
body.theme-glass-light .overview-store-filter select,
body.theme-glass-light .shipment-search input,
body.theme-glass-light .replenishment-search input,
body.theme-glass-light .replenishment-settings input,
body.theme-glass-light .listing-collection-search input,
body.theme-glass-light .listing-collection-form input,
body.theme-glass-light .listing-collection-form select,
body.theme-glass-light .listing-collection-form textarea,
body.theme-glass-light .listing-edit-input,
body.theme-glass-light .filter-column-select select,
body.theme-glass-light .shipment-form input,
body.theme-glass-light .shipment-form select,
body.theme-glass-light .shipment-form textarea,
body.theme-glass-light .llm-config-form input,
body.theme-glass-light .llm-config-form select,
body.theme-glass-light .llm-config-form textarea {
  color: var(--text);
  border-color: rgba(117, 145, 182, 0.28);
  background: rgba(255, 255, 255, 0.58);
}

body.theme-glass-light .field-button:hover,
body.theme-glass-light .refresh-button:hover,
body.theme-glass-light .theme-toggle-button:hover,
body.theme-glass-light .user-menu:hover,
body.theme-glass-light .secondary-button:hover,
body.theme-glass-light .primary-button:hover,
body.theme-glass-light .ghost-button:hover,
body.theme-glass-light .segmented button:hover,
body.theme-glass-light .table-action:hover,
body.theme-glass-light .range-button:hover,
body.theme-glass-light .date-range-trigger:hover,
body.theme-glass-light .page-size-button:hover,
body.theme-glass-light .pager-button:hover:not(:disabled),
body.theme-glass-light .filter-menu button:hover,
body.theme-glass-light .module-tabs button:hover,
body.theme-glass-light .config-category-button:hover,
body.theme-glass-light .sort-button:hover,
body.theme-glass-light .quick-action-button:hover {
  border-color: rgba(47, 125, 246, 0.36);
  background: rgba(255, 255, 255, 0.78);
}

body.theme-glass-light .module-shell .panel,
body.theme-glass-light .module-shell .review-product-rail,
body.theme-glass-light .module-shell .message-detail-panel,
body.theme-glass-light .module-shell .message-card,
body.theme-glass-light .module-shell .profit-import-upload-card,
body.theme-glass-light .module-shell .profit-import-preview-card,
body.theme-glass-light .module-shell .profit-import-summary-card {
  border-color: var(--glass-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(238, 247, 255, 0.64));
  box-shadow: 0 14px 34px rgba(44, 78, 125, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-glass-light .order-filter-strip,
body.theme-glass-light .order-load-more,
body.theme-glass-light .order-region-stat,
body.theme-glass-light .order-region-summary-meta,
body.theme-glass-light .order-region-map-wrap,
body.theme-glass-light .order-region-side,
body.theme-glass-light .order-region-rank-row,
body.theme-glass-light .order-region-city-row,
body.theme-glass-light .order-hour-stat,
body.theme-glass-light .order-hour-chart {
  border-color: rgba(117, 145, 182, 0.24);
  background: rgba(255, 255, 255, 0.52);
}

body.theme-glass-light .order-region-state:not(.has-data) {
  fill: rgba(203, 213, 225, 0.34);
  stroke: rgba(117, 145, 182, 0.34);
}

body.theme-glass-light .order-region-state:hover,
body.theme-glass-light .order-region-state.is-active {
  stroke: rgba(29, 78, 216, 0.76);
}

body.theme-glass-light .order-region-rank-row:hover,
body.theme-glass-light .order-region-rank-row.is-active {
  border-color: rgba(47, 125, 246, 0.42);
  background: rgba(230, 241, 255, 0.72);
}

body.theme-glass-light .order-hour-bar-fill {
  border-color: rgba(47, 125, 246, 0.18);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.72), rgba(47, 125, 246, 0.68));
}

body.theme-glass-light .proposal-category-button,
body.theme-glass-light .proposal-action-filter,
body.theme-glass-light .proposal-action-filter-button,
body.theme-glass-light .proposal-bulk-toolbar,
body.theme-glass-light .proposal-search input,
body.theme-glass-light .batch-confirm-list span {
  color: var(--text);
  border-color: rgba(117, 145, 182, 0.26);
  background: rgba(255, 255, 255, 0.52);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(132%);
  backdrop-filter: blur(var(--glass-blur)) saturate(132%);
}

body.theme-glass-light .proposal-category-button.is-active {
  color: #1256d8;
  border-color: rgba(47, 125, 246, 0.32);
  background: linear-gradient(145deg, rgba(231, 241, 255, 0.9), rgba(207, 226, 255, 0.68));
  box-shadow: 0 12px 30px rgba(47, 125, 246, 0.12), inset 0 -2px 0 rgba(47, 125, 246, 0.32);
}

body.theme-glass-light .proposal-action-filter-button.is-active {
  color: #1256d8;
  border-color: rgba(47, 125, 246, 0.32);
  background: rgba(231, 241, 255, 0.86);
}

body.theme-glass-light .proposal-group-row td {
  border-top-color: rgba(47, 125, 246, 0.22);
  background: linear-gradient(90deg, rgba(224, 239, 255, 0.9), rgba(241, 248, 255, 0.72));
}

body.theme-glass-light .proposal-group-row.green td {
  background: linear-gradient(90deg, rgba(217, 249, 231, 0.86), rgba(241, 253, 246, 0.68));
}

body.theme-glass-light .proposal-group-row.purple td {
  background: linear-gradient(90deg, rgba(237, 231, 255, 0.86), rgba(248, 245, 255, 0.68));
}

body.theme-glass-light .proposal-group-row.amber td {
  background: linear-gradient(90deg, rgba(255, 244, 218, 0.9), rgba(255, 250, 238, 0.68));
}

body.theme-glass-light .proposal-table th:nth-child(5),
body.theme-glass-light .proposal-table td:nth-child(5) {
  background: var(--dashboard-table-sticky-cell-bg);
}

body.theme-glass-light .proposal-thumb-empty {
  color: #7690b0;
  border-color: rgba(117, 145, 182, 0.36);
  background: rgba(241, 247, 255, 0.78);
}

body.theme-glass-light .proposal-action-reason strong,
body.theme-glass-light .proposal-value-cell,
body.theme-glass-light .proposal-metric-with-tooltip {
  color: #183256;
}

body.theme-glass-light .proposal-metric-label-cell span {
  color: #475569;
  border-color: rgba(117, 145, 182, 0.28);
  background: rgba(241, 245, 249, 0.88);
}

body.theme-glass-light .proposal-action-reason small {
  color: #6d7f9d;
}

body.theme-glass-light .proposal-metric-with-tooltip:hover,
body.theme-glass-light .proposal-metric-with-tooltip:focus-visible {
  color: #1d4ed8;
  border-color: rgba(47, 125, 246, 0.36);
  background: rgba(226, 239, 255, 0.9);
}

body.theme-glass-light .proposal-type-chip.green,
body.theme-glass-light .suggestion-status-pill.green {
  color: #15803d;
  background: rgba(220, 252, 231, 0.84);
}

body.theme-glass-light .proposal-type-chip.blue,
body.theme-glass-light .suggestion-status-pill.blue {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.88);
}

body.theme-glass-light .proposal-type-chip.purple,
body.theme-glass-light .suggestion-status-pill.purple {
  color: #6d28d9;
  background: rgba(237, 233, 254, 0.88);
}

body.theme-glass-light .proposal-type-chip.amber,
body.theme-glass-light .suggestion-status-pill.orange,
body.theme-glass-light .suggestion-status-pill.amber {
  color: #b45309;
  background: rgba(254, 243, 199, 0.9);
}

body.theme-glass-light .suggestion-status-pill.red {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.88);
}

body.theme-glass-light .tag-layer-chip {
  color: #334155;
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(248, 250, 252, 0.86);
}

body.theme-glass-light .tag-chip-hero,
body.theme-glass-light .tag-chip-high_margin,
body.theme-glass-light .tag-chip-balanced,
body.theme-glass-light .tag-chip-healthy_margin {
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(220, 252, 231, 0.86);
}

body.theme-glass-light .tag-chip-growth,
body.theme-glass-light .tag-chip-low_stock,
body.theme-glass-light .tag-chip-low_margin {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(254, 243, 199, 0.88);
}

body.theme-glass-light .tag-chip-core {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.26);
  background: rgba(219, 234, 254, 0.88);
}

body.theme-glass-light .tag-chip-long_tail,
body.theme-glass-light .tag-chip-new_or_idle,
body.theme-glass-light .tag-chip-test,
body.theme-glass-light .tag-chip-overstock,
body.theme-glass-light .tag-chip-dead_stock {
  color: #6d28d9;
  border-color: rgba(139, 92, 246, 0.26);
  background: rgba(237, 233, 254, 0.88);
}

body.theme-glass-light .tag-chip-loss,
body.theme-glass-light .tag-chip-out_of_stock,
body.theme-glass-light .tag-chip-clearance {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(254, 226, 226, 0.88);
}

body.theme-glass-light .tag-layer-card {
  border-color: rgba(178, 197, 224, 0.48);
  background: rgba(255, 255, 255, 0.70);
}

body.theme-glass-light .proposal-type-chip.slate,
body.theme-glass-light .suggestion-status-pill.gray {
  color: #64748b;
  background: rgba(241, 245, 249, 0.9);
}

body.theme-glass-light .refresh-button,
body.theme-glass-light .primary-button,
body.theme-glass-light .theme-toggle-button[aria-pressed="true"] {
  color: #1256d8;
  border-color: rgba(47, 125, 246, 0.32);
  background: rgba(229, 241, 255, 0.8);
}

body.theme-glass-light .module-shell .secondary-button,
body.theme-glass-light .module-shell .ghost-button,
body.theme-glass-light .module-shell .module-tabs button,
body.theme-glass-light .module-shell .range-button,
body.theme-glass-light .module-shell .config-category-button,
body.theme-glass-light .module-shell .sort-button,
body.theme-glass-light .page-inline-actions .secondary-button,
body.theme-glass-light .page-inline-actions .ghost-button,
body.theme-glass-light .sticky-action-bar .secondary-button,
body.theme-glass-light .sticky-action-bar .ghost-button {
  color: #23324a;
  border-color: rgba(166, 187, 219, 0.48);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-glass-light .module-shell .secondary-button:hover,
body.theme-glass-light .module-shell .ghost-button:hover,
body.theme-glass-light .module-shell .module-tabs button:hover,
body.theme-glass-light .module-shell .range-button:hover,
body.theme-glass-light .module-shell .config-category-button:hover,
body.theme-glass-light .module-shell .sort-button:hover,
body.theme-glass-light .page-inline-actions .secondary-button:hover,
body.theme-glass-light .page-inline-actions .ghost-button:hover,
body.theme-glass-light .sticky-action-bar .secondary-button:hover,
body.theme-glass-light .sticky-action-bar .ghost-button:hover {
  color: #1256d8;
  border-color: rgba(47, 125, 246, 0.36);
  background: rgba(255, 255, 255, 0.9);
}

body.theme-glass-light .module-shell .primary-button,
body.theme-glass-light .page-inline-actions .primary-button,
body.theme-glass-light .sticky-action-bar .primary-button {
  color: #ffffff;
  border-color: rgba(47, 125, 246, 0.42);
  background: linear-gradient(135deg, #2f7df6, #1d4ed8);
  box-shadow: 0 12px 28px rgba(47, 125, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.theme-glass-light .module-shell .primary-button:hover,
body.theme-glass-light .page-inline-actions .primary-button:hover,
body.theme-glass-light .sticky-action-bar .primary-button:hover {
  color: #ffffff;
  border-color: rgba(29, 78, 216, 0.5);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 14px 32px rgba(47, 125, 246, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body.theme-glass-light .range-button.is-active,
body.theme-glass-light .page-size-button.is-active,
body.theme-glass-light .filter-menu button.is-active,
body.theme-glass-light .module-tabs button.is-active,
body.theme-glass-light .config-category-button.is-active,
body.theme-glass-light .sort-button.is-active {
  color: #1256d8;
  border-color: rgba(47, 125, 246, 0.34);
  background: rgba(219, 234, 254, 0.86);
}

body.theme-glass-light .overview-toolbar .range-button.is-active {
  color: #ffffff;
  border-color: rgba(47, 125, 246, 0.42);
  background: linear-gradient(135deg, #2f7df6, #1d4ed8);
  box-shadow: 0 12px 28px rgba(47, 125, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

body.theme-glass-light .overview-toolbar .range-button.is-active:hover {
  color: #ffffff;
  border-color: rgba(29, 78, 216, 0.5);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 14px 32px rgba(47, 125, 246, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body.theme-glass-light .module-shell .module-tabs button.is-active,
body.theme-glass-light .module-shell .range-button.is-active,
body.theme-glass-light .module-shell .config-category-button.is-active,
body.theme-glass-light .module-shell .sort-button.is-active {
  color: #ffffff;
  border-color: rgba(47, 125, 246, 0.42);
  background: linear-gradient(135deg, #2f7df6, #1d4ed8);
  box-shadow: 0 12px 28px rgba(47, 125, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

body.theme-glass-light .module-shell.visual-shell {
  border-color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(235, 246, 255, 0.7)),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 64px rgba(44, 78, 125, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.theme-glass-light .module-shell.visual-shell::before {
  background:
    linear-gradient(115deg, rgba(47, 125, 246, 0.12), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(20, 184, 166, 0.12), transparent 30%);
}

body.theme-glass-light .module-shell.visual-shell .module-tabs,
body.theme-glass-light .module-shell.visual-shell .module-toolbar,
body.theme-glass-light .module-shell.visual-shell .listing-collection-toolbar,
body.theme-glass-light .module-shell.visual-shell .tag-toolbar,
body.theme-glass-light .module-shell.visual-shell .market-trends-toolbar,
body.theme-glass-light .module-shell.visual-shell .competitor-seed-toolbar,
body.theme-glass-light .module-shell.visual-shell .message-center-tabs,
body.theme-glass-light .module-shell.visual-shell .message-filter-toolbar,
body.theme-glass-light .module-shell.visual-shell .review-toolbar,
body.theme-glass-light .module-shell.visual-shell .proposal-toolbar,
body.theme-glass-light .module-shell.visual-shell .proposal-bulk-toolbar,
body.theme-glass-light .module-shell.visual-shell .order-filter-strip,
body.theme-glass-light .module-shell.visual-shell .page-inline-actions {
  border-color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(229, 242, 255, 0.7)),
    rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 36px rgba(44, 78, 125, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.theme-glass-light .module-shell.visual-shell .panel,
body.theme-glass-light .module-shell.visual-shell .listing-collection-form,
body.theme-glass-light .module-shell.visual-shell .review-product-rail,
body.theme-glass-light .module-shell.visual-shell .message-detail-panel,
body.theme-glass-light .module-shell.visual-shell .message-card,
body.theme-glass-light .module-shell.visual-shell .llm-prompt-card,
body.theme-glass-light .module-shell.visual-shell .replenishment-settings,
body.theme-glass-light .module-shell.visual-shell .profit-import-upload-card,
body.theme-glass-light .module-shell.visual-shell .profit-import-preview-card,
body.theme-glass-light .module-shell.visual-shell .profit-import-summary-card,
body.theme-glass-light .module-shell.visual-shell .metric-mini,
body.theme-glass-light .module-shell.visual-shell .kpi-card {
  border-color: rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(238, 247, 255, 0.66)),
    rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 36px rgba(44, 78, 125, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

body.theme-glass-light .module-shell.visual-shell .panel-header {
  border-bottom-color: rgba(117, 145, 182, 0.18);
}

body.theme-glass-light .module-shell.visual-shell .panel-title,
body.theme-glass-light .module-shell.visual-shell .table-title {
  color: #172033;
}

body.theme-glass-light .module-shell.visual-shell .table-shell {
  border-color: rgba(117, 145, 182, 0.2);
  background: rgba(255, 255, 255, 0.48);
}

body.theme-glass-light .module-shell.visual-shell th {
  background: rgba(242, 248, 255, 0.88);
}

body.theme-glass-light .module-shell.visual-shell .user-form input,
body.theme-glass-light .module-shell.visual-shell .user-form select,
body.theme-glass-light .module-shell.visual-shell .shipment-search input,
body.theme-glass-light .module-shell.visual-shell .listing-collection-search input,
body.theme-glass-light .module-shell.visual-shell .listing-collection-form input,
body.theme-glass-light .module-shell.visual-shell .listing-collection-form select,
body.theme-glass-light .module-shell.visual-shell .listing-collection-form textarea,
body.theme-glass-light .module-shell.visual-shell .listing-edit-input,
body.theme-glass-light .module-shell.visual-shell .tag-search input,
body.theme-glass-light .module-shell.visual-shell .market-filter input,
body.theme-glass-light .module-shell.visual-shell .market-filter select,
body.theme-glass-light .module-shell.visual-shell .llm-config-form input,
body.theme-glass-light .module-shell.visual-shell .llm-config-form select,
body.theme-glass-light .module-shell.visual-shell .llm-config-form textarea,
body.theme-glass-light .module-shell.visual-shell input:not([type="checkbox"]):not([type="radio"]),
body.theme-glass-light .module-shell.visual-shell select,
body.theme-glass-light .module-shell.visual-shell textarea {
  border-color: rgba(117, 145, 182, 0.26);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

body.theme-glass-light .module-shell.visual-shell .table-action {
  border-color: rgba(166, 187, 219, 0.5);
  background: rgba(255, 255, 255, 0.76);
}

body.theme-glass-light .module-shell.visual-shell .primary-row-action:not(:disabled) {
  color: #047857;
  border-color: rgba(20, 184, 166, 0.34);
  background: rgba(209, 250, 229, 0.82);
}

body.theme-glass-light .module-shell.visual-shell .danger-button {
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(254, 226, 226, 0.76);
}

body.theme-glass-light .module-shell.visual-shell .empty-note,
body.theme-glass-light .module-shell.visual-shell .permission-block,
body.theme-glass-light .module-shell.visual-shell .permission-check {
  border-color: rgba(117, 145, 182, 0.2);
  background: rgba(255, 255, 255, 0.5);
}

body.theme-glass-light .module-shell.visual-shell .secondary-button,
body.theme-glass-light .module-shell.visual-shell .ghost-button,
body.theme-glass-light .module-shell.visual-shell .range-button,
body.theme-glass-light .module-shell.visual-shell .sort-button,
body.theme-glass-light .module-shell.visual-shell .page-size-button,
body.theme-glass-light .module-shell.visual-shell .config-category-button,
body.theme-glass-light .module-shell.visual-shell .market-trends-actions button,
body.theme-glass-light .module-shell.visual-shell .competitor-seed-toolbar button,
body.theme-glass-light .module-shell.visual-shell .message-template-actions button,
body.theme-glass-light .module-shell.visual-shell .order-load-actions .secondary-button {
  border-color: rgba(166, 187, 219, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(232, 243, 255, 0.68)),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px rgba(44, 78, 125, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.theme-glass-light .module-shell.visual-shell .primary-button:not(:disabled),
body.theme-glass-light .module-shell.visual-shell .order-load-actions .primary-button:not(:disabled),
body.theme-glass-light .module-shell.visual-shell .review-strategy-panel .primary-button:not(:disabled) {
  color: #ffffff;
  border-color: rgba(47, 125, 246, 0.46);
  background: linear-gradient(135deg, #2f7df6, #1d4ed8);
  box-shadow: 0 12px 28px rgba(47, 125, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

body.theme-glass-light .module-shell.visual-shell button:focus-visible,
body.theme-glass-light .module-shell.visual-shell a:focus-visible,
body.theme-glass-light .module-shell.visual-shell .table-action:focus-visible,
body.theme-glass-light .module-shell.visual-shell .range-button:focus-visible,
body.theme-glass-light .module-shell.visual-shell .sort-button:focus-visible,
body.theme-glass-light .module-shell.visual-shell .page-size-button:focus-visible,
body.theme-glass-light .module-shell.visual-shell input:focus-visible,
body.theme-glass-light .module-shell.visual-shell select:focus-visible,
body.theme-glass-light .module-shell.visual-shell textarea:focus-visible {
  border-color: rgba(47, 125, 246, 0.54);
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body.theme-glass-light .module-shell.visual-shell input::placeholder,
body.theme-glass-light .module-shell.visual-shell textarea::placeholder {
  color: rgba(86, 111, 145, 0.62);
}

body.theme-glass-light .module-shell.visual-shell .filter-result-count,
body.theme-glass-light .module-shell.visual-shell .panel-link,
body.theme-glass-light .module-shell.visual-shell .market-trends-status {
  color: #36506f;
  border-color: rgba(166, 187, 219, 0.42);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

body.theme-glass-light .module-shell.visual-shell .market-trend-category-strip {
  border-color: rgba(166, 187, 219, 0.36);
  background: rgba(255, 255, 255, 0.5);
}

body.theme-glass-light .module-shell.visual-shell .market-trend-category-strip.is-empty {
  color: #64748b;
}

body.theme-glass-light .module-shell.visual-shell .market-trend-category-chip {
  color: #36506f;
  border-color: rgba(166, 187, 219, 0.48);
  background: rgba(255, 255, 255, 0.72);
}

body.theme-glass-light .module-shell.visual-shell .market-trend-category-chip strong {
  color: #172033;
}

body.theme-glass-light .module-shell.visual-shell .market-trend-category-chip span {
  color: #64748b;
}

body.theme-glass-light .module-shell.visual-shell .market-trend-category-chip:hover {
  border-color: rgba(47, 125, 246, 0.36);
  background: rgba(235, 246, 255, 0.78);
}

body.theme-glass-light .module-shell.visual-shell .market-trend-category-chip.is-pending:not(.is-active) span {
  color: #b45309;
}

body.theme-glass-light .module-shell.visual-shell .market-trend-category-chip.is-active {
  color: #ffffff;
  border-color: rgba(47, 125, 246, 0.46);
  background: linear-gradient(135deg, #2f7df6, #1d4ed8);
}

body.theme-glass-light .module-shell.visual-shell .market-trend-category-chip.is-active strong,
body.theme-glass-light .module-shell.visual-shell .market-trend-category-chip.is-active span {
  color: #ffffff;
}

body.theme-glass-light .module-shell.visual-shell .module-loading-state .operation-loading-card {
  border-color: rgba(166, 187, 219, 0.54);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(231, 243, 255, 0.76)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 58px rgba(44, 78, 125, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.theme-glass-light .module-shell.visual-shell .module-loading-state .operation-loading-content h2,
body.theme-glass-light .module-shell.visual-shell .module-loading-state .operation-loading-content h3 {
  color: #10203a;
}

body.theme-glass-light .module-shell.visual-shell .module-loading-state .operation-loading-content p,
body.theme-glass-light .module-shell.visual-shell .module-loading-state .operation-loading-meta {
  color: #526b8d;
}

body.theme-glass-light .module-shell.visual-shell .empty-row td {
  color: #526b8d;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(235, 246, 255, 0.5)),
    rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 0 0 1px rgba(117, 145, 182, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-glass-light .module-shell.visual-shell tbody tr:not(.empty-row):hover td {
  background: rgba(47, 125, 246, 0.07);
}

body.theme-glass-light .module-shell.visual-shell .chip,
body.theme-glass-light .module-shell.visual-shell .status-pill,
body.theme-glass-light .module-shell.visual-shell .ad-status-chip,
body.theme-glass-light .module-shell.visual-shell .proposal-type-chip,
body.theme-glass-light .module-shell.visual-shell .suggestion-status-pill,
body.theme-glass-light .module-shell.visual-shell .config-category-chip,
body.theme-glass-light .module-shell.visual-shell .product-tag-chip,
body.theme-glass-light .module-shell.visual-shell .review-topic-chip {
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-glass-light .module-shell.visual-shell .module-tabs button.is-active,
body.theme-glass-light .module-shell.visual-shell .range-button.is-active,
body.theme-glass-light .module-shell.visual-shell .config-category-button.is-active,
body.theme-glass-light .module-shell.visual-shell .sort-button.is-active,
body.theme-glass-light .module-shell.visual-shell .page-size-button.is-active {
  color: #ffffff;
  border-color: rgba(47, 125, 246, 0.46);
  background: linear-gradient(135deg, #2f7df6, #1d4ed8);
  box-shadow: 0 12px 28px rgba(47, 125, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

body.theme-glass-light .module-shell.visual-shell .module-tabs button.is-active:hover,
body.theme-glass-light .module-shell.visual-shell .range-button.is-active:hover,
body.theme-glass-light .module-shell.visual-shell .config-category-button.is-active:hover,
body.theme-glass-light .module-shell.visual-shell .sort-button.is-active:hover,
body.theme-glass-light .module-shell.visual-shell .page-size-button.is-active:hover {
  color: #ffffff;
  border-color: rgba(29, 78, 216, 0.5);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 14px 32px rgba(47, 125, 246, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body.theme-glass-light .module-shell.visual-shell .module-tabs button:hover:not(.is-active),
body.theme-glass-light .module-shell.visual-shell .secondary-button:hover:not(:disabled),
body.theme-glass-light .module-shell.visual-shell .ghost-button:hover:not(:disabled),
body.theme-glass-light .module-shell.visual-shell .range-button:hover:not(.is-active):not(:disabled),
body.theme-glass-light .module-shell.visual-shell .sort-button:hover:not(.is-active):not(:disabled),
body.theme-glass-light .module-shell.visual-shell .page-size-button:hover:not(.is-active):not(:disabled),
body.theme-glass-light .module-shell.visual-shell .config-category-button:hover:not(.is-active):not(:disabled),
body.theme-glass-light .module-shell.visual-shell .market-trends-actions button:hover:not(:disabled),
body.theme-glass-light .module-shell.visual-shell .message-template-actions button:hover:not(:disabled),
body.theme-glass-light .module-shell.visual-shell .order-load-actions .secondary-button:hover:not(:disabled),
body.theme-glass-light .module-shell.visual-shell .table-action:hover:not(:disabled):not(.primary-row-action):not(.danger-button) {
  color: #1256d8;
  border-color: rgba(47, 125, 246, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(225, 239, 255, 0.82)),
    rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 22px rgba(47, 125, 246, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.theme-glass-light .module-shell.visual-shell .primary-row-action:hover:not(:disabled) {
  color: #047857;
  border-color: rgba(20, 184, 166, 0.42);
  background: rgba(209, 250, 229, 0.9);
}

body.theme-glass-light .module-shell.visual-shell .danger-button:hover:not(:disabled) {
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(254, 226, 226, 0.88);
}

body.theme-glass-light .table-header-sort:hover {
  color: #1256d8;
}

body.theme-glass-light .table-header-sort:hover strong {
  color: #1256d8;
  border-color: rgba(47, 125, 246, 0.34);
  background: rgba(219, 234, 254, 0.88);
}

body.theme-glass-light .sort-button:hover {
  color: #1256d8;
}

body.theme-glass-light .config-category-button small {
  color: #36506f;
  background: rgba(255, 255, 255, 0.7);
}

body.theme-glass-light .config-category-chip.blue {
  color: #1256d8;
  background: rgba(219, 234, 254, 0.92);
}

body.theme-glass-light .config-category-chip.purple {
  color: #6d28d9;
  background: rgba(237, 233, 254, 0.92);
}

body.theme-glass-light .config-category-chip.green {
  color: #047857;
  background: rgba(209, 250, 229, 0.92);
}

body.theme-glass-light .config-category-chip.cyan {
  color: #0e7490;
  background: rgba(207, 250, 254, 0.92);
}

body.theme-glass-light .config-category-chip.red {
  color: #dc2626;
  background: rgba(254, 226, 226, 0.92);
}

body.theme-glass-light .config-category-chip.amber {
  color: #b45309;
  background: rgba(254, 243, 199, 0.92);
}

body.theme-glass-light .config-category-chip.slate {
  color: #475569;
  background: rgba(226, 232, 240, 0.92);
}

body.theme-glass-light .danger-button {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.38);
  background: rgba(254, 226, 226, 0.56);
}

body.theme-glass-light .danger-button:hover:not(:disabled),
body.theme-glass-light .danger-primary {
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.52);
  background: rgba(254, 202, 202, 0.78);
}

body.theme-glass-light .link-button:hover {
  color: #1256d8;
}

body.theme-glass-light .auth-mark {
  color: #1256d8;
  border-color: rgba(47, 125, 246, 0.32);
  background: rgba(219, 234, 254, 0.82);
}

body.theme-glass-light .auth-error {
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(254, 226, 226, 0.72);
}

body.theme-glass-light .pipeline-index {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.82);
}

body.theme-glass-light .product-thumb.placeholder svg {
  color: #53677f;
}

body.theme-glass-light .product-image-preview {
  border-color: rgba(47, 125, 246, 0.16);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-glass-light .preview-banner {
  color: #17345c;
  border-color: rgba(47, 125, 246, 0.28);
  background: rgba(232, 242, 255, 0.68);
}

body.theme-glass-light .preview-banner strong {
  color: #17345c;
}

body.theme-glass-light .preview-banner span {
  color: #40516b;
}

body.theme-glass-light .preview-banner.warning {
  color: #7c2d12;
  border-color: rgba(217, 119, 6, 0.42);
  background: linear-gradient(145deg, rgba(255, 247, 237, 0.9), rgba(255, 237, 213, 0.64));
}

body.theme-glass-light .preview-banner.warning strong {
  color: #7c2d12;
}

body.theme-glass-light .preview-banner.warning span {
  color: #694311;
}

body.theme-glass-light .chip {
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body.theme-glass-light .chip.blue {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.92);
}

body.theme-glass-light .chip.cyan {
  color: #0e7490;
  background: rgba(207, 250, 254, 0.92);
}

body.theme-glass-light .chip.green {
  color: #15803d;
  background: rgba(220, 252, 231, 0.92);
}

body.theme-glass-light .chip.amber {
  color: #92400e;
  background: rgba(254, 243, 199, 0.92);
}

body.theme-glass-light .chip.orange {
  color: #9a3412;
  background: rgba(255, 237, 213, 0.92);
}

body.theme-glass-light .chip.red {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.92);
}

body.theme-glass-light .chip.purple {
  color: #6d28d9;
  background: rgba(237, 233, 254, 0.92);
}

body.theme-glass-light .status-pill,
body.theme-glass-light .risk-pill,
body.theme-glass-light .mode-pill {
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

body.theme-glass-light .status-pill.approved,
body.theme-glass-light .status-pill.done,
body.theme-glass-light .mode-pill.semi {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.9);
}

body.theme-glass-light .status-pill.ok,
body.theme-glass-light .status-pill.passed,
body.theme-glass-light .risk-pill.l1,
body.theme-glass-light .mode-pill.auto {
  color: #15803d;
  background: rgba(220, 252, 231, 0.9);
}

body.theme-glass-light .status-pill.pending,
body.theme-glass-light .risk-pill.l2 {
  color: #92400e;
  background: rgba(254, 243, 199, 0.9);
}

body.theme-glass-light .status-pill.deduped {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.92);
}

body.theme-glass-light .status-pill.reduce,
body.theme-glass-light .risk-pill.l3 {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.9);
}

body.theme-glass-light .status-pill.warn {
  color: #92400e;
  background: rgba(254, 243, 199, 0.9);
}

body.theme-glass-light .order-filter-strip {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

body.theme-glass-light .order-load-more {
  color: #516985;
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body.theme-glass-light .order-load-more strong {
  color: #102033;
}

body.theme-glass-light .order-load-complete {
  color: #047857;
}

body.theme-glass-light .sort-header span,
body.theme-glass-light .order-product-cell a,
body.theme-glass-light .table-link {
  color: #2563eb;
}

body.theme-glass-light .task-summary-card::after {
  background: rgba(47, 125, 246, 0.13);
}

body.theme-glass-light .task-card,
body.theme-glass-light .quick-action-button,
body.theme-glass-light .drawer-field,
body.theme-glass-light .operation-log-item,
body.theme-glass-light .metric-mini,
body.theme-glass-light .advisor-card,
body.theme-glass-light .pipeline-node,
body.theme-glass-light .pipeline-box,
body.theme-glass-light .column-config-actions,
body.theme-glass-light .column-config-count,
body.theme-glass-light .column-order-panel,
body.theme-glass-light .column-order-item,
body.theme-glass-light .column-config-group,
body.theme-glass-light .column-check,
body.theme-glass-light .sales-trend.empty {
  background: rgba(255, 255, 255, 0.48);
}

body.theme-glass-light .price-pair,
body.theme-glass-light .commission-type,
body.theme-glass-light .mlm-sku,
body.theme-glass-light .trend-tooltip strong,
body.theme-glass-light .column-order-head h4,
body.theme-glass-light .column-config-group h4 {
  color: var(--text);
}

body.theme-glass-light .product-link {
  color: #1256d8;
}

body.theme-glass-light .copy-value-button {
  color: #1256d8;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

body.theme-glass-light .copy-value-button:hover {
  color: #0f3f9b;
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.34);
}

body.theme-glass-light .sales-trend-area {
  fill: rgba(47, 125, 246, 0.14);
}

body.theme-glass-light .sales-trend-line {
  stroke: #2f7df6;
}

body.theme-glass-light .sales-trend circle {
  fill: #2f7df6;
}

body.theme-glass-light .trend-tooltip {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

body.theme-glass-light .trend-tooltip strong.positive-money {
  color: #12813a;
}

body.theme-glass-light .trend-tooltip strong.negative-money {
  color: #c0263d;
}

body.theme-glass-light .field-help-popover {
  color: #172033;
  border-color: rgba(47, 125, 246, 0.24);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 80px rgba(59, 88, 128, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.theme-glass-light .floating-field-help-popover::before {
  border-color: rgba(47, 125, 246, 0.24);
  background: rgba(255, 255, 255, 0.88);
}

body.theme-glass-light .field-help-title {
  color: #14213a;
}

body.theme-glass-light .field-help-desc,
body.theme-glass-light .field-help-value {
  color: #52657e;
}

body.theme-glass-light .field-help-label,
body.theme-glass-light .field-help-footer {
  color: #6b7f99;
}

body.theme-glass-light .field-help-code {
  color: #18345e;
  border-color: rgba(99, 122, 158, 0.18);
  background: rgba(232, 242, 255, 0.66);
}

body.theme-glass-light .field-help-value {
  border-color: rgba(99, 122, 158, 0.14);
  background: rgba(255, 255, 255, 0.52);
}

body.theme-glass-light .field-help-footer {
  border-top-color: rgba(99, 122, 158, 0.14);
}

body.theme-glass-light .trend-tooltip div,
body.theme-glass-light .trend-tooltip-row,
body.theme-glass-light .column-config-actions,
body.theme-glass-light .column-check {
  color: var(--muted);
}

body.theme-glass-light .column-order-head span {
  color: #1256d8;
  border-color: rgba(47, 125, 246, 0.3);
  background: rgba(219, 234, 254, 0.72);
}

body.theme-glass-light .column-order-item:hover {
  border-color: rgba(47, 125, 246, 0.36);
  background: rgba(232, 242, 255, 0.72);
}

body.theme-glass-light .column-order-item.is-drop-target {
  border-color: rgba(20, 184, 166, 0.5);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(47, 125, 246, 0.16)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

body.theme-glass-light .column-order-button {
  color: #52657e;
  border-color: rgba(99, 122, 158, 0.18);
  background: rgba(255, 255, 255, 0.58);
}

body.theme-glass-light .date-range-popover {
  color: var(--text);
  border-color: rgba(117, 145, 182, 0.24);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(238, 247, 255, 0.9));
  box-shadow: 0 24px 54px rgba(44, 78, 125, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body.theme-glass-light .date-range-nav,
body.theme-glass-light .date-range-jump select,
body.theme-glass-light .date-range-secondary {
  color: var(--text);
  border-color: rgba(117, 145, 182, 0.24);
  background: rgba(255, 255, 255, 0.58);
}

body.theme-glass-light .date-range-day.is-outside-month {
  color: rgba(100, 116, 139, 0.42);
}

body.theme-glass-light .date-range-day.is-in-range {
  color: #1e3a8a;
  background: rgba(59, 130, 246, 0.14);
}

body.theme-glass-light .column-order-button:hover:not(:disabled) {
  color: #1256d8;
  border-color: rgba(47, 125, 246, 0.32);
  background: rgba(219, 234, 254, 0.86);
}

body.theme-glass-light .column-check.is-active {
  color: #1256d8;
  border-color: rgba(47, 125, 246, 0.36);
  background: rgba(219, 234, 254, 0.86);
}

body.theme-glass-light .task-card:hover {
  border-color: rgba(47, 125, 246, 0.34);
  background: rgba(232, 242, 255, 0.72);
}

body.theme-glass-light .task-card {
  border-left-width: 4px;
}

body.theme-glass-light .task-card.high,
body.theme-glass-light .task-card.high:hover {
  border-left-color: var(--red);
}

body.theme-glass-light .task-card.medium,
body.theme-glass-light .task-card.medium:hover {
  border-left-color: var(--amber);
}

body.theme-glass-light .task-card.low,
body.theme-glass-light .task-card.low:hover {
  border-left-color: var(--green);
}

body.theme-glass-light .wide-table th,
body.theme-glass-light .wide-table td,
body.theme-glass-light .wide-table th:nth-child(1),
body.theme-glass-light .wide-table td:nth-child(1),
body.theme-glass-light .wide-table th:nth-child(2),
body.theme-glass-light .wide-table td:nth-child(2),
body.theme-glass-light .wide-table th:nth-child(3),
body.theme-glass-light .wide-table td:nth-child(3),
body.theme-glass-light .wide-table th:nth-child(4),
body.theme-glass-light .wide-table td:nth-child(4),
body.theme-glass-light .wide-table th:last-child,
body.theme-glass-light .wide-table td:last-child {
  background: rgba(255, 255, 255, 0.88);
}

body.theme-glass-light .cell-stack strong {
  color: #102342;
}

body.theme-glass-light .cell-stack span,
body.theme-glass-light .muted-text {
  color: #5d7190;
}

body.theme-glass-light .ad-products-button {
  color: #10284a;
  border-color: rgba(47, 125, 246, 0.32);
  background:
    radial-gradient(circle at 18% 50%, rgba(47, 125, 246, 0.14), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(219, 234, 254, 0.7));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(37, 99, 235, 0.12);
}

body.theme-glass-light .ad-products-button::after {
  border-color: rgba(37, 99, 235, 0.58);
}

body.theme-glass-light .ad-products-button:hover,
body.theme-glass-light .ad-products-button:focus-visible {
  color: #0f172a;
  border-color: rgba(47, 125, 246, 0.62);
  background:
    radial-gradient(circle at 18% 50%, rgba(47, 125, 246, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(239, 246, 255, 0.98), rgba(191, 219, 254, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 4px rgba(47, 125, 246, 0.1),
    0 10px 22px rgba(37, 99, 235, 0.16);
}

body.theme-glass-light .ad-inline-edit-button {
  color: #1f6fe5;
  border-color: rgba(47, 125, 246, 0.3);
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.72), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(219, 234, 254, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 6px 14px rgba(37, 99, 235, 0.1);
}

body.theme-glass-light .ad-inline-edit-button:hover,
body.theme-glass-light .ad-inline-edit-button:focus-visible {
  color: #eff6ff;
  border-color: rgba(47, 125, 246, 0.68);
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.38), transparent 36%),
    linear-gradient(145deg, rgba(59, 130, 246, 0.92), rgba(29, 78, 216, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 0 0 4px rgba(47, 125, 246, 0.12),
    0 0 20px rgba(47, 125, 246, 0.28);
}

body.theme-glass-light .ad-status-chip {
  border-color: rgba(99, 116, 139, 0.18);
  background: rgba(241, 245, 249, 0.82);
  color: #475569;
}

body.theme-glass-light .ad-status-toggle {
  border-color: rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(226, 232, 240, 0.48)),
    rgba(241, 245, 249, 0.74);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.82),
    inset 0 -8px 14px rgba(148, 163, 184, 0.18),
    0 8px 18px rgba(15, 23, 42, 0.1);
}

body.theme-glass-light .ad-status-chip.is-active {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(220, 252, 231, 0.88);
  color: #15803d;
}

body.theme-glass-light .ad-status-toggle.is-active {
  border-color: rgba(47, 125, 246, 0.52);
  background:
    radial-gradient(circle at 27% 18%, rgba(255, 255, 255, 0.5), transparent 34%),
    linear-gradient(135deg, rgba(73, 154, 255, 0.96), rgba(31, 93, 238, 0.96));
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.55),
    inset 0 -10px 16px rgba(29, 78, 216, 0.24),
    0 0 0 1px rgba(96, 165, 250, 0.16),
    0 0 24px rgba(47, 125, 246, 0.34),
    0 8px 20px rgba(37, 99, 235, 0.22);
}

body.theme-glass-light .ad-status-chip.is-paused {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(254, 243, 199, 0.9);
  color: #92400e;
}

body.theme-glass-light .ad-status-toggle.is-paused {
  border-color: rgba(148, 163, 184, 0.3);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.76), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(226, 232, 240, 0.5));
}

body.theme-glass-light .ad-products-shell {
  border-color: rgba(47, 125, 246, 0.14);
  background: rgba(255, 255, 255, 0.46);
}

body.theme-glass-light tbody tr:hover,
body.theme-glass-light tbody tr.is-selected,
body.theme-glass-light tr.is-previewed {
  background: rgba(47, 125, 246, 0.1);
}

body.theme-glass-light .drawer-backdrop,
body.theme-glass-light .modal-backdrop {
  background: rgba(197, 214, 236, 0.46);
}

body.theme-glass-light .toast {
  color: #0f2748;
  border-color: rgba(47, 125, 246, 0.72);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(33, 82, 150, 0.22), 0 0 0 1px rgba(47, 125, 246, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

#pageRoot[data-page="ads"] {
  gap: 10px;
  padding: 12px 16px 16px;
}

#pageRoot[data-page="ads"] .page-head {
  align-items: center;
}

#pageRoot[data-page="ads"] .page-head h2 {
  color: #f8fbff;
  font-weight: 700;
}

#pageRoot[data-page="ads"] .page-head p {
  color: #83a6ce;
}

#pageRoot[data-page="ads"] .page-actions .secondary-button {
  min-height: 38px;
  border-color: rgba(75, 119, 184, 0.52);
  border-radius: 8px;
  color: #dceaff;
  background:
    linear-gradient(180deg, rgba(17, 35, 58, 0.9), rgba(8, 18, 32, 0.9)),
    rgba(9, 21, 37, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

#pageRoot[data-page="ads"] .page-actions .secondary-button:hover,
#pageRoot[data-page="ads"] .page-actions .secondary-button:focus-visible {
  border-color: rgba(87, 152, 255, 0.82);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(27, 56, 93, 0.98), rgba(11, 26, 48, 0.98)),
    rgba(18, 39, 68, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 3px rgba(47, 125, 246, 0.12);
}

#pageRoot[data-page="ads"] .kpi-grid {
  gap: 10px;
}

#pageRoot[data-page="ads"] .kpi-card {
  min-height: 104px;
  padding: 13px 14px;
  border-color: rgba(44, 80, 125, 0.82);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 125, 246, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 31, 50, 0.96), rgba(7, 18, 32, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

#pageRoot[data-page="ads"] .kpi-title {
  color: #e8f1ff;
  font-size: 14px;
}

#pageRoot[data-page="ads"] .kpi-value {
  margin-top: 10px;
  color: #ffffff;
  font-size: 24px;
  letter-spacing: 0;
}

#pageRoot[data-page="ads"] .kpi-meta {
  margin-top: 12px;
  font-size: 11px;
}

#pageRoot[data-page="ads"] .ads-workspace {
  gap: 10px;
}

#pageRoot[data-page="ads"] .ads-workspace > .panel-stack {
  gap: 10px;
}

#pageRoot[data-page="ads"] .ads-workspace > .panel-stack > .panel {
  border-color: rgba(44, 80, 125, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 27, 45, 0.97), rgba(7, 18, 32, 0.97)),
    rgba(8, 20, 35, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 42px rgba(0, 0, 0, 0.24);
}

#pageRoot[data-page="ads"] .ads-workspace > .panel-stack > .panel:first-child {
  padding: 0;
  overflow: hidden;
}

#pageRoot[data-page="ads"] .ads-workspace > .panel-stack > .panel:first-child .panel-header {
  min-height: 52px;
  margin: 0;
  padding: 0 14px;
  border-bottom: 1px solid rgba(55, 93, 139, 0.58);
  background:
    radial-gradient(circle at 18% 0%, rgba(47, 125, 246, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(18, 37, 61, 0.88), rgba(11, 27, 47, 0.88));
}

#pageRoot[data-page="ads"] .ads-workspace .panel:not(:first-child) .panel-header {
  margin-bottom: 10px;
}

#pageRoot[data-page="ads"] .panel-title {
  color: #f3f8ff;
  font-size: 16px;
  font-weight: 700;
}

#pageRoot[data-page="ads"] .info-dot {
  width: 15px;
  height: 15px;
  color: #88a8cf;
  border-color: rgba(136, 168, 207, 0.56);
}

#pageRoot[data-page="ads"] .ad-detail-shell {
  max-height: min(66vh, 690px);
  border: 0;
  border-radius: 0;
  background: rgba(7, 18, 32, 0.98);
}

#pageRoot[data-page="ads"] .ad-detail-table {
  min-width: 2360px;
  border-collapse: separate;
  border-spacing: 0;
}

#pageRoot[data-page="ads"] .ad-detail-table th,
#pageRoot[data-page="ads"] .ad-detail-table td {
  height: 56px;
  padding: 8px 10px;
  border-bottom-color: rgba(52, 82, 119, 0.55);
  font-size: 12px;
  vertical-align: middle;
}

#pageRoot[data-page="ads"] .ad-detail-table th {
  color: #9eb7d6;
  background:
    linear-gradient(180deg, rgba(19, 40, 67, 0.98), rgba(13, 29, 51, 0.98));
  font-weight: 600;
}

#pageRoot[data-page="ads"] .ad-detail-table td {
  color: #eef6ff;
  background: rgba(9, 22, 38, 0.98);
}

#pageRoot[data-page="ads"] .ad-detail-table tbody tr:nth-child(even) td {
  background: rgba(10, 25, 43, 0.98);
}

#pageRoot[data-page="ads"] .ad-detail-table tbody tr:hover td {
  background: rgba(18, 42, 72, 0.98);
}

#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(-n + 4),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(-n + 4) {
  border-right: 1px solid rgba(52, 82, 119, 0.28);
  background:
    linear-gradient(180deg, rgba(13, 29, 51, 0.99), rgba(8, 20, 36, 0.99));
}

#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(1),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(1) {
  width: 96px;
  min-width: 96px;
}

#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(2),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(2) {
  left: 96px;
  width: 72px;
  min-width: 72px;
  text-align: center;
}

#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(3),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(3) {
  left: 168px;
  width: 138px;
  min-width: 138px;
}

#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(4),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(4) {
  left: 306px;
  width: 136px;
  min-width: 136px;
}

#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(4) {
  max-width: 136px;
}

#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(n + 5),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(n + 5) {
  min-width: 82px;
  text-align: center;
}

#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(5),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(5),
#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(6),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(6) {
  min-width: 104px;
}

#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(10),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(10),
#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(16),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(16),
#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(17),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(17),
#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(18),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(18),
#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(19),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(19),
#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(22),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(22),
#pageRoot[data-page="ads"] .ad-detail-table th:nth-child(23),
#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(23) {
  min-width: 112px;
}

#pageRoot[data-page="ads"] .ad-detail-table th:last-child,
#pageRoot[data-page="ads"] .ad-detail-table td:last-child {
  position: static;
  right: auto;
  width: auto;
  min-width: 82px;
}

#pageRoot[data-page="ads"] .ad-detail-table td:nth-child(n + 7) {
  font-family: var(--mono);
  font-size: 12px;
}

#pageRoot[data-page="ads"] .cell-stack {
  gap: 4px;
}

#pageRoot[data-page="ads"] .cell-stack strong {
  color: #f6fbff;
  font-size: 12px;
  font-weight: 700;
}

#pageRoot[data-page="ads"] .cell-stack span,
#pageRoot[data-page="ads"] .muted-text {
  color: #8fb0d4;
  font-size: 10px;
}

#pageRoot[data-page="ads"] .product-thumb,
body[data-page="ads"] .ad-products-list .product-thumb {
  width: 42px;
  height: 42px;
  border-color: rgba(134, 166, 205, 0.42);
  border-radius: 8px;
  background: rgba(226, 237, 249, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

#pageRoot[data-page="ads"] .product-thumb-button,
body[data-page="ads"] .ad-products-list .product-thumb-button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

#pageRoot[data-page="ads"] .ad-campaign-cell {
  color: #e9f4ff;
}

#pageRoot[data-page="ads"] .ad-status-toggle {
  width: 56px;
  height: 30px;
  border-color: rgba(79, 132, 221, 0.58);
  background:
    linear-gradient(180deg, rgba(27, 47, 75, 0.98), rgba(13, 23, 38, 0.98));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 -8px 14px rgba(0, 0, 0, 0.3),
    0 6px 16px rgba(0, 0, 0, 0.18);
}

#pageRoot[data-page="ads"] .ad-status-toggle.is-active {
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(180deg, #4e9dff, #1e5de6);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.36),
    inset 0 -8px 14px rgba(12, 38, 123, 0.26),
    0 0 0 4px rgba(47, 125, 246, 0.13),
    0 0 22px rgba(47, 125, 246, 0.48);
}

#pageRoot[data-page="ads"] .ad-status-toggle-knob {
  width: 24px;
  height: 24px;
}

#pageRoot[data-page="ads"] .ad-status-chip {
  min-height: 28px;
  border-radius: 999px;
  font-size: 11px;
}

#pageRoot[data-page="ads"] .ad-products-button {
  min-width: 56px;
  min-height: 30px;
  padding: 0 10px;
  border-color: rgba(69, 128, 224, 0.66);
  color: #f6fbff;
  background:
    linear-gradient(180deg, rgba(28, 54, 93, 0.95), rgba(11, 24, 43, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 8px 18px rgba(0, 0, 0, 0.18);
  font-size: 13px;
}

#pageRoot[data-page="ads"] .ad-products-button::before {
  width: 8px;
  height: 8px;
}

#pageRoot[data-page="ads"] .ad-products-button::after {
  width: 6px;
  height: 6px;
}

#pageRoot[data-page="ads"] .ad-inline-edit {
  justify-content: center;
}

#pageRoot[data-page="ads"] .ad-inline-edit-button {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
}

#pageRoot[data-page="ads"] .ad-inline-edit-button svg {
  width: 14px;
  height: 14px;
}

body[data-page="ads"] .modal-backdrop {
  background: rgba(1, 8, 18, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body[data-page="ads"] .ad-products-modal,
body[data-page="ads"] .ad-campaign-edit-modal {
  border-color: rgba(67, 116, 183, 0.88);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 100%, rgba(47, 125, 246, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(16, 32, 54, 0.98), rgba(7, 17, 31, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.48);
}

body[data-page="ads"] .ad-products-modal {
  width: min(740px, calc(100vw - 32px));
}

body[data-page="ads"] .ad-products-shell {
  max-height: min(58vh, 520px);
  border-color: rgba(53, 86, 127, 0.72);
  border-radius: 8px;
  background: rgba(8, 20, 35, 0.78);
}

body[data-page="ads"] .ad-products-list {
  min-width: 720px;
}

body[data-page="ads"] .ad-products-list th {
  color: #9eb7d6;
  background: rgba(17, 36, 60, 0.98);
}

body[data-page="ads"] .ad-products-list td {
  color: #edf6ff;
  background: rgba(9, 22, 38, 0.96);
}

body[data-page="ads"] .ad-products-list th,
body[data-page="ads"] .ad-products-list td {
  height: 48px;
  border-bottom-color: rgba(52, 82, 119, 0.55);
}

body.theme-glass-light #pageRoot[data-page="ads"] .page-head h2 {
  color: #102342;
}

body.theme-glass-light #pageRoot[data-page="ads"] .page-head p {
  color: #5d7190;
}

body.theme-glass-light #pageRoot[data-page="ads"] .kpi-card,
body.theme-glass-light #pageRoot[data-page="ads"] .ads-workspace > .panel-stack > .panel {
  border-color: rgba(47, 125, 246, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 249, 255, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 20px 50px rgba(75, 111, 166, 0.16);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ads-workspace > .panel-stack > .panel:first-child .panel-header {
  border-bottom-color: rgba(47, 125, 246, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(235, 244, 255, 0.56));
}

body.theme-glass-light #pageRoot[data-page="ads"] .panel-title,
body.theme-glass-light #pageRoot[data-page="ads"] .kpi-title,
body.theme-glass-light #pageRoot[data-page="ads"] .kpi-value {
  color: #102342;
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-detail-shell {
  background: rgba(255, 255, 255, 0.5);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-detail-table th {
  color: #607696;
  background: rgba(239, 246, 255, 0.94);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-detail-table td,
body.theme-glass-light #pageRoot[data-page="ads"] .ad-detail-table tbody tr:nth-child(even) td {
  color: #122845;
  background: rgba(255, 255, 255, 0.86);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-detail-table tbody tr:hover td {
  background: rgba(232, 242, 255, 0.94);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-detail-table th:nth-child(-n + 4),
body.theme-glass-light #pageRoot[data-page="ads"] .ad-detail-table td:nth-child(-n + 4) {
  background: rgba(248, 251, 255, 0.98);
}

body.theme-glass-light #pageRoot[data-page="ads"] .cell-stack strong,
body.theme-glass-light #pageRoot[data-page="ads"] .ad-campaign-cell {
  color: #102342;
}

body.theme-glass-light[data-page="ads"] .ad-products-modal,
body.theme-glass-light[data-page="ads"] .ad-campaign-edit-modal {
  background: rgba(255, 255, 255, 0.92);
}

#pageRoot[data-page="ads"] .ad-status-toggle {
  width: 60px;
  height: 28px;
  min-width: 60px;
  padding: 2px;
  border-color: rgba(91, 117, 151, 0.76);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(36, 47, 68, 0.86), rgba(24, 31, 47, 0.94));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    inset 0 -7px 14px rgba(0, 0, 0, 0.26),
    0 4px 16px rgba(0, 0, 0, 0.28);
}

#pageRoot[data-page="ads"] .ad-status-toggle::before {
  inset: 1px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 54%);
  opacity: 0.72;
}

#pageRoot[data-page="ads"] .ad-status-toggle-knob {
  width: 24px;
  height: 24px;
  background:
    radial-gradient(circle at 30% 24%, #f8fbff 0 24%, #d5deea 62%, #7b879a 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.62),
    inset 0 -5px 10px rgba(15, 23, 42, 0.24),
    0 4px 12px rgba(0, 0, 0, 0.36);
}

#pageRoot[data-page="ads"] .ad-status-toggle.is-active {
  border-color: rgba(124, 179, 255, 0.96);
  background:
    linear-gradient(180deg, #3b82f6, #1d4ed8);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.34),
    inset 0 -8px 14px rgba(16, 61, 178, 0.22),
    0 0 0 1px rgba(59, 130, 246, 0.2),
    0 4px 16px rgba(37, 99, 235, 0.34),
    0 0 22px rgba(47, 125, 246, 0.46);
}

#pageRoot[data-page="ads"] .ad-status-toggle.is-active:hover {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.38),
    inset 0 -8px 14px rgba(16, 61, 178, 0.2),
    0 0 0 2px rgba(124, 179, 255, 0.28),
    0 5px 18px rgba(37, 99, 235, 0.4),
    0 0 28px rgba(47, 125, 246, 0.62);
}

#pageRoot[data-page="ads"] .ad-status-toggle:focus-visible {
  outline: 0;
  border-color: rgba(147, 197, 253, 1);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.34),
    0 0 0 3px rgba(59, 130, 246, 0.24),
    0 0 0 6px rgba(59, 130, 246, 0.12),
    0 0 24px rgba(47, 125, 246, 0.5);
}

#pageRoot[data-page="ads"] .ad-status-toggle:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

#pageRoot[data-page="ads"] .ad-status-toggle:disabled {
  border-color: rgba(100, 116, 139, 0.45);
  background:
    linear-gradient(180deg, rgba(55, 65, 81, 0.5), rgba(31, 41, 55, 0.55));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

#pageRoot[data-page="ads"] .ad-status-toggle:disabled .ad-status-toggle-knob {
  background:
    radial-gradient(circle at 30% 24%, rgba(226, 232, 240, 0.76), rgba(100, 116, 139, 0.72));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.26);
}

#pageRoot[data-page="ads"] .ad-inline-edit-button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-color: rgba(70, 126, 216, 0.58);
  border-radius: 8px;
  color: #3b82f6;
  background:
    linear-gradient(180deg, rgba(18, 37, 64, 0.86), rgba(12, 27, 48, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 16px rgba(37, 99, 235, 0.16);
}

#pageRoot[data-page="ads"] .ad-inline-edit-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.38));
}

#pageRoot[data-page="ads"] .ad-inline-edit-button:hover {
  border-color: rgba(59, 130, 246, 0.95);
  color: #60a5fa;
  background:
    linear-gradient(180deg, rgba(29, 78, 216, 0.42), rgba(13, 39, 83, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(37, 99, 235, 0.22),
    0 0 20px rgba(37, 99, 235, 0.3);
}

#pageRoot[data-page="ads"] .ad-inline-edit-button:focus-visible {
  outline: 0;
  border-color: rgba(96, 165, 250, 1);
  color: #60a5fa;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.24),
    0 0 18px rgba(37, 99, 235, 0.42);
}

#pageRoot[data-page="ads"] .ad-inline-edit-button:active {
  transform: translateY(0);
  background:
    linear-gradient(180deg, rgba(20, 55, 132, 0.74), rgba(10, 28, 68, 0.86));
}

#pageRoot[data-page="ads"] .ad-inline-edit-button:disabled {
  color: #94a3b8;
  border-color: rgba(100, 116, 139, 0.32);
  background: rgba(51, 65, 85, 0.28);
  box-shadow: none;
}

#pageRoot[data-page="ads"] .ad-products-button {
  min-width: 56px;
  min-height: 28px;
  padding: 0 12px;
  gap: 8px;
  border-color: rgba(69, 128, 224, 0.72);
  border-radius: 999px;
  color: #eaf4ff;
  background:
    radial-gradient(circle at 22% 50%, rgba(96, 165, 250, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(19, 45, 82, 0.9), rgba(10, 25, 48, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 16px rgba(37, 99, 235, 0.16);
  font-size: 14px;
  font-weight: 700;
}

#pageRoot[data-page="ads"] .ad-products-button::before {
  width: 8px;
  height: 8px;
  background: #60a5fa;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.9);
}

#pageRoot[data-page="ads"] .ad-products-button::after {
  width: 7px;
  height: 7px;
  border-color: rgba(147, 197, 253, 0.86);
}

#pageRoot[data-page="ads"] .ad-products-button:hover {
  border-color: rgba(59, 130, 246, 0.96);
  color: #ffffff;
  background:
    radial-gradient(circle at 22% 50%, rgba(96, 165, 250, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(30, 64, 175, 0.66), rgba(16, 43, 98, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(37, 99, 235, 0.18),
    0 0 22px rgba(37, 99, 235, 0.3);
}

#pageRoot[data-page="ads"] .ad-products-button:focus-visible {
  outline: 0;
  border-color: rgba(96, 165, 250, 1);
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.24),
    0 0 18px rgba(37, 99, 235, 0.42);
}

#pageRoot[data-page="ads"] .ad-products-button:active {
  transform: translateY(0);
  background:
    radial-gradient(circle at 22% 50%, rgba(59, 130, 246, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(29, 78, 216, 0.54), rgba(13, 41, 93, 0.82));
}

#pageRoot[data-page="ads"] .ad-products-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: saturate(0.35);
  transform: none;
}

body[data-page="ads"] .ad-products-modal-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

body[data-page="ads"] .ad-products-modal-title h3 {
  margin: 4px 0 6px;
}

body[data-page="ads"] .ad-products-modal-title strong {
  color: #60a5fa;
  font-family: var(--mono);
  font-size: 14px;
}

body[data-page="ads"] .ad-products-list {
  border-collapse: separate;
  border-spacing: 0 8px;
  padding: 0 8px 8px;
}

body[data-page="ads"] .ad-products-list th {
  height: 34px;
  border-bottom: 0;
  background: transparent;
}

body[data-page="ads"] .ad-products-list td {
  height: 50px;
  border-top: 1px solid rgba(57, 91, 135, 0.62);
  border-bottom: 1px solid rgba(57, 91, 135, 0.62);
  background: rgba(14, 32, 55, 0.68);
}

body[data-page="ads"] .ad-products-list td:first-child {
  border-left: 1px solid rgba(57, 91, 135, 0.62);
  border-radius: 10px 0 0 10px;
}

body[data-page="ads"] .ad-products-list td:last-child {
  border-right: 1px solid rgba(57, 91, 135, 0.62);
  border-radius: 0 10px 10px 0;
}

body.theme-glass-light #pageRoot[data-page="ads"] .page-actions .secondary-button {
  border-color: rgba(196, 211, 232, 0.86);
  color: #17345c;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(239, 246, 255, 0.64));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(79, 112, 156, 0.14);
}

body.theme-glass-light #pageRoot[data-page="ads"] .page-actions .secondary-button:hover,
body.theme-glass-light #pageRoot[data-page="ads"] .page-actions .secondary-button:focus-visible {
  border-color: rgba(59, 130, 246, 0.46);
  color: #0f2f67;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(219, 234, 254, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 3px rgba(59, 130, 246, 0.1),
    0 12px 28px rgba(79, 112, 156, 0.18);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-status-toggle {
  border-color: rgba(203, 215, 233, 0.95);
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.9), rgba(235, 242, 252, 0.78));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.94),
    inset 0 -8px 14px rgba(148, 163, 184, 0.12),
    0 8px 18px rgba(63, 90, 132, 0.14);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-status-toggle::before {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), transparent 58%);
  opacity: 1;
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-status-toggle-knob {
  background:
    radial-gradient(circle at 30% 24%, #ffffff 0 28%, #f3f7fc 58%, #d9e3f1 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.96),
    inset 0 -5px 10px rgba(148, 163, 184, 0.16),
    0 5px 14px rgba(91, 117, 151, 0.24);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-status-toggle.is-active {
  border-color: rgba(96, 165, 250, 0.72);
  background:
    linear-gradient(180deg, #4d9dff, #2563eb);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.44),
    inset 0 -8px 14px rgba(37, 99, 235, 0.24),
    0 0 0 1px rgba(59, 130, 246, 0.14),
    0 8px 18px rgba(37, 99, 235, 0.22),
    0 0 20px rgba(47, 107, 255, 0.28);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-status-toggle:hover {
  border-color: rgba(96, 165, 250, 0.56);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    0 0 0 3px rgba(59, 130, 246, 0.08),
    0 10px 22px rgba(63, 90, 132, 0.16);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-status-toggle.is-active:hover {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.46),
    inset 0 -8px 14px rgba(37, 99, 235, 0.22),
    0 0 0 3px rgba(59, 130, 246, 0.12),
    0 8px 20px rgba(37, 99, 235, 0.26),
    0 0 24px rgba(47, 107, 255, 0.34);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-status-toggle:focus-visible {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.82),
    0 0 0 3px rgba(47, 107, 255, 0.28),
    0 0 0 6px rgba(47, 107, 255, 0.12),
    0 10px 22px rgba(37, 99, 235, 0.18);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-status-toggle:disabled {
  border-color: rgba(203, 213, 225, 0.62);
  background:
    linear-gradient(180deg, rgba(238, 242, 248, 0.64), rgba(226, 233, 244, 0.54));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.72),
    0 4px 12px rgba(91, 117, 151, 0.08);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-status-toggle:disabled .ad-status-toggle-knob {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.78), rgba(203, 213, 225, 0.72));
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-inline-edit-button {
  border-color: rgba(198, 216, 241, 0.92);
  color: #2563eb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(239, 246, 255, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 20px rgba(79, 112, 156, 0.14);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-inline-edit-button:hover {
  border-color: rgba(59, 130, 246, 0.44);
  color: #2563eb;
  background:
    linear-gradient(180deg, rgba(243, 248, 255, 0.96), rgba(219, 234, 254, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 0 0 3px rgba(59, 130, 246, 0.1),
    0 10px 24px rgba(37, 99, 235, 0.14);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-inline-edit-button:active {
  background:
    linear-gradient(180deg, rgba(219, 234, 254, 0.94), rgba(191, 219, 254, 0.68));
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-inline-edit-button:focus-visible {
  box-shadow:
    0 0 0 3px rgba(47, 107, 255, 0.28),
    0 0 0 6px rgba(47, 107, 255, 0.12),
    0 10px 22px rgba(37, 99, 235, 0.16);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-inline-edit-button:disabled {
  color: #94a3b8;
  border-color: rgba(203, 213, 225, 0.62);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.62), rgba(226, 232, 240, 0.52));
  box-shadow: 0 4px 12px rgba(91, 117, 151, 0.08);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-products-button {
  border-color: rgba(199, 216, 240, 0.94);
  color: #2563eb;
  background:
    radial-gradient(circle at 20% 50%, rgba(47, 107, 255, 0.12), transparent 27%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.66));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 20px rgba(79, 112, 156, 0.14);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-products-button::before {
  background: #60a5fa;
  box-shadow: 0 0 10px rgba(47, 107, 255, 0.5);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-products-button::after {
  border-color: rgba(37, 99, 235, 0.68);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-products-button:hover {
  border-color: rgba(59, 130, 246, 0.48);
  color: #1d4ed8;
  background:
    radial-gradient(circle at 20% 50%, rgba(47, 107, 255, 0.17), transparent 28%),
    linear-gradient(180deg, rgba(243, 248, 255, 0.98), rgba(219, 234, 254, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 3px rgba(59, 130, 246, 0.09),
    0 10px 24px rgba(37, 99, 235, 0.14);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-products-button:active {
  background:
    radial-gradient(circle at 20% 50%, rgba(47, 107, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(219, 234, 254, 0.94), rgba(191, 219, 254, 0.68));
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-products-button:focus-visible {
  box-shadow:
    0 0 0 3px rgba(47, 107, 255, 0.28),
    0 0 0 6px rgba(47, 107, 255, 0.12),
    0 10px 22px rgba(37, 99, 235, 0.16);
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-products-button:disabled {
  color: #94a3b8;
  border-color: rgba(203, 213, 225, 0.62);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.62), rgba(226, 232, 240, 0.52));
  box-shadow: 0 4px 12px rgba(91, 117, 151, 0.08);
}

body.theme-glass-light[data-page="ads"] .modal-backdrop {
  background: rgba(226, 237, 249, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.theme-glass-light[data-page="ads"] .ad-products-modal,
body.theme-glass-light[data-page="ads"] .ad-campaign-edit-modal {
  border-color: rgba(199, 216, 240, 0.96);
  background:
    radial-gradient(circle at 50% 100%, rgba(47, 107, 255, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 249, 255, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 24px 60px rgba(79, 112, 156, 0.22);
}

body.theme-glass-light[data-page="ads"] .ad-products-modal-title strong {
  color: #2563eb;
}

body.theme-glass-light[data-page="ads"] .ad-products-shell {
  border-color: rgba(199, 216, 240, 0.82);
  background: rgba(255, 255, 255, 0.42);
}

body.theme-glass-light[data-page="ads"] .ad-products-list th {
  color: #6a7e9c;
}

body.theme-glass-light[data-page="ads"] .ad-products-list td {
  color: #122845;
  border-color: rgba(212, 225, 243, 0.92);
  background: rgba(255, 255, 255, 0.72);
}

/* Final ad-control glass pass based on the supplied control specs. */
#pageRoot[data-page="ads"] .ad-status-toggle,
#pageRoot[data-page="ads"] .ad-inline-edit-button,
#pageRoot[data-page="ads"] .ad-products-button,
body[data-page="ads"] .ad-products-modal,
body[data-page="ads"] .ad-campaign-edit-modal,
body[data-page="ads"] .ad-products-shell,
body[data-page="ads"] .ad-products-list td {
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
}

#pageRoot[data-page="ads"] .ad-inline-edit-button {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 6px;
}

#pageRoot[data-page="ads"] .ad-inline-edit-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
}

#pageRoot[data-page="ads"] .ad-products-button {
  height: 28px;
  min-height: 28px;
  border-radius: 14px;
}

body.theme-glass-light #pageRoot[data-page="ads"] .ad-status-toggle,
body.theme-glass-light #pageRoot[data-page="ads"] .ad-inline-edit-button,
body.theme-glass-light #pageRoot[data-page="ads"] .ad-products-button {
  background-clip: padding-box;
}

body.theme-glass-light[data-page="ads"] .ad-products-modal,
body.theme-glass-light[data-page="ads"] .ad-campaign-edit-modal {
  background:
    radial-gradient(circle at 50% 100%, rgba(47, 107, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 249, 255, 0.72));
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}

body.theme-glass-light[data-page="ads"] .ad-products-shell {
  background: rgba(255, 255, 255, 0.34);
}

body.theme-glass-light[data-page="ads"] .ad-products-list td {
  background: rgba(255, 255, 255, 0.62);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loadingSweep {
  0% {
    transform: translateX(-120%);
  }

  52%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes operationRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes operationLivePulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.88);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes operationCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes operationBorderFlow {
  0%,
  100% {
    transform: translateX(-75%);
  }

  50% {
    transform: translateX(75%);
  }
}

@keyframes fadeOutScale {
  to {
    opacity: 0;
    transform: scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1420px) {
  .kpi-grid,
  .overview-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid,
  .two-column,
  .split-grid,
  .tag-bottom-panels,
  .inventory-bottom-panels,
  .workspace-grid,
  .decision-bottom-grid,
  .ads-bottom-grid,
  .price-layout,
  .order-region-layout,
  .task-shell {
    grid-template-columns: 1fr;
  }

  .ads-side-panel,
  .inventory-side-panel {
    position: static;
  }

  .product-analysis-support-panels {
    grid-template-columns: 1fr;
  }

  .catalog-competition-support-grid {
    grid-template-columns: 1fr;
  }

  .tag-layer-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tag-explanation-row {
    grid-template-columns: 1fr;
  }

  .task-board {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .overview-summary-grid,
  .overview-operations-stack,
  .tag-layer-map {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    width: 100%;
    max-width: 100vw;
    padding: 12px;
    overflow: hidden;
  }

  .brand {
    width: 100%;
    border-bottom: 0;
  }

  .nav-list {
    display: flex;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }

  .nav-section {
    display: flex;
    flex: 0 0 auto;
  }

  .nav-section + .nav-section {
    padding-top: 0;
    border-top: 0;
  }

  .nav-section-title {
    display: none;
  }

  .nav-section-items {
    display: flex;
    gap: 6px;
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: 120px;
  }

  .sidebar-footer {
    display: none;
  }

  .topbar {
    position: relative;
    grid-template-columns: 1fr;
  }

  .topbar-controls {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .decision-pipeline,
  .data-pipeline,
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profit-insight-grid {
    grid-template-columns: 1fr;
  }

  .task-board {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .page {
    padding: 10px;
  }

  .proposal-bulk-toolbar,
  .proposal-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .proposal-bulk-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .proposal-action-filter {
    width: 100%;
    flex-wrap: wrap;
  }

  .dashboard-loading {
    min-height: calc(100vh - 160px);
    padding: 14px;
  }

  .dashboard-loading.is-compact {
    top: auto;
    right: 10px;
    bottom: 12px;
    left: 10px;
  }

  .dashboard-loading-card,
  .dashboard-loading.is-compact .dashboard-loading-card {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 14px;
  }

  .product-profit-result-grid {
    grid-template-columns: 1fr;
  }

  .operation-loading-page,
  .module-loading-state .operation-loading-page {
    min-height: calc(100vh - 160px);
    padding: 14px;
  }

  .operation-loading-page.is-compact {
    top: auto;
    right: 10px;
    bottom: 12px;
    left: 10px;
    padding: 0;
  }

  .operation-loading-card,
  .operation-loading-page.is-compact .operation-loading-card {
    grid-template-columns: 1fr;
    width: calc(100vw - 32px);
    min-height: 0;
    padding: 28px 24px;
    gap: 22px;
    border-radius: 28px;
  }

  .operation-loading-page.is-compact .operation-loading-visual {
    display: none;
  }

  .operation-loading-orb {
    width: 142px;
    height: 142px;
  }

  .operation-loader-disc {
    width: 88px;
    height: 88px;
  }

  .operation-loader-center {
    width: 54px;
    height: 54px;
    font-size: 21px;
  }

  .operation-loading-content h2 {
    font-size: 26px;
  }

  .operation-loading-content h3 {
    font-size: 18px;
  }

  .operation-loading-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-loading.is-compact .loading-visual {
    display: none;
  }

  .page-head,
  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .kpi-grid,
  .overview-kpi-grid,
  .task-summary-grid,
  .task-board,
  .quick-action-grid,
  .quality-grid,
  .decision-pipeline,
  .data-pipeline,
  .price-advisor,
  .donut-layout {
    grid-template-columns: 1fr;
  }

  .profit-comparison-grid {
    grid-template-columns: 1fr;
  }

  .profit-donut-layout {
    justify-items: center;
  }

  .topbar-controls {
    gap: 8px;
  }

  .task-column {
    min-height: auto;
  }

  .user-menu span:not(.avatar):not([data-icon]) {
    display: none;
  }

  .chart-wrap svg {
    min-width: 620px;
  }

  .chart-wrap {
    overflow-x: auto;
  }

  .overview-toolbar,
  .overview-filter-group,
  .overview-date-inputs {
    width: 100%;
  }

  .date-range-trigger {
    width: 100%;
  }

  .date-range-popover-head {
    gap: 8px;
  }

  .date-range-jump {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    flex: 1;
    min-width: 0;
  }

  .date-range-jump select {
    min-width: 0;
    width: 100%;
  }

  .overview-store-filter {
    margin-left: 0;
  }

  .range-button-group {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }

  .proposal-toolbar,
  .proposal-pager {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-admin-layout,
  .permission-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .module-tabs {
    width: 100%;
  }

  .module-tabs button {
    flex: 1 1 0;
  }

  .form-wide {
    grid-column: auto;
  }

  .table-shell.is-wide {
    max-height: 58vh;
  }

  .inventory-workspace .table-shell.is-wide {
    height: 58vh;
    min-height: 360px;
    max-height: 58vh;
  }

  .wide-table {
    min-width: 3000px;
  }

  .listing-collection-form {
    grid-template-columns: 1fr;
  }

  .listing-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-collection-table {
    min-width: 1680px;
  }

  .product-analysis-table {
    min-width: 2400px;
  }

  .product-analysis-workspace .table-shell.is-wide {
    height: 58vh;
    min-height: 360px;
  }

  .order-query-table {
    min-width: 3800px;
  }

  .order-query-workspace .table-shell.is-wide {
    height: 58vh;
    min-height: 360px;
  }

  .order-region-controls {
    grid-auto-flow: row;
    justify-content: stretch;
  }

  .order-region-summary,
  .order-region-stat-grid,
  .order-hour-summary {
    grid-template-columns: 1fr;
  }

  .order-region-summary-meta,
  .order-hour-meta {
    text-align: left;
  }

  .order-hour-meta {
    justify-items: start;
  }

  .order-hour-bars {
    min-width: 720px;
  }

  .order-region-map {
    min-height: 250px;
  }

  .order-filter-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .column-config-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .column-config-actions .column-config-action-buttons {
    width: 100%;
  }
}

/* Boss cockpit integrated module */
.boss-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.boss-cockpit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  gap: 12px;
}

.boss-chart {
  min-height: 250px;
}

.boss-chart svg {
  height: 224px;
}

.boss-donut-layout {
  grid-template-columns: 180px minmax(0, 1fr);
}

.boss-donut-layout .donut {
  width: 170px;
}

.boss-donut-layout .donut::after {
  inset: 45px;
}

.boss-alert-row {
  align-items: flex-start;
  min-height: 42px;
}

.boss-alert-row span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.boss-alert-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.boss-pipeline {
  grid-template-columns: repeat(6, minmax(92px, 1fr));
}


@media (max-width: 1420px) {
  .boss-cockpit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .boss-kpi-grid,
  .boss-pipeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .boss-donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .boss-donut-layout .donut-list {
    width: 100%;
  }
}

/* Ad product detail modal: card layout keeps every row readable without horizontal scrolling. */
body[data-page="ads"] .ad-products-modal {
  width: min(1180px, calc(100vw - 32px));
  max-height: min(86vh, 860px);
}

body[data-page="ads"] .ad-products-shell {
  max-height: min(76vh, 720px);
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  border-color: rgba(53, 86, 127, 0.72);
  border-radius: 8px;
  background: rgba(8, 20, 35, 0.78);
}

body[data-page="ads"] .ad-products-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body[data-page="ads"] .ad-products-modal-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body[data-page="ads"] .ad-products-modal-actions,
body[data-page="ads"] .ad-product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

body[data-page="ads"] .ad-product-action-button,
body[data-page="ads"] .ad-product-create-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

body[data-page="ads"] .ad-product-action-button svg,
body[data-page="ads"] .ad-product-create-button svg {
  width: 15px;
  height: 15px;
}

body[data-page="ads"] .ad-product-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(57, 91, 135, 0.62);
  border-radius: 8px;
  background: rgba(14, 32, 55, 0.68);
}

body[data-page="ads"] .ad-product-media {
  width: 64px;
  min-width: 0;
}

body[data-page="ads"] .ad-product-media .product-thumb,
body[data-page="ads"] .ad-product-media .product-thumb-button {
  width: 58px;
  height: 58px;
  min-width: 58px;
}

body[data-page="ads"] .ad-product-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body[data-page="ads"] .ad-product-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body[data-page="ads"] .ad-product-title-row strong {
  min-width: 0;
  overflow: hidden;
  color: #f4f8ff;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="ads"] .ad-product-status {
  flex: 0 0 auto;
  color: #91a9c7;
  font-size: 12px;
}

body[data-page="ads"] .ad-product-title-row .ad-status-control-wrap {
  flex: 0 0 auto;
}

body[data-page="ads"] .ad-product-impact-note {
  color: #f8c777;
  font-size: 11px;
  line-height: 1.3;
}

body[data-page="ads"] .ad-product-identity {
  color: #9eb7d6;
}

body[data-page="ads"] .ad-product-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

body[data-page="ads"] .ad-product-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(67, 105, 150, 0.56);
  border-radius: 7px;
  background: rgba(7, 18, 32, 0.42);
}

body[data-page="ads"] .ad-product-metric span {
  color: #91a9c7;
  font-size: 11px;
}

body[data-page="ads"] .ad-product-metric strong {
  overflow-wrap: anywhere;
  color: #f8fbff;
  font-family: var(--mono);
  font-size: 13px;
}

body.theme-glass-light[data-page="ads"] .ad-products-shell {
  border-color: rgba(199, 216, 240, 0.82);
  background: rgba(255, 255, 255, 0.42);
}

body.theme-glass-light[data-page="ads"] .ad-product-card {
  border-color: rgba(212, 225, 243, 0.92);
  background: rgba(255, 255, 255, 0.74);
}

body.theme-glass-light[data-page="ads"] .ad-product-title-row strong,
body.theme-glass-light[data-page="ads"] .ad-product-metric strong {
  color: #122845;
}

body.theme-glass-light[data-page="ads"] .ad-product-status,
body.theme-glass-light[data-page="ads"] .ad-product-identity,
body.theme-glass-light[data-page="ads"] .ad-product-metric span {
  color: #6a7e9c;
}

body.theme-glass-light[data-page="ads"] .ad-product-metric {
  border-color: rgba(212, 225, 243, 0.88);
  background: rgba(246, 250, 255, 0.78);
}

body[data-page="competitors"] .competitors-workspace,
body[data-page="competitors"] .market-trends-workspace,
body[data-page="competitors"] .competitor-seed-workspace {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

body[data-page="competitors"] .market-trends-toolbar,
body[data-page="competitors"] .competitor-seed-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(80, 122, 174, 0.46);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 20, 35, 0.72), rgba(6, 16, 29, 0.48));
}

body[data-page="competitors"] .market-trends-controls {
  display: grid;
  grid-template-columns: minmax(98px, 0.38fr) minmax(150px, 0.6fr) minmax(250px, 1fr);
  gap: 10px;
  min-width: 0;
}

body[data-page="competitors"] .market-filter {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

body[data-page="competitors"] .market-filter span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

body[data-page="competitors"] .market-filter input,
body[data-page="competitors"] .market-filter select {
  width: 100%;
  height: 38px;
  min-width: 0;
  padding: 0 10px;
  color: var(--text);
  border: 1px solid rgba(108, 147, 196, 0.54);
  border-radius: 8px;
  outline: none;
  background: rgba(5, 15, 27, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-page="competitors"] .market-filter input::placeholder {
  color: #6f829b;
}

body[data-page="competitors"] .market-filter input:focus,
body[data-page="competitors"] .market-filter select:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(90, 163, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-page="competitors"] .market-trends-actions {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: flex-end;
  gap: 8px;
}

body[data-page="competitors"] .market-trends-status {
  grid-column: 1 / -1;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
}

body[data-page="competitors"] .competitor-seed-toolbar .market-trends-status {
  grid-column: auto;
}

body[data-page="competitors"] .market-trends-table-shell {
  max-height: 620px;
}

body[data-page="competitors"] .market-trends-table {
  min-width: 1180px;
}

body[data-page="competitors"] .market-trends-table th,
body[data-page="competitors"] .market-trends-table td {
  vertical-align: middle;
}

body[data-page="competitors"] .market-trends-table td {
  max-width: 260px;
}

body[data-page="competitors"] .market-trends-table th:nth-child(1),
body[data-page="competitors"] .market-trends-table td:nth-child(1) {
  width: 58px;
  max-width: 58px;
  text-align: center;
}

body[data-page="competitors"] .market-trends-table th:nth-child(2),
body[data-page="competitors"] .market-trends-table td:nth-child(2) {
  width: 72px;
  max-width: 72px;
  text-align: center;
}

body[data-page="competitors"] .market-trends-table th:nth-child(3),
body[data-page="competitors"] .market-trends-table td:nth-child(3),
body[data-page="competitors"] .market-trends-table th:nth-child(4),
body[data-page="competitors"] .market-trends-table td:nth-child(4) {
  min-width: 170px;
}

body[data-page="competitors"] .market-trends-table th:nth-child(5),
body[data-page="competitors"] .market-trends-table td:nth-child(5) {
  width: 104px;
  max-width: 104px;
}

body[data-page="competitors"] .market-trends-table th:nth-child(11),
body[data-page="competitors"] .market-trends-table td:nth-child(11) {
  min-width: 180px;
}

body[data-page="competitors"] .market-trend-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  color: #9fb7d7;
  border: 1px solid rgba(106, 147, 200, 0.38);
  border-radius: 8px;
  background: rgba(9, 23, 39, 0.78);
}

body[data-page="competitors"] .market-trend-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="competitors"] .market-trend-thumb.is-empty span {
  color: #7fa6d8;
  font-size: 16px;
  font-weight: 800;
}

body[data-page="competitors"] .market-trend-link {
  color: #7db7ff;
  font-weight: 700;
  text-decoration: none;
}

body[data-page="competitors"] .market-trend-link:hover {
  color: #b8d7ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-page="competitors"] .competitor-seed-table-shell {
  max-height: 620px;
}

body[data-page="competitors"] .competitor-seed-table {
  min-width: 1540px;
}

body[data-page="competitors"] .competitor-seed-table th,
body[data-page="competitors"] .competitor-seed-table td {
  vertical-align: middle;
}

body[data-page="competitors"] .competitor-seed-table th:nth-child(1),
body[data-page="competitors"] .competitor-seed-table td:nth-child(1),
body[data-page="competitors"] .competitor-seed-table th:nth-child(4),
body[data-page="competitors"] .competitor-seed-table td:nth-child(4) {
  min-width: 190px;
}

body[data-page="competitors"] .competitor-seed-table th:nth-child(2),
body[data-page="competitors"] .competitor-seed-table td:nth-child(2),
body[data-page="competitors"] .competitor-seed-table th:nth-child(5),
body[data-page="competitors"] .competitor-seed-table td:nth-child(5) {
  width: 72px;
  max-width: 72px;
  text-align: center;
}

body[data-page="competitors"] .competitor-seed-table th:nth-child(7),
body[data-page="competitors"] .competitor-seed-table td:nth-child(7),
body[data-page="competitors"] .competitor-seed-table th:nth-child(11),
body[data-page="competitors"] .competitor-seed-table td:nth-child(11) {
  min-width: 160px;
}

body[data-page="competitors"] .competitor-seed-identity,
body[data-page="competitors"] .competitor-seed-identity-link {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

body[data-page="competitors"] .competitor-seed-identity strong {
  color: #dcecff;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.2;
}

body[data-page="competitors"] .competitor-seed-identity small {
  max-width: 240px;
  overflow: hidden;
  color: #8ea7c6;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="competitors"] .competitor-seed-identity-link:hover strong {
  color: #8fc4ff;
}

body[data-page="competitors"] .competitor-seed-gap {
  font-family: var(--mono);
  font-weight: 800;
}

body[data-page="competitors"] .competitor-seed-gap.is-higher {
  color: #fca5a5;
}

body[data-page="competitors"] .competitor-seed-gap.is-lower {
  color: #86efac;
}

body[data-page="competitors"] .table-action-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

body[data-page="competitors"] .competitor-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  min-width: 0;
}

body[data-page="competitors"] .competitor-llm-selector {
  display: grid;
  gap: 12px;
  min-width: 0;
}

body[data-page="competitors"] .competitor-llm-selector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body[data-page="competitors"] .competitor-llm-selector-head strong {
  display: block;
  color: #dcecff;
  font-size: 13px;
}

body[data-page="competitors"] .competitor-llm-selector-head span {
  display: block;
  margin-top: 3px;
  color: #8ea7c6;
  font-size: 11px;
  line-height: 1.35;
}

body[data-page="competitors"] .competitor-llm-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

body[data-page="competitors"] .competitor-llm-group-option {
  align-items: flex-start;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(84, 125, 178, 0.38);
  border-radius: 8px;
  background: rgba(6, 18, 32, 0.48);
}

body[data-page="competitors"] .competitor-llm-group-option span {
  display: grid;
  gap: 2px;
}

body[data-page="competitors"] .competitor-llm-group-option strong {
  color: #dcecff;
  font-size: 12px;
}

body[data-page="competitors"] .competitor-llm-group-option small {
  color: #86a0bf;
  font-size: 11px;
  line-height: 1.3;
}

body[data-page="competitors"] .competitor-llm-preview {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(84, 125, 178, 0.32);
  border-radius: 8px;
  background: rgba(7, 18, 31, 0.36);
}

body[data-page="competitors"] .competitor-llm-preview code {
  max-width: 100%;
  overflow: hidden;
  color: #9ed2ff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.theme-glass-light[data-page="competitors"] .market-trends-toolbar,
body.theme-glass-light[data-page="competitors"] .competitor-seed-toolbar {
  border-color: rgba(170, 194, 226, 0.78);
  background: rgba(255, 255, 255, 0.58);
}

body.theme-glass-light[data-page="competitors"] .market-filter input,
body.theme-glass-light[data-page="competitors"] .market-filter select {
  color-scheme: light;
  color: #172033;
  border-color: rgba(150, 174, 206, 0.72);
  background: rgba(255, 255, 255, 0.74);
}

body.theme-glass-light[data-page="competitors"] .market-filter input::placeholder {
  color: #7c8ca2;
}

body.theme-glass-light[data-page="competitors"] .market-trend-thumb {
  color: #48617f;
  border-color: rgba(176, 197, 225, 0.82);
  background: rgba(246, 250, 255, 0.88);
}

body.theme-glass-light[data-page="competitors"] .market-trend-link {
  color: #1f6feb;
}

body.theme-glass-light[data-page="competitors"] .competitor-seed-identity strong {
  color: #1d3657;
}

body.theme-glass-light[data-page="competitors"] .competitor-seed-identity small {
  color: #64748b;
}

body.theme-glass-light[data-page="competitors"] .competitor-llm-selector-head strong,
body.theme-glass-light[data-page="competitors"] .competitor-llm-group-option strong {
  color: #1d3657;
}

body.theme-glass-light[data-page="competitors"] .competitor-llm-selector-head span,
body.theme-glass-light[data-page="competitors"] .competitor-llm-group-option small {
  color: #64748b;
}

body.theme-glass-light[data-page="competitors"] .competitor-llm-group-option,
body.theme-glass-light[data-page="competitors"] .competitor-llm-preview {
  border-color: rgba(176, 197, 225, 0.78);
  background: rgba(246, 250, 255, 0.68);
}

@media (max-width: 1100px) {
  body[data-page="competitors"] .market-trends-toolbar,
  body[data-page="competitors"] .competitor-seed-toolbar {
    grid-template-columns: 1fr;
  }

  body[data-page="competitors"] .market-trends-actions {
    justify-content: flex-start;
  }

  body[data-page="competitors"] .competitor-seed-toolbar .market-trends-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  body[data-page="competitors"] .market-trends-controls,
  body[data-page="competitors"] .competitor-support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body[data-page="ads"] .ad-product-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  body[data-page="ads"] .ad-product-metrics {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body[data-page="ads"] .ad-products-modal {
    width: calc(100vw - 18px);
  }

  body[data-page="ads"] .ad-product-card {
    grid-template-columns: 1fr;
  }

  body[data-page="ads"] .ad-products-modal-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-page="ads"] .ad-product-media {
    width: 100%;
  }

  body[data-page="ads"] .ad-product-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-page="ads"] .ad-product-title-row strong {
    white-space: normal;
  }

  body[data-page="ads"] .ad-product-metrics {
    grid-template-columns: 1fr;
  }
}

.message-center {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.message-center-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.message-center-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
}

.message-center-tabs button.is-active {
  color: #ffffff;
  border-color: rgba(90, 163, 255, 0.5);
  background: rgba(47, 125, 246, 0.22);
}

.message-center-tabs strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.88);
  font-size: 12px;
}

.message-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(120px, 0.7fr) minmax(240px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(7, 17, 28, 0.72);
}

.message-filter-toolbar label,
.message-reply-dock label,
.message-translation-tool label,
.message-template-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.message-filter-toolbar input,
.message-filter-toolbar select,
.message-reply-dock textarea,
.message-reply-dock select,
.message-translation-tool textarea,
.message-translation-tool select,
.message-template-form input,
.message-template-form select,
.message-template-form textarea {
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 1px solid rgba(108, 147, 196, 0.42);
  border-radius: var(--radius);
  outline: none;
  background: rgba(5, 15, 27, 0.82);
}

.message-filter-toolbar input,
.message-filter-toolbar select,
.message-template-form input,
.message-template-form select,
.message-reply-dock select,
.message-translation-tool select {
  height: 38px;
  padding: 0 10px;
}

.message-reply-dock textarea,
.message-translation-tool textarea,
.message-template-form textarea {
  min-height: 104px;
  padding: 10px;
  resize: vertical;
}

.message-filter-toolbar input:focus,
.message-filter-toolbar select:focus,
.message-reply-dock textarea:focus,
.message-reply-dock select:focus,
.message-translation-tool textarea:focus,
.message-translation-tool select:focus,
.message-template-form input:focus,
.message-template-form select:focus,
.message-template-form textarea:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(90, 163, 255, 0.13);
}

.message-search-field {
  grid-column: auto;
}

.message-toolbar-actions,
.message-reply-actions,
.message-template-actions {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: flex-end;
  gap: 8px;
}

.message-thread-layout {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 0;
  height: max(660px, calc(100vh - 218px));
  min-width: 0;
}

.message-thread-layout.workspace-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.3fr);
}

.question-workbench {
  min-height: 0;
}

.question-list-panel,
.question-detail-panel {
  min-width: 0;
  min-height: 0;
}

.question-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  overflow: hidden;
}

.question-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(90, 163, 255, 0.24);
  border-radius: 8px;
  background: rgba(47, 125, 246, 0.1);
}

.question-panel-header strong,
.question-panel-header span {
  display: block;
}

.question-panel-header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.question-panel-header b {
  color: #9cc9ff;
  font-family: var(--mono);
  font-size: 18px;
}

.question-toolbar.overview-toolbar {
  align-items: center;
  margin-bottom: 12px;
}

.question-search-field {
  min-width: min(360px, 100%);
}

.overview-search-filter input {
  min-width: 0;
  width: 100%;
}

.question-toolbar-actions {
  justify-content: flex-end;
}

.message-list-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.message-list.is-busy {
  opacity: 0.62;
}

.message-list-busy-overlay {
  position: absolute;
  inset: 8px 8px auto;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  color: #cfe4ff;
  border: 1px solid rgba(90, 163, 255, 0.28);
  border-radius: 8px;
  background: rgba(4, 12, 21, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.message-main-panel {
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  align-content: stretch;
  height: 100%;
  min-height: 0;
}

.message-context-panel {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
}

.message-context-panel > .panel {
  display: grid;
  align-content: start;
  gap: 12px;
  align-self: start;
  overflow: visible;
}

.message-context-panel > .panel .panel-header {
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(108, 147, 196, 0.18);
}

.message-template-context-button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px;
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(8, 19, 31, 0.66);
  text-align: left;
}

.message-template-context-button span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.message-translation-tool {
  display: grid;
  gap: 10px;
}

.message-translation-tool textarea {
  min-height: 72px;
}

.message-translation-tool #messageTranslateInput {
  height: 82px;
}

.message-translation-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.message-translation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.message-translation-output {
  height: 76px;
  min-height: 64px;
  color: var(--text);
}

.message-list {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;
  min-height: 0;
  height: 100%;
  padding: 8px;
  border: 1px solid rgba(90, 163, 255, 0.26);
  border-radius: 8px;
  background: rgba(5, 16, 29, 0.66);
  overflow-x: hidden;
  overflow-y: auto;
}

.message-list-loading {
  gap: 10px;
}

.message-list-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 12px;
  color: var(--muted);
  border: 1px dashed rgba(90, 163, 255, 0.34);
  border-radius: 8px;
  background: rgba(47, 125, 246, 0.08);
  font-size: 12px;
  text-align: center;
}

.message-list-footer .secondary-button {
  min-width: 144px;
  justify-content: center;
}

.message-loading-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 8px 10px;
  color: #b9d8ff;
  border: 1px solid rgba(90, 163, 255, 0.24);
  border-radius: 8px;
  background: rgba(47, 125, 246, 0.1);
  font-size: 13px;
}

.message-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(156, 201, 255, 0.28);
  border-top-color: #9cc9ff;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.message-card {
  display: grid;
  align-self: start;
  align-content: start;
  gap: 7px;
  width: 100%;
  min-height: 0;
  padding: 14px;
  overflow: visible;
  color: var(--text);
  border: 1px solid rgba(108, 147, 196, 0.34);
  border-radius: 8px;
  background: rgba(7, 21, 35, 0.82);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.message-card-skeleton,
.message-template-card-skeleton {
  pointer-events: none;
}

.message-card-skeleton {
  min-height: 132px;
}

.message-template-card-skeleton {
  min-height: 190px;
  align-content: start;
}

.message-detail-loading {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.message-conversation-loading {
  overflow: hidden;
}

.message-bubble-skeleton {
  display: grid;
  gap: 9px;
  width: min(520px, 78%);
}

.message-reply-loading {
  position: static;
  min-height: 150px;
}

.message-skeleton-line,
.message-skeleton-block {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(108, 147, 196, 0.12), rgba(156, 201, 255, 0.28), rgba(108, 147, 196, 0.12));
  background-size: 220% 100%;
  animation: loadingSweep 1300ms ease-in-out infinite;
}

.message-skeleton-line {
  width: 100%;
  height: 13px;
}

.message-skeleton-line.short {
  width: 82px;
}

.message-skeleton-line.medium {
  width: 64%;
}

.message-skeleton-line.title,
.message-skeleton-line.heading {
  width: 72%;
  height: 18px;
}

.message-skeleton-line.kicker {
  width: 74px;
  height: 10px;
}

.message-skeleton-line.meta {
  width: 46%;
  height: 11px;
}

.message-skeleton-line.pill {
  width: 68px;
  height: 24px;
}

.message-skeleton-line.action {
  justify-self: end;
  width: 116px;
  height: 32px;
}

.message-skeleton-block {
  width: 100%;
  height: 78px;
  border-radius: 8px;
}

.message-card:hover,
.message-card.is-active {
  border-color: rgba(90, 163, 255, 0.56);
  background: rgba(47, 125, 246, 0.14);
}

.message-card.is-selected {
  position: relative;
  border-color: rgba(90, 163, 255, 0.68);
  background: rgba(47, 125, 246, 0.18);
}

.message-card.is-selected::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 999px;
  background: #f59e0b;
}

.message-card.is-selected::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(90, 163, 255, 0.58);
  border-right: 1px solid rgba(90, 163, 255, 0.58);
  background: rgba(47, 125, 246, 0.18);
  transform: translateY(-50%) rotate(45deg);
}

.message-card-arrow {
  position: absolute;
  right: 2px;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.question-panel-active-arrow {
  display: block;
  border-top: 1px solid rgba(90, 163, 255, 0.58);
  border-right: 1px solid rgba(90, 163, 255, 0.58);
  background: rgba(47, 125, 246, 0.18);
  transform: translateY(-50%) rotate(45deg);
}

.message-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.message-card strong,
.message-template-card strong,
.message-product-mini strong {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.message-card-title {
  display: block;
  color: #eef6ff;
  line-height: 1.32;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

.message-card-product {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.message-card-thumb {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  color: #9cc9ff;
  border: 1px solid rgba(90, 163, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 15, 27, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.message-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-card-sku {
  display: block;
  margin-top: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.message-card > p,
.message-template-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

.message-template-card p {
  overflow: hidden;
}

.message-card-preview {
  display: block;
  margin: 0;
  color: #b8c7da;
  font-size: 13px;
  line-height: 1.48;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

.message-card small,
.message-template-card small,
.message-product-mini span,
.message-reply-actions span {
  color: var(--muted);
  font-size: 12px;
}

.message-card-meta {
  display: block;
  min-width: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}

.message-card-status {
  justify-self: start;
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid rgba(90, 163, 255, 0.2);
  border-radius: 999px;
  color: #9cc9ff;
  background: rgba(47, 125, 246, 0.14);
  font-size: 12px;
  font-weight: 700;
}

.message-card-unread {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid rgba(255, 237, 213, 0.45);
  border-radius: 999px;
  color: #1f1300;
  background: #f59e0b;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.18);
}

.message-card-status.green {
  color: #8df0ac;
  background: rgba(34, 197, 94, 0.14);
}

.message-card-status.amber {
  color: #ffd38a;
  background: rgba(245, 158, 11, 0.14);
}

.message-card-status.red {
  color: #ffb4b4;
  background: rgba(239, 68, 68, 0.14);
}

.message-card-status.gray {
  color: #a7b4c5;
  background: rgba(148, 163, 184, 0.14);
}

.message-detail-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(90, 163, 255, 0.26);
  border-radius: 8px;
  background: rgba(8, 19, 31, 0.78);
}

.message-detail-head,
.message-template-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.message-detail-head-product {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
}

.message-detail-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.message-detail-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.message-detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.message-detail-title-row h3 {
  min-width: 0;
}

.message-product-open-link {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  color: #9cc9ff;
  border: 1px solid rgba(90, 163, 255, 0.28);
  border-radius: 999px;
  background: rgba(47, 125, 246, 0.12);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.message-product-open-link:hover {
  color: #ffffff;
  border-color: rgba(90, 163, 255, 0.52);
  background: rgba(47, 125, 246, 0.24);
}

.message-delete-question-button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.message-detail-product-thumb {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  overflow: hidden;
  color: var(--blue-2);
  border: 1px solid rgba(108, 147, 196, 0.32);
  border-radius: 8px;
  background: rgba(5, 15, 27, 0.82);
  font-weight: 700;
}

.message-detail-product-thumb.is-clickable {
  cursor: zoom-in;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.message-detail-product-thumb.is-clickable:hover {
  border-color: rgba(90, 163, 255, 0.58);
  background: rgba(47, 125, 246, 0.14);
  transform: translateY(-1px);
}

.message-detail-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-detail-head h3 {
  margin: 4px 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.message-detail-head p,
.message-template-head span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.message-product-mini {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.message-product-mini span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.message-product-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  color: var(--blue-2);
  border: 1px solid rgba(108, 147, 196, 0.28);
  border-radius: 8px;
  background: rgba(5, 15, 27, 0.8);
  font-weight: 700;
}

.message-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-conversation {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 180px;
  padding: 10px;
  border: 1px solid rgba(108, 147, 196, 0.18);
  border-radius: 8px;
  background: rgba(4, 12, 21, 0.44);
  overflow-x: hidden;
  overflow-y: auto;
}

.active-question-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(90, 163, 255, 0.24);
  border-radius: 8px;
  background: rgba(47, 125, 246, 0.1);
}

.active-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.active-question-bar strong,
.active-question-bar small {
  display: block;
}

.active-question-bar small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.message-detail-section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(108, 147, 196, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.message-detail-section.is-nested {
  margin-top: 10px;
}

.message-detail-section h4 {
  margin: 0;
  color: #cfe4ff;
  font-size: 13px;
}

.message-detail-section p {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-detail-section small {
  color: var(--muted);
  font-size: 11px;
}

.reply-disabled-hint {
  padding: 8px 10px;
  color: #ffd38a;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  font-size: 12px;
}

.message-reply-error {
  padding: 8px 10px;
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.message-bubble {
  max-width: min(720px, 82%);
  padding: 12px;
  border: 1px solid rgba(108, 147, 196, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  overflow-wrap: anywhere;
}

.message-bubble.is-seller {
  justify-self: end;
  border-color: rgba(90, 163, 255, 0.36);
  background: rgba(47, 125, 246, 0.16);
}

.message-bubble span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.message-bubble p {
  margin: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-bubble small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.message-bubble-translation {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid rgba(108, 147, 196, 0.22);
  color: var(--text);
}

.message-bubble-translation span {
  color: var(--blue-2);
}

.message-bubble-translation.is-loading,
.message-bubble-translation.is-error {
  color: var(--muted);
}

.message-history-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(108, 147, 196, 0.2);
  border-radius: 8px;
  background: rgba(4, 12, 21, 0.38);
  overflow: hidden;
}

.message-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.message-history-head strong,
.message-history-head span {
  display: block;
}

.message-history-head strong {
  color: var(--text);
  font-size: 14px;
}

.message-history-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.message-history-table-wrap {
  min-width: 0;
  max-height: min(360px, 42vh);
  overflow: auto;
  border: 1px solid rgba(108, 147, 196, 0.18);
  border-radius: 8px;
}

.message-history-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 12px;
}

.message-history-table th,
.message-history-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(108, 147, 196, 0.16);
  color: var(--muted);
  vertical-align: top;
}

.message-history-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #cfe4ff;
  background: rgba(8, 19, 31, 0.96);
  font-weight: 800;
}

.message-history-product {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 180px;
}

.message-history-product strong,
.message-history-product small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.message-history-product strong {
  color: var(--text);
}

.message-history-thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: #9cc9ff;
  border: 1px solid rgba(90, 163, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 15, 27, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.message-history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-history-question,
.message-history-answer {
  min-width: 220px;
  color: var(--text);
  line-height: 1.48;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.message-history-empty {
  display: grid;
  min-height: 80px;
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(108, 147, 196, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.message-attachments {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.message-attachment-preview {
  display: grid;
  gap: 6px;
  width: min(280px, 100%);
  color: var(--blue-2);
  text-decoration: none;
}

.message-attachment-image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid rgba(108, 147, 196, 0.28);
  border-radius: 8px;
  background: rgba(5, 15, 27, 0.56);
}

.message-attachment-video {
  display: grid;
  gap: 6px;
  width: min(320px, 100%);
}

.message-attachment-video video {
  width: 100%;
  max-height: 260px;
  border-radius: 8px;
  background: rgba(5, 15, 27, 0.72);
}

.message-attachment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  color: #9cc9ff;
  border: 1px solid rgba(90, 163, 255, 0.28);
  border-radius: 8px;
  background: rgba(47, 125, 246, 0.12);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.message-attachment-link.is-disabled {
  color: var(--muted);
  border-color: rgba(108, 147, 196, 0.22);
  background: rgba(255, 255, 255, 0.035);
}

.message-claim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.message-claim-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.message-claim-grid span {
  color: var(--muted);
  font-size: 12px;
}

.message-reply-dock {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(90, 163, 255, 0.24);
  border-radius: 8px;
  background: rgba(3, 12, 24, 0.92);
}

.message-template-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.message-template-shortcuts button {
  min-height: 30px;
  padding: 0 10px;
  color: #9cc9ff;
  border: 1px solid rgba(90, 163, 255, 0.28);
  border-radius: 999px;
  background: rgba(47, 125, 246, 0.12);
}

.message-template-head {
  align-items: center;
  padding: 0 2px;
}

.message-template-head strong {
  display: block;
}

.message-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.message-template-card {
  display: grid;
  grid-template-rows: auto minmax(72px, 1fr) auto;
  gap: 10px;
  min-height: 190px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(9, 23, 39, 0.72);
}

.message-template-card > div:first-child {
  display: grid;
  gap: 6px;
}

.message-template-form {
  display: grid;
  gap: 12px;
}

.message-template-content {
  grid-column: 1 / -1;
}

.message-template-modal {
  width: min(860px, calc(100vw - 28px));
}

.message-empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  color: var(--muted);
  border: 1px dashed rgba(108, 147, 196, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
}

body.theme-glass-light .message-center-tabs,
body.theme-glass-light .message-filter-toolbar,
body.theme-glass-light .message-list,
body.theme-glass-light .message-detail-panel,
body.theme-glass-light .message-template-card,
body.theme-glass-light .message-reply-dock,
body.theme-glass-light .message-history-panel,
body.theme-glass-light .message-translation-tool,
body.theme-glass-light .message-product-mini,
body.theme-glass-light .message-claim-grid div {
  border-color: rgba(117, 145, 182, 0.26);
  background: rgba(255, 255, 255, 0.52);
}

body.theme-glass-light .message-filter-toolbar input,
body.theme-glass-light .message-filter-toolbar select,
body.theme-glass-light .message-reply-dock textarea,
body.theme-glass-light .message-reply-dock select,
body.theme-glass-light .message-translation-tool textarea,
body.theme-glass-light .message-translation-tool select,
body.theme-glass-light .message-template-form input,
body.theme-glass-light .message-template-form select,
body.theme-glass-light .message-template-form textarea {
  color-scheme: light;
  color: var(--text);
  border-color: rgba(117, 145, 182, 0.3);
  background: rgba(255, 255, 255, 0.68);
}

body.theme-glass-light .message-card,
body.theme-glass-light .message-template-card {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.62);
}

body.theme-glass-light .message-loading-strip {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(219, 234, 254, 0.66);
}

body.theme-glass-light .message-list-footer {
  color: #52657f;
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(219, 234, 254, 0.46);
}

body.theme-glass-light .message-loading-spinner {
  border-color: rgba(37, 99, 235, 0.18);
  border-top-color: #2f7df6;
}

body.theme-glass-light .message-skeleton-line,
body.theme-glass-light .message-skeleton-block {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(47, 125, 246, 0.2), rgba(148, 163, 184, 0.12));
  background-size: 220% 100%;
}

body.theme-glass-light .message-card-title {
  color: #20324f;
}

body.theme-glass-light .message-card-preview {
  color: #475569;
}

body.theme-glass-light .message-card-meta {
  color: #52657f;
}

body.theme-glass-light .message-card-status {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.22);
  background: #dbeafe;
}

body.theme-glass-light .message-card-status.green {
  color: #166534;
  border-color: rgba(22, 101, 52, 0.22);
  background: #dcfce7;
}

body.theme-glass-light .message-card-status.amber {
  color: #92400e;
  border-color: rgba(180, 83, 9, 0.24);
  background: #fef3c7;
}

body.theme-glass-light .message-card-status.gray {
  color: #475569;
  border-color: rgba(100, 116, 139, 0.24);
  background: #e2e8f0;
}

body.theme-glass-light .message-card-thumb {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(219, 234, 254, 0.72);
}

body.theme-glass-light .message-card-unread {
  color: #7c2d12;
  border-color: rgba(217, 119, 6, 0.34);
  background: #ffedd5;
  box-shadow: none;
}

body.theme-glass-light .message-card:hover,
body.theme-glass-light .message-card.is-active,
body.theme-glass-light .message-center-tabs button.is-active {
  color: #1256d8;
  border-color: rgba(47, 125, 246, 0.34);
  background: rgba(219, 234, 254, 0.82);
}

body.theme-glass-light .message-conversation {
  background: rgba(241, 247, 255, 0.54);
}

body.theme-glass-light .message-history-table-wrap,
body.theme-glass-light .message-history-empty {
  border-color: rgba(117, 145, 182, 0.24);
  background: rgba(241, 247, 255, 0.54);
}

body.theme-glass-light .message-history-table th {
  color: #20324f;
  background: rgba(231, 241, 255, 0.96);
}

body.theme-glass-light .message-history-table td {
  border-bottom-color: rgba(117, 145, 182, 0.18);
}

body.theme-glass-light .message-history-product strong,
body.theme-glass-light .message-history-question,
body.theme-glass-light .message-history-answer {
  color: #20324f;
}

body.theme-glass-light .message-history-thumb {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(219, 234, 254, 0.72);
}

body.theme-glass-light .message-product-open-link {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(219, 234, 254, 0.76);
}

body.theme-glass-light .message-product-open-link:hover {
  color: #ffffff;
  background: #2f7df6;
}

body.theme-glass-light .message-bubble {
  background: rgba(255, 255, 255, 0.78);
}

body.theme-glass-light .message-bubble.is-seller {
  background: rgba(219, 234, 254, 0.88);
}

body.theme-glass-light .message-attachment-image {
  border-color: rgba(117, 145, 182, 0.28);
  background: rgba(255, 255, 255, 0.74);
}

body.theme-glass-light .message-attachment-link {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(219, 234, 254, 0.72);
}

@media (max-width: 1180px) {
  .message-thread-layout,
  .message-thread-layout.workspace-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .message-main-panel {
    grid-template-columns: 1fr;
    height: auto;
  }

  .message-list {
    max-height: 360px;
  }

  .message-detail-panel {
    min-height: 620px;
  }

  .message-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .message-center-tabs,
  .message-filter-toolbar,
  .message-template-grid,
  .message-claim-grid {
    grid-template-columns: 1fr;
  }

  .message-toolbar-actions,
  .message-reply-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .message-bubble {
    max-width: 100%;
  }
}

.review-management {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.review-toolbar {
  display: grid;
  grid-template-columns: minmax(140px, 0.62fr) minmax(360px, 1.55fr) repeat(4, minmax(118px, 0.62fr)) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(7, 17, 28, 0.72);
}

.review-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.review-toolbar .review-query-label {
  align-self: center;
}

.review-query-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.review-toolbar input,
.review-toolbar select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  color: var(--text);
  border: 1px solid rgba(108, 147, 196, 0.42);
  border-radius: var(--radius);
  outline: none;
  background: rgba(5, 15, 27, 0.82);
}

.review-query-control .primary-button {
  min-height: 38px;
  white-space: nowrap;
}

.review-toolbar-status {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.review-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  align-self: center;
}

.review-workbench {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) minmax(280px, 360px);
  gap: 12px;
  min-width: 0;
}

.review-workbench.workspace-grid {
  grid-template-columns: minmax(220px, 0.22fr) minmax(0, 1fr) minmax(300px, 0.32fr);
}

.review-product-rail {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 620px;
  max-height: calc(100vh - 220px);
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(90, 163, 255, 0.26);
  border-radius: 8px;
  background: rgba(5, 16, 29, 0.66);
}

.review-product-rail.is-loading,
.review-product-rail.is-refreshing {
  scrollbar-color: rgba(90, 163, 255, 0.42) transparent;
}

.review-rail-status {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(90, 163, 255, 0.26);
  border-radius: 8px;
  background: rgba(47, 125, 246, 0.12);
}

.review-rail-status strong {
  color: var(--text);
  font-size: 13px;
}

.review-rail-status small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.review-rail-status.is-compact {
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(12px);
}

.review-product-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px;
  color: var(--text);
  border: 1px solid rgba(108, 147, 196, 0.34);
  border-radius: 8px;
  background: rgba(7, 21, 35, 0.82);
  text-align: left;
}

.review-product-card-skeleton {
  pointer-events: none;
}

.review-product-card-skeleton .review-product-thumb,
.review-product-card-skeleton i {
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(90, 163, 255, 0.14), rgba(125, 211, 252, 0.26), rgba(90, 163, 255, 0.14));
  background-size: 220% 100%;
  animation: loadingSweep 1200ms ease-in-out infinite;
}

.review-product-card-skeleton i {
  width: 100%;
  height: 12px;
  margin-top: 6px;
}

.review-product-card-skeleton i:nth-child(2) {
  width: 82%;
}

.review-product-card-skeleton i:nth-child(3) {
  width: 58%;
}

.review-product-card.is-active {
  border-color: rgba(90, 163, 255, 0.64);
  background: rgba(47, 125, 246, 0.16);
  box-shadow: inset 3px 0 0 var(--blue-2);
}

.review-product-card strong,
.review-product-card span,
.review-content {
  overflow-wrap: anywhere;
}

.review-product-card span,
.review-product-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.review-product-card .review-stock-line {
  font-weight: 700;
}

.review-product-card .review-stock-line.is-live {
  color: var(--green);
}

.review-product-card .review-stock-line.is-empty {
  color: var(--amber);
}

.review-product-thumb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(108, 147, 196, 0.28);
  border-radius: 8px;
  background: rgba(5, 15, 27, 0.8);
}

.review-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-product-thumb svg {
  width: 24px;
  height: 24px;
  color: var(--amber);
}

.review-main {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.review-summary-grid.kpi-grid,
.review-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.review-main .kpi-card {
  min-height: 118px;
}

.review-main .kpi-title {
  align-items: flex-start;
  flex-wrap: wrap;
  line-height: 1.25;
}

.review-rating-bars,
.review-strategy-panel,
.review-basic-summary,
.review-ai-output {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(8, 19, 31, 0.78);
}

.review-rating-bars {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.review-rating-bars div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.review-rating-bars b {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--green));
}

.review-table-shell {
  max-height: calc(100vh - 390px);
}

.review-table {
  min-width: 920px;
  width: 100%;
  table-layout: fixed;
}

.review-table td {
  vertical-align: top;
}

.review-table th:nth-child(1),
.review-table td:nth-child(1) {
  width: 142px;
}

.review-table th:nth-child(2),
.review-table td:nth-child(2) {
  width: 88px;
}

.review-table th:nth-child(4),
.review-table td:nth-child(4) {
  width: 208px;
  white-space: normal;
}

.review-table th:nth-child(5),
.review-table td:nth-child(5) {
  width: 132px;
  white-space: nowrap;
}

.review-table th:nth-child(3),
.review-table td:nth-child(3) {
  min-width: 0;
}

.review-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
}

.review-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(90, 163, 255, 0.25);
  border-top-color: var(--blue-2);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.stars {
  color: var(--amber);
  letter-spacing: 0;
}

.review-content {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
  white-space: normal;
  max-width: 100%;
  word-break: break-word;
}

.review-translation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  margin: 5px 0 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.review-translation-label {
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}

.review-translation-text {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.review-translation.is-loading {
  color: var(--muted);
}

.review-translation.is-error {
  color: var(--muted);
}

.review-translation-retry {
  width: fit-content;
  padding: 0;
  border: 0;
  color: var(--amber);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.review-translation-retry:hover {
  color: var(--blue-2);
}

.review-media-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.review-media-thumb {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(108, 147, 196, 0.36);
  border-radius: 6px;
  background: rgba(5, 15, 27, 0.8);
}

.review-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-media-video {
  width: 150px;
  height: 84px;
  max-width: min(150px, 100%);
  border: 1px solid rgba(108, 147, 196, 0.36);
  border-radius: 6px;
  background: rgba(5, 15, 27, 0.8);
  object-fit: cover;
}

.review-media-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(108, 147, 196, 0.16);
  font-size: 12px;
  font-weight: 700;
}

.review-topic-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  color: #9cc9ff;
  background: rgba(47, 125, 246, 0.16);
  font-size: 12px;
  white-space: nowrap;
}

.review-topic-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
}

.review-strategy-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  min-width: 0;
}

.review-strategy-panel .panel-header {
  padding: 0;
  border: 0;
  background: transparent;
}

.review-strategy-panel .panel-header strong,
.review-strategy-panel .panel-header small {
  display: block;
}

.review-strategy-panel .panel-header small {
  margin-top: 4px;
  color: var(--muted);
}

.review-basic-summary,
.review-ai-output {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.review-basic-summary p,
.review-ai-output p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.review-ai-output ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

body.theme-glass-light .review-toolbar,
body.theme-glass-light .review-product-rail,
body.theme-glass-light .review-strategy-panel,
body.theme-glass-light .review-basic-summary,
body.theme-glass-light .review-ai-output,
body.theme-glass-light .review-rating-bars {
  border-color: rgba(117, 145, 182, 0.26);
  background: rgba(255, 255, 255, 0.52);
}

body.theme-glass-light .review-toolbar input,
body.theme-glass-light .review-toolbar select,
body.theme-glass-light .review-product-card {
  color-scheme: light;
  color: var(--text);
  border-color: rgba(117, 145, 182, 0.3);
  background: rgba(255, 255, 255, 0.68);
}

body.theme-glass-light .review-product-card.is-active {
  background: rgba(219, 234, 254, 0.82);
}

/* Product Performance detail */
.product-performance-shell {
  display: grid;
  gap: 18px;
}

.product-performance-tabs {
  display: flex;
  align-items: flex-end;
  gap: 34px;
  min-height: 48px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(117, 145, 182, 0.26);
}

.product-performance-tabs button {
  height: 48px;
  padding: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.product-performance-tabs button.is-active {
  color: var(--blue-2);
  border-bottom-color: #8b5cf6;
}

.product-performance-tabs button:disabled {
  color: rgba(148, 163, 184, 0.68);
  cursor: not-allowed;
}

.product-performance-listing,
.product-performance-state,
.product-performance-chart,
.product-performance-quality {
  color-scheme: dark;
  color: #e5edf7;
  border: 1px solid rgba(126, 167, 214, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(15, 31, 49, 0.86), rgba(9, 20, 34, 0.78)),
    rgba(8, 18, 31, 0.82);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.product-performance-listing {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px;
}

.product-performance-image {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px solid rgba(126, 167, 214, 0.24);
  border-radius: 8px;
  color: rgba(203, 213, 225, 0.74);
  background: rgba(15, 31, 49, 0.72);
}

.product-performance-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-performance-image svg {
  width: 30px;
  height: 30px;
}

.product-performance-listing-copy {
  min-width: 0;
}

.product-performance-listing-copy span,
.product-performance-listing-copy p {
  margin: 0;
  color: rgba(203, 213, 225, 0.78);
}

.product-performance-listing-copy h3 {
  margin: 8px 0 10px;
  color: #f8fafc;
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-performance-listing-copy p + p {
  margin-top: 8px;
}

.product-performance-edit-link {
  color: var(--blue-2);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.product-performance-toolbar {
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.product-performance-toolbar > div {
  display: grid;
  gap: 4px;
}

.product-performance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(126, 167, 214, 0.12);
  border-radius: 8px;
  background: rgba(7, 16, 29, 0.54);
}

.product-performance-kpi {
  display: grid;
  align-content: start;
  min-height: 98px;
  gap: 10px;
  padding: 18px;
  color-scheme: dark;
  color: #e5edf7;
  border: 1px solid rgba(126, 167, 214, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(19, 38, 61, 0.9), rgba(11, 25, 42, 0.82)),
    rgba(10, 22, 37, 0.82);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  appearance: none;
  text-align: left;
  cursor: pointer;
}

.product-performance-kpi:hover,
.product-performance-kpi:focus-visible {
  border-color: rgba(139, 92, 246, 0.58);
  background:
    linear-gradient(145deg, rgba(26, 50, 79, 0.94), rgba(13, 30, 50, 0.9)),
    rgba(10, 22, 37, 0.9);
  transform: translateY(-1px);
}

.product-performance-kpi.is-active {
  border-color: rgba(139, 92, 246, 0.72);
  border-top: 4px solid #8b5cf6;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(139, 92, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.product-performance-kpi > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(203, 213, 225, 0.82);
  font-weight: 700;
}

.product-performance-kpi-title > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-performance-kpi-title .metric-info-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.product-performance-kpi-title .metric-info-icon svg {
  width: 11px;
  height: 11px;
}

.product-performance-kpi strong {
  color: #f8fafc;
  font-size: 24px;
  line-height: 1;
}

.product-performance-kpi.is-missing strong {
  color: var(--muted);
}

.product-performance-delta {
  font-size: 13px;
  font-weight: 800;
}

.product-performance-delta.is-up {
  color: #059669;
}

.product-performance-delta.is-down {
  color: #ef4444;
}

.product-performance-delta.is-muted {
  color: #64748b;
}

.product-performance-chart {
  display: grid;
  gap: 8px;
  padding: 22px 28px 18px;
  min-height: 330px;
}

.product-performance-chart svg {
  width: 100%;
  height: 300px;
}

.product-performance-modal .product-performance-chart svg {
  height: 340px;
}

.product-performance-grid-line {
  stroke: rgba(148, 163, 184, 0.48);
  stroke-dasharray: 4 4;
}

.product-performance-axis-line {
  stroke: rgba(71, 85, 105, 0.55);
}

.product-performance-line {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-performance-line.is-current {
  stroke: #8b5cf6;
}

.product-performance-line.is-comparison {
  stroke: #9ca3af;
}

.product-performance-point {
  fill: #e5edf8;
  stroke-width: 2.6;
  pointer-events: none;
}

.product-performance-point.is-current {
  stroke: #8b5cf6;
}

.product-performance-point.is-comparison {
  stroke: #9ca3af;
}

.product-performance-hit-area {
  cursor: crosshair;
}

.product-performance-chart-labels,
.product-performance-legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: rgba(203, 213, 225, 0.74);
  font-size: 13px;
}

.product-performance-chart-labels {
  justify-content: space-between;
}

.product-performance-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-performance-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.product-performance-legend i.is-current {
  background: #8b5cf6;
}

.product-performance-legend i.is-comparison {
  background: #9ca3af;
}

.product-performance-quality {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-performance-quality div {
  display: grid;
  gap: 4px;
}

.product-performance-quality strong {
  color: #f8fafc;
}

.product-performance-quality span,
.product-performance-state p {
  color: rgba(203, 213, 225, 0.76);
}

.product-performance-state {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 280px;
  padding: 28px;
  text-align: center;
}

.product-performance-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.product-analysis-action-cell,
.product-analysis-action-head {
  position: sticky;
  right: 0;
  z-index: 6;
  min-width: 132px;
  background: rgba(11, 23, 36, 0.96);
}

.product-analysis-action-head {
  z-index: 8;
}

.product-performance-open {
  white-space: nowrap;
}

body.theme-glass-light .product-performance-listing,
body.theme-glass-light .product-performance-state,
body.theme-glass-light .product-performance-chart,
body.theme-glass-light .product-performance-quality,
body.theme-glass-light .product-performance-kpi {
  color-scheme: light;
  color: var(--text);
  border-color: rgba(117, 145, 182, 0.28);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

body.theme-glass-light .product-performance-image {
  color: #64748b;
  border-color: rgba(117, 145, 182, 0.26);
  background: rgba(248, 250, 252, 0.92);
}

body.theme-glass-light .product-performance-listing-copy span,
body.theme-glass-light .product-performance-listing-copy p,
body.theme-glass-light .product-performance-chart-labels,
body.theme-glass-light .product-performance-legend,
body.theme-glass-light .product-performance-quality span,
body.theme-glass-light .product-performance-state p {
  color: #64748b;
}

body.theme-glass-light .product-performance-listing-copy h3,
body.theme-glass-light .product-performance-kpi strong,
body.theme-glass-light .product-performance-quality strong {
  color: #020617;
}

body.theme-glass-light .product-performance-kpi-grid {
  border-color: transparent;
  background: rgba(241, 245, 249, 0.88);
}

body.theme-glass-light .product-performance-kpi {
  background: rgba(255, 255, 255, 0.94);
}

body.theme-glass-light .product-performance-kpi:hover,
body.theme-glass-light .product-performance-kpi:focus-visible {
  border-color: rgba(139, 92, 246, 0.46);
  background: rgba(255, 255, 255, 0.98);
}

body.theme-glass-light .product-performance-kpi.is-active {
  border-color: rgba(139, 92, 246, 0.58);
  box-shadow: 0 14px 28px rgba(88, 80, 140, 0.14), 0 0 0 1px rgba(139, 92, 246, 0.14);
}

body.theme-glass-light .product-performance-kpi > span {
  color: #334155;
}

body.theme-glass-light .product-performance-kpi > .product-performance-delta.is-up {
  color: #059669;
}

body.theme-glass-light .product-performance-kpi > .product-performance-delta.is-down {
  color: #ef4444;
}

body.theme-glass-light .product-performance-kpi > .product-performance-delta.is-muted {
  color: #64748b;
}

body.theme-glass-light .product-analysis-action-cell,
body.theme-glass-light .product-analysis-action-head {
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 1180px) {
  .product-performance-kpi-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .product-performance-modal {
    width: min(760px, calc(100vw - 16px));
    max-height: calc(100vh - 16px);
    padding: 14px;
  }

  .product-performance-modal .modal-head,
  .product-performance-modal .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-performance-listing {
    grid-template-columns: 1fr;
  }

  .product-performance-toolbar,
  .product-performance-chart-labels,
  .product-performance-legend,
  .product-performance-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-performance-kpi-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .product-performance-chart {
    padding: 16px;
  }
}

body.theme-glass-light .review-rail-status {
  border-color: rgba(90, 163, 255, 0.28);
  background: rgba(219, 234, 254, 0.72);
}

body.theme-glass-light .review-product-card-skeleton .review-product-thumb,
body.theme-glass-light .review-product-card-skeleton i {
  background: linear-gradient(90deg, rgba(117, 145, 182, 0.16), rgba(90, 163, 255, 0.28), rgba(117, 145, 182, 0.16));
  background-size: 220% 100%;
}

.operations-workbook-shell {
  display: grid;
  gap: 14px;
}

.operations-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.operations-summary-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--v2-panel-border);
  border-radius: 8px;
  background: rgba(8, 19, 31, 0.74);
  box-shadow: var(--v2-panel-shadow);
}

.operations-summary-card span,
.operations-summary-card small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-summary-card strong {
  min-width: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-sheet-tabs {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--v2-panel-border);
  border-radius: 8px;
  background: rgba(8, 19, 31, 0.7);
  overflow-x: auto;
}

.operations-sheet-tabs button {
  display: grid;
  gap: 2px;
  min-width: 116px;
  padding: 8px 10px;
  border: 1px solid rgba(116, 150, 194, 0.22);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.5);
  text-align: left;
}

.operations-sheet-tabs button.is-active {
  color: #dbeafe;
  border-color: rgba(90, 163, 255, 0.58);
  background: rgba(47, 125, 246, 0.2);
}

.operations-sheet-tabs span,
.operations-sheet-tabs small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-workbook-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  align-items: center;
}

.operations-workbook-toolbar .toolbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(6, 16, 28, 0.58);
}

.operations-workbook-toolbar .toolbar-search > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.operations-workbook-toolbar .toolbar-search svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.operations-workbook-toolbar .toolbar-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  border: 0;
  color: var(--text);
  background: transparent;
  outline: 0;
}

.operations-workbook-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 14px;
  align-items: start;
}

.operations-formula-bar {
  display: grid;
  grid-template-columns: 88px minmax(240px, 1fr) repeat(10, auto) minmax(72px, auto);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--v2-panel-border);
  border-radius: 8px;
  background: rgba(8, 19, 31, 0.7);
  box-shadow: var(--v2-panel-shadow);
}

.operations-name-box {
  display: grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid rgba(116, 150, 194, 0.28);
  border-radius: 7px;
  color: var(--blue-2);
  background: rgba(47, 125, 246, 0.12);
  font-family: var(--mono);
  font-weight: 800;
}

.operations-formula-bar input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(116, 150, 194, 0.28);
  border-radius: 7px;
  color: var(--text);
  background: rgba(6, 16, 28, 0.58);
  font-family: var(--mono);
  outline: 0;
}

.operations-formula-bar input:focus {
  border-color: rgba(90, 163, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.14);
}

.operations-formula-bar > span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.operations-formula-bar > span.is-dirty {
  color: var(--amber);
  font-weight: 800;
}

.operations-table-panel,
.operations-relabel-panel {
  min-width: 0;
  border: 1px solid var(--v2-panel-border);
  border-radius: 8px;
  background: rgba(8, 19, 31, 0.72);
  box-shadow: var(--v2-panel-shadow);
  overflow: hidden;
}

.operations-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.operations-table-head h2 {
  margin: 0;
  font-size: 16px;
}

.operations-table-head span,
.operations-pagination span {
  color: var(--muted);
  font-size: 12px;
}

.operations-pagination,
.operations-page-size,
.operations-page-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.operations-pagination button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(116, 150, 194, 0.28);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.55);
}

.operations-pagination button.is-active {
  color: #dbeafe;
  border-color: rgba(90, 163, 255, 0.55);
  background: rgba(47, 125, 246, 0.2);
}

.operations-pagination button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.operations-table-scroll {
  max-height: calc(100vh - 390px);
  min-height: 420px;
  overflow: auto;
}

.operations-workbook-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.operations-workbook-table.wide-table th,
.operations-workbook-table.wide-table th:nth-child(1),
.operations-workbook-table.wide-table th:nth-child(2),
.operations-workbook-table.wide-table th:nth-child(3),
.operations-workbook-table.wide-table th:nth-child(4),
.operations-workbook-table.wide-table th:last-child {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  z-index: 3;
  width: auto;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
  box-shadow: none;
}

.operations-workbook-table.wide-table td,
.operations-workbook-table.wide-table td:nth-child(1),
.operations-workbook-table.wide-table td:nth-child(2),
.operations-workbook-table.wide-table td:nth-child(3),
.operations-workbook-table.wide-table td:nth-child(4),
.operations-workbook-table.wide-table td:last-child {
  position: relative;
  left: auto;
  right: auto;
  z-index: auto;
  width: auto;
  min-width: 0;
  max-width: none;
  box-shadow: none;
}

.operations-workbook-table th .operations-column-letter {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 18px;
  margin-right: 6px;
  border-radius: 4px;
  color: var(--blue-2);
  background: rgba(47, 125, 246, 0.14);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
}

.operations-workbook-table td {
  height: 38px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
}

.operations-workbook-table tbody tr {
  cursor: pointer;
}

.operations-workbook-table tbody tr.is-selected td {
  background: rgba(47, 125, 246, 0.14);
}

.operations-workbook-table tbody tr.has-relabel-note td:first-child {
  box-shadow: inset 3px 0 0 var(--amber);
}

.operations-cell-editor {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 0 8px;
  outline: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.operations-cell-editor:focus,
.operations-workbook-table td.is-selected-cell .operations-cell-editor {
  background: rgba(47, 125, 246, 0.13);
  box-shadow: inset 0 0 0 2px var(--blue-2);
}

.operations-formula-cell {
  position: relative;
  color: #dbeafe;
  font-family: var(--mono);
}

.operations-formula-cell .operations-cell-editor {
  padding-right: 34px;
  color: #dbeafe;
  font-family: var(--mono);
}

.operations-formula-cell.is-editing .operations-cell-editor {
  color: var(--text);
  background: rgba(47, 125, 246, 0.13);
}

.operations-formula-error .operations-cell-editor {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.2);
}

.operations-formula-badge {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  border: 1px solid rgba(90, 163, 255, 0.4);
  border-radius: 5px;
  color: var(--blue-2);
  background: rgba(47, 125, 246, 0.12);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}

.operations-relabel-panel {
  position: sticky;
  top: 78px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  max-height: calc(100vh - 96px);
}

.operations-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.operations-panel-title span {
  font-size: 14px;
  font-weight: 800;
}

.operations-panel-title strong {
  color: var(--blue-2);
  font-family: var(--mono);
}

.operations-relabel-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.operations-relabel-toolbar input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(116, 150, 194, 0.26);
  border-radius: 7px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.56);
}

.operations-relabel-toolbar button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(116, 150, 194, 0.26);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.56);
}

.operations-selected-shipment {
  padding: 8px 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.operations-relabel-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 12px;
  overflow: auto;
}

.operations-relabel-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(116, 150, 194, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
}

.operations-relabel-route,
.operations-relabel-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.operations-relabel-route strong,
.operations-relabel-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-relabel-route strong {
  color: #dbeafe;
  font-family: var(--mono);
  font-size: 12px;
}

.operations-relabel-route svg {
  width: 14px;
  color: var(--blue-2);
  flex: 0 0 auto;
}

.operations-relabel-meta {
  flex-wrap: wrap;
}

.operations-relabel-meta span {
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.1);
  font-size: 11px;
}

.operations-relabel-card p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.operations-relabel-card small {
  color: var(--faint);
  font-size: 11px;
}

body.theme-glass-light .operations-summary-card,
body.theme-glass-light .operations-sheet-tabs,
body.theme-glass-light .operations-table-panel,
body.theme-glass-light .operations-relabel-panel {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(120, 145, 175, 0.24);
}

body.theme-glass-light .operations-sheet-tabs button,
body.theme-glass-light .operations-pagination button,
body.theme-glass-light .operations-relabel-toolbar input,
body.theme-glass-light .operations-relabel-toolbar button,
body.theme-glass-light .operations-relabel-card {
  background: rgba(241, 246, 252, 0.82);
  border-color: rgba(120, 145, 175, 0.24);
}

body.theme-glass-light .operations-formula-cell,
body.theme-glass-light .operations-relabel-route strong {
  color: #1d4ed8;
}

body.theme-glass-light .operations-formula-bar,
body.theme-glass-light .operations-formula-bar input {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(120, 145, 175, 0.24);
}

@media (max-width: 1180px) {
  .operations-summary-grid,
  .operations-workbook-layout,
  .operations-workbook-toolbar {
    grid-template-columns: 1fr;
  }

  .operations-formula-bar {
    grid-template-columns: 1fr;
  }

  .operations-relabel-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 1240px) {
  .review-workbench {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  }

  .review-strategy-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .review-toolbar,
  .review-workbench,
  .review-summary-grid {
    grid-template-columns: 1fr;
  }

  .review-product-rail,
  .review-table-shell {
    max-height: none;
  }

  .review-toolbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .review-query-control {
    grid-template-columns: 1fr;
  }

  .review-query-control .primary-button {
    width: 100%;
  }

  .field-help-popover {
    width: min(292px, calc(100vw - 28px));
  }

  .field-help-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .pricing-workspace,
  .pricing-search-row,
  .pricing-filter-inline,
  .pricing-advanced-filters,
  .pricing-support-grid {
    grid-template-columns: 1fr;
  }

  .pricing-kpi-grid,
  .pricing-side-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-list-table-wrap {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }

  .pricing-list-toolbar {
    position: static;
    top: auto;
  }

  .pricing-list-table th {
    top: 0;
  }

  .pricing-bulkbar {
    grid-template-columns: 1fr;
  }

  .pricing-side-panel,
  .pricing-selected-panel {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .pricing-profit-summary {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 620px) {
  .pricing-shell {
    padding: 12px;
    border-radius: 22px;
  }

  .pricing-kpi-grid,
  .pricing-side-metrics {
    grid-template-columns: 1fr;
  }
}

/* Pricing adjustment table readability refresh. Scoped to pricing page only. */
.pricing-shell {
  --pricing-table-text-strong: #0f172a;
  --pricing-table-text-main: #1e293b;
  --pricing-table-text-muted: #64748b;
  --pricing-table-text-soft: #94a3b8;
  --pricing-table-line-soft: #e2e8f0;
  --pricing-table-line-main: #d5e0ee;
  --pricing-table-blue: #2563eb;
  --pricing-table-green: #059669;
  --pricing-table-red: #dc2626;
  --pricing-table-orange: #ea580c;
  --pricing-table-bg: rgba(255, 255, 255, 0.86);
  --pricing-table-header-bg: #eaf4ff;
  --pricing-table-row-bg: rgba(255, 255, 255, 0.74);
  --pricing-table-row-hover: rgba(239, 246, 255, 0.72);
  --pricing-table-row-selected: rgba(219, 234, 254, 0.72);
}

body:not(.theme-glass-light) .pricing-shell {
  --pricing-table-text-strong: #f1f5f9;
  --pricing-table-text-main: #d7e3f4;
  --pricing-table-text-muted: #90a4bc;
  --pricing-table-text-soft: #60758e;
  --pricing-table-line-soft: rgba(148, 163, 184, 0.18);
  --pricing-table-line-main: rgba(148, 163, 184, 0.28);
  --pricing-table-blue: #60a5fa;
  --pricing-table-green: #34d399;
  --pricing-table-red: #fb7185;
  --pricing-table-orange: #f59e0b;
  --pricing-table-bg: rgba(7, 18, 31, 0.82);
  --pricing-table-header-bg: #081727;
  --pricing-table-row-bg: rgba(8, 19, 31, 0.86);
  --pricing-table-row-hover: rgba(37, 99, 235, 0.16);
  --pricing-table-row-selected: rgba(37, 99, 235, 0.24);
}

.pricing-list-table-wrap,
.table-shell.is-wide.pricing-list-table-wrap {
  overflow: auto;
  border: 1px solid var(--pricing-table-line-main);
  border-radius: 16px;
  background: var(--pricing-table-bg);
  box-shadow: none;
}

.pricing-list-table.pricing-table {
  width: 100%;
  min-width: 1280px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--pricing-table-text-main);
}

.pricing-list-table col.col-select { width: 64px; }
.pricing-list-table col.col-listing { width: 36%; }
.pricing-list-table col.col-current-price { width: 150px; }
.pricing-list-table col.col-current-margin { width: 150px; }
.pricing-list-table col.col-suggest-price { width: 150px; }
.pricing-list-table col.col-suggest-margin { width: 170px; }
.pricing-list-table col.col-status { width: 120px; }
.pricing-list-table col.col-action { width: 140px; }

.pricing-list-table th:nth-child(n),
.pricing-list-table td:nth-child(n) {
  width: auto;
  min-width: 0;
}

.pricing-list-table th,
.pricing-list-table td {
  color: var(--pricing-table-text-main);
  white-space: normal;
}

.pricing-list-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 48px;
  padding: 0 18px;
  color: var(--pricing-table-text-muted);
  border-bottom: 1px solid var(--pricing-table-line-main);
  background: var(--pricing-table-header-bg);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.pricing-list-table thead th:first-child,
.pricing-list-table tbody td:first-child {
  text-align: center;
}

.pricing-list-table tbody tr {
  background: var(--pricing-table-row-bg);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.pricing-list-table tbody td {
  background: transparent;
}

body:not(.theme-glass-light) .pricing-list-table-wrap,
body:not(.theme-glass-light) .table-shell.is-wide.pricing-list-table-wrap {
  background: var(--pricing-table-bg);
}

body:not(.theme-glass-light) .pricing-list-table tbody tr {
  background: var(--pricing-table-row-bg);
}

body:not(.theme-glass-light) .pricing-list-table tbody td,
body:not(.theme-glass-light) .pricing-list-row.is-active td,
body:not(.theme-glass-light) .pricing-list-row.is-selected td {
  background: transparent;
}

.pricing-list-table tbody tr:hover {
  background: var(--pricing-table-row-hover);
}

.pricing-list-table tbody tr.is-selected,
.pricing-list-table tbody tr[data-selected="true"],
.pricing-list-table tbody tr.is-active {
  background: var(--pricing-table-row-selected);
}

.pricing-list-table tbody tr.is-selected td,
.pricing-list-table tbody tr[data-selected="true"] td,
.pricing-list-table tbody tr.is-active td {
  background: transparent;
}

.pricing-list-table tbody td,
.pricing-list-table td.pricing-row-number {
  height: 116px;
  padding: 16px 18px;
  vertical-align: middle;
  border-bottom: 1px solid var(--pricing-table-line-soft);
}

.pricing-row-check {
  padding-top: 0;
  cursor: pointer;
}

.pricing-row-check span {
  width: 18px;
  height: 18px;
  border-color: var(--pricing-table-line-main);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
}

.pricing-listing-cell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.pricing-listing-image {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--pricing-table-line-soft);
  border-radius: 14px;
  background: #fff;
  object-fit: cover;
}

.pricing-listing-image-fallback {
  color: var(--pricing-table-blue);
}

.pricing-listing-info {
  min-width: 0;
}

.pricing-listing-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  margin-bottom: 6px;
}

.pricing-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: 100%;
}

.pricing-product-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 22px;
  padding: 0 8px;
  overflow: hidden;
  color: var(--pricing-table-blue);
  border-radius: 7px;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pricing-tag-core { color: var(--pricing-table-green); background: #dcfce7; }
.pricing-tag-clearance { color: var(--pricing-table-blue); background: #dbeafe; }
.pricing-tag-long-tail,
.pricing-tag-long_tail { color: #4f46e5; background: #eef2ff; }
.pricing-tag-new-or-idle,
.pricing-tag-new_or_idle { color: #b45309; background: #fef3c7; }
.pricing-tag-blocked { color: #b91c1c; background: #fee2e2; }

.pricing-product-tag-empty {
  color: var(--pricing-table-text-muted);
  font-size: 12px;
}

.pricing-listing-title {
  display: block;
  margin-bottom: 6px;
  overflow: hidden;
  color: var(--pricing-table-text-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.pricing-listing-meta,
.pricing-listing-submeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--pricing-table-text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.pricing-listing-submeta {
  margin-top: 3px;
}

.pricing-listing-meta > span,
.pricing-listing-submeta > span,
.pricing-link-stack > a,
.pricing-link-stack > span {
  white-space: nowrap;
}

.pricing-listing-meta > span + span::before,
.pricing-listing-submeta > span + span::before,
.pricing-link-stack::before {
  content: "·";
  margin-right: 8px;
  color: var(--pricing-table-text-soft);
}

.pricing-link-stack {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  color: var(--pricing-table-text-muted);
}

.pricing-link-stack a {
  color: var(--pricing-table-blue);
  font-weight: 650;
  text-decoration: none;
}

.pricing-link-stack a:hover {
  text-decoration: underline;
}

.pricing-list-table .copyable-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: inherit;
}

.pricing-list-table .copy-value-button {
  color: var(--pricing-table-blue);
}

.pricing-metric-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 44px;
  font-variant-numeric: tabular-nums;
}

.pricing-metric-main {
  color: var(--pricing-table-text-strong);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.pricing-metric-main.is-primary-currency {
  color: var(--pricing-table-text-strong);
  font-weight: 850;
}

.pricing-metric-sub {
  margin-top: 5px;
  color: var(--pricing-table-text-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.pricing-metric-sub.is-secondary-currency {
  color: var(--pricing-table-text-muted);
  font-weight: 600;
}

.pricing-metric-label {
  margin-top: 14px;
  color: var(--pricing-table-text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.pricing-rate {
  color: var(--pricing-table-text-strong);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.pricing-rate-negative,
.pricing-metric-sub.pricing-rate-negative,
.pricing-margin.is-low strong,
.pricing-suggested-margin.is-low strong,
.pricing-suggested-margin .pricing-rate-negative,
.pricing-profit-summary strong.pricing-rate-negative,
.pricing-profit-summary small.pricing-rate-negative,
.pricing-profit-comparison strong.pricing-rate-negative,
.pricing-profit-calculator-preview .metric-mini.pricing-rate-negative strong,
.pricing-profit-calculator-preview .metric-mini.pricing-rate-negative small {
  color: var(--pricing-table-red);
}

.pricing-rate-positive,
.pricing-metric-sub.pricing-rate-positive,
.pricing-margin.is-good strong,
.pricing-suggested-margin.is-good strong,
.pricing-suggested-margin .pricing-rate-positive,
.pricing-profit-summary strong.pricing-rate-positive,
.pricing-profit-summary small.pricing-rate-positive,
.pricing-profit-comparison strong.pricing-rate-positive,
.pricing-profit-calculator-preview .metric-mini.pricing-rate-positive strong,
.pricing-profit-calculator-preview .metric-mini.pricing-rate-positive small {
  color: var(--pricing-table-green);
}

.pricing-change {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.pricing-change-positive { color: var(--pricing-table-green); }
.pricing-change-negative { color: var(--pricing-table-orange); }

.pricing-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.pricing-status.is-ok {
  color: var(--pricing-table-green);
  background: #dcfce7;
}

.pricing-status.is-warn,
.pricing-status.is-danger {
  color: var(--pricing-table-red);
  background: #fee2e2;
}

.pricing-shell .pricing-action-button,
body.theme-glass-light .module-shell.visual-shell .pricing-action-button.primary-row-action:not(:disabled) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  height: 36px;
  padding: 0 16px;
  color: #fff;
  border: 1px solid #047857;
  border-radius: 10px;
  background: #059669;
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.22);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.pricing-shell .pricing-action-button::after {
  content: "→";
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.9;
}

.pricing-shell .pricing-action-button:hover:not(:disabled),
body.theme-glass-light .module-shell.visual-shell .pricing-action-button.primary-row-action:hover:not(:disabled) {
  color: #fff;
  border-color: #065f46;
  background: #047857;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.28);
  transform: translateY(-1px);
}

.pricing-shell .pricing-action-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
}

.pricing-shell .pricing-action-button:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.28);
  outline-offset: 2px;
}

.pricing-shell .pricing-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.pricing-shell .pricing-row-action.primary-button {
  min-height: 34px;
  height: 34px;
  padding: 0 14px;
  white-space: nowrap;
}

.pricing-list-table .sortable-header {
  gap: 6px;
}

.pricing-list-table .sort-button.is-active {
  color: var(--pricing-table-blue);
  background: rgba(37, 99, 235, 0.12);
}

.pricing-pager {
  min-height: 40px;
  color: var(--pricing-table-text-main);
  font-size: 13px;
}

.pricing-pager button,
.pricing-pager select,
.pricing-pager .page-size-button,
.pricing-pager .pager-button {
  min-height: 32px;
  height: 32px;
  color: var(--pricing-table-text-main);
  border: 1px solid var(--pricing-table-line-main);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
}

.pricing-list-table :where(.price-pair, .pricing-metric-main, .pricing-metric-sub, .pricing-rate, .pricing-change) {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1180px) {
  .pricing-list-table.pricing-table {
    min-width: 1180px;
  }
}
