/* KRONA workspace. Local styles only: the public storefront keeps its own design. */
body.ui-v2 {
  --bg: #f5f6f8;
  --surface: #fff;
  --surface-2: #f7f8fa;
  --ink: #20232b;
  --muted: #687080;
  --line: #e5e8ee;
  --accent: #b51236;
  --accent-dark: #920d2b;
  --good: #17745a;
  --warn: #946400;
  --shadow: 0 10px 32px rgba(28, 35, 51, .06);
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.ui-v2 :where(h1, h2, h3, p) { overflow-wrap: break-word; }
body.ui-v2 :where(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #ca5571;
  outline-offset: 3px;
}
body.ui-v2 :where(button, a, summary) { -webkit-tap-highlight-color: transparent; }
body.ui-v2 .ui-icon { width: 20px; height: 20px; flex: 0 0 auto; }
body.ui-v2 .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body.ui-v2 .ui-skip-link { position: fixed; top: 10px; left: 14px; z-index: 120; padding: 12px 18px; border-radius: 8px; color: #fff; background: var(--accent); transform: translateY(-180%); }
body.ui-v2 .ui-skip-link:focus { transform: translateY(0); }
body.ui-v2 .app-shell { grid-template-columns: 232px minmax(0, 1fr); }
body.ui-v2 .guest-shell { grid-template-columns: minmax(0, 1fr); }
body.ui-v2 .ui-workspace { min-width: 0; }
body.ui-v2 .ui-main { width: 100%; max-width: 1800px; margin: 0 auto; padding: 28px; }

/* Navigation stays in one predictable place on every screen. */
body.ui-v2 .ui-sidebar {
  z-index: 60;
  height: 100vh;
  height: 100dvh;
  padding: 28px 14px 16px;
  gap: 24px;
  color: #eef0f5;
  background: #20232b;
  border-right: 1px solid #292d37;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #535865 #20232b;
}
body.ui-v2 .ui-sidebar-brand { position: relative; min-height: 48px; padding: 0 14px; }
body.ui-v2 .ui-sidebar-brand img {
  width: 148px;
  max-height: 45px;
  border-radius: 5px;
  object-fit: contain;
}
body.ui-v2 .ui-sidebar-brand span { display: block; margin-top: 9px; color: #aeb4c1; font-size: 10px; letter-spacing: .055em; }
body.ui-v2 .ui-nav-close { display: none; }
body.ui-v2 .ui-nav-group { display: grid; gap: 4px; }
body.ui-v2 .ui-nav-group + .ui-nav-group { margin-top: 20px; }
body.ui-v2 .ui-nav-label {
  margin: 0 0 8px;
  padding: 0 14px;
  color: #9ca3b2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body.ui-v2 .ui-sidebar .nav { grid-template-columns: 1fr; gap: 4px; }
body.ui-v2 .ui-sidebar .nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  border-radius: 9px;
  padding: 10px 13px;
  color: #c4c9d3;
  font-size: 13px;
  font-weight: 550;
  transition: background-color .15s, color .15s;
}
body.ui-v2 .ui-sidebar .nav a .ui-icon { color: #929aaa; width: 18px; height: 18px; }
body.ui-v2 .ui-sidebar .nav a:hover { color: #fff; background: #2c303b; }
body.ui-v2 .ui-sidebar .nav a.active { color: #fff; background: var(--accent); }
body.ui-v2 .ui-sidebar .nav a.active .ui-icon { color: #fff; }
body.ui-v2 .ui-sidebar-footer { margin-top: auto; padding: 16px 7px 0; border-top: 1px solid #383c47; }
body.ui-v2 .ui-account { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 2px 5px 12px; }
body.ui-v2 .ui-account > div { min-width: 0; }
body.ui-v2 .ui-account :where(strong, small, span:not(.ui-avatar)) { display: block; }
body.ui-v2 .ui-account strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
body.ui-v2 .ui-account :where(small, div > span) { color: #a4acbd; font-size: 11px; }
body.ui-v2 .ui-avatar {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #4a4351;
  border-radius: 10px;
  color: #ffcbda;
  background: #3b2c39;
  font-size: 13px;
  font-weight: 700;
}
body.ui-v2 .ui-sidebar .logout-form { margin: 0; }
body.ui-v2 .ui-sidebar .logout { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 7px; color: #aeb5c3; font-size: 12px; }
body.ui-v2 .ui-sidebar .logout:hover { background: #2c303b; color: #fff; }
body.ui-v2 .ui-topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
body.ui-v2 .ui-breadcrumb { display: grid; gap: 2px; min-width: 0; color: var(--muted); font-size: 12px; }
body.ui-v2 .ui-breadcrumb small { color: #8a93a1; font-size: 10px; }
body.ui-v2 .ui-breadcrumb strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ui-v2 .ui-breadcrumb :where(strong, b) { color: var(--ink); font-weight: 600; }
body.ui-v2 .ui-breadcrumb .ui-icon { width: 15px; height: 15px; color: #969daa; }
body.ui-v2 .ui-topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
body.ui-v2 .ui-topbar-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #4b5361;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
}
body.ui-v2 .ui-topbar-actions > a:hover { background: var(--surface-2); border-color: #c9ced7; }
body.ui-v2 .ui-menu-toggle { display: none; }
body.ui-v2 .ui-nav-backdrop { display: none; }

/* Common surfaces and controls; neutral chrome keeps primary actions easy to find. */
body.ui-v2 :where(.panel, .application, .metric, .filters, .auth-panel, .mode-card) {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 3px rgba(28, 35, 51, .015);
}
body.ui-v2 .panel { padding: 24px; margin-bottom: 20px; }
body.ui-v2 .panel .panel { border-radius: 10px; box-shadow: none; }
body.ui-v2 :where(h2, .panel h2, .application h2, .filters h2) { font-size: 17px; line-height: 1.35; font-weight: 650; letter-spacing: -.25px; }
body.ui-v2 :where(h3, .form-block-head h3) { font-size: 15px; font-weight: 650; }
body.ui-v2 .page-head { margin-bottom: 26px; gap: 18px; }
body.ui-v2 .page-head h1 { font-size: clamp(25px, 2.3vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: -.8px; }
body.ui-v2 .page-head p.muted, body.ui-v2 .page-intro { max-width: 780px; margin: 9px 0 0; font-size: 13px; color: var(--muted); }
body.ui-v2 .eyebrow { margin-bottom: 7px; font-size: 10px; font-weight: 750; letter-spacing: .13em; }
body.ui-v2 .muted { color: var(--muted); font-weight: 400; }
body.ui-v2 label { font-size: 12px; font-weight: 600; gap: 7px; }
body.ui-v2 :where(input, select, textarea) {
  min-height: 42px;
  border-color: #dce1e8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
body.ui-v2 textarea { min-height: 96px; resize: vertical; }
body.ui-v2 select[multiple] { min-height: 170px; padding: 6px; }
body.ui-v2 select[multiple] option { padding: 7px; border-radius: 4px; }
body.ui-v2 input::placeholder, body.ui-v2 textarea::placeholder { color: #9097a4; }
body.ui-v2 :where(input, select, textarea):focus { border-color: #bf657b; box-shadow: 0 0 0 3px #b5123612; }
body.ui-v2 :where(input[type="checkbox"], input[type="radio"]) { width: 17px; height: 17px; min-height: 17px; padding: 0; accent-color: var(--accent); flex-shrink: 0; }
body.ui-v2 .segmented input { min-height: 1px; width: 1px; height: 1px; }
body.ui-v2 .segmented input:focus-visible + span { outline: 3px solid #ca5571; outline-offset: 3px; }
body.ui-v2 :where(.primary, .secondary, .danger, .button),
body.ui-v2 .ui-main button:not([class]):not(:where(.favorite-toggle button, .product-thumbs button)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
body.ui-v2 .primary, body.ui-v2 .ui-main button:not([class]):not(:where(.favorite-toggle button, .product-thumbs button)) { background: var(--accent); color: #fff; }
body.ui-v2 .primary:hover, body.ui-v2 .ui-main button:not([class]):not(:where(.favorite-toggle button, .product-thumbs button)):hover { background: var(--accent-dark); }
body.ui-v2 .secondary, body.ui-v2 .button { background: #fff; border-color: #dce1e8; color: #4b5361; }
body.ui-v2 .secondary:hover, body.ui-v2 .button:hover { background: var(--surface-2); border-color: #bac1ce; color: var(--ink); }
body.ui-v2 .primary.button { color: #fff; background: var(--accent); border-color: var(--accent); }
body.ui-v2 .danger { background: #fff5f5; border-color: #f4d8dc; color: #a5203d; }
body.ui-v2 .danger:hover { background: #fce9ec; border-color: #eebac4; }
body.ui-v2 .compact { min-height: 39px; padding: 9px 13px; }
body.ui-v2 .small { min-height: 34px; padding: 7px 10px; font-size: 12px; }
body.ui-v2 :where(.alert, .integration-error) { padding: 14px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; }
body.ui-v2 .alert.success { background: #effaf5; border-color: #cce8da; color: #1c654b; }
body.ui-v2 .alert.error { background: #fff2f4; border-color: #f0cbd5; color: #962b45; }
body.ui-v2 :where(.badge, .status) { min-height: 25px; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 650; }
body.ui-v2 .badge { background: #f0f1f5; color: #596274; }
body.ui-v2 .status { background: #edf7f1; color: #247454; }
body.ui-v2 .empty { border-radius: 12px; padding: 32px 20px; color: var(--muted); background: #f8f9fb; font-weight: 400; }
body.ui-v2 .panel-head-row { gap: 14px; margin-bottom: 20px; }
body.ui-v2 .panel-head-row > div { min-width: 0; }
body.ui-v2 .panel-head-row > div:has(> .button) { display: flex; flex-wrap: wrap; gap: 8px; }
body.ui-v2 .panel-head-row > div > .button:not(.secondary) { background: #fdf0f4; border-color: #edcbd5; color: var(--accent); }
body.ui-v2 .panel > form.filters {
  position: static;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 16px;
  margin: 0 0 18px;
  border-radius: 10px;
  box-shadow: none;
  background: #f8f9fb;
}
body.ui-v2 .panel > form.filters label { flex: 1; }
body.ui-v2 .panel > form.filters button { flex-shrink: 0; }
body.ui-v2 nav[aria-label="Страницы клиентов"] { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
body.ui-v2 .table-wrap { position: relative; border: 1px solid var(--line); border-radius: 10px; scrollbar-width: thin; scrollbar-color: #bbc3d0 #f5f6f8; }
body.ui-v2 table { font-size: 13px; }
body.ui-v2 th { padding: 12px 15px; background: #f8f9fb; color: #758090; font-size: 10px; font-weight: 650; letter-spacing: .04em; line-height: 1.45; }
body.ui-v2 td { padding: 15px; vertical-align: middle; border-color: #edf0f4; }
body.ui-v2 td strong { font-weight: 600; }
body.ui-v2 td small { font-size: 11px; color: #858c99; }
body.ui-v2 tbody tr:last-child td { border-bottom: 0; }
body.ui-v2 tbody tr:hover { background: #fafbfc; }
body.ui-v2 td a:not([class]):hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
body.ui-v2 .details div { padding: 11px 0; gap: 16px; }
body.ui-v2 .details dt { font-size: 12px; font-weight: 500; }
body.ui-v2 .details dd { font-size: 13px; }
body.ui-v2 .details div:last-child { border-bottom: 0; }
body.ui-v2 .form-block { border-radius: 10px; border-color: var(--line); padding: 18px; background: #fafbfc; }
body.ui-v2 .form-block-head span { background: #f7e5eb; color: var(--accent); font-weight: 650; }
body.ui-v2 .bank-details { border-radius: 10px; background: #f8f9fb; }
body.ui-v2 :where(.bank-details summary, .edit-details summary, .inline-details summary) { font-weight: 600; }
body.ui-v2 .inline-form { gap: 10px; }

/* Catalog: a compact filter rail and generous, predictable product cards. */
body.ui-v2 .catalog-head { align-items: flex-start; flex-wrap: wrap; gap: 20px; }
body.ui-v2 .catalog-heading { flex: 1 1 200px; }
body.ui-v2 .catalog-search { width: 100%; flex: 1 1 100%; flex-direction: row; align-items: center; gap: 12px; }
body.ui-v2 .catalog-search-field { position: relative; display: flex; align-items: center; flex: 1 1 280px; min-width: 0; gap: 10px; }
body.ui-v2 .catalog-search-field > svg { position: absolute; left: 15px; width: 19px; height: 19px; color: #929baa; pointer-events: none; }
body.ui-v2 .catalog-search-field input { min-height: 46px; padding-left: 44px; box-shadow: 0 1px 2px #20232b03; }
body.ui-v2 .catalog-search-options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.ui-v2 .catalog-search-field > button { min-height: 46px; flex-shrink: 0; }
body.ui-v2 .filter-reset { color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
body.ui-v2 .filter-reset:hover { color: var(--accent); }
body.ui-v2 .catalog-search .compact-check { min-height: 44px; background: #fff; font-size: 12px; font-weight: 500; }
body.ui-v2 .catalog-layout { grid-template-columns: 216px minmax(0, 1fr); align-items: start; gap: 22px; }
body.ui-v2 .catalog-layout > .filters { position: sticky; top: 90px; padding: 18px 14px; border-radius: 12px; }
body.ui-v2 .catalog-filters { margin: 0; }
body.ui-v2 .catalog-filter-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; padding: 0 5px 12px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 650; list-style: none; cursor: pointer; }
body.ui-v2 .catalog-filter-toggle::-webkit-details-marker { display: none; }
body.ui-v2 .catalog-filter-toggle svg { width: 17px; height: 17px; }
body.ui-v2 .catalog-filter-toggle > span { display: inline-flex; align-items: center; gap: 8px; }
body.ui-v2 .catalog-filters:not([open]) .catalog-filter-toggle { margin: 0; padding-bottom: 0; border: 0; }
body.ui-v2 .filters a { align-items: center; padding: 9px 10px; margin: 2px 0; border: 0; border-radius: 7px; color: #687080; font-size: 12px; font-weight: 500; line-height: 1.4; }
body.ui-v2 .filters a span:last-child { color: #929aaa; font-size: 11px; font-variant-numeric: tabular-nums; }
body.ui-v2 .filters a small { color: #929aaa; font-size: 11px; font-variant-numeric: tabular-nums; }
body.ui-v2 .filters a.active { color: var(--accent); background: #fcf0f4; font-weight: 650; }
body.ui-v2 .filters a.active span:last-child { color: var(--accent); }
body.ui-v2 .filters a:hover { color: var(--accent); background: #f9f2f5; }
body.ui-v2 .filter-panel { padding-top: 15px; margin-top: 15px; }
body.ui-v2 .filter-check { font-size: 12px; font-weight: 500; }
body.ui-v2 .catalog-results { min-width: 0; }
body.ui-v2 .catalog-results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; margin: 0 0 14px; color: var(--muted); font-size: 12px; }
body.ui-v2 .catalog-results-head :where(h2, p) { margin: 0; }
body.ui-v2 .catalog-results-head h2 { color: var(--ink); font-size: 14px; font-weight: 600; }
body.ui-v2 .products { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
body.ui-v2 .product-card { border-color: var(--line); border-radius: 14px; background: #fff; box-shadow: 0 2px 4px #1c233304; transition: border-color .15s, box-shadow .15s; }
body.ui-v2 .product-card:hover { border-color: #c8ced9; box-shadow: 0 8px 22px #1c23330c; transform: none; }
body.ui-v2 .product-card-link { border-radius: 14px; }
body.ui-v2 .product-card:focus-within { border-color: #c57489; }
body.ui-v2 .product-image { aspect-ratio: 1.35; min-height: 0; flex-shrink: 0; border-bottom: 1px solid #eff1f5; background: #fff; }
body.ui-v2 .product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 34px 24px 18px; }
body.ui-v2 .product-placeholder { display: grid; justify-items: center; gap: 10px; padding: 34px 16px 20px; color: #b1b8c4; }
body.ui-v2 .product-image > .product-placeholder { color: #b9bec8; font-size: 24px; letter-spacing: .08em; font-weight: 650; }
body.ui-v2 .product-placeholder small { color: #9da5b3; font-size: 10px; font-weight: 400; letter-spacing: 0; }
body.ui-v2 .product-placeholder svg { width: 55px; height: 55px; }
body.ui-v2 .product-image .product-placeholder span { color: #9da5b3; font-size: 11px; font-weight: 500; }
body.ui-v2 .product-card-badges { inset: 12px 12px auto; gap: 6px; }
body.ui-v2 .product-card-badges span { border: 1px solid #e9ecf1; border-radius: 5px; padding: 4px 7px; background: #fff; color: #788290; font-size: 10px; font-weight: 600; box-shadow: none; }
body.ui-v2 .product-card-badges .stock-ok { color: #247858; background: #f0f9f3; border-color: #daeee1; }
body.ui-v2 .product-card-badges .stock-empty { color: #788290; background: #f6f7f9; border-color: #e9ecf1; }
body.ui-v2 .product-body { min-height: 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
body.ui-v2 .product-title-wrap { min-height: 92px; }
body.ui-v2 .product-body small { font-size: 10px; font-weight: 500; letter-spacing: .02em; }
body.ui-v2 .product-card h2 { margin: 8px 0 0; font-size: 15px; line-height: 1.4; font-weight: 650; letter-spacing: -.1px; }
body.ui-v2 .product-subline { margin: 7px 0 0; font-size: 11px; line-height: 1.45; font-weight: 400; }
body.ui-v2 .product-meta { gap: 6px; }
body.ui-v2 .product-meta span { padding: 4px 7px; border-radius: 5px; color: #7b8391; font-size: 10px; font-weight: 500; background: #f5f6f8; }
body.ui-v2 .product-price-source { font-size: 10px; font-weight: 500; }
body.ui-v2 .product-price-source span { padding: 3px 6px; border-radius: 5px; }
body.ui-v2 .price-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
body.ui-v2 .price-item { border: 0; border-radius: 8px; padding: 10px; background: #f7f8fa; }
body.ui-v2 .price-item.main { background: #faf0f3; }
body.ui-v2 .price-item.resale { background: #f1f7f4; }
body.ui-v2 .price-item.profit { background: #f8f6ef; }
body.ui-v2 .price-label { font-size: 9px; letter-spacing: .025em; font-weight: 550; text-transform: none; }
body.ui-v2 .price-value { margin-top: 4px; font-size: 18px; line-height: 1.25; font-weight: 650; letter-spacing: -.45px; font-variant-numeric: tabular-nums; }
body.ui-v2 .price-item.main .price-value { color: #a31637; }
body.ui-v2 .price-margin { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; padding: 2px 2px 0; color: var(--muted); font-size: 12px; }
body.ui-v2 .price-margin abbr { position: relative; z-index: 2; cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
body.ui-v2 .price-margin strong { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.ui-v2 .variant-margin { white-space: nowrap; font-variant-numeric: tabular-nums; }
body.ui-v2 .product-bottom { margin-top: 2px; }
body.ui-v2 .product-actions { justify-content: flex-start; gap: 6px; }
body.ui-v2 .product-actions .secondary { min-height: 34px; padding: 7px 9px; font-size: 11px; }
body.ui-v2 .catalog-purchase-actions { margin-top: 4px; }
body.ui-v2 .buy-request { gap: 8px; grid-template-columns: 66px minmax(0, 1fr); }
body.ui-v2 .buy-request label { font-size: 10px; font-weight: 500; }
body.ui-v2 .buy-request input { min-height: 38px; padding: 8px; text-align: center; }
body.ui-v2 .buy-request .primary { min-height: 38px; padding: 9px; font-size: 12px; }
body.ui-v2 .favorite-toggle button { width: 38px; height: 38px; border-radius: 8px; min-height: 38px; font-size: 23px; font-weight: 400; box-shadow: 0 2px 4px #20232b06; }
body.ui-v2 .proposal-add-form .secondary { font-size: 11px; font-weight: 500; }

/* Product and order workspaces. */
body.ui-v2 .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 20px; color: #848c99; font-size: 12px; }
body.ui-v2 .breadcrumbs a { color: #606a7b; }
body.ui-v2 .breadcrumbs a:hover { color: var(--accent); }
body.ui-v2 .breadcrumbs svg { width: 13px; height: 13px; }
body.ui-v2 .product-detail-head h1 { max-width: 950px; font-size: clamp(24px, 2.2vw, 32px); }
body.ui-v2 .product-detail-grid { grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 24px; align-items: start; }
body.ui-v2 .product-gallery { padding: 20px; }
body.ui-v2 .product-gallery-main { border: 0; border-radius: 10px; background: #fff; }
body.ui-v2 .product-thumbs { gap: 10px; margin-top: 18px; }
body.ui-v2 .product-thumbs button { border-radius: 8px; border-color: var(--line); }
body.ui-v2 .product-thumbs button.active { border-color: var(--accent); background: #fdf9fa; }
body.ui-v2 .gallery-nav { color: #687080; background: #f7f8fa; border-color: var(--line); }
body.ui-v2 .gallery-lightbox { z-index: 100; }
body.ui-v2 .product-buy { position: sticky; top: 92px; padding: 24px; }
body.ui-v2 .detail-price-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.ui-v2 .detail-price-stack .price-item { padding: 16px; }
body.ui-v2 .detail-price-stack .price-label { font-size: 11px; }
body.ui-v2 .detail-price-stack .price-value { margin-top: 6px; font-size: 24px; }
body.ui-v2 .detail-stock { display: flex; align-items: center; gap: 8px; margin: 14px 0; color: var(--good); font-size: 13px; font-weight: 550; }
body.ui-v2 .detail-stock svg { width: 16px; height: 16px; }
body.ui-v2 .detail-stock > span:first-child { color: var(--muted); font-weight: 400; }
body.ui-v2 .detail-stock :where(.stock-ok, .stock-empty) { padding: 4px 10px; border-radius: 6px; background: #edf7f1; font-weight: 650; }
body.ui-v2 .detail-stock .stock-empty { background: #f1f3f6; color: #788290; }
body.ui-v2 .detail-stock.stock-empty { color: #788290; }
body.ui-v2 .availability-note { margin: 14px 0 0; font-size: 12px; }
body.ui-v2 .detail-request { margin-top: 20px; grid-template-columns: 96px minmax(0, 1fr); }
body.ui-v2 .detail-request :where(input, .primary) { min-height: 44px; }
body.ui-v2 .detail-request label { font-size: 12px; }
body.ui-v2 .product-sections { gap: 22px; }
body.ui-v2 .cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
body.ui-v2 .cart-content { min-width: 0; }
body.ui-v2 .cart-panel { padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
body.ui-v2 .cart-panel > .panel-head-row { margin: 0 0 16px; }
body.ui-v2 .cart-table { min-width: 620px; background: #fff; }
@media (min-width: 701px) {
  body.ui-v2 .cart-table :is(th, td) { padding-inline: 12px; }
}
body.ui-v2 .cart-table td:nth-child(n+3):nth-child(-n+6) { white-space: nowrap; font-variant-numeric: tabular-nums; }
body.ui-v2 .cart-product { grid-template-columns: 56px minmax(140px, 1fr); gap: 12px; }
body.ui-v2 .cart-product img { width: 56px; height: 56px; padding: 5px; border-color: #edf0f4; }
body.ui-v2 .cart-product strong { font-size: 12px; font-weight: 600; line-height: 1.45; }
body.ui-v2 .cart-product small { font-size: 10px; font-weight: 400; }
body.ui-v2 .cart-qty-form { grid-template-columns: 65px auto; gap: 6px; }
body.ui-v2 .cart-qty-form input { min-height: 34px; padding: 7px; text-align: center; }
body.ui-v2 .cart-qty-form label { font-size: 10px; }
body.ui-v2 .cart-summary { position: sticky; top: 92px; margin-top: 0; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
body.ui-v2 .cart-summary > h2 { margin: 0; }
body.ui-v2 .cart-summary-grid { grid-template-columns: 1fr; gap: 0; }
body.ui-v2 .cart-summary-grid div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid #edf0f4; border-radius: 0; background: transparent; }
body.ui-v2 .cart-summary-grid span { font-size: 12px; font-weight: 400; text-transform: none; }
body.ui-v2 .cart-summary-grid strong { margin: 0; font-size: 16px; font-weight: 650; white-space: nowrap; }
body.ui-v2 .cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 0 0; border-top: 1px solid var(--line); }
body.ui-v2 .cart-total span { font-size: 13px; color: var(--muted); }
body.ui-v2 .cart-total strong { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.6px; white-space: nowrap; }
body.ui-v2 .cart-checkout { max-width: none; }
body.ui-v2 .cart-checkout .primary { width: 100%; min-height: 44px; }
body.ui-v2 .cart-empty { min-height: 230px; align-content: center; justify-items: center; text-align: center; }
body.ui-v2 .saved-cart-create { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
body.ui-v2 .saved-cart-create h2 { margin-top: 0; }

/* Dashboard and the smaller administrative pages share the same hierarchy. */
body.ui-v2 .status-grid { gap: 16px; margin-bottom: 24px; }
body.ui-v2 .metric { position: relative; padding: 20px; }
body.ui-v2 .metric span { color: #7d8695; font-size: 11px; font-weight: 500; }
body.ui-v2 .metric strong { margin-top: 9px; font-size: 23px; font-weight: 650; line-height: 1.3; letter-spacing: -.45px; }
body.ui-v2 .mode-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
body.ui-v2 .mode-card { position: relative; padding: 22px; transition: border-color .15s, box-shadow .15s; }
body.ui-v2 .mode-card.active { border-color: #ebc5d0; background: #fff; }
body.ui-v2 .mode-card:hover { border-color: #c990a0; box-shadow: var(--shadow); }
body.ui-v2 .mode-card strong { margin-top: 16px; font-size: 18px; font-weight: 650; }
body.ui-v2 .mode-card small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
body.ui-v2 .mode-card .mode-card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--accent); background: #fbeef2; }
body.ui-v2 .mode-card-icon svg { width: 21px; height: 21px; }
body.ui-v2 .mode-card .mode-card-arrow { position: absolute; top: 25px; right: 20px; color: #abb2bd; }
body.ui-v2 .mode-card .mode-card-arrow { font-size: 22px; line-height: 1; font-weight: 400; }
body.ui-v2 .mode-card-arrow svg { width: 19px; height: 19px; }
body.ui-v2 .catalog-pulse { gap: 10px; }
body.ui-v2 .catalog-pulse div { padding: 15px; border-radius: 9px; background: #f6f7fa; }
body.ui-v2 .catalog-pulse strong { font-size: 25px; font-weight: 650; letter-spacing: -.5px; }
body.ui-v2 .catalog-pulse span { font-size: 11px; font-weight: 400; }
body.ui-v2 .application { padding: 20px; }
body.ui-v2 .application h2 { margin: 0; font-size: 16px; }
body.ui-v2 .comments p { border-radius: 8px; background: #f8f9fb; padding: 12px; }
body.ui-v2 .comments span { font-size: 11px; }
body.ui-v2 .favorite-row, body.ui-v2 .saved-cart-row, body.ui-v2 .proposal-list-item { border-radius: 12px; border-color: var(--line); background: #fff; box-shadow: none; }
body.ui-v2 .proposal-list-item:hover { border-color: #c8ced9; box-shadow: 0 5px 18px #20232b08; transform: none; }
body.ui-v2 .proposal-total-bar { border-radius: 12px; background: #fff; border-color: var(--line); box-shadow: none; }
body.ui-v2 .proposal-item { border-radius: 12px; }
body.ui-v2 .notice-list > div, body.ui-v2 .session-list > div { border-radius: 8px; background: #f8f9fb; }
body.ui-v2 .storefront-share-row { gap: 12px; }
body.ui-v2 .storefront-share-title span { font-size: 11px; font-weight: 400; }
body.ui-v2 .storefront-share-row input[readonly] { background: #f8f9fb; }
body.ui-v2 .status-badge { display: inline-block; padding: 4px 8px; border-radius: 6px; color: #566279; background: #f0f3f8; font-size: 11px; font-weight: 550; }

/* Guest and mode selection keep a lighter version of the same identity. */
body.ui-v2.guest-body { background: #f5f6f8; }
body.ui-v2 .guest-main { padding: 28px; }
body.ui-v2 .sigma-logo-card { border-radius: 10px; box-shadow: none; border-color: var(--line); }
body.ui-v2 .sigma-auth-card, body.ui-v2 .register-card { border-radius: 18px; border-color: var(--line); box-shadow: var(--shadow); }
body.ui-v2 .sigma-hero, body.ui-v2 .register-side { border-radius: 18px; }
body.ui-v2 .sigma-hero { min-height: 580px; grid-template-rows: 1fr; box-shadow: none; }
body.ui-v2 .sigma-hero h1 { font-size: clamp(42px, 4.5vw, 64px); font-weight: 700; letter-spacing: -2px; }
body.ui-v2 .ui-auth-lead { max-width: 460px; margin: 0; color: #586174; font-size: 19px; line-height: 1.6; }
body.ui-v2 .ui-auth-features { display: grid; gap: 14px; margin-top: 34px; color: #5e687a; font-size: 13px; }
body.ui-v2 .ui-auth-features > span { display: flex; align-items: center; gap: 10px; }
body.ui-v2 .ui-auth-features .ui-icon { color: var(--accent); width: 18px; height: 18px; }
body.ui-v2 .auth-bottom-link { justify-content: space-between; font-size: 12px; font-weight: 500; }
body.ui-v2 .password-access-shell { grid-template-columns: minmax(0, 1fr); }
body.ui-v2 .password-access-shell .auth-panel { min-width: 0; max-width: 100%; }
body.ui-v2 .password-access-shell h1 { font-size: 26px; line-height: 1.25; letter-spacing: -.5px; overflow-wrap: anywhere; }
body.ui-v2 .ui-onboarding-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; max-width: 1320px; margin: 0 auto; padding: 24px 28px 0; }
body.ui-v2 .ui-onboarding-header .brand img { width: 155px; }
body.ui-v2.ui-auth-body .guest-main { min-height: auto; }
body.ui-v2 .sigma-auth-card .auth-panel-head h2, body.ui-v2 .register-card .auth-panel-head h2 { letter-spacing: -.5px; }
body.ui-v2 .auth-switch { border-radius: 9px; background: #f3f4f7; }
body.ui-v2 .auth-tab { font-weight: 600; border-radius: 7px; }
body.ui-v2 .mode-landing { max-width: 1050px; gap: 26px; }
body.ui-v2 .mode-landing-head h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; }
body.ui-v2 .mode-entry-card { border-radius: 18px; padding: 30px; background: #fff; box-shadow: var(--shadow); }
body.ui-v2 .mode-entry-card strong { font-size: 29px; font-weight: 650; letter-spacing: -.6px; }
body.ui-v2 .mode-entry-card small { font-size: 14px; font-weight: 400; }
body.ui-v2 .ui-mode-intro h1 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -1px; }
body.ui-v2 .ui-mode-intro p.muted { margin: 0; font-size: 14px; }
body.ui-v2 .mode-entry-card { justify-content: flex-start; gap: 0; }
body.ui-v2 .mode-entry-card .ui-mode-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 16px; border-radius: 16px; color: var(--accent); background: #fcf0f4; }
body.ui-v2 .ui-mode-icon .ui-icon { width: 30px; height: 30px; }
body.ui-v2 .mode-entry-card .ui-mode-description { margin-top: 12px; color: var(--muted); font-size: 14px; font-weight: 400; text-transform: none; }
body.ui-v2 .mode-entry-card .ui-mode-action { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--accent); font-size: 13px; font-weight: 600; text-transform: none; }
body.ui-v2 .mode-cart-strip { border-radius: 12px; background: #fff; }

@media (max-width: 1500px) {
  body.ui-v2 .cart-layout { grid-template-columns: minmax(0, 1fr); }
  body.ui-v2 .cart-summary { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  body.ui-v2 .cart-summary > h2 { grid-column: 1 / -1; }
  body.ui-v2 .cart-summary .cart-checkout { grid-column: 2; grid-row: 2 / span 4; }
  body.ui-v2 .cart-summary .cart-total { align-self: end; }
}
@media (max-width: 1360px) {
  body.ui-v2 .ui-main { padding: 24px; }
  body.ui-v2 .catalog-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 18px; }
  body.ui-v2 .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
  body.ui-v2 .ui-main { padding: 34px 40px; }
  body.ui-v2 .ui-topbar { padding-right: 40px; padding-left: 40px; }
  body.ui-v2 .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 1120px) {
  body.ui-v2 .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ui-v2 .product-detail-grid { grid-template-columns: 1fr; }
  body.ui-v2 .product-buy { position: static; }
  body.ui-v2 .mode-card { padding: 18px; }
  body.ui-v2 .mode-card strong { font-size: 16px; }
  body.ui-v2 .panel-head-row { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  body.ui-v2 .app-shell { grid-template-columns: minmax(0, 1fr); }
  body.ui-v2 .ui-sidebar { position: static; height: auto; width: auto; }
  body.ui-v2.ui-js .ui-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    height: 100vh;
    height: 100dvh;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .2s ease, visibility .2s;
  }
  body.ui-v2.nav-open { overflow: hidden; }
  body.ui-v2.nav-open .ui-sidebar { transform: translateX(0); visibility: visible; }
  body.ui-v2 .ui-nav-backdrop { position: fixed; inset: 0; z-index: 55; width: 100%; height: 100%; padding: 0; border: 0; background: #12172480; cursor: pointer; }
  body.ui-v2.nav-open .ui-nav-backdrop { display: block; }
  body.ui-v2 .ui-topbar { min-height: 62px; gap: 12px; padding: 9px 20px; }
  body.ui-v2.ui-js .ui-menu-toggle { display: inline-grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: #4f596b; background: #fff; cursor: pointer; }
  body.ui-v2.ui-js .ui-nav-close { display: grid; place-items: center; position: absolute; top: -18px; right: -9px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: #303541; color: #ced3dd; cursor: pointer; }
  body.ui-v2 .ui-breadcrumb { margin-right: auto; }
  body.ui-v2 .ui-main { padding: 24px 20px; }
  body.ui-v2 .ui-sidebar .nav { grid-template-columns: 1fr; }
  body.ui-v2 .catalog-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 18px; }
  body.ui-v2 .catalog-layout > .filters { top: 82px; }
  body.ui-v2 .page-head { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  body.ui-v2 .catalog-head { flex-direction: column; align-items: stretch; }
  body.ui-v2 .catalog-heading { flex-basis: auto; }
  body.ui-v2 .catalog-search { flex-basis: auto; }
  body.ui-v2 .catalog-search-field input[name="q"] { flex-basis: auto; }
  body.ui-v2 .search:not(.catalog-search) { flex-direction: row; }
  body.ui-v2 .search:not(.catalog-search) input[name="q"] { flex: 1 1 180px; }
  body.ui-v2 .product-actions { flex-direction: row; }
  body.ui-v2 .content-grid, body.ui-v2 .kanban { grid-template-columns: 1fr; }
  body.ui-v2 .mode-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.ui-v2 .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 701px) and (max-width: 1120px) {
  body.ui-v2 .products { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 700px) {
  body.ui-v2 .ui-main { padding: 20px 16px; }
  body.ui-v2 .ui-topbar { padding: 9px 14px; }
  body.ui-v2 .ui-breadcrumb { gap: 6px; font-size: 11px; }
  body.ui-v2 .ui-breadcrumb small { display: none; }
  body.ui-v2 .ui-breadcrumb > span:first-child { display: none; }
  body.ui-v2 .ui-topbar-actions { gap: 7px; }
  body.ui-v2 .ui-topbar-actions > a { padding: 8px 10px; min-width: 44px; min-height: 44px; }
  body.ui-v2 .ui-topbar-actions > a span { display: none; }
  body.ui-v2 .ui-topbar-actions > a .ui-icon { width: 19px; height: 19px; }
  body.ui-v2 .page-head { gap: 15px; margin-bottom: 20px; }
  body.ui-v2 .page-head h1 { font-size: 27px; letter-spacing: -.65px; }
  body.ui-v2 .panel { padding: 20px; }
  body.ui-v2 .panel-head-row { align-items: flex-start; margin-bottom: 16px; }
  body.ui-v2 .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  body.ui-v2 .catalog-layout > .filters { position: static; padding: 14px; }
  body.ui-v2 .catalog-filter-toggle { min-height: 26px; padding-right: 2px; padding-left: 2px; }
  body.ui-v2 .catalog-filter-content { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  body.ui-v2 .catalog-filter-content > .filter-panel, body.ui-v2 .catalog-filter-content > h2, body.ui-v2 .catalog-filter-content > details { grid-column: 1 / -1; }
  body.ui-v2 .filters a { min-height: 44px; }
  body.ui-v2 .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.ui-v2 .product-body { padding: 14px; }
  body.ui-v2 .product-title-wrap { min-height: 96px; }
  body.ui-v2 .product-card h2 { font-size: 14px; }
  body.ui-v2 .product-card-badges { inset: 9px 9px auto; }
  body.ui-v2 .price-value { font-size: 16px; }
  body.ui-v2 .price-item { padding: 8px; }
  body.ui-v2 .catalog-search { gap: 10px; }
  body.ui-v2 .catalog-search-field { flex-basis: calc(100% - 92px); }
  body.ui-v2 .catalog-search-options { width: 100%; }
  body.ui-v2 .catalog-search .compact-check { flex: 1; justify-content: center; }
  body.ui-v2 .mode-switch { grid-template-columns: 1fr; gap: 10px; }
  body.ui-v2 .mode-card { padding: 18px 48px 18px 74px; min-height: 82px; }
  body.ui-v2 .mode-card strong { margin-top: 0; font-size: 16px; }
  body.ui-v2 .mode-card .mode-card-icon { position: absolute; left: 18px; top: 20px; }
  body.ui-v2 .mode-card .mode-card-arrow { top: 30px; right: 18px; }
  body.ui-v2 .status-grid { gap: 12px; }
  body.ui-v2 .metric { padding: 16px; }
  body.ui-v2 .metric strong { font-size: 19px; }
  body.ui-v2 .cart-summary { display: grid; grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  body.ui-v2 .cart-summary .cart-checkout { grid-column: auto; grid-row: auto; }
  body.ui-v2 .cart-summary > h2 { grid-column: auto; }
  body.ui-v2 .cart-layout { gap: 18px; }
  body.ui-v2 .cart-panel .table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  body.ui-v2 .cart-table { min-width: 0; border: 0; background: transparent; }
  body.ui-v2 .cart-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip-path: inset(50%); overflow: hidden; }
  body.ui-v2 .cart-table :where(tbody, tr, td) { display: block; width: 100%; }
  body.ui-v2 .cart-table tbody tr { margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  body.ui-v2 .cart-table td { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid #edf0f4; text-align: right; }
  body.ui-v2 .cart-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; text-align: left; flex-shrink: 0; }
  body.ui-v2 .cart-table td:first-child { display: block; padding-top: 0; text-align: left; }
  body.ui-v2 .cart-table td:first-child::before { display: none; }
  body.ui-v2 .cart-table td:last-child { border-bottom: 0; padding-bottom: 0; }
  body.ui-v2 .cart-product { grid-template-columns: 64px minmax(0, 1fr); }
  body.ui-v2 .cart-product img { width: 64px; height: 64px; }
  body.ui-v2 .cart-product strong { font-size: 13px; }
  body.ui-v2 .cart-qty-form { grid-template-columns: 65px auto; }
  body.ui-v2 .cart-qty-form input { min-height: 44px; }
  body.ui-v2 .cart-qty-form label { text-align: left; }
  body.ui-v2 .cart-panel { padding: 0; }
  body.ui-v2 .product-buy, body.ui-v2 .product-gallery { padding: 20px; }
  body.ui-v2 .product-gallery-main, body.ui-v2 .gallery-main-button { min-height: 290px; }
  body.ui-v2 :where(.gallery-nav, .gallery-lightbox-prev, .gallery-lightbox-next, .gallery-lightbox-close) { min-width: 44px; min-height: 44px; }
  body.ui-v2 .product-characteristics { grid-template-columns: 1fr; }
  body.ui-v2 .grid.two { grid-template-columns: 1fr; }
  body.ui-v2 .details div { grid-template-columns: 130px minmax(0, 1fr); }
  body.ui-v2 .panel > form.filters { flex-wrap: wrap; padding: 14px; }
  body.ui-v2 .panel > form.filters label { flex-basis: 100%; }
  body.ui-v2 .panel > form.filters button { width: 100%; }
  body.ui-v2 :where(input, select, textarea) { font-size: 16px; }
  body.ui-v2 :where(.primary, .secondary, .danger, .button, .small, .compact), body.ui-v2 .ui-main button:not([class]):not(:where(.favorite-toggle button, .product-thumbs button)) { min-height: 44px; }
  body.ui-v2 .product-actions .secondary, body.ui-v2 .favorite-toggle button, body.ui-v2 .buy-request .primary { min-height: 44px; }
  body.ui-v2 .favorite-toggle button { width: 44px; height: 44px; }
  body.ui-v2 .buy-request input { min-height: 44px; }
  body.ui-v2 .guest-main { padding: 18px; }
  body.ui-v2 .sigma-auth-card { grid-row: 1; padding: 24px; }
  body.ui-v2 .sigma-hero { min-height: 320px; padding: 26px; }
  body.ui-v2 .sigma-hero h1 { font-size: 44px; }
  body.ui-v2 .ui-auth-lead { font-size: 16px; }
  body.ui-v2 .ui-auth-features { gap: 11px; margin-top: 24px; font-size: 12px; }
  body.ui-v2 .ui-onboarding-header { padding: 20px 18px 0; }
}
@media (max-width: 460px) {
  body.ui-v2 .ui-main { padding: 20px 14px; }
  body.ui-v2 .ui-topbar { padding-right: 12px; padding-left: 12px; }
  body.ui-v2 .ui-breadcrumb { font-size: 10px; }
  body.ui-v2 .ui-topbar-actions > a { width: 44px; padding: 8px; }
  body.ui-v2 .page-head h1 { font-size: 25px; }
  body.ui-v2 .products { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.ui-v2 .product-image { aspect-ratio: 1.55; }
  body.ui-v2 .product-image img { padding: 32px 42px 20px; }
  body.ui-v2 .product-body { padding: 18px; gap: 13px; }
  body.ui-v2 .product-title-wrap { min-height: 0; }
  body.ui-v2 .product-card h2 { font-size: 16px; }
  body.ui-v2 .product-subline { font-size: 12px; }
  body.ui-v2 .price-value { font-size: 21px; }
  body.ui-v2 .price-item { padding: 12px; }
  body.ui-v2 .price-label { font-size: 10px; }
  body.ui-v2 .product-bottom { flex-direction: row; }
  body.ui-v2 .product-actions { flex-direction: row; }
  body.ui-v2 .catalog-filter-content { grid-template-columns: minmax(0, 1fr); }
  body.ui-v2 .catalog-search-field { flex-basis: calc(100% - 88px); }
  body.ui-v2 .catalog-search-options { flex-wrap: wrap; }
  body.ui-v2 .catalog-search-options .compact-check { justify-content: center; flex-basis: 0; }
  body.ui-v2 .panel { padding: 18px; }
  body.ui-v2 .cart-panel { padding: 0; }
  body.ui-v2 .details div { grid-template-columns: 1fr; gap: 4px; }
  body.ui-v2 .detail-price-stack .price-item { padding: 12px; }
  body.ui-v2 .detail-price-stack .price-value { font-size: 22px; }
  body.ui-v2 .detail-price-stack .price-label { font-size: 10px; }
  body.ui-v2 .metric strong { font-size: 18px; }
  body.ui-v2 .catalog-pulse { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  body.ui-v2 .catalog-pulse div { padding: 12px 9px; }
  body.ui-v2 .catalog-pulse strong { font-size: 21px; }
  body.ui-v2 .catalog-pulse span { font-size: 10px; }
  body.ui-v2 .product-detail-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  body.ui-v2 *, body.ui-v2 *::before, body.ui-v2 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body.ui-v2 { background: #fff; font-size: 11px; }
  body.ui-v2 .app-shell { display: block; }
  body.ui-v2 :where(.ui-sidebar, .ui-topbar, .ui-nav-backdrop) { display: none !important; }
  body.ui-v2 .ui-main { max-width: none; padding: 0; margin: 0; }
  body.ui-v2 .panel { border: 0; border-radius: 0; box-shadow: none; }
  body.ui-v2 .table-wrap { overflow: visible; border: 0; }
  body.ui-v2 :where(.invoice-document, .invoice-document table, .invoice-document td, .invoice-document th) { box-shadow: none; }
  body.ui-v2 .invoice-document th { background: #fff; }
}

/* Account contacts, integration keys and clear cancellation states. */
body.ui-v2 .profile-editor { margin-top: 20px; }
body.ui-v2 .profile-editor > summary { display: inline-flex; cursor: pointer; list-style: none; }
body.ui-v2 .profile-editor > summary::-webkit-details-marker { display: none; }
body.ui-v2 .profile-editor[open] > summary { margin-bottom: 18px; }
body.ui-v2 .profile-editor .stack { padding-top: 4px; }
body.ui-v2 .profile-contacts dd { overflow-wrap: anywhere; }
body.ui-v2 .order-status-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 6px; color: #526071; background: #eef1f5; font-size: 12px; font-weight: 600; }
body.ui-v2 .order-status-badge.is-cancelled { color: #aa1732; background: #ffe9ed; border: 1px solid #f3bdc8; font-weight: 750; }
body.ui-v2 .order-cancelled-notice { margin: 0 0 22px; padding: 18px 20px; background: #fff0f2; color: #a5132c; border: 1px solid #efb8c3; border-left: 4px solid #c51b3d; border-radius: 10px; }
body.ui-v2 .order-cancelled-notice strong { font-size: 18px; }
body.ui-v2 .order-cancelled-notice p { margin: 5px 0 0; color: #a5132c; }
body.ui-v2 .order-row-cancelled td { background: #fff7f8; }
body.ui-v2 .order-event-cancelled { border-left: 3px solid #c51b3d; padding-left: 12px; }
body.ui-v2 .order-event-cancelled strong { color: #aa1732; }
body.ui-v2 .api-keys-panel, body.ui-v2 .api-key-card { min-width: 0; }
body.ui-v2 .api-key-list { display: grid; gap: 14px; }
body.ui-v2 .api-key-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: #fafbfc; }
body.ui-v2 .api-key-card .panel-head-row { align-items: center; }
body.ui-v2 .api-key-card strong { overflow-wrap: anywhere; }
body.ui-v2 .api-key-card small { display: block; margin-top: 5px; }
body.ui-v2 .api-key-value { display: grid; gap: 8px; margin-bottom: 12px; }
body.ui-v2 .api-key-value input { width: 100%; min-width: 0; font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; background: #fff; }
body.ui-v2 .copy-status { font-size: 12px; }
body.ui-v2 .api-key-create { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
body.ui-v2 .api-key-create label { flex: 1; }
body.ui-v2 .api-key-restore summary, body.ui-v2 .api-example summary { cursor: pointer; color: var(--accent); font-weight: 600; }
body.ui-v2 .api-key-restore .stack { margin-top: 14px; }
body.ui-v2 .api-docs h3 { margin: 24px 0 12px; font-size: 16px; }
body.ui-v2 .api-docs pre { max-width: 100%; overflow: auto; background: #20232b; color: #f0f3fa; border: 0; border-radius: 10px; padding: 18px; font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
body.ui-v2 .api-docs pre code { white-space: pre; color: inherit; background: none; padding: 0; }
body.ui-v2 .api-docs > p code { overflow-wrap: anywhere; }
body.ui-v2 .api-docs td:first-child { min-width: 180px; }
body.ui-v2 .api-example { margin: 16px 0; }
body.ui-v2 #profile, body.ui-v2 #api-keys, body.ui-v2 #api-docs { scroll-margin-top: 92px; }
@media (max-width: 700px) {
  body.ui-v2 .api-key-card { padding: 14px; }
  body.ui-v2 .api-key-card .panel-head-row { align-items: flex-start; }
  body.ui-v2 .api-key-value input { font-size: 16px; }
  body.ui-v2 .api-key-create { flex-direction: column; align-items: stretch; }
  body.ui-v2 .order-timeline > div { grid-template-columns: 12px minmax(0, 1fr); }
  body.ui-v2 .order-timeline time { grid-column: 2; }
}

/* Staff view: clients and contract prices only. */
body.ui-v2 .viewer-badge { display:inline-flex; align-items:center; padding:7px 11px; border-radius:8px; border:1px solid #d8e0e9; background:#f3f6fa; color:#475569; font-size:12px; font-weight:650; white-space:nowrap; }
body.ui-v2 .manager-search { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; margin:10px 0 18px; }
body.ui-v2 .manager-search label { flex:1 1 240px; min-width:0; }
body.ui-v2 .manager-search input, body.ui-v2 .manager-search select { width:100%; min-width:0; }
body.ui-v2 .manager-pagination { margin-top:18px; gap:12px; flex-wrap:wrap; }
body.ui-v2 .manager-price { white-space:nowrap; font-weight:700; color:#171a21; }
@media(max-width:700px) { body.ui-v2 .manager-search label { flex-basis:100%; } body.ui-v2 .viewer-badge { padding:6px 8px; font-size:11px; } }

/* Partner catalogue: RIC, promotional reference, then purchase price. */
body.ui-v2 .partner-price-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
body.ui-v2 .partner-price-stack .price-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; padding: 10px 12px; }
body.ui-v2 .partner-price-stack .price-value { margin: 0; font-size: 21px; }
body.ui-v2 .partner-price-stack .price-item.promo { background: #fff8ed; border-color: rgba(184, 107, 0, .2); }
body.ui-v2 .partner-price-stack .price-margin { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center; justify-content: space-between; margin: 3px 0 0; }
body.ui-v2 .variant-price-stack { min-width: 245px; max-width: 400px; }
body.ui-v2 .variant-price-stack .price-value { font-size: 16px; }

/* Catalogue legibility and availability, task 21108. */
body.ui-v2 .partner-catalog-layout .catalog-category-tree a,
body.ui-v2 .partner-catalog-layout .catalog-category-tree a span,
body.ui-v2 .partner-catalog-layout .catalog-mobile-strip a { font-size: 15px; line-height: 1.4; }
body.ui-v2 .partner-catalog-layout .catalog-category-tree a span { color: inherit; }
body.ui-v2 .partner-catalog-layout .catalog-category-tree small { font-size: 12px; }
body.ui-v2 .partner-catalog-layout .product-card h2 { font-size: 18px; line-height: 1.4; }
body.ui-v2 .partner-catalog-layout .product-body small,
body.ui-v2 .partner-catalog-layout .product-meta span { font-size: 12px; }
body.ui-v2 .partner-catalog-layout .price-label { font-size: 13px; }
body.ui-v2 .partner-catalog-layout .price-value { font-size: 23px; }
body.ui-v2 .partner-catalog-layout .price-margin { font-size: 13px; flex-wrap: wrap; }
body.ui-v2 .partner-catalog-layout .product-actions .secondary,
body.ui-v2 .partner-catalog-layout .buy-request label { font-size: 12px; }
body.ui-v2 .partner-catalog-layout .buy-request .primary { font-size: 14px; }
body.ui-v2 .partner-catalog-layout .product-image img { padding: 52px 24px 42px; }
body.ui-v2 .partner-catalog-layout .product-card-badges,
body.storefront-body .storefront-card-badges { inset: 12px 62px auto 12px; justify-content: flex-start; }
body.ui-v2 .partner-catalog-layout .product-card-badges span,
body.storefront-body .storefront-card-badges span { white-space: normal; overflow-wrap: anywhere; font-size: 12px; }
body:is(.ui-v2, .storefront-body) .availability { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px 5px; padding: 6px 8px; border: 1px solid #daeee1; border-radius: 6px; background: #f0f9f3; color: #247858; font-size: 13px; line-height: 1.35; font-weight: 500; }
body:is(.ui-v2, .storefront-body) .availability strong { white-space: nowrap; font-size: inherit; }
body:is(.ui-v2, .storefront-body) .availability.stock-empty { border-color: #e9ecf1; background: #f6f7f9; color: #687080; }
body.ui-v2 .product-stock { position: absolute; z-index: 2; left: 12px; bottom: 10px; max-width: calc(100% - 24px); pointer-events: none; }
body.storefront-body .storefront-cart-form { display: flex; align-items: stretch; justify-content: space-between; gap: 8px; }
body.storefront-body .storefront-cart-form .availability { flex: 1 1 0; padding: 6px; font-size: 12px; }
body.storefront-body .storefront-cart-form .primary { flex: 1 1 0; min-width: 0; padding: 8px; white-space: normal; font-size: 13px; }
body.storefront-body .storefront-image img { padding-top: 52px; }
body.storefront-body .storefront-detail-favorite { margin-top: 14px; }
body.storefront-body .storefront-detail-favorite button { width: 100%; }
body.storefront-body .storefront-detail-favorite .is-active { border-color: var(--accent); color: var(--accent); }
body:is(.ui-v2, .storefront-body) .favorite-row { grid-template-columns: minmax(200px, 1fr) minmax(115px, auto) minmax(90px, auto) auto auto; }
@media (max-width: 1100px) {
  body:is(.ui-v2, .storefront-body) .favorite-row { grid-template-columns: minmax(0, 1fr) auto; }
  body:is(.ui-v2, .storefront-body) .favorite-product { grid-column: 1 / -1; }
  body:is(.ui-v2, .storefront-body) .favorite-row .availability { justify-self: start; }
  body:is(.ui-v2, .storefront-body) .favorite-row form { min-width: 0; }
}

body.ui-v2 .partner-catalog-layout .catalog-category-tree a span:first-child { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }

/* Reserve the actual badge height so wrapped labels never cover the photo. */
body.ui-v2 .partner-catalog-layout .product-image,
body.storefront-body .storefront-image {
  width: 100%;
  min-width: 0;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 12px 12px 44px;
}
body.storefront-body .storefront-image { padding-bottom: 20px; }
body.ui-v2 .partner-catalog-layout .product-card-badges,
body.storefront-body .storefront-card-badges {
  position: static;
  flex: 0 0 auto;
  min-height: 38px;
  margin-right: 50px;
  align-content: flex-start;
}
body.ui-v2 .partner-catalog-layout .product-image img,
body.storefront-body .storefront-image img {
  position: static;
  flex: 1 1 0;
  width: 100%;
  height: 0;
  min-height: 0;
  padding: 8px 12px 0;
}

/* Manager client exports and revocable XML links. */
body.ui-v2 .manager-accounts td { overflow-wrap:anywhere; }
body.ui-v2 .manager-accounts td:nth-child(2) { white-space:nowrap; }
body.ui-v2 .manager-account > .panel { min-width:0; }
body.ui-v2 .manager-contact-list { display:grid; grid-template-columns:auto 1fr; gap:10px 18px; }
body.ui-v2 .manager-contact-list dt { color:var(--ui-muted,#64748b); }
body.ui-v2 .manager-contact-list dd { margin:0; overflow-wrap:anywhere; min-width:0; }
body.ui-v2 .price-feed-panel { min-width:0; scroll-margin-top:24px; }
body.ui-v2 .price-feed-panel input { width:100%; min-width:0; box-sizing:border-box; }
body.ui-v2 .price-feed-panel .row-actions { flex-wrap:wrap; margin:14px 0; }
@media(max-width:700px) {
 body.ui-v2 .manager-accounts th,body.ui-v2 .manager-accounts td { padding:10px 8px; }
 body.ui-v2 .manager-account { grid-template-columns:1fr; }
 body.ui-v2 .manager-contact-list { grid-template-columns:1fr; gap:4px; }
 body.ui-v2 .manager-contact-list dd { margin-bottom:8px; }
}
