@font-face {
  font-family: Manrope;
  src: url('../assets/fonts/manrope-variable.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b1018;
  --surface: #1b2432;
  --surface-raised: #2c3a4e;
  --surface-hover: #34455c;
  --text: #f8fbff;
  --secondary: #c0cbdb;
  --muted: #a3b1c4;
  --border: #40516a;
  --border-soft: #303e53;
  --accent: #ff831f;
  --accent-soft: #ff831f14;
  --positive: #3ae0ae;
  --negative: #ff7d94;
  --c-amazon: #ff831f;
  --c-ebay: #aa88ff;
  --c-aliexpress: #2fe0b6;
  --radius: 18px;
  --sidebar-width: 228px;
  --font: Manrope, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font: 14px var(--font);
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button, input, select {
  font: inherit;
}

button, a, input, select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  cursor: pointer;
  border: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

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

button svg, a svg {
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: #ff831f40;
  color: white;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  scrollbar-color: #454b53 var(--bg);
  scrollbar-gutter: stable;
}

.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

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

.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;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  padding: 12px 20px;
  background: var(--accent);
  color: #20140d;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.rotate-180 {
  transform: rotate(180deg);
}

.align-right {
  text-align: right;
}

/* Workspace rail */
.sidebar {
  width: var(--sidebar-width);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 30px 18px 20px;
  background: #101827;
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow-y: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
}

.sidebar > .brand {
  margin: 0 11px 36px;
}

.brand svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
  flex-shrink: 0;
}

.brand__period {
  color: var(--accent);
}

.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border: 1px solid #3b4a62;
  border-radius: 11px;
  margin-bottom: 28px;
  background: linear-gradient(120deg,#ffffff05,transparent);
  box-shadow: 0 1px 0 #ffffff04 inset;
}

.workspace__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 36px;
  background: #ffe1c9;
  color: #503018;
  border-radius: 8px;
}

.workspace strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.workspace div > span {
  display: block;
  font-size: 10px;
  color: var(--secondary);
  margin-top: 5px;
}

.navigation {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  transition: color .2s, background .2s;
}

.nav-link:hover {
  color: var(--text);
  background: #ffffff05;
}

.nav-link.is-active {
  box-shadow: inset 3px 0 0 var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-link.is-active .icon {
  stroke-width: 1.9;
}

.nav-link__arrow {
  margin-left: auto;
  width: 14px;
  opacity: .5;
  transition: transform .3s var(--ease);
}

.nav-link:hover .nav-link__arrow {
  transform: translateX(3px);
}

.sidebar__channels {
  margin-top: 38px;
}

.sidebar__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 650;
  color: var(--muted);
  padding: 0 12px;
  margin-bottom: 15px;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  isolation: isolate;
}

.channel-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 46px;
  padding: 8px 11px;
  background: transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 550;
  text-align: left;
  color: var(--secondary);
  transition: color .2s;
}

.channel-btn:hover:not(:disabled), .channel-btn[aria-pressed='true'] {
  color: var(--text);
}

.channel-btn:not([aria-pressed='true']):hover:not(:disabled) {
  background: #ffffff04;
}

.selection-track {
  position: absolute;
  left: 0;
  top: 0;
  background: #384b65;
  border-radius: 8px;
  box-shadow: 0 1px 0 #ffffff09 inset,0 2px 6px #00000015;
  pointer-events: none;
  z-index: -1;
  transition: transform .55s var(--ease), width .45s var(--ease), height .45s var(--ease);
}

.channel-list .selection-track {
  background: #26374e;
  border: 1px solid #49617e;
}

.channel-symbol {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border-radius: 7px;
  font-size: 19px;
  font-weight: 750;
  line-height: 1;
}

.channel-symbol--all {
  color: var(--secondary);
  background: #ffffff06;
}

.channel-symbol--all .icon {
  width: 15px;
  height: 15px;
}

.channel-symbol--amazon {
  background: #ff831f13;
  color: var(--c-amazon);
  font-family: Georgia,serif;
}

.channel-symbol--ebay {
  background: #aa88ff16;
  color: var(--c-ebay);
}

.channel-symbol--aliexpress {
  background: #2fe0b615;
  color: var(--c-aliexpress);
  font-size: 13px;
}

.channel-btn__count {
  margin-left: auto;
  font-size: 10px;
  background: #ffffff08;
  border-radius: 4px;
  min-width: 20px;
  padding: 3px;
  text-align: center;
}

.channel-btn__dot {
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--positive);
  opacity: 1;
}

.channel-btn:disabled .channel-btn__dot {
  background: var(--muted);
}

.manage-channels {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  margin: 18px 10px 0;
  padding: 7px 0;
  transition: color .2s;
}

.manage-channels .icon {
  width: 16px;
  height: 16px;
  transition: transform .5s var(--ease);
}

.manage-channels:hover {
  color: var(--text);
}

.manage-channels:hover .icon {
  transform: rotate(90deg);
}

.sidebar__bottom {
  margin-top: auto;
  padding-top: 48px;
}

.demo-note {
  position: relative;
  padding: 18px 13px;
  border-top: 1px solid var(--border);
}

.demo-note__dot, .footer__dot, .hint-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--positive);
  border-radius: 50%;
}

.demo-note strong {
  font-size: 10px;
  font-weight: 550;
  margin-left: 5px;
}

.demo-note p {
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 9px;
}

.source-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 12px 0;
  font-size: 11px;
  color: var(--secondary);
}

.source-link .icon {
  width: 16px;
  height: 16px;
}

.source-link .icon:last-child {
  margin-left: auto;
  width: 13px;
  transition: transform .3s var(--ease);
}

.source-link:hover {
  color: var(--text);
}

.source-link:hover .icon:last-child {
  transform: translate(2px,-2px);
}

/* Page rhythm and controls */
.app-shell {
  margin-left: var(--sidebar-width);
  min-width: 0;
}

.topbar {
  background: #101827;
  height: 72px;
  padding: 0 38px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb .icon {
  width: 16px;
  height: 16px;
}

.breadcrumb strong {
  font-weight: 550;
  color: #e0e8f3;
}

.breadcrumb__slash {
  color: #71839b;
}

.brand--mobile {
  display: none;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.demo-badge {
  font-size: 10px;
  color: #89f2c9;
  border: 1px solid #2a665a;
  border-radius: 20px;
  padding: 6px 11px;
  background: #2fe0b612;
}

.workspace-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: #ffd5b6;
  color: #382114;
}

.main-content {
  max-width: 1680px;
  margin: 0 auto;
  padding: 30px 38px 0;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

h1 {
  font-size: clamp(32px,2.7vw,42px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.7px;
}

.heading-dot {
  color: var(--accent);
}

.page-heading p {
  color: var(--secondary);
  font-size: 13px;
  margin-top: 10px;
}

.page-heading .eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 2px;
}

.page-heading__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  transition: background .2s, border-color .2s, transform .3s var(--ease), box-shadow .3s;
}

.button .icon {
  width: 17px;
  height: 17px;
  transition: transform .4s var(--ease);
}

.button--primary {
  background: var(--accent);
  color: #201407;
  border-color: #ffad62;
  box-shadow: 0 1px 0 #ffe9d550 inset,0 3px 8px #00000020;
}

.button--primary:hover:not(:disabled) {
  background: #ff9c43;
  box-shadow: 0 5px 22px #ff831f18;
  transform: translateY(-2px);
}

.button--primary:hover:not(:disabled) .icon {
  transform: translateY(2px);
}

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

.button--subtle {
  background: #243248;
  border-color: #4b5d77;
  color: #f0f5fc;
}

.button--subtle:hover {
  background: #314157;
  border-color: #6c84a4;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--secondary);
  padding: 12px;
}

.date-range .icon {
  width: 15px;
  height: 15px;
}

.mobile-manage,.mobile-channels {
  display: none;
}

.platform-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.platform-dot--amazon {
  background: var(--c-amazon);
}

.platform-dot--ebay {
  background: var(--c-ebay);
}

.platform-dot--aliexpress {
  background: var(--c-aliexpress);
}

.view-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  margin-bottom: 18px;
  border: 1px solid #346a5a;
  background: #3ae0ae06;
  border-radius: 10px;
  color: var(--secondary);
  font-size: 11px;
  line-height: 1.6;
}

.view-summary strong {
  color: var(--text);
  font-weight: 600;
}

.view-summary__reset {
  background: transparent;
  color: var(--positive);
  white-space: nowrap;
  font-size: 11px;
  padding: 5px;
}

/* The revenue canvas is the primary reading surface. */
.charts-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 308px;
  gap: 20px;
  margin-bottom: 28px;
}

.chart-card {
  border: 1px solid #40516a;
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
  box-shadow: 0 1px 0 #ffffff09 inset,0 12px 36px #00000024;
}

.chart-card--trend {
  background: radial-gradient(ellipse at 3% 0%,#37527566,transparent 58%),linear-gradient(150deg,#24344b,#192536 70%);
  overflow: hidden;
}

.revenue-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px 0;
}

.kpi-card__top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.kpi-card__label {
  color: #ccd8e8;
  font-size: 12px;
  font-weight: 500;
}

.kpi-card__top > .icon {
  color: #a3b1c4;
  width: 15px;
  height: 15px;
  margin-left: auto;
}

.currency-label {
  font-size: 9px;
  color: var(--muted);
  border: 1px solid #ffffff18;
  padding: 2px 5px;
  border-radius: 4px;
}

.kpi-card__value {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -1.2px;
  line-height: 1.3;
  margin: 12px 0 10px;
  font-variant-numeric: tabular-nums;
}

.kpi-card--revenue .kpi-card__value {
  font-size: clamp(44px,4.3vw,62px);
  line-height: 1.16;
  letter-spacing: -2.8px;
  font-weight: 650;
  margin: 10px 0 12px;
  min-height: 60px;
}

.kpi-card--revenue .kpi-card__label {
  font-size: 13px;
}

.kpi-card__bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 10px;
}

.kpi-card__change {
  color: var(--positive);
  font-weight: 600;
  white-space: nowrap;
}

.kpi-card__change--negative {
  color: var(--negative);
}

.kpi-card__change--neutral {
  color: var(--muted);
}

.kpi-card__comparison {
  color: var(--muted);
  font-size: 9px;
}

.kpi-card--revenue .kpi-card__change {
  font-size: 11px;
  background: #3ae0ae10;
  border: 1px solid #3ae0ae25;
  padding: 3px 7px;
  border-radius: 5px;
}

.kpi-card--revenue .kpi-card__change--negative {
  background: #ff7d9410;
  border-color: #ff7d9425;
}

.kpi-card--revenue .kpi-card__comparison {
  font-size: 11px;
}

.segmented {
  display: inline-flex;
  position: relative;
  isolation: isolate;
  border: 1px solid #ffffff0a;
  background: #0b1426b3;
  padding: 4px;
  border-radius: 11px;
  flex-shrink: 0;
}

.segmented__btn {
  min-width: 53px;
  min-height: 32px;
  padding: 6px 11px;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  transition: color .25s;
}

.segmented__btn:hover {
  color: var(--text);
}

.segmented__btn[aria-pressed='true'] {
  color: var(--text);
}

.plot-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 28px 8px;
  font-size: 10px;
  color: var(--muted);
}

.chart-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--muted);
}

.chart-hint .icon {
  width: 11px;
  height: 11px;
}

.chart-card__body--trend {
  height: 198px;
  margin: 0 13px 0 12px;
}

.chart-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 28px 20px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
  font-size: 9px;
  color: var(--secondary);
}

.chart-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.chart-legend__item i {
  width: 13px;
  height: 2px;
  border-radius: 1px;
}

.chart-legend__item--ghost i {
  border-top: 2px dashed #b0bbcd;
}

.compare-control {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 9px;
  color: var(--secondary);
  white-space: nowrap;
}

.compare-control input {
  appearance: none;
  margin: 0;
  width: 12px;
  height: 12px;
  border: 1px solid #7f91ad;
  border-radius: 3px;
  cursor: pointer;
  background: #1f2e45;
}

.compare-control input:checked {
  border-color: #c0cbdb;
  background: #c0cbdb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6 2.3 2.3 4.7-5' fill='none' stroke='%2320272e' stroke-width='1.5'/%3E%3C/svg%3E") center/12px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: 1px solid #ffffff0a;
  background: #0b101822;
}

.kpi-grid .kpi-card {
  padding: 18px 25px 20px;
  position: relative;
  transition: background .3s;
}

.kpi-grid .kpi-card + .kpi-card {
  border-left: 1px solid #ffffff0a;
}

.kpi-grid .kpi-card:hover {
  background: #ffffff03;
}

.kpi-grid .kpi-card__top .icon {
  transition: transform .5s var(--ease),color .3s;
}

.kpi-grid .kpi-card:hover .icon {
  transform: translateY(-3px);
  color: var(--accent);
}

/* SVG charts */
.trend-svg {
  display: block;
  overflow: visible;
  touch-action: pan-y;
}

.trend-grid {
  stroke: #b6c9e52b;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.trend-axis {
  fill: #afbed2;
  font: 9px var(--font);
}

.trend-line {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 7px color-mix(in srgb,var(--series-color) 38%,transparent));
  transition: stroke .35s;
}

.trend-ghost {
  fill: none;
  stroke: #a6b8cf;
  opacity: .72;
  stroke-width: 1.6;
  stroke-dasharray: 4 5;
}

.trend-dot {
  fill: var(--surface);
  stroke-width: 2;
  opacity: 0;
  transition: opacity .2s;
}

.trend-dot:last-child {
  opacity: 1;
  fill: var(--series-color);
  stroke: var(--surface) !important;
  stroke-width: 3;
  r: 5;
}

.trend-dot--active {
  opacity: 1;
  fill: var(--series-color);
}

.trend-guide {
  stroke: #c0cbdb66;
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
  transition: opacity .2s;
}

.trend-guide--visible {
  opacity: 1;
}

.chart-tooltip {
  position: fixed;
  z-index: 25;
  pointer-events: none;
  min-width: 220px;
  padding: 16px;
  border: 1px solid #627b9c;
  background: #1e304a;
  backdrop-filter: blur(16px);
  border-radius: 12px;
  box-shadow: 0 16px 40px #00000045;
  transform: translate(-50%,-100%) translateY(5px);
  opacity: 0;
  transition: opacity .18s,transform .18s var(--ease);
  color: var(--text);
  font-size: 11px;
}

.chart-tooltip--visible {
  opacity: 1;
  transform: translate(-50%,-100%);
}

.chart-tooltip--below {
  transform: translate(-50%,0) translateY(-5px);
}

.chart-tooltip--below.chart-tooltip--visible {
  transform: translate(-50%,0);
}

.chart-tooltip > strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 13px;
}

.chart-tooltip__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  margin-top: 9px;
  color: var(--secondary);
}

.chart-tooltip__row i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.chart-tooltip__row b {
  color: var(--text);
  font-size: 11px;
  font-weight: 550;
  margin-left: auto;
  padding-left: 18px;
}

.chart-tooltip__row .is-ghost {
  background: #bccce2;
}

.chart-tooltip__share {
  display: block;
  padding-top: 11px;
  margin-top: 12px;
  border-top: 1px solid #ffffff13;
  font-size: 9px;
}

.chart-card--channels {
  padding: 25px 23px 20px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg,#263650,#1b273a 75%);
}

.chart-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-card__header h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.3px;
}

.chart-card__header p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}

.card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--secondary);
  border: 1px solid #ffffff0e;
  background: #ffffff03;
  border-radius: 10px;
}

.card-icon .icon {
  width: 17px;
  height: 17px;
}

.chart-card__body--donut {
  flex: 1;
  display: flex;
  align-items: center;
}

.donut {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 23px;
  padding: 18px 0;
}

.donut__figure {
  position: relative;
  width: 196px;
  height: 196px;
  flex-shrink: 0;
}

.donut__figure::after {
  content: '';
  position: absolute;
  inset: 31px;
  border: 1px solid #ffffff08;
  border-radius: 50%;
  pointer-events: none;
}

.donut__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-16deg);
}

.donut__track {
  fill: none;
  stroke: #314157;
}

.donut__segment {
  fill: none;
  stroke-linecap: butt;
  transition: stroke-dasharray 1.1s var(--ease),stroke-dashoffset 1.1s var(--ease),opacity .3s,stroke-width .4s var(--ease);
}

.donut__segment--focused {
  stroke-width: 16;
}

.donut__segment--dimmed {
  opacity: .19;
}

.donut__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.donut__center-value {
  font-size: 40px;
  font-weight: 550;
  letter-spacing: -1.5px;
  line-height: 1.3;
}

.donut__center-caption {
  font-size: 10px;
  color: var(--secondary);
  margin-top: 3px;
}

.donut__legend {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.donut__legend li + li {
  margin-top: 6px;
}

.donut__legend-item {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: 7px minmax(0,1fr) auto auto;
  gap: 8px;
  width: 100%;
  padding: 14px 11px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 11px;
  text-align: left;
  transition: background .25s,border-color .25s,opacity .3s, transform .35s var(--ease);
}

.donut__legend-item:hover:not(:disabled), .donut__legend-item.is-focused {
  background: #ffffff04;
  border-color: #ffffff0c;
}

.donut__legend-item:hover:not(:disabled) {
  transform: translateX(3px);
}

.donut__legend-item.is-dimmed {
  opacity: .5;
}

.donut__swatch {
  width: 6px;
  height: 6px;
  background: var(--swatch);
  border-radius: 50%;
}

.donut__legend-name {
  color: #e8f0fa;
  font-weight: 550;
}

.donut__legend-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.donut__legend-share {
  color: var(--muted);
  font-size: 9px;
  min-width: 24px;
  text-align: right;
}

.donut__bar {
  position: absolute;
  bottom: 6px;
  left: 26px;
  right: 11px;
  height: 3px;
  border-radius: 2px;
  background: #ffffff08;
  overflow: hidden;
}

.donut__bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--share,0%);
  background: var(--swatch);
  opacity: 1;
  transition: width 1.1s var(--ease);
}

.channel-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  padding-top: 17px;
  border-top: 1px solid #ffffff09;
}

.hint-dot {
  background: var(--accent);
  width: 4px;
  height: 4px;
}

/* Orders: product-led rows with a quiet, legible data layer. */
.table-section {
  background: #192231;
  border: 1px solid #40516a;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 24px;
}

.orders-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 26px;
}

.orders-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  letter-spacing: -.5px;
  font-weight: 600;
}

.section-title__count {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--secondary);
  padding: 4px 6px;
  background: #ffffff06;
  border: 1px solid #ffffff09;
  border-radius: 5px;
}

.orders-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}

.order-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 194px;
  height: 39px;
  padding: 0 12px;
  border: 1px solid #465975;
  border-radius: 8px;
  background: #0c1525a6;
  transition: border-color .2s,box-shadow .2s;
}

.search-field:focus-within {
  border-color: #ff9c43;
  box-shadow: 0 0 0 3px #ff831f09;
}

.search-field .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 11px;
}

.search-field input::placeholder {
  color: var(--muted);
}

.status-filter {
  position: relative;
}

.status-filter select {
  appearance: none;
  min-height: 39px;
  padding: 9px 31px 9px 12px;
  border: 1px solid #465975;
  border-radius: 8px;
  font-size: 11px;
  color: #c6cbd2;
  background: #243248;
  cursor: pointer;
}

.status-filter .icon {
  width: 11px;
  height: 11px;
  position: absolute;
  top: 14px;
  right: 12px;
  transform: rotate(90deg);
  pointer-events: none;
  color: var(--muted);
}

.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 13px 24px;
  color: #b8c8dd;
  font-size: 10px;
  font-weight: 500;
  background: #ffffff02;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}

.data-table th:last-child {
  width: 48px;
}

.data-table td {
  padding: 14px 24px;
  border-bottom: 1px solid #ffffff06;
  font-size: 12px;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table__row {
  transition: background .25s;
}

.data-table__row:hover {
  background: #ffffff03;
}

.product-button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  background: none;
  text-align: left;
}

.product-thumb {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 48px;
  border-radius: 9px;
  flex-shrink: 0;
  background: linear-gradient(145deg,#343a3f,#242a2f);
  border: 1px solid #ffffff09;
  overflow: hidden;
}

.product-thumb--keyboard {
  background: linear-gradient(145deg,#48473e,#30322e);
}

.product-thumb--lamp {
  background: linear-gradient(145deg,#36453d,#242d2a);
}

.product-thumb--mouse {
  background: linear-gradient(145deg,#44494e,#2c333a);
}

.product-thumb--monitor {
  background: linear-gradient(145deg,#354347,#263134);
}

.product-art {
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform .7s var(--ease);
}

.product-button:hover .product-art, .data-table__row:hover .product-art {
  transform: translateY(-2px) rotate(-5deg) scale(1.08);
}

.product-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #e6e9ed;
  transition: color .2s;
}

.product-button:hover .product-name {
  color: var(--accent);
}

.order-id {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #bac1ca;
}

.platform-tag .channel-symbol {
  width: 21px;
  height: 21px;
  font-size: 15px;
  border-radius: 5px;
}

.platform-tag .channel-symbol--aliexpress {
  font-size: 10px;
}

.data-table__date {
  color: var(--secondary);
  font-size: 11px !important;
}

.data-table__amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #e4e8ed;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1;
}

.status-badge::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge--delivered {
  background: #3ae0ae16;
  border-color: #3ae0ae40;
  color: #66f0c4;
}

.status-badge--in-transit {
  background: #ffc45c16;
  border-color: #ffc45c40;
  color: #ffd27d;
}

.status-badge--cancelled {
  background: #ff7d9416;
  border-color: #ff7d9440;
  color: #ffa0b1;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 7px;
  color: var(--secondary);
  background: #ffffff04;
  border: 1px solid #ffffff0b;
  border-radius: 7px;
  transition: background .2s,color .2s,transform .3s var(--ease);
}

.icon-button .icon {
  width: 15px;
  height: 15px;
}

.icon-button:hover:not(:disabled) {
  color: var(--text);
  background: #ffffff0c;
  transform: translateY(-1px);
}

.order-open {
  background: transparent;
  border-color: transparent;
}

.order-open .icon {
  transition: transform .3s var(--ease);
}

.data-table__row:hover .order-open .icon {
  transform: translateX(3px);
  color: var(--accent);
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 25px;
  border-top: 1px solid var(--border-soft);
  font-size: 10px;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 1px;
  color: #a3b1c4;
  font-size: 9px;
}

.footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer__dot {
  width: 4px;
  height: 4px;
  opacity: .65;
}

/* Native dialogs retain modality throughout their entrance and exit. */
dialog {
  color: var(--text);
  background: #1c2a3d;
  border: 1px solid #5a7193;
  border-radius: 18px;
  padding: 0;
  max-height: calc(100dvh - 32px);
  width: min(480px,calc(100% - 32px));
  box-shadow: 0 32px 90px #00000060;
}

dialog::backdrop {
  background: #080b0fa8;
  backdrop-filter: blur(7px);
  animation: backdrop-in .4s both;
}

dialog.is-closing::backdrop {
  animation: backdrop-out .26s both;
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes backdrop-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 27px 28px 24px;
}

.dialog-header h2 {
  font-size: 20px;
  letter-spacing: -.5px;
  font-weight: 600;
}

.dialog-header p {
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 9px;
  max-width: 32ch;
}

.dialog-header .icon-button {
  flex-shrink: 0;
}

.checkbox-list {
  padding: 0 28px;
}

.custom-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.custom-checkbox > .channel-symbol {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 24px;
}

.custom-checkbox > .channel-symbol--aliexpress {
  font-size: 17px;
}

.custom-checkbox__name {
  font-size: 14px;
  font-weight: 600;
}

.custom-checkbox__name > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 5px;
}

.custom-checkbox input {
  position: absolute;
  right: 0;
  width: 42px;
  height: 28px;
  opacity: 0;
  cursor: pointer;
}

.toggle {
  margin-left: auto;
  width: 40px;
  height: 24px;
  border-radius: 20px;
  background: #5b6e8b;
  padding: 3px;
  transition: background .25s;
  pointer-events: none;
}

.toggle::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #f0f6ff;
  border-radius: 50%;
  box-shadow: 0 1px 3px #00000030;
  transition: transform .4s var(--ease),background .25s;
}

.custom-checkbox input:checked + .toggle {
  background: var(--accent);
}

.custom-checkbox input:checked + .toggle::after {
  transform: translateX(16px);
  background: #251606;
}

.custom-checkbox input:focus-visible + .toggle {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.dialog-note {
  margin: 22px 28px;
  padding: 13px 15px;
  background: #ffffff03;
  border: 1px solid #ffffff06;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.dialog-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding: 19px 28px;
}

.order-dialog {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(480px,100%);
  max-width: 100%;
  border-radius: 20px 0 0 20px;
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
}

.order-detail__product {
  margin: 4px 28px 26px;
  text-align: center;
  padding: 26px 22px 24px;
  border: 1px solid #ffffff0a;
  background: radial-gradient(ellipse at 50% 30%,#48565044,transparent 80%),#26394f;
  border-radius: 14px;
}

.order-detail__product .product-thumb {
  width: 140px;
  height: 140px;
  background: transparent;
  border: 0;
  overflow: visible;
  display: inline-block;
  margin-bottom: 9px;
}

.order-detail__product strong {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -.3px;
}

.order-detail__product p {
  font-size: 12px;
  color: var(--secondary);
  margin-top: 7px;
  line-height: 1.5;
}

.order-detail__product:hover .product-art {
  transform: translateY(-4px) rotate(-4deg);
}

.order-detail__info {
  margin: 0 28px 26px;
}

.order-detail__info div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
}

.order-detail__info dt {
  color: var(--secondary);
}

.order-detail__info dd {
  margin: 0;
}

.order-detail__info .order-total {
  margin-top: 8px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.4px;
}

.order-total dt {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0;
}

.order-detail__status {
  margin: 0 28px;
  border-left: 2px solid var(--accent);
  padding: 3px 0 3px 15px;
}

.order-detail__status h3 {
  font-size: 13px;
  font-weight: 600;
}

.order-detail__status p {
  font-size: 12px;
  color: var(--secondary);
  margin-top: 7px;
  line-height: 1.7;
}

/* Loading, empty, error and acknowledgement states. */
.skeleton {
  background: linear-gradient(100deg,#ffffff03 30%,#ffffff08 50%,#ffffff03 70%);
  background-size: 300% 100%;
  animation: skeleton 1.8s ease-in-out infinite;
  border-radius: 5px;
}

@keyframes skeleton {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

.skeleton-title {
  width: 65%;
  height: 37px;
}

.kpi-card--revenue .skeleton-title {
  width: 210px;
  height: 60px;
}

.skeleton-text {
  width: 40px;
  height: 12px;
}

.skeleton-chart {
  width: 100%;
  height: 100%;
}

.skeleton-circle {
  width: 196px;
  height: 196px;
  margin: 30px auto;
  border-radius: 50%;
}

.skeleton-row {
  height: 48px;
}

.skeleton-tr td {
  padding: 14px 24px;
}

.charts-section {
  transition: opacity .2s;
}

.main-content.is-loading .charts-section {
  opacity: .55;
}

.state-panel {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: var(--secondary);
  font-size: 12px;
}

.state-panel svg {
  color: var(--muted);
}

.state-panel__action {
  padding: 10px 15px;
  border: 1px solid #454e5a;
  border-radius: 7px;
  background: var(--surface-raised);
  font-size: 11px;
}

.state-panel__action:hover {
  border-color: var(--accent);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  left: calc(50% + var(--sidebar-width)/2);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 40;
  pointer-events: none;
  width: max-content;
  max-width: calc(100% - 32px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 19px;
  border-radius: 12px;
  background: #2c333bee;
  backdrop-filter: blur(12px);
  border: 1px solid #58616c;
  color: var(--text);
  box-shadow: 0 12px 40px #00000040;
  font-size: 12px;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  transition: opacity .2s,transform .4s var(--ease);
}

.toast--visible {
  opacity: 1;
  transform: none;
}

.toast__icon {
  width: 18px;
  height: 18px;
  stroke: var(--positive);
  flex-shrink: 0;
}

.toast--error .toast__icon {
  stroke: var(--negative);
}

.noscript-message {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 20px;
  background: var(--accent);
  color: black;
  z-index: 100;
}

/* Responsive composition, with useful touch targets and no horizontal page scroll. */
@media (min-width: 1600px) {
  .main-content {
    padding-top: 44px;
  }
  .charts-grid {
    grid-template-columns: minmax(0,1fr) 340px;
    gap: 24px;
  }
  .chart-card__body--trend {
    height: 260px;
  }
  .donut__figure {
    width: 215px;
    height: 215px;
  }
  .donut {
    gap: 28px;
  }
  .donut__legend-item {
    font-size: 12px;
    padding-top: 17px;
    padding-bottom: 21px;
  }
}

@media (max-width: 1250px) {
  :root {
    --sidebar-width: 208px;
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-content {
    padding: 30px 25px 0;
  }
  .topbar {
    padding: 0 25px;
  }
  .charts-grid {
    grid-template-columns: minmax(0,1fr) 270px;
    gap: 16px;
  }
  .revenue-heading {
    padding: 24px 22px 0;
  }
  .segmented__btn {
    min-width: 45px;
    padding: 6px 8px;
  }
  .page-heading__actions {
    gap: 4px;
  }
  .date-range {
    padding: 8px;
    font-size: 10px;
  }
  .kpi-grid .kpi-card {
    padding: 20px 18px;
  }
  .kpi-card__label {
    font-size: 11px;
  }
  .kpi-card__bottom {
    gap: 6px;
  }
  .kpi-grid .kpi-card__comparison {
    width: 100%;
    font-size: 9px;
  }
  .chart-card--channels {
    padding: 24px 18px 20px;
  }
  .donut__figure {
    width: 180px;
    height: 180px;
  }
  .data-table td,.data-table th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .orders-heading {
    padding: 23px 21px;
  }
  .search-field {
    width: 168px;
  }
}

@media (max-width: 1080px) {
  :root {
    --sidebar-width: 0px;
  }
  .sidebar {
    display: none;
  }
  .brand--mobile {
    display: inline-flex;
    font-size: 25px;
    gap: 7px;
  }
  .brand--mobile svg {
    width: 28px;
    height: 28px;
  }
  .breadcrumb {
    display: none;
  }
  .topbar {
    height: 66px;
  }
  .mobile-manage {
    display: inline-flex;
    padding: 10px;
  }
  .mobile-channels {
    display: flex;
    gap: 7px;
    margin: -9px 0 22px;
    overflow-x: auto;
    padding: 3px 1px;
    scrollbar-width: none;
  }
  .mobile-channels::-webkit-scrollbar {
    display: none;
  }
  .chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    min-height: 38px;
    color: var(--secondary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 7px;
    white-space: nowrap;
    font-size: 11px;
    transition: background .25s,border-color .25s,color .25s;
  }
  .chip[aria-pressed='true'] {
    background: #31373e;
    border-color: #505964;
    color: var(--text);
  }
  .chip:focus-visible {
    outline-offset: -3px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .kpi-grid .kpi-card {
    padding: 20px 13px;
  }
  .kpi-grid .kpi-card__top .icon {
    display: none;
  }
  .kpi-grid .kpi-card__label {
    white-space: nowrap;
  }
  .kpi-grid .kpi-card__value {
    font-size: 25px;
  }
}

@media (max-width: 760px) {
  .main-content {
    padding: 27px 20px 0;
  }
  .topbar {
    padding: 0 20px;
  }
  .page-heading {
    align-items: flex-start;
    position: relative;
    padding-bottom: 40px;
    margin-bottom: 17px;
    gap: 12px;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -1.5px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
  }
  .page-heading__actions {
    padding-top: 20px;
    gap: 8px;
  }
  .date-range {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 0;
    font-size: 11px;
    height: 22px;
  }
  .page-heading__actions .button {
    min-width: 40px;
    min-height: 40px;
    padding: 10px;
  }
  #export-btn span {
    display: none;
  }
  .mobile-channels {
    margin: 0 0 20px;
  }
  .charts-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
    margin-bottom: 22px;
  }
  .revenue-heading {
    padding: 25px 23px 0;
  }
  .kpi-card--revenue .kpi-card__value {
    font-size: 56px;
    min-height: 65px;
  }
  .chart-card__body--trend {
    height: 230px;
  }
  .plot-heading {
    margin-top: 27px;
  }
  .chart-card__footer {
    padding-bottom: 22px;
  }
  .kpi-grid .kpi-card {
    padding: 22px;
  }
  .kpi-grid .kpi-card__comparison {
    width: auto;
  }
  .chart-card--channels {
    padding: 23px;
  }
  .donut {
    flex-direction: row;
    gap: 28px;
    padding: 18px 0 14px;
  }
  .donut__figure {
    width: 165px;
    height: 165px;
  }
  .donut__figure::after {
    inset: 26px;
  }
  .donut__center-value {
    font-size: 33px;
  }
  .donut__legend-item {
    font-size: 12px;
    padding-top: 16px;
    padding-bottom: 19px;
  }
  .channel-hint {
    justify-content: flex-end;
    padding-top: 12px;
  }
  .orders-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
    padding: 23px;
  }
  .order-controls {
    width: 100%;
  }
  .search-field {
    width: auto;
    flex: 1;
    min-width: 0;
    height: 42px;
  }
  .status-filter select {
    min-height: 42px;
  }
  .status-filter .icon {
    top: 15px;
  }
  .table-footer {
    padding: 15px 21px;
  }
  .footer > span:last-child {
    display: none;
  }
  .view-summary {
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  .main-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .workspace-avatar {
    display: none;
  }
  .demo-badge {
    font-size: 9px;
  }
  .page-heading {
    gap: 6px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -1.3px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading__actions {
    gap: 6px;
    padding-top: 19px;
  }
  .page-heading__actions .button {
    min-width: 36px;
    min-height: 38px;
    padding: 9px;
  }
  .chip {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 10px;
  }
  .revenue-heading {
    padding: 22px 19px 0;
    position: relative;
    flex-wrap: wrap;
    gap: 18px;
  }
  .kpi-card--revenue {
    width: 100%;
  }
  .kpi-card--revenue .kpi-card__value {
    font-size: 53px;
    letter-spacing: -2.6px;
    min-height: 62px;
    margin-top: 12px;
  }
  .kpi-card--revenue .kpi-card__label {
    font-size: 12px;
  }
  .kpi-card--revenue .kpi-card__comparison {
    font-size: 10px;
  }
  .revenue-heading .segmented {
    position: absolute;
    right: 16px;
    top: 15px;
    padding: 3px;
    border-radius: 8px;
  }
  .segmented__btn {
    min-width: 37px;
    min-height: 32px;
    font-size: 9px;
    padding: 6px 7px;
  }
  .segmented .selection-track {
    border-radius: 5px;
  }
  .currency-label {
    display: none;
  }
  .plot-heading {
    margin: 24px 19px 9px;
    font-size: 9px;
  }
  .chart-hint {
    display: none;
  }
  .chart-card__body--trend {
    height: 205px;
    margin: 0 4px 0 0;
  }
  .chart-card__footer {
    padding: 12px 19px 20px;
    gap: 10px;
  }
  .chart-legend {
    gap: 11px;
    font-size: 8px;
  }
  .chart-legend__item {
    gap: 5px;
  }
  .chart-legend__item i {
    width: 9px;
  }
  .compare-control {
    font-size: 8px;
    gap: 5px;
  }
  .kpi-grid .kpi-card {
    padding: 18px 13px;
  }
  .kpi-grid .kpi-card__label {
    font-size: 9px;
    white-space: nowrap;
  }
  .kpi-grid .kpi-card__top > .icon {
    display: none;
  }
  .kpi-grid .kpi-card__value {
    font-size: 24px;
    letter-spacing: -.8px;
    margin: 10px 0 9px;
  }
  .kpi-grid .kpi-card__change {
    font-size: 10px;
  }
  .kpi-grid .kpi-card__comparison {
    width: 100%;
    font-size: 8px;
    line-height: 1.5;
  }
  .chart-card--channels {
    padding: 21px 18px 17px;
  }
  .chart-card__header h2 {
    font-size: 15px;
  }
  .chart-card__header p {
    font-size: 10px;
  }
  .donut {
    gap: 13px;
    padding: 18px 0;
  }
  .donut__figure {
    width: 120px;
    height: 120px;
  }
  .donut__figure::after {
    inset: 19px;
  }
  .donut__center-value {
    font-size: 28px;
  }
  .donut__center-caption {
    font-size: 9px;
  }
  .donut__legend-item {
    grid-template-columns: 5px minmax(0,1fr) auto;
    gap: 6px;
    font-size: 10px;
    padding: 12px 3px 18px;
  }
  .donut__legend-share {
    display: none;
  }
  .donut__bar {
    left: 14px;
    right: 3px;
  }
  .donut__swatch {
    width: 5px;
    height: 5px;
  }
  .channel-hint {
    justify-content: center;
    font-size: 9px;
  }
  .orders-heading {
    padding: 21px 17px 18px;
    gap: 18px;
  }
  .orders-heading h2 {
    font-size: 18px;
  }
  .orders-heading p {
    font-size: 10px;
  }
  .search-field input,.status-filter select {
    font-size: 16px;
  }
  .search-field input::placeholder {
    font-size: 12px;
  }
  .search-field {
    padding: 0 10px;
    gap: 7px;
  }
  .status-filter select {
    max-width: 143px;
    padding-left: 9px;
  }
  .table-container {
    overflow: visible;
  }
  .data-table,.data-table tbody {
    display: block;
  }
  .data-table thead {
    display: none;
  }
  .data-table__row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: 'product amount' 'product status' 'channel date';
    gap: 9px 8px;
    padding: 18px 16px;
    border-top: 1px solid var(--border-soft);
  }
  .data-table__row td {
    padding: 0 !important;
    border: 0;
  }
  .data-table__row td:nth-child(1) {
    grid-area: product;
  }
  .data-table__row td:nth-child(2) {
    grid-area: channel;
    margin-left: 54px;
  }
  .data-table__row td:nth-child(3) {
    grid-area: date;
    text-align: right;
    font-size: 9px !important;
    color: var(--muted);
  }
  .data-table__row td:nth-child(4) {
    grid-area: amount;
    align-self: end;
    font-size: 12px;
  }
  .data-table__row td:nth-child(5) {
    grid-area: status;
    justify-self: end;
  }
  .data-table__row td:nth-child(6) {
    display: none;
  }
  .product-button {
    align-items: flex-start;
    gap: 11px;
  }
  .product-name {
    font-size: 11px;
    max-width: 21ch;
    line-height: 1.6;
    white-space: normal;
  }
  .product-thumb {
    width: 43px;
    height: 46px;
  }
  .order-id {
    font-size: 10px;
    margin-top: 4px;
  }
  .platform-tag {
    font-size: 9px;
    gap: 6px;
  }
  .platform-tag .channel-symbol {
    width: 15px;
    height: 15px;
    font-size: 11px;
    border-radius: 4px;
  }
  .platform-tag .channel-symbol--aliexpress {
    font-size: 8px;
  }
  .status-badge {
    font-size: 9px;
    padding: 4px 5px;
    gap: 4px;
  }
  .status-badge::before {
    width: 3px;
    height: 3px;
  }
  .table-footer {
    padding: 14px 16px;
    font-size: 9px;
  }
  .pagination {
    gap: 8px;
  }
  .icon-button {
    min-width: 38px;
    min-height: 38px;
  }
  .data-table__empty,.data-table__empty td {
    display: block;
  }
  .data-table__empty td {
    padding: 0 !important;
  }
  .skeleton-tr,.skeleton-tr td {
    display: block;
  }
  .skeleton-tr td {
    padding: 18px !important;
  }
  .dialog-header {
    padding: 24px 22px 21px;
  }
  .dialog-header h2 {
    font-size: 18px;
  }
  .checkbox-list {
    padding: 0 22px;
  }
  .dialog-note {
    margin-left: 22px;
    margin-right: 22px;
    font-size: 10px;
  }
  .dialog-footer {
    padding: 18px 22px;
    gap: 8px;
  }
  .dialog-footer .button {
    min-height: 44px;
    white-space: normal;
  }
  .order-dialog {
    border-radius: 0;
  }
  .order-detail__product {
    margin-left: 22px;
    margin-right: 22px;
  }
  .order-detail__info {
    margin-left: 22px;
    margin-right: 22px;
  }
  .order-detail__status {
    margin-left: 22px;
    margin-right: 22px;
  }
}

@media (max-width: 350px) {
  .main-content {
    padding-left: 12px;
    padding-right: 12px;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading__actions {
    gap: 4px;
  }
  .page-heading__actions .button {
    min-width: 31px;
    padding: 7px;
  }
  .revenue-heading {
    padding-left: 15px;
  }
  .segmented__btn {
    min-width: 33px;
    padding: 6px;
  }
  .revenue-heading .segmented {
    right: 12px;
  }
  .kpi-card--revenue .kpi-card__value {
    font-size: 49px;
  }
  .kpi-grid .kpi-card {
    padding-left: 10px;
    padding-right: 10px;
  }
  .kpi-grid .kpi-card__value {
    font-size: 22px;
  }
  .chart-card__footer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .chart-legend {
    gap: 8px;
    font-size: 7px;
  }
  .compare-control {
    font-size: 7px;
  }
  .donut__figure {
    width: 103px;
    height: 103px;
  }
  .donut__center-value {
    font-size: 25px;
  }
  .donut__center-caption {
    font-size: 8px;
  }
  .donut {
    gap: 9px;
  }
  .donut__legend-item {
    font-size: 9px;
  }
  .product-thumb {
    width: 34px;
    height: 40px;
  }
  .product-button {
    gap: 8px;
  }
  .data-table__row td:nth-child(2) {
    margin-left: 42px;
  }
  .data-table__row {
    padding-left: 13px;
    padding-right: 13px;
  }
  .table-footer {
    font-size: 8px;
    padding-left: 13px;
    padding-right: 13px;
  }
}

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