/* Shared visual language for the local workbench and cloud pages. */
:root {
  --site-bg: #f3f6f4;
  --site-surface: #ffffff;
  --site-surface-soft: #eef3f0;
  --site-ink: #192923;
  --site-muted: #66756d;
  --site-line: #d8e2dc;
  --site-primary: #14745b;
  --site-primary-dark: #0d5b47;
  --site-blue: #2d6fbd;
  --site-orange: #bd7435;
  --site-danger: #b8423b;
  --site-success: #16815a;
  --site-shadow: 0 4px 18px rgba(25, 48, 39, .07);
  --site-radius: 8px;
}

body.site-page,
body.plugin-page {
  --bg: var(--site-bg);
  --surface: var(--site-surface);
  --surface-soft: var(--site-surface-soft);
  --panel: var(--site-surface);
  --text: var(--site-ink);
  --ink: var(--site-ink);
  --text-2: #52625a;
  --muted: var(--site-muted);
  --line: var(--site-line);
  --border: var(--site-line);
  --green: var(--site-primary);
  --green-dark: var(--site-primary-dark);
  --accent: var(--site-primary);
  --accent-2: var(--site-blue);
  --primary: var(--site-primary);
  --primary-hover: var(--site-primary-dark);
  --blue: var(--site-blue);
  --orange: var(--site-orange);
  --red: var(--site-danger);
  --danger: var(--site-danger);
  --success: var(--site-success);
  --good: var(--site-success);
  --shadow: var(--site-shadow);
}

body.site-page {
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.site-page * { letter-spacing: 0; }
body.site-page button,
body.site-page input,
body.site-page select,
body.site-page textarea { font-family: inherit; }
body.site-page button:focus-visible,
body.site-page a:focus-visible,
body.site-page input:focus-visible,
body.site-page select:focus-visible,
body.site-page textarea:focus-visible {
  outline: 3px solid rgba(20, 116, 91, .2);
  outline-offset: 2px;
}

/* The same header rhythm is used by all authenticated pages. */
.dashboard-page > header,
.tasks-page > header,
.library-page > header,
.admin-page > header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--site-line);
  box-shadow: 0 1px 10px rgba(25, 48, 39, .035);
  backdrop-filter: blur(14px);
}
.dashboard-page > header { padding: 0; }

.dashboard-page .header-main,
.dashboard-page .filter-bar,
.tasks-page .topbar,
.library-page .topbar,
.admin-page .nav {
  width: min(1320px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.dashboard-page .header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 70px;
  padding: 12px 0;
}

.dashboard-page .header-actions { flex-wrap: nowrap; }

.tasks-page .topbar,
.library-page .topbar,
.admin-page .nav { min-height: 68px; }

.site-page .brand {
  color: var(--site-ink);
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.site-page .brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px;
  flex: 0 0 28px;
}

.site-page .brand-mark span { display: block; border-radius: 3px; background: var(--site-primary); }
.site-page .brand-mark span:nth-child(2) { background: var(--site-orange); }
.site-page .brand-mark span:nth-child(3) { background: #92b5a5; }
.site-page .brand-mark span:nth-child(4) { background: var(--site-blue); }

.site-page .nav,
.site-page .nav-actions,
.site-page .nav-links,
.site-page .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-page .nav-link,
.site-page .home-link,
.site-page .nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #506159;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease;
}

.site-page .nav-link:hover,
.site-page .nav-link:focus-visible,
.site-page .home-link:hover,
.site-page .home-link:focus-visible,
.site-page .nav-links a:hover,
.site-page .nav-links a:focus-visible,
.site-page .nav-link[aria-current="page"],
.site-page .home-link[aria-current="page"] {
  border-color: #c8ddd3;
  background: #eaf3ee;
  color: var(--site-primary-dark);
}

.site-page .nav-link[aria-current="page"],
.site-page .home-link[aria-current="page"] {
  padding: 0 11px;
}

.site-page .nav-link:hover,
.site-page .home-link:hover,
.site-page .nav-links a:hover {
  transform: translateY(-1px);
}

.site-page .account-menu { position: relative; }
.site-page .account-trigger {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 190px;
  padding: 0 10px;
  border: 1px solid var(--site-line);
  border-radius: 6px;
  background: var(--site-surface-soft);
  color: var(--site-ink);
  font-weight: 750;
}
.site-page .account-trigger:hover { border-color: #bcd5c9; background: #e7f1eb; }
.site-page .account-trigger[aria-current="page"] {
  border-color: #c8ddd3;
  background: #eaf3ee;
  color: var(--site-primary-dark);
}
.site-page .account-chevron { margin-left: 0; color: var(--site-muted); font-size: 10px; }
.site-page .account-dropdown {
  width: 148px;
  padding: 5px;
  border: 1px solid var(--site-line);
  border-radius: 7px;
  background: var(--site-surface);
  box-shadow: 0 12px 28px rgba(25, 48, 39, .14);
}
.site-page .account-dropdown button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--site-ink);
  text-align: left;
}
.site-page .account-dropdown button:hover { background: #edf4f0; color: var(--site-primary-dark); }

/* All locally rendered icons use one stroke weight and one optical size. */
.site-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  color: currentColor;
  line-height: 0;
}
.site-icon svg { width: 100%; height: 100%; overflow: visible; }
.site-icon svg * { vector-effect: non-scaling-stroke; }
.icon-button .site-icon { width: 18px; height: 18px; flex-basis: 18px; }

.site-page .primary,
.site-page .secondary,
.site-page .danger,
.site-page .primary-button,
.site-page .secondary-button,
.site-page .compact-button,
.site-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  font-weight: 700;
  transition: background .16s, border-color .16s, color .16s, transform .12s;
}
.site-page .primary,
.site-page .primary-button,
.site-page .button.primary {
  border-color: var(--site-primary);
  background: var(--site-primary);
  color: #fff;
}
.site-page .primary:hover,
.site-page .primary-button:hover,
.site-page .button.primary:hover { border-color: var(--site-primary-dark); background: var(--site-primary-dark); }
.site-page .secondary,
.site-page .secondary-button,
.site-page .button.secondary {
  border-color: var(--site-line);
  background: var(--site-surface);
  color: #3c5148;
}
.site-page .secondary:hover,
.site-page .secondary-button:hover,
.site-page .button.secondary:hover { border-color: #b9d2c5; background: #edf4f0; color: var(--site-primary-dark); }
.site-page button:active { transform: translateY(1px); }
.site-page button:disabled { transform: none; }

.dashboard-page main,
.tasks-page main,
.library-page main,
.admin-page main { color: var(--site-ink); }

.dashboard-page .metric,
.dashboard-page .panel,
.tasks-page .editor,
.tasks-page .task-card,
.library-page .panel,
.admin-page .panel {
  border-color: var(--site-line);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
}

.dashboard-page .metric strong,
.dashboard-page .metric b { color: var(--site-ink); }
.dashboard-page .panel h2,
.tasks-page .editor h2,
.library-page .panel-heading h2,
.admin-page .panel-header h2 { color: var(--site-ink); }
.dashboard-page th,
.dashboard-page .tabs,
.library-page .panel-heading,
.admin-page .panel-header { background: var(--site-surface-soft); }
.dashboard-page th,
.dashboard-page td,
.dashboard-page .panel,
.library-page .panel-heading,
.admin-page .panel-header { border-color: var(--site-line); }

.tasks-page .source-badge { background: #e8f0fb; color: #2a5d9b; }
.tasks-page .review-badge { background: #fff3df; color: #8b631f; }
.tasks-page .review-badge.approved { background: #e6f3eb; color: var(--site-success); }
.tasks-page .review-badge.rejected { background: #fcebea; color: var(--site-danger); }
.tasks-page input,
.tasks-page textarea,
.library-page .field,
.library-page .edit-control,
.admin-page input,
.login-page input { border-color: #c6d4cc; }
.tasks-page input:focus,
.tasks-page textarea:focus,
.library-page .field:focus,
.library-page .edit-control:focus,
.admin-page input:focus,
.login-page input:focus { border-color: var(--site-primary); box-shadow: 0 0 0 3px rgba(20, 116, 91, .12); }

.library-page .summary-grid { border-color: var(--site-line); box-shadow: var(--site-shadow); }
.library-page .summary-item { border-color: var(--site-line); }
.library-page .product-row:hover { background: #f5faf7; }
.library-page .product-row.selected { background: #e7f2ec; box-shadow: inset 3px 0 0 var(--site-primary); }
.library-page .product-dimension { color: var(--site-primary-dark); }

.admin-page .count { background: #e6f2eb; color: var(--site-primary-dark); }
.admin-page .row-actions button { min-height: 34px; }

/* The welcome and login surfaces intentionally keep their image-led entry treatment. */
.welcome-page .brand,
.welcome-page .nav-link { color: rgba(255, 255, 255, .92); }
.welcome-page .nav-link:hover,
.welcome-page .nav-link:focus-visible { border-color: rgba(255, 255, 255, .48); background: rgba(9, 18, 15, .24); color: #fff; }
.welcome-page .account-trigger {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(9, 18, 15, .32);
  color: rgba(255, 255, 255, .94);
}
.welcome-page .account-trigger:hover { border-color: rgba(255, 255, 255, .58); background: rgba(9, 18, 15, .48); }
.welcome-page .primary-action { gap: 8px; }
.login-page .back-link { display: inline-flex; align-items: center; gap: 7px; }
.login-page #submit-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* The local desktop workbench keeps its dense layout but shares the palette. */
body.plugin-page { background: var(--site-bg); color: var(--site-ink); }
.plugin-page .brand-mark { background: var(--site-ink); }
.plugin-page .status-dot { background: var(--site-success); }
.plugin-page .button.primary { background: var(--site-primary); }
.plugin-page .button.primary:hover { background: var(--site-primary-dark); }
.plugin-page .app-nav-button.active { background: #e7f2ec; color: var(--site-primary-dark); }
.plugin-page .app-nav-button:hover { background: #edf4f0; }
.plugin-page .app-nav-icon { color: var(--site-primary); }

@media (max-width: 760px) {
  .dashboard-page .header-main,
  .dashboard-page .filter-bar,
  .tasks-page .topbar,
  .library-page .topbar,
  .admin-page .nav { width: min(100% - 28px, 720px); }
  .site-page .nav,
  .site-page .nav-actions,
  .site-page .nav-links,
  .site-page .header-actions { flex-wrap: wrap; }
  .site-page .nav-link,
  .site-page .home-link,
  .site-page .nav-links a { padding: 0 8px; }
}

@media (max-width: 980px) {
  .dashboard-page .header-main {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-page .header-actions { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .site-page .account-trigger { max-width: 150px; }
  .site-page .account-trigger .site-icon { display: none; }
  .site-page .nav-link,
  .site-page .home-link,
  .site-page .nav-links a { font-size: 12px; }
}

/* Shared page geometry: keep navigation and content anchored between modules. */
html:has(body.site-page:not(.login-page)) { scrollbar-gutter: stable; }
body.site-page:not(.login-page) { --site-content-width: 1440px; --site-page-gutter: 24px; }
body.site-page:not(.login-page) .shell,
body.site-page:not(.login-page) > main:not(#about),
body.site-page:not(.login-page) > header :is(.topbar, .header-main, nav.shell) {
  width: min(var(--site-content-width), calc(100% - 2 * var(--site-page-gutter)));
  margin-inline: auto;
}
body.site-page:not(.login-page) > header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--site-line);
  box-shadow: none;
}
body.site-page:not(.login-page) > header :is(.topbar, .header-main, nav.shell) {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  min-height: 68px;
  padding: 0 164px 0 0;
  border: 0;
  flex-wrap: nowrap;
}
body.site-page:not(.login-page) > header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--site-ink);
  font-size: 17px;
  line-height: 24px;
  font-weight: 750;
}
body.site-page:not(.login-page) > header :is(.topbar > .nav, .nav-actions, .nav-links, .header-actions) {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
}
body.site-page:not(.login-page) > header :is(.nav-link, .home-link, .nav-links > a) {
  flex: 0 0 auto;
  height: 36px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #506159;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  transform: none;
}
body.site-page:not(.login-page) > header :is(.nav-link, .home-link, .nav-links > a):is(:hover, [aria-current="page"]) {
  padding: 0 9px;
  border-color: #c8ddd3;
  background: #eaf3ee;
  color: var(--site-primary-dark);
}
/* Reserve icon space before the deferred icon script runs. */
body.site-page:not(.login-page) > header [data-icon]:not(:has(> .site-icon))::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
body.site-page:not(.login-page) > header .account-menu { position: absolute; right: 0; top: 16px; width: 148px; }
body.site-page:not(.login-page) > header #account-trigger {
  width: 148px;
  max-width: 148px;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--site-line);
  border-radius: 6px;
  background: var(--site-surface-soft);
  color: var(--site-ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}
body.site-page:not(.login-page) > header #account-trigger :is(#current-user, #admin-user) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.site-page:not(.login-page) > header #account-trigger .site-icon { display: inline-flex; }
body.site-page:not(.login-page) > header #account-trigger > span:last-child { flex-shrink: 0; margin: 0; }
body.site-page:not(.login-page) > header .account-dropdown { top: calc(100% + 6px); right: 0; z-index: 25; }
body.site-page:not(.login-page) > main:not(#about) { padding: 28px 0 56px; min-width: 0; }
body.site-page:not(.login-page) > main > :is(.heading, .page-heading) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  min-height: 84px;
  margin: 0 0 20px;
}
body.site-page:not(.login-page) > main > :is(.heading, .page-heading) > div:first-child { min-width: 0; flex: 1 1 240px; }
body.site-page:not(.login-page) > main h1 { margin: 0; font-size: 28px; line-height: 36px; overflow-wrap: anywhere; }
body.site-page:not(.login-page) > main > :is(.heading, .page-heading) :is(.muted, .summary, .subtitle) {
  margin-top: 6px;
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
body.site-page:not(.login-page) .heading-actions { gap: 8px; }
body.site-page:not(.login-page) [data-consistency-slot] { min-height: 58px; margin-bottom: 12px; border-radius: 6px !important; }
body.site-page:not(.login-page) .heading-actions :is(button, .sync-state),
body.site-page:not(.login-page) > main > :is(.heading, .page-heading) > .button { min-height: 38px; height: auto; }
body.site-page:not(.login-page) .sync-state { min-width: 136px; font-size: 13px; }
body.site-page:not(.login-page) .management-sync-details { min-height: 23px; }
body.site-page:not(.login-page) :is(#inventory-sync-status, #purchase-orders-sync-status) { min-height: 20px; font-size: 12px; line-height: 20px; }
body.site-page:not(.login-page) :is(.metrics, .summary-grid, .warehouse-metrics) { font-variant-numeric: tabular-nums; }
body.site-page:not(.login-page) .warehouse-ui .warehouse-metrics { margin-top: 0; }
body.site-page:not(.login-page) .warehouse-ui .warehouse-metric,
body.site-page:not(.login-page) :is(.metrics .metric, .summary-item) { min-height: 100px; }
body.site-page:not(.login-page) .warehouse-ui .warehouse-toolbar { padding: 12px; border: 1px solid var(--site-line); border-radius: 6px; background: #fff; }
body.site-page:not(.login-page) .warehouse-ui .warehouse-toolbar input:not([type="checkbox"]),
body.site-page:not(.login-page) .warehouse-ui .warehouse-toolbar select { height: 40px; }
body.library-page .heading-side { flex: 2 1 600px; }
body.library-page .heading-meta { flex: 0 1 160px; min-height: 42px; }
body.dashboard-page .filter-bar { width: 100%; margin: 0 0 20px; padding: 12px; border: 1px solid var(--site-line); border-radius: 6px; background: #fff; }
body.dashboard-page .filter-bar :is(input, select, button) { min-height: 40px; }
body.dashboard-page .filter-bar .data-source-controls { flex-wrap: wrap; }
body.dashboard-page .metrics { grid-auto-rows: minmax(120px, auto); }
body.welcome-page .hero { height: 72svh; min-height: 460px; max-height: 720px; }
body.welcome-page .hero-content { min-height: 100%; }

@media (max-width: 1320px) {
  body.site-page:not(.login-page) > header :is(.topbar, .header-main, nav.shell) {
    height: 110px;
    min-height: 110px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
  }
  body.site-page:not(.login-page) > header .brand { height: 58px; align-self: flex-start; }
  body.site-page:not(.login-page) > header .account-menu { top: 11px; }
  body.site-page:not(.login-page) > header :is(.topbar > .nav, .nav-actions, .nav-links, .header-actions) {
    height: 52px;
    flex: 0 0 52px;
    overflow-x: auto;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
  }
  body.site-page:not(.login-page) .editor-panel { top: 126px; max-height: calc(100vh - 146px); }
}
@media (max-width: 760px) {
  body.site-page:not(.login-page) { --site-page-gutter: 14px; }
  body.site-page:not(.login-page) > main > :is(.heading, .page-heading) { flex-direction: column; }
  body.site-page:not(.login-page) > main > :is(.heading, .page-heading) > div:first-child { flex: none; width: 100%; }
  body.site-page:not(.login-page) .heading-actions { justify-content: flex-start; }
  body.site-page:not(.login-page) .management-sync-details { min-height: 46px; }
  body.site-page:not(.login-page) [data-consistency-slot] { min-height: 110px; }
  body.library-page .heading-side { flex: none; width: 100%; justify-items: start; }
  body.library-page .heading-meta { flex: none; text-align: left; }
  body.site-page:not(.login-page) .editor-panel { position: static; max-height: none; }
  body.dashboard-page .filter-bar :is(input, select) { min-width: 0; max-width: 100%; }
  body.dashboard-page .filter-bar .data-source-controls { width: 100%; padding: 0; border: 0; }
  body.site-page:not(.login-page) .warehouse-ui .warehouse-toolbar > label { min-width: 0; max-width: 100%; }
}

/* Purchase filters share one input baseline; commands occupy a separate row. */
body.purchase-management-page #purchase-orders-root .warehouse-toolbar {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) minmax(110px, 1fr) minmax(130px, 1fr) repeat(2, minmax(150px, 1fr));
  align-items: end;
}
body.purchase-management-page #purchase-orders-root .warehouse-toolbar > input[data-search] {
  width: 100%;
  min-width: 0;
}
body.purchase-management-page #purchase-orders-root .warehouse-toolbar > label {
  min-width: 0;
}
body.purchase-management-page #purchase-orders-root .warehouse-toolbar > [data-export] {
  grid-column: 1;
  justify-self: start;
}
body.purchase-management-page #purchase-orders-root .warehouse-toolbar > .warehouse-export-options {
  grid-column: 2 / 4;
  min-height: 38px;
  justify-self: start;
}
body.purchase-management-page #purchase-orders-root .warehouse-toolbar .warehouse-export-option input {
  flex: 0 0 34px;
  min-width: 34px;
  width: 34px;
}
body.purchase-management-page #purchase-orders-root .warehouse-toolbar > [data-receive] {
  grid-column: 4 / 6;
  justify-self: end;
}
@media (max-width: 1000px) {
  body.purchase-management-page #purchase-orders-root .warehouse-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.purchase-management-page #purchase-orders-root .warehouse-toolbar > input[data-search] { grid-column: 1 / -1; }
  body.purchase-management-page #purchase-orders-root .warehouse-toolbar > .warehouse-export-options { grid-column: 2; align-items: flex-start; flex-direction: column; gap: 6px; }
  body.purchase-management-page #purchase-orders-root .warehouse-toolbar > [data-receive] { grid-column: 1 / -1; }
}

/* SKU list fits inside the panel instead of creating horizontal scrolling. */
body.sku-management-page .table-wrap { overflow-x: hidden; }
body.sku-management-page .table-wrap table { width: 100%; min-width: 0; table-layout: fixed; }
body.sku-management-page .table-wrap th,
body.sku-management-page .table-wrap td { padding: 10px 8px; overflow-wrap: anywhere; }
body.sku-management-page .table-wrap th:nth-child(1) { width: 28%; }
body.sku-management-page .table-wrap th:nth-child(2) { width: 10%; }
body.sku-management-page .table-wrap th:nth-child(3) { width: 14%; }
body.sku-management-page .table-wrap th:nth-child(4) { width: 13%; }
body.sku-management-page .table-wrap th:nth-child(5) { width: 14%; }
body.sku-management-page .table-wrap th:nth-child(6) { width: 9%; }
body.sku-management-page .table-wrap th:nth-child(7) { width: 12%; }
body.sku-management-page .sku-cell { min-width: 0; gap: 7px; align-items: flex-start; }
body.sku-management-page .sku-image { width: 42px; height: 42px; flex-basis: 42px; }
body.sku-management-page .sku-copy { min-width: 0; }
body.sku-management-page .sku-copy strong,
body.sku-management-page .sku-copy small { overflow-wrap: anywhere; word-break: break-word; }
body.sku-management-page .last-purchase,
body.sku-management-page .profit-cell,
body.sku-management-page .row-actions { min-width: 0; white-space: normal; }
body.sku-management-page .profit-mini { grid-template-columns: 1fr; gap: 1px; line-height: 1.25; }
body.sku-management-page .profit-mini strong,
body.sku-management-page .profit-mini span:last-child { text-align: left; white-space: normal; }
body.sku-management-page .row-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; }
body.sku-management-page .row-actions .button,
body.sku-management-page .row-actions button { min-width: 0; max-width: 100%; padding-inline: 6px; white-space: normal; }
body.sku-management-page .photo-status { letter-spacing: 0; white-space: normal; }
@media (max-width: 760px) {
  body.sku-management-page .table-wrap th,
  body.sku-management-page .table-wrap td { padding: 8px 4px; font-size: 11px; }
  body.sku-management-page .sku-image { width: 30px; height: 30px; flex-basis: 30px; }
  body.sku-management-page .sku-cell { gap: 3px; }
  body.sku-management-page .pill { padding-inline: 3px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-page *, .site-page *::before, .site-page *::after { transition: none !important; animation: none !important; }
}
