.sellwms-control {
  --sw-ink: #171a21;
  --sw-muted: #697181;
  --sw-line: rgba(31, 41, 55, .1);
  --sw-blue: #2774f0;
  --sw-green: #15875f;
  --sw-surface: rgba(255, 255, 255, .76);
  display: grid;
  gap: 18px;
  max-width: 1680px;
  margin: 0 auto;
  color: var(--sw-ink);
}

.sellwms-control a { text-decoration: none; }

.sellwms-hero,
.sellwms-panel,
.sellwms-metrics article {
  border: 1px solid var(--sw-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(246, 248, 252, .72));
  box-shadow: 0 18px 60px rgba(20, 30, 55, .06), inset 0 1px 0 rgba(255, 255, 255, .96);
  backdrop-filter: blur(24px);
}

.sellwms-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  min-height: 250px;
  padding: 40px;
  overflow: hidden;
  border-radius: 28px;
}

.sellwms-hero::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -80px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 141, 255, .24), rgba(207, 226, 255, .08) 42%, transparent 70%);
  pointer-events: none;
}

.sellwms-eyebrow {
  margin: 0 0 10px;
  color: #758095;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.sellwms-eyebrow > span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #42bd86;
  box-shadow: 0 0 0 5px rgba(66, 189, 134, .12);
}

.sellwms-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #12151b;
  font: 800 clamp(38px, 4.3vw, 68px)/.98 "Manrope", "Inter", sans-serif;
  letter-spacing: -.055em;
}

.sellwms-hero > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.sellwms-hero-copy {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--sw-muted);
  font-size: 17px;
  line-height: 1.62;
}

.sellwms-hero-meta {
  z-index: 1;
  flex: 0 0 260px;
  align-self: flex-end;
  display: grid;
  gap: 5px;
  min-width: 260px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 20px;
  background: rgba(255, 255, 255, .64);
  box-shadow: 0 16px 44px rgba(54, 82, 130, .1);
}

.sellwms-hero-meta span,
.sellwms-hero-meta small { color: var(--sw-muted); font-size: 12px; }
.sellwms-hero-meta strong { font-size: 17px; }

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

.sellwms-metrics article {
  display: grid;
  min-height: 144px;
  padding: 22px;
  border-radius: 22px;
}

.sellwms-metrics span { color: var(--sw-muted); font-size: 13px; }
.sellwms-metrics strong { align-self: end; font: 750 34px/1 "Manrope", "Inter", sans-serif; letter-spacing: -.04em; }
.sellwms-metrics small { margin-top: 7px; color: #788193; font-size: 12px; }
.sellwms-metrics small.positive { color: var(--sw-green); }
.sellwms-metrics small.attention { color: #b7652d; }

.sellwms-panel { padding: 28px; border-radius: 26px; }
.sellwms-panel-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 24px; }
.sellwms-panel-head h2 { margin: 0; font: 750 28px/1.1 "Manrope", "Inter", sans-serif; letter-spacing: -.035em; }
.sellwms-panel-head > p { max-width: 540px; margin: 0; color: var(--sw-muted); line-height: 1.55; }
.sellwms-panel-head.compact { align-items: center; }
.sellwms-panel-head.compact h2 { font-size: 23px; }
.sellwms-panel-head a { color: var(--sw-blue); font-size: 13px; font-weight: 700; }

.sellwms-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.sellwms-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--sw-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .74);
  color: var(--sw-ink);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sellwms-flow-step:hover,
.sellwms-flow-step:focus-visible {
  z-index: 2;
  transform: translateY(-3px);
  border-color: rgba(39, 116, 240, .32);
  box-shadow: 0 16px 34px rgba(39, 75, 130, .11);
}

.sellwms-step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #edf3ff;
  color: var(--sw-blue);
  font-size: 11px;
  font-weight: 800;
}

.sellwms-flow-step div { min-width: 0; }
.sellwms-flow-step strong { display: block; font-size: 14px; line-height: 1.2; }
.sellwms-flow-step small { display: block; margin-top: 5px; color: var(--sw-muted); font-size: 11px; }
.sellwms-step-value { grid-column: 2; display: flex; gap: 5px; color: var(--sw-muted); font-size: 11px; }
.sellwms-step-value b { color: var(--sw-ink); }
.sellwms-flow-step svg { grid-row: 1 / span 2; grid-column: 3; width: 18px; fill: none; stroke: #a1a9b8; stroke-width: 1.8; }

.sellwms-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr); gap: 18px; }
.sellwms-grid.lower { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sellwms-queues { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sellwms-queues a { display: grid; min-height: 132px; padding: 17px; border: 1px solid var(--sw-line); border-radius: 18px; background: rgba(248, 250, 253, .8); color: var(--sw-ink); transition: background 180ms ease, transform 180ms ease; }
.sellwms-queues a:hover { transform: translateY(-2px); background: #fff; }
.sellwms-queues span { color: var(--sw-muted); font-size: 12px; }
.sellwms-queues strong { align-self: end; font-size: 28px; }
.sellwms-queues small { color: #8b94a4; font-size: 10px; letter-spacing: .08em; }

.sellwms-capacity-value { display: flex; align-items: end; gap: 13px; margin: 30px 0 15px; }
.sellwms-capacity-value strong { font: 750 46px/1 "Manrope", "Inter", sans-serif; letter-spacing: -.05em; }
.sellwms-capacity-value span { max-width: 140px; color: var(--sw-muted); font-size: 12px; line-height: 1.35; }
.sellwms-progress { height: 8px; overflow: hidden; border-radius: 99px; background: #e8edf4; }
.sellwms-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2b78ef, #6d9dff); }
.sellwms-capacity > p { margin: 16px 0 0; color: var(--sw-muted); font-size: 12px; }

.sellwms-list { display: grid; }
.sellwms-list > a,
.sellwms-movement { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 67px; padding: 12px 2px; border-bottom: 1px solid var(--sw-line); color: var(--sw-ink); }
.sellwms-list > a:last-child,
.sellwms-movement:last-child { border-bottom: 0; }
.sellwms-list strong { display: block; font-size: 14px; }
.sellwms-list small { display: block; margin-top: 4px; color: var(--sw-muted); font-size: 12px; }
.sellwms-movement > span { color: var(--sw-muted); font-size: 12px; white-space: nowrap; }
.sellwms-status { padding: 6px 10px; border-radius: 99px; background: #eef2f7; color: #596274; font-size: 11px; font-weight: 700; }
.sellwms-status.ready,
.sellwms-status.shipped { background: #e6f6ef; color: #147450; }
.sellwms-status.picking,
.sellwms-status.sorting { background: #eaf2ff; color: #2868c9; }
.sellwms-empty { display: grid; justify-items: start; gap: 7px; padding: 28px 0; color: var(--sw-muted); }
.sellwms-empty strong { color: var(--sw-ink); }
.sellwms-empty a { margin-top: 6px; color: var(--sw-blue); font-weight: 700; }

@media (max-width: 1350px) {
  .sellwms-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sellwms-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sellwms-hero { min-height: auto; padding: 28px; flex-direction: column; }
  .sellwms-hero-meta { align-self: stretch; min-width: 0; }
  .sellwms-metrics,
  .sellwms-grid,
  .sellwms-grid.lower { grid-template-columns: 1fr; }
  .sellwms-queues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .sellwms-hero,
  .sellwms-panel { padding: 20px; border-radius: 20px; }
  .sellwms-hero h1 { font-size: 38px; }
  .sellwms-hero-copy { font-size: 15px; }
  .sellwms-metrics,
  .sellwms-flow,
  .sellwms-queues { grid-template-columns: 1fr; }
  .sellwms-metrics article { min-height: 116px; }
  .sellwms-panel-head { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .sellwms-flow-step,
  .sellwms-queues a { transition: none; }
}
