/* Bygoer product runtime: full-width workspace + six independent product families. */
:root {
  --pr-gutter: clamp(12px, 1.45vw, 28px);
  --pr-rail: 1px;
  --pr-radius: 12px;
  --pr-accent: #2563eb;
  --pr-accent-soft: #eaf1ff;
  --pr-ink: #172033;
  --pr-muted: #637083;
  --pr-line: #d9e0e9;
  --pr-panel: #fff;
  --pr-canvas: #f4f7fb;
  --pr-font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

html,
body {
  width: 100%;
  max-width: none !important;
}

body[data-product-runtime="1"] {
  background: var(--pr-canvas) !important;
  color: var(--pr-ink);
  font-family: var(--pr-font) !important;
  text-rendering: optimizeLegibility;
}

body[data-product-runtime="1"] :where(button, input, select, textarea) {
  font: inherit;
}

@media (min-width: 900px) {
  body[data-product-runtime="1"] .shell > main,
  body[data-product-runtime="1"] .shell > footer {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body[data-product-runtime="1"] :where(.main, .view, .workspace, .workspace-body, .page, .content, .boss-shell, .industry-entry) {
    width: auto !important;
    max-width: none !important;
  }

  body[data-product-runtime="1"] :where(.main, .view, .workspace-body, .page, .content, .boss-shell) {
    padding-left: var(--pr-gutter) !important;
    padding-right: var(--pr-gutter) !important;
  }
}

body[data-product-runtime="1"] :where(.card, .panel, .metric, .widget, .box, .table-wrap, .module) {
  border-color: var(--pr-line);
  border-radius: var(--pr-radius);
}

body[data-product-runtime="1"] :where(.sidebar, .side) nav :where(a, button),
body[data-product-runtime="1"] :where(.nav, .navs) :where(a, button) {
  border-radius: calc(var(--pr-radius) - 4px);
}

body[data-product-family="commerce"] {
  --pr-accent: #6d4aff;
  --pr-accent-soft: #eeeaff;
  --pr-ink: #1d1830;
  --pr-muted: #706984;
  --pr-line: #ddd7ef;
  --pr-canvas: #f7f5fb;
  --pr-radius: 16px;
  --pr-font: "Segoe UI Variable", "Microsoft YaHei UI", sans-serif;
}

body[data-product-family="manufacturing"] {
  --pr-accent: #f08a24;
  --pr-accent-soft: #fff1de;
  --pr-ink: #182026;
  --pr-muted: #68747d;
  --pr-line: #d4dce0;
  --pr-canvas: #eef2f3;
  --pr-radius: 5px;
  --pr-font: Bahnschrift, "Microsoft YaHei UI", sans-serif;
}

body[data-product-family="enterprise"] {
  --pr-accent: #1467d9;
  --pr-accent-soft: #e7f0ff;
  --pr-ink: #102033;
  --pr-muted: #607086;
  --pr-line: #d5e0ee;
  --pr-canvas: #f2f6fb;
  --pr-radius: 10px;
  --pr-font: Aptos, "Microsoft YaHei UI", sans-serif;
}

body[data-product-family="health-property"] {
  --pr-accent: #008f8a;
  --pr-accent-soft: #e1f5f2;
  --pr-ink: #143130;
  --pr-muted: #657b79;
  --pr-line: #d1e3e1;
  --pr-canvas: #f1f8f7;
  --pr-radius: 18px;
  --pr-font: "Segoe UI", "Microsoft YaHei UI", sans-serif;
}

body[data-product-family="trade-agri"] {
  --pr-accent: #147a50;
  --pr-accent-soft: #e3f3e9;
  --pr-ink: #183327;
  --pr-muted: #66796f;
  --pr-line: #d4e3d9;
  --pr-canvas: #f3f7f3;
  --pr-radius: 8px;
  --pr-font: "Trebuchet MS", "Microsoft YaHei UI", sans-serif;
}

body[data-product-family="apparel"] {
  --pr-accent: #b13c6b;
  --pr-accent-soft: #f9e7ef;
  --pr-ink: #36212a;
  --pr-muted: #806a73;
  --pr-line: #ead7df;
  --pr-canvas: #faf5f7;
  --pr-radius: 3px;
  --pr-font: Georgia, "Microsoft YaHei UI", sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .product-agent-panel { transition: none; }
}
