* {
  box-sizing: border-box;
  letter-spacing: 0;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 13px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 16px;
}
svg.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.65;
  flex-shrink: 0;
}
img {
  max-width: 100%;
  display: block;
}
button {
  border: 0;
  background: none;
}
small {
  font-size: 11px;
}
strong {
  font-weight: 600;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 200;
  padding: 12px;
  background: var(--canvas);
}
.skip-link:focus {
  top: 10px;
}
.sidebar {
  width: var(--sidebar-width);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 28px 16px 0;
  z-index: 40;
  overflow-y: auto;
}
.brand {
  width: 170px;
  display: block;
  padding: 7px 5px 12px;
  margin-inline: auto;
  margin-bottom: 23px;
}
.brand img {
  width: 160px;
  height: 37px;
  object-fit: contain;
}
.logo-dark {
  display: none;
}
[data-theme="dark"] .logo-dark {
  display: block;
}
[data-theme="dark"] .logo-light {
  display: none;
}
.shop-switch {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  width: 100%;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  margin-bottom: 28px;
}
.shop-monogram {
  background: var(--ink);
  color: var(--canvas);
  font-family: var(--display);
  font-size: 20px;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}
.shop-monogram > span {
  width: 8px;
  height: 8px;
  background: #1da777;
  border: 2px solid var(--surface);
  border-radius: 50%;
  position: absolute;
  bottom: -2px;
  right: -2px;
}
.shop-copy {
  flex: 1;
  min-width: 0;
}
.shop-copy strong,
.shop-copy small {
  display: block;
}
.shop-copy strong {
  font-size: 12px;
}
.shop-copy small {
  color: var(--muted);
  font-size: 10px;
}
.shop-switch > svg {
  width: 14px;
  color: var(--muted);
}
.nav-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--faint);
  margin: 0 12px 10px;
}
.primary-nav,
.secondary-nav {
  display: grid;
  gap: 3px;
  margin-bottom: 27px;
}
.primary-nav > a,
.primary-nav > button,
.secondary-nav > button,
.nav-help {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 6px;
  text-align: left;
  width: 100%;
}
.primary-nav a:hover,
.secondary-nav button:not(:disabled):hover,
.nav-help:hover {
  background: var(--hover);
}
.primary-nav a.active {
  background: var(--brand);
  color: #fff;
  font-weight: 650;
}
.nav-number {
  margin-left: auto;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.primary-nav .active .nav-number {
  background: var(--brand);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 22px;
}
.plan-usage {
  padding: 13px 8px 20px;
}
.plan-usage small {
  display: block;
  white-space: nowrap;
  font-size: 10px;
}
.plan-usage > div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.plan-usage span,
.plan-usage small {
  color: var(--muted);
}
progress {
  display: block;
  height: 4px;
  width: 100%;
  border: 0;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 10px 0 7px;
}
progress::-webkit-progress-bar {
  background: var(--border);
}
progress::-webkit-progress-value {
  background: var(--brand);
}
progress::-moz-progress-bar {
  background: var(--brand);
}
.nav-help {
  margin-bottom: 10px;
}
.nav-help svg:last-child {
  margin-left: auto;
  width: 14px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 18px 8px;
  text-align: left;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e5e8df;
  color: #465146;
  font-size: 11px;
  font-weight: 600;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile strong,
.profile small {
  display: block;
  font-size: 11px;
}
.profile small {
  color: var(--muted);
  font-size: 10px;
}
.profile > svg {
  margin-left: auto;
  color: var(--muted);
  width: 16px;
}
.workspace {
  margin-left: var(--sidebar-width);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: var(--header-height);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
}
.breadcrumb svg {
  width: 16px;
  color: var(--faint);
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.crumb-divider {
  color: var(--strong-border);
}
.top-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.demo-label {
  font-size: 9px;
  color: var(--faint);
  padding-right: 9px;
}
.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 5px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--hover);
  color: var(--ink);
}
.notification-button {
  position: relative;
}
.notification-button > span {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--brand);
  border-radius: 50%;
  border: 1px solid var(--canvas);
}
main {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 36px 36px 28px;
  flex: 1;
}
main:focus,
main:focus-visible {
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 29px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--strong-border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.button:hover:not(:disabled) {
  background: var(--hover);
}
.button svg {
  width: 15px;
  height: 15px;
}
.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.button.primary:hover:not(:disabled) {
  background: #123ad6;
}
.button.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.button.quiet:hover {
  background: var(--hover);
}
.button.danger {
  color: var(--red);
}
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--brand-text);
  padding: 5px 0;
}
.link-button svg {
  width: 14px;
  height: 14px;
}
.period-select {
  border: 1px solid var(--strong-border);
  height: 40px;
  border-radius: 5px;
  background: var(--surface);
  padding: 0 30px 0 11px;
  color: var(--ink);
  font-size: 12px;
  max-width: 100%;
}
.kpi-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
  padding: 23px 0;
}
.kpi {
  padding: 0 24px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.kpi:first-child {
  padding-left: 0;
}
.kpi:last-child {
  border-right: 0;
}
.kpi-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 11px;
}
.kpi-label svg {
  width: 14px;
  height: 14px;
  color: var(--faint);
}
.kpi-value {
  font-size: 30px;
  font-family: var(--display);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kpi:first-child .kpi-value {
  color: var(--brand-text);
}
.kpi-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  color: var(--faint);
  font-size: 10px;
}
.delta {
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  background: var(--green-soft);
  border-radius: 4px;
  padding: 2px 5px;
}
.delta svg {
  width: 12px;
  height: 12px;
}
.dashboard-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: 30px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
  margin-bottom: 27px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.chart-legend {
  display: flex;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  margin-right: 5px;
}
.legend-dot.previous {
  background: var(--strong-border);
}
.chart-wrap {
  width: 100%;
  height: 225px;
  margin-top: 16px;
}
.revenue-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.revenue-chart text {
  font: 10px var(--font);
  fill: var(--faint);
}
.chart-grid {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.chart-current {
  stroke: var(--brand-text);
  stroke-width: 2.6;
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-area {
  fill: var(--brand);
  opacity: 0.045;
}
.chart-previous {
  stroke: var(--strong-border);
  stroke-width: 1.8;
  fill: none;
  stroke-dasharray: 4 5;
}
.chart-point {
  fill: var(--canvas);
  stroke: var(--brand-text);
  stroke-width: 2;
  opacity: 0;
}
.chart-point:hover,
.chart-point:focus {
  opacity: 1;
}
.chart-caption {
  font-size: 10px;
  color: var(--muted);
  margin-top: 9px;
}
.attention {
  border-left: 1px solid var(--border);
  padding-left: 26px;
}
.attention h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.attention h2 > span {
  font-family: var(--font);
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
}
.attention-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-align: left;
}
.attention-row:last-of-type {
  border-bottom: 0;
}
.attention-symbol {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: var(--amber-soft);
  color: var(--amber);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.attention-symbol.blue {
  background: var(--brand-soft);
  color: var(--brand-text);
}
.attention-symbol.green {
  background: var(--green-soft);
  color: var(--green);
}
.attention-symbol svg {
  width: 15px;
  height: 15px;
}
.attention-row strong {
  display: block;
  font-size: 12px;
  margin: 0 0 2px;
}
.attention-row p {
  font-size: 11px;
  color: var(--muted);
}
.attention-row > svg {
  margin: 6px 0 0 auto;
  width: 14px;
  color: var(--faint);
}
.attention-row:hover strong {
  color: var(--brand-text);
}
.shop-health {
  margin-top: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.connection-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.section-heading .subtitle-label {
  font-family: var(--font);
  font-size: 10px;
  color: var(--faint);
  margin-left: 10px;
}
.table-container {
  width: 100%;
  overflow: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
.data-table th {
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
  background: var(--sidebar);
  height: 34px;
  border-block: 1px solid var(--border);
}
.data-table td {
  height: 69px;
  border-bottom: 1px solid var(--border);
}
.data-table th,
.data-table td {
  padding: 8px 12px;
}
.data-table th:first-child,
.data-table td:first-child {
  padding-left: 0;
}
.data-table th:last-child,
.data-table td:last-child {
  text-align: right;
  padding-right: 4px;
}
.data-table tbody tr:hover {
  background: var(--sidebar);
}
.data-table th:first-child {
  padding-left: 12px;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.product-thumb {
  width: 38px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--subtle);
  flex-shrink: 0;
}
.product-cell strong {
  font-size: 12px;
  display: block;
  white-space: normal;
  line-height: 1.4;
}
.product-cell small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.order-id {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--muted);
}
.numeric {
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 550;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.badge.green {
  background: var(--green-soft);
  color: var(--green);
}
.badge.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.badge.blue {
  background: var(--brand-soft);
  color: var(--brand-text);
}
.badge.violet {
  background: var(--violet-soft);
  color: var(--violet);
}
.badge.neutral {
  background: var(--subtle);
  color: var(--muted);
}
.dashboard-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 17px 0;
}
.sourcing-summary {
  display: flex;
  align-items: center;
  gap: 13px;
}
.sourcing-summary > svg {
  color: var(--muted);
  width: 22px;
  height: 22px;
}
.sourcing-summary strong {
  display: block;
  font-size: 12px;
}
.sourcing-summary p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.workspace-footer {
  padding: 15px 36px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: var(--faint);
}
.workspace-footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-dot {
  padding: 0 7px;
}
.mobile-nav,
.mobile-brand {
  display: none;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  margin-bottom: 20px;
}
.tab {
  position: relative;
  min-height: 42px;
  padding: 0 0 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--brand-text);
  border-bottom-color: var(--brand);
}
.tab-count {
  font-size: 9px;
  padding: 1px 5px;
  background: var(--subtle);
  border-radius: 3px;
  color: var(--muted);
}
.tab.active .tab-count {
  background: var(--brand-soft);
  color: var(--brand-text);
}
.list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}
.search-field {
  height: 40px;
  border: 1px solid var(--strong-border);
  background: var(--surface);
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  gap: 8px;
  min-width: 0;
  width: 270px;
}
.search-field svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 12px;
  color: var(--ink);
  min-width: 0;
}
.search-field:focus-within {
  outline: 2px solid var(--brand-text);
  outline-offset: 2px;
}
.search-field input:focus-visible {
  outline: none;
}
.search-field input::placeholder {
  color: var(--faint);
}
.tools-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.orders-table input[type="checkbox"] {
  accent-color: var(--brand);
  width: 15px;
  height: 15px;
  vertical-align: middle;
  cursor: pointer;
}
.orders-table th:first-child,
.orders-table td:first-child {
  padding-left: 12px;
  width: 36px;
}
.orders-table td {
  height: 77px;
}
.orders-table .selected {
  background: var(--brand-soft);
}
.order-mobile-label {
  display: none;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 19px;
  font-size: 10px;
  color: var(--muted);
}
.pagination-controls {
  display: flex;
  gap: 5px;
  align-items: center;
}
.pagination-controls .icon-button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
}
.pagination-controls > span {
  padding: 0 10px;
  white-space: nowrap;
}
.selection-bar {
  padding: 10px 12px;
  background: var(--brand-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  border-radius: 5px;
  font-size: 11px;
}
.selection-bar strong {
  color: var(--brand-text);
}
.source-tabs {
  gap: 23px;
  margin-bottom: 24px;
}
.source-tabs .tab {
  font-size: 12px;
}
.source-tabs img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}
.search-workspace {
  border-bottom: 1px solid var(--border);
  padding-bottom: 23px;
  margin-bottom: 23px;
}
.product-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.product-search-form .search-field {
  flex: 1;
  height: 42px;
}
.product-search-form .search-field input {
  font-size: 12px;
}
.product-search-form .button {
  height: 42px;
  padding-inline: 20px;
}
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}
.results-heading h2 {
  font-size: 15px;
}
.results-heading h2 span {
  font-family: var(--font);
  color: var(--faint);
  font-size: 11px;
  margin-left: 8px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px 20px;
}
.product-card {
  min-width: 0;
  position: relative;
}
.product-image-button {
  width: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
  background: var(--subtle);
  border-radius: 8px;
  aspect-ratio: 1.32;
}
.product-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.15s;
}
.product-image-button:hover img {
  opacity: 0.9;
}
.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  margin-bottom: 4px;
  gap: 10px;
}
.product-source {
  font-size: 11px;
  color: var(--muted);
}
.product-card h3 {
  font: 550 13px/1.5 var(--font);
  margin-bottom: 5px;
}
.product-title-button {
  padding: 0;
  text-align: left;
}
.product-title-button:hover {
  color: var(--brand-text);
}
.product-price {
  font-size: 18px;
  font-family: var(--display);
}
.product-price small {
  font: 10px var(--font);
  color: var(--muted);
  margin-left: 4px;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}
.favorite {
  position: absolute;
  right: 10px;
  top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.favorite svg {
  width: 14px;
  height: 14px;
}
.favorite.is-saved {
  color: var(--brand-text);
}
.favorite.is-saved svg {
  fill: var(--brand-soft);
}
.product-ready {
  color: var(--green);
  font-size: 10px;
}
.product-ready svg {
  width: 10px;
  height: 10px;
  vertical-align: middle;
  margin-right: 3px;
}
.network-banner {
  background: var(--amber-soft);
  color: var(--amber);
  padding: 11px 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.network-banner button {
  margin-left: auto;
  text-decoration: underline;
  white-space: nowrap;
}
.network-banner svg {
  width: 15px;
}
.empty-state {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 13px;
  padding: 30px;
}
.empty-state > svg {
  width: 32px;
  height: 32px;
  color: var(--faint);
  stroke-width: 1.3;
}
.empty-state p {
  color: var(--muted);
  max-width: 330px;
  font-size: 12px;
}
.skeleton-layout {
  display: grid;
  gap: 24px;
  padding-top: 10px;
}
.skeleton-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.skeleton {
  height: 110px;
  background: var(--subtle);
  border-radius: 5px;
  animation: pulse 1.6s ease-in-out infinite;
}
.skeleton.large {
  height: 280px;
}
.skeleton.line {
  height: 45px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: calc(50% + var(--sidebar-width) / 2);
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  border-radius: 6px;
  padding: 13px 19px;
  font-size: 12px;
  z-index: 150;
  max-width: calc(100% - 32px);
  width: max-content;
  box-shadow: var(--shadow);
}
dialog {
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  width: 440px;
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 48px);
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: var(--scrim);
}
dialog.drawer {
  margin: 0 0 0 auto;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  width: 470px;
  border-radius: 0;
  border-block: 0;
  border-right: 0;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.dialog-header h2 {
  font-size: 18px;
}
.dialog-body {
  padding: 24px;
}
.dialog-body > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.dialog-field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 12px;
}
.dialog-field select,
.dialog-field input {
  padding: 10px;
  border: 1px solid var(--strong-border);
  background: var(--surface);
  border-radius: 5px;
  color: var(--ink);
  width: 100%;
}
.dialog-field input {
  min-height: 44px;
}
.detail-image {
  width: 100%;
  height: 265px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 22px;
}
.detail-title {
  font-size: 24px;
  margin: 8px 0 5px;
}
.detail-price {
  font: 500 28px var(--display);
  margin: 17px 0;
}
.detail-price small {
  font: 11px var(--font);
  color: var(--muted);
}
.detail-facts {
  margin: 20px 0;
  padding: 0;
}
.detail-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 12px;
}
.detail-facts dt {
  color: var(--muted);
}
.detail-facts dd {
  margin: 0;
  text-align: right;
}
.detail-section {
  margin-top: 24px;
}
.detail-section h3 {
  margin-bottom: 12px;
}
.variant-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.variant-controls button {
  min-height: 36px;
  border: 1px solid var(--strong-border);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 11px;
}
.variant-controls button.active {
  border-color: var(--brand-text);
  color: var(--brand-text);
  background: var(--brand-soft);
}
.notice {
  border-left: 2px solid var(--brand-text);
  padding: 10px 12px;
  background: var(--brand-soft);
  font-size: 11px;
  color: var(--brand-text);
  margin-top: 20px;
}
.dialog-list {
  display: grid;
  gap: 0;
}
.dialog-list > a,
.dialog-list > button {
  padding: 14px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.dialog-list small {
  display: block;
  color: var(--muted);
}
.dialog-list svg {
  color: var(--muted);
}
.timeline {
  padding-left: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  margin-left: 5px;
  padding: 0 0 20px 22px;
  border-left: 1px solid var(--border);
  font-size: 12px;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 5px;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}
.timeline li.pending:before {
  background: var(--strong-border);
}
.timeline small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.timeline li:last-child {
  border: 0;
  padding-bottom: 0;
}
.demo-action {
  font-size: 10px !important;
  color: var(--faint) !important;
  margin-top: 14px;
  margin-bottom: 0 !important;
}
.account-monogram {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}
.appearance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.appearance-options button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 5px;
  text-align: left;
  padding: 10px;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.appearance-options button.active {
  border-color: var(--brand-text);
  background: var(--brand-soft);
  color: var(--brand-text);
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1700px) {
  main {
    padding-inline: 50px;
  }
  .dashboard-top {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 45px;
  }
  .chart-wrap {
    height: 280px;
  }
  .product-grid {
    gap: 30px 24px;
  }
  .kpi-value {
    font-size: 34px;
  }
  .data-table td {
    height: 76px;
  }
}
@media (max-width: 1279px) and (min-width: 1024px) {
  :root {
    --sidebar-width: 210px;
  }
  .sidebar {
    padding-inline: 12px;
  }
  .topbar {
    padding-inline: 24px;
  }
  main {
    padding: 28px 24px;
  }
  .dashboard-top {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 22px;
  }
  .attention {
    padding-left: 20px;
  }
  .kpi {
    padding-inline: 15px;
  }
  .kpi-value {
    font-size: 25px;
  }
  .kpi-foot {
    font-size: 9px;
  }
  .data-table th,
  .data-table td {
    padding-inline: 8px;
  }
  .demo-label {
    display: none;
  }
}
@media (max-width: 1023px) {
  :root {
    --sidebar-width: 76px;
  }
  .sidebar {
    padding: 20px 10px 0;
    align-items: center;
  }
  .brand {
    width: 48px;
    padding: 0;
    margin: 0 0 27px;
    height: 42px;
    background: url("../public/icons/icon-192.png") center/40px no-repeat;
  }
  .brand img {
    display: none !important;
  }
  .shop-switch {
    padding: 9px;
    width: 54px;
    justify-content: center;
    margin-bottom: 24px;
  }
  .shop-copy,
  .shop-switch > svg,
  .nav-label,
  .primary-nav span,
  .secondary-nav span,
  .sidebar-foot .plan-usage,
  .profile > span:not(.avatar),
  .profile > svg,
  .nav-help {
    display: none;
  }
  .primary-nav,
  .secondary-nav {
    width: 100%;
    gap: 6px;
  }
  .primary-nav > a,
  .primary-nav > button,
  .secondary-nav > button {
    justify-content: center;
    padding: 0;
    min-height: 43px;
  }
  .primary-nav svg,
  .secondary-nav svg {
    width: 20px;
    height: 20px;
  }
  .sidebar-foot {
    width: 100%;
  }
  .profile {
    justify-content: center;
    padding: 18px 0;
  }
  .topbar {
    padding-inline: 26px;
  }
  main {
    padding: 28px 26px;
  }
  .demo-label {
    display: none;
  }
  .dashboard-top {
    grid-template-columns: minmax(0, 1fr) 225px;
    gap: 22px;
  }
  .attention {
    padding-left: 20px;
  }
  .kpi {
    padding-inline: 17px;
  }
  .kpi-value {
    font-size: 25px;
  }
  .kpi-foot {
    font-size: 9px;
  }
  .heading-actions {
    gap: 6px;
  }
  .page-heading {
    gap: 12px;
  }
  h1 {
    font-size: 27px;
  }
  .breadcrumb {
    gap: 12px;
  }
  .workspace-footer {
    padding-inline: 26px;
  }
  .orders-table {
    min-width: 780px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 16px;
  }
  .product-price {
    font-size: 15px;
  }
}
@media (max-width: 767px) {
  .dashboard-top {
    grid-template-columns: 1fr;
  }
  .attention {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 21px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .attention h2 {
    grid-column: 1/-1;
    margin-bottom: 5px;
  }
  .attention-row {
    padding: 13px 0;
  }
  .attention-row:last-of-type {
    border-bottom: 1px solid var(--border);
  }
  .shop-health {
    align-items: center;
    margin-top: 0;
  }
  .chart-wrap {
    height: 205px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .kpi-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    margin-bottom: 23px;
  }
  .kpi {
    padding: 18px !important;
  }
  .kpi:nth-child(odd) {
    padding-left: 0 !important;
  }
  .kpi:nth-child(even) {
    border-right: 0;
  }
  .kpi:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .kpi-value {
    font-size: 29px;
  }
  .kpi-foot {
    font-size: 10px;
  }
  .kpi-label {
    margin-bottom: 8px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-footer > span:last-child {
    font-size: 8px;
  }
  .recent-table .customer-col {
    display: none;
  }
  .recent-table th,
  .recent-table td {
    padding-inline: 8px;
  }
  .recent-table .product-cell strong {
    max-width: 135px;
  }
  .section-heading .subtitle-label {
    display: none;
  }
}
@media (max-width: 639px) {
  :root {
    --sidebar-width: 0px;
    --header-height: 60px;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    margin: 0;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .topbar {
    padding: env(safe-area-inset-top, 0px) 18px 0;
    height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    gap: 6px;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: block;
    width: 124px;
  }
  .mobile-brand img {
    width: 124px;
    height: 32px;
    object-fit: contain;
  }
  .top-actions {
    gap: 2px;
  }
  .icon-button {
    width: 38px;
    height: 38px;
  }
  .top-actions .icon-button {
    width: 34px;
    height: 38px;
  }
  main {
    padding: 25px max(18px, env(safe-area-inset-right, 0px)) 10px
      max(18px, env(safe-area-inset-left, 0px));
  }
  .page-heading {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 22px;
    gap: 16px;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 11px;
    margin-top: 5px;
  }
  .heading-actions {
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
  }
  .heading-actions > .button,
  .heading-actions > .period-select {
    min-height: 40px;
  }
  .period-select {
    font-size: 11px;
  }
  .kpi-label {
    font-size: 11px;
  }
  .kpi-foot {
    font-size: 9px;
    gap: 5px;
  }
  .kpi-value {
    font-size: 28px;
  }
  .kpi {
    padding: 17px 0 17px 17px !important;
  }
  .kpi-label svg {
    width: 13px;
  }
  .kpi:nth-child(odd) {
    padding-right: 8px !important;
  }
  .chart-legend {
    gap: 10px;
    font-size: 10px;
  }
  .section-heading {
    gap: 8px;
  }
  h2 {
    font-size: 17px;
  }
  .chart-wrap {
    height: 195px;
  }
  .chart-caption {
    font-size: 10px;
  }
  .attention {
    gap: 0;
    grid-template-columns: 1fr;
  }
  .attention-row {
    padding: 14px 0;
  }
  .shop-health {
    margin-top: 14px;
  }
  .dashboard-top {
    padding-bottom: 21px;
    margin-bottom: 23px;
    gap: 21px;
  }
  .recent-table thead {
    display: none;
  }
  .recent-table,
  .recent-table tbody {
    display: block;
  }
  .recent-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    column-gap: 12px;
  }
  .recent-table td {
    display: block;
    height: auto;
    border: 0;
    padding: 0 !important;
  }
  .recent-table td:first-child {
    grid-column: 1;
    grid-row: 1;
    font-size: 10px;
    color: var(--muted);
    padding-left: 48px !important;
    margin-bottom: 3px;
  }
  .recent-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .recent-table .product-cell {
    align-items: flex-start;
  }
  .recent-table .product-thumb {
    margin-top: -18px;
    width: 37px;
    height: 43px;
  }
  .recent-table .product-cell strong {
    max-width: 180px;
    font-size: 11px;
  }
  .recent-table .product-cell small {
    display: none;
  }
  .recent-table td:nth-last-child(2) {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 5px;
    text-align: right;
  }
  .recent-table td:last-child {
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
  }
  .dashboard-bottom {
    align-items: flex-start;
    margin-top: 10px;
    gap: 10px;
  }
  .sourcing-summary {
    gap: 10px;
  }
  .sourcing-summary strong {
    font-size: 11px;
  }
  .sourcing-summary p {
    font-size: 10px;
  }
  .dashboard-bottom .link-button {
    font-size: 10px;
    white-space: nowrap;
  }
  .workspace-footer {
    padding: 14px 18px;
    font-size: 8px;
  }
  .workspace-footer > span:last-child {
    font-size: 8px;
    gap: 4px;
  }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 4px env(safe-area-inset-right, 0px)
      env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    border-top: 1px solid var(--border);
    background: var(--surface);
    z-index: 50;
  }
  .mobile-nav > a,
  .mobile-nav > button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    font-size: 9px;
    position: relative;
    min-width: 0;
  }
  .mobile-nav svg {
    width: 20px;
    height: 20px;
  }
  .mobile-nav .active {
    color: var(--brand-text);
  }
  .mobile-nav .active:before {
    content: "";
    position: absolute;
    top: -5px;
    height: 2px;
    width: 26px;
    background: var(--brand);
  }
  .tabs {
    gap: 20px;
    margin-bottom: 17px;
  }
  .tab {
    min-height: 44px;
    font-size: 10px;
  }
  .list-tools {
    align-items: stretch;
    gap: 8px;
  }
  .search-field {
    width: auto;
    flex: 1;
    height: 42px;
  }
  .tools-right {
    gap: 4px;
  }
  .tools-right .button {
    min-height: 42px;
  }
  .orders-table {
    min-width: 0;
    white-space: normal;
  }
  .orders-table,
  .orders-table tbody {
    display: block;
  }
  .orders-table thead {
    display: none;
  }
  .orders-table tr {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 9px 10px;
    border-block-end: 1px solid var(--border);
    padding: 16px 0;
    position: relative;
  }
  .orders-table th,
  .orders-table td {
    display: block;
    height: auto;
    border: 0;
    padding: 0 !important;
  }
  .orders-table td:first-child {
    width: auto;
    grid-column: 1;
    grid-row: 1/4;
    align-self: center;
  }
  .orders-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    font-size: 10px;
  }
  .orders-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .orders-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
    font-size: 10px;
  }
  .orders-table td:nth-child(5) {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }
  .orders-table td:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
    text-align: right;
    align-self: center;
  }
  .orders-table td:nth-child(7) {
    grid-column: 3;
    grid-row: 3;
    text-align: right;
  }
  .orders-table td:nth-child(7) .icon-button {
    height: 32px;
    width: 36px;
    margin-top: -6px;
    margin-bottom: -8px;
  }
  .orders-table .product-cell strong {
    font-size: 11px;
  }
  .orders-table .product-cell small {
    font-size: 9px;
  }
  .orders-table .product-thumb {
    width: 32px;
    height: 36px;
  }
  .orders-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }
  .selection-bar {
    font-size: 10px;
    flex-wrap: wrap;
  }
  .selection-bar .button {
    min-height: 40px;
  }
  .pagination {
    font-size: 9px;
    gap: 6px;
  }
  .pagination-controls > span {
    padding-inline: 5px;
  }
  .pagination-controls .icon-button {
    width: 36px;
    height: 36px;
  }
  .product-search-form {
    gap: 7px;
    flex-wrap: wrap;
  }
  .product-search-form > .search-field {
    min-width: 180px;
  }
  .product-search-form > .button {
    padding-inline: 12px;
  }
  .product-search-form > .icon-button {
    border: 1px solid var(--border);
    height: 42px;
  }
  .source-tabs {
    gap: 22px;
    margin-bottom: 18px;
  }
  .source-tabs .tab {
    font-size: 11px;
  }
  .results-heading h2 {
    font-size: 14px;
  }
  .results-heading h2 span {
    font-size: 10px;
    margin-left: 4px;
  }
  .results-heading .period-select {
    font-size: 10px;
    max-width: 145px;
  }
  .product-grid {
    gap: 22px 13px;
  }
  .product-image-button {
    aspect-ratio: 1;
  }
  .product-card h3 {
    font-size: 12px;
  }
  .product-source {
    font-size: 10px;
  }
  .product-ready {
    font-size: 9px;
  }
  .product-ready svg {
    display: none;
  }
  .product-price {
    font-size: 17px;
  }
  .product-price small {
    font-size: 9px;
  }
  .product-meta {
    font-size: 10px;
    gap: 5px;
  }
  .favorite {
    width: 32px;
    height: 32px;
    top: 7px;
    right: 7px;
  }
  .product-topline {
    gap: 5px;
    margin-top: 9px;
  }
  .network-banner {
    padding: 10px 18px;
    align-items: flex-start;
    font-size: 10px;
  }
  .network-banner svg {
    flex-shrink: 0;
    margin-top: 3px;
  }
  .toast {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    font-size: 11px;
  }
  dialog {
    max-width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }
  dialog.drawer {
    width: 100%;
    max-width: 100%;
    border: 0;
  }
  .dialog-header {
    padding: calc(15px + env(safe-area-inset-top, 0px)) 18px 15px;
  }
  .dialog-body {
    padding: 20px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .dialog-footer .button {
    min-height: 44px;
  }
  .detail-image {
    height: 240px;
  }
  .detail-title {
    font-size: 24px;
  }
  .skeleton-row {
    grid-template-columns: 1fr 1fr;
  }
  .appearance-options button {
    font-size: 11px;
  }
  .search-field input,
  .product-search-form .search-field input,
  .dialog-field input,
  .dialog-field select {
    font-size: 16px;
  }
  .product-search-form > .search-field {
    flex-basis: 100%;
  }
  .product-search-form > .button {
    width: 100%;
    min-height: 44px;
  }
  .dialog-header .icon-button,
  .favorite {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
