:root {
  color-scheme: light;
  --bg: #f5f2ee;
  --ink: #171717;
  --ink-2: #25211d;
  --text: #1b1b1b;
  --muted: #6f6860;
  --subtle: #948b81;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --line: rgba(41, 35, 29, 0.12);
  --line-strong: rgba(41, 35, 29, 0.2);
  --orange: #ff7a1a;
  --orange-2: #f3a13b;
  --orange-soft: rgba(255, 122, 26, 0.12);
  --green: #168a5b;
  --red: #c74432;
  --shadow: 0 22px 70px rgba(31, 24, 17, 0.12);
  --shadow-strong: 0 28px 90px rgba(24, 20, 16, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

/* Catalog stock, spreadsheet import and publication previews. */
.product-stock-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(150px, 0.7fr) minmax(180px, 1fr) minmax(130px, 0.65fr);
  gap: 12px;
}

.catalog-stock-badge {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid #d9d7d2;
  border-radius: 4px;
  background: #f7f7f5;
}

.catalog-stock-badge strong,
.catalog-stock-badge small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-stock-badge strong {
  color: #2e302d;
  font-size: 11px;
}

.catalog-stock-badge small {
  color: #77736d;
  font-size: 8px;
}

.catalog-stock-badge.is-available {
  border-color: #add3b7;
  background: #eef8f0;
}

.catalog-stock-badge.is-low {
  border-color: #e5c26b;
  background: #fff9e8;
}

.catalog-stock-badge.is-out {
  border-color: #e1aaaa;
  background: #fff1f1;
}

.catalog-import-workspace {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #ddd9d3;
  border-radius: 7px;
}

.catalog-import-workspace > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.catalog-import-workspace > summary::-webkit-details-marker {
  display: none;
}

.catalog-import-workspace > summary > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.catalog-import-workspace > summary strong {
  color: #292a27;
  font-size: 15px;
}

.catalog-import-workspace > summary small {
  color: #74716c;
  font-size: 10px;
}

.catalog-import-workspace > summary > b {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: #8c3b0d;
  background: #fff2e9;
  border: 1px solid #efc09f;
  border-radius: 5px;
  font-size: 9px;
}

.catalog-import-workspace__body {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e1dc;
}

.catalog-import-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #ddd9d3;
  border-radius: 6px;
}

.catalog-import-steps span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 10px;
  color: #77736d;
  background: #f7f7f5;
  border-left: 1px solid #e5e1dc;
  font-size: 9px;
  font-weight: 800;
}

.catalog-import-steps span:first-child {
  border-left: 0;
}

.catalog-import-steps b {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  color: #696660;
  background: #fff;
  border: 1px solid #cbc8c2;
  border-radius: 50%;
  font-size: 8px;
}

.catalog-import-steps span.is-done {
  color: #225f33;
  background: #f0f8f2;
}

.catalog-import-steps span.is-done b {
  color: #fff;
  background: #3f8f56;
  border-color: #3f8f56;
}

.catalog-import-workspace__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-import-workspace__tools p {
  margin: 0;
  color: #74716c;
  font-size: 10px;
}

.catalog-import-dropzone {
  display: grid;
  min-height: 92px;
  padding: 18px;
  place-items: center;
  color: #5d5f5a;
  background: #f7f8f7;
  border: 1px dashed #aaa8a2;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}

.catalog-import-dropzone:hover,
.catalog-import-dropzone.is-dragover {
  background: #fff5ed;
  border-color: #df5c1c;
}

.catalog-import-dropzone.is-loading {
  cursor: wait;
  opacity: 0.72;
}

.catalog-import-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.catalog-import-dropzone strong,
.catalog-import-dropzone span {
  display: block;
}

.catalog-import-dropzone strong {
  font-size: 12px;
}

.catalog-import-dropzone span {
  margin-top: 5px;
  color: #85817b;
  font-size: 9px;
}

.catalog-import-message {
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 10px;
}

.catalog-import-message.is-error {
  color: #8c2222;
  background: #fff0f0;
  border: 1px solid #e4b1b1;
}

.catalog-import-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: #f4f5f3;
  border-radius: 5px;
}

.catalog-import-summary > span {
  display: grid;
  min-width: 180px;
  margin-right: auto;
}

.catalog-import-summary > span strong,
.catalog-import-summary > span small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-import-summary > span strong {
  font-size: 10px;
}

.catalog-import-summary > span small {
  color: #7b7872;
  font-size: 8px;
}

.catalog-import-summary > b,
.catalog-import-summary > button:not(.button) {
  display: grid;
  gap: 1px;
  padding: 5px 7px;
  color: #66635e;
  background: #fff;
  border: 1px solid #dad7d1;
  border-radius: 4px;
  cursor: pointer;
  font-size: 9px;
  font-family: inherit;
  text-align: left;
}

.catalog-import-summary > button:not(.button) strong {
  font-size: 11px;
}

.catalog-import-summary > button:not(.button) small {
  color: inherit;
  font-size: 8px;
}

.catalog-import-summary > button:not(.button).is-active {
  box-shadow: 0 0 0 2px rgb(51 53 49 / 14%);
}

.catalog-import-summary > b.is-ready,
.catalog-import-summary > button.is-ready {
  color: #17612b;
  border-color: #acd1b5;
}

.catalog-import-summary > b.is-error,
.catalog-import-summary > button.is-error {
  color: #912424;
  border-color: #dfb2b2;
}

.catalog-import-summary > button.is-skipped {
  color: #74550e;
  border-color: #dfc77f;
}

.catalog-import-filter-all {
  white-space: nowrap;
}

.catalog-import-table-wrap {
  max-height: 360px;
  overflow: auto;
  border: 1px solid #dfdcd7;
  border-radius: 5px;
}

.catalog-import-table {
  min-width: 980px;
}

.catalog-import-row {
  display: grid;
  grid-template-columns: 56px minmax(230px, 0.9fr) minmax(360px, 1.5fr) minmax(180px, 0.7fr);
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 7px 11px;
  border-bottom: 1px solid #ece9e5;
  font-size: 9px;
}

.catalog-import-row.is-head {
  position: sticky;
  z-index: 1;
  top: 0;
  min-height: 34px;
  color: #77736d;
  background: #f5f6f5;
  font-weight: 850;
  text-transform: uppercase;
}

.catalog-import-row.is-ready {
  box-shadow: inset 3px 0 0 #46a25f;
}

.catalog-import-row.is-error,
.catalog-import-row.is-unmatched,
.catalog-import-row.is-invalid {
  background: #fff5f5;
  box-shadow: inset 3px 0 0 #c94a4a;
}

.catalog-import-row.is-skipped {
  background: #fffaf0;
  box-shadow: inset 3px 0 0 #d19b2e;
}

.catalog-import-row > span,
.catalog-import-row > b {
  min-width: 0;
}

.catalog-import-row > span strong,
.catalog-import-row > span small {
  display: block;
}

.catalog-import-row > span small {
  margin-top: 3px;
  color: #817d77;
  font-size: 8px;
}

.catalog-import-diffs {
  display: grid;
  gap: 5px;
}

.catalog-import-diffs > span {
  display: grid;
  grid-template-columns: 96px minmax(70px, 1fr) 14px minmax(70px, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.catalog-import-diffs b,
.catalog-import-diffs del,
.catalog-import-diffs strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-import-diffs b {
  color: #68645e;
}

.catalog-import-diffs del {
  color: #918d87;
}

.catalog-import-diffs i {
  color: #aaa59f;
  font-style: normal;
}

.catalog-import-diffs strong {
  color: #1e6b36;
}

.catalog-import-result {
  display: grid;
  gap: 3px;
}

.catalog-import-row.is-invalid .catalog-import-result b,
.catalog-import-row.is-skipped .catalog-import-result b {
  color: #9a2f24;
}

.catalog-import-empty-filter {
  padding: 24px;
  color: #77736d;
  text-align: center;
  font-size: 10px;
}

.catalog-import-apply {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.catalog-import-apply span {
  color: #77736e;
  font-size: 9px;
}

.catalog-import-report {
  display: grid;
  gap: 11px;
  padding: 14px;
  background: #f1f8f2;
  border: 1px solid #a9cdb2;
  border-radius: 6px;
}

.catalog-import-report__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-import-report__head > div:first-child {
  display: grid;
  gap: 2px;
}

.catalog-import-report__head strong {
  color: #245c32;
  font-size: 13px;
}

.catalog-import-report__head small,
.catalog-import-report__note,
.catalog-import-report__success {
  color: #617066;
  font-size: 9px;
}

.catalog-import-report__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfe0d2;
  border-radius: 5px;
}

.catalog-import-report__metrics span {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  color: #6f6b65;
  border-left: 1px solid #e3e9e4;
  font-size: 8px;
}

.catalog-import-report__metrics span:first-child {
  border-left: 0;
}

.catalog-import-report__metrics strong {
  color: #30322f;
  font-size: 15px;
}

.catalog-import-report__metrics .is-ready strong {
  color: #23703a;
}

.catalog-import-report__metrics .is-error strong {
  color: #a6332c;
}

.catalog-import-report__metrics .is-skipped strong {
  color: #836112;
}

.catalog-import-report__details summary {
  cursor: pointer;
  color: #5f5b55;
  font-size: 9px;
  font-weight: 850;
}

.catalog-import-report__rows {
  display: grid;
  max-height: 210px;
  margin-top: 8px;
  overflow: auto;
  background: #fff;
  border: 1px solid #d9e4db;
  border-radius: 4px;
}

.catalog-import-report__rows > div {
  display: grid;
  grid-template-columns: 80px minmax(150px, 0.7fr) minmax(220px, 1fr);
  gap: 9px;
  padding: 7px 9px;
  border-bottom: 1px solid #ecefea;
  font-size: 8px;
}

.catalog-import-report__rows strong {
  color: #98342d;
}

.catalog-import-report__note,
.catalog-import-report__success {
  margin: 0;
}

.catalog-product-preview-overlay {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgb(24 25 23 / 72%);
}

.catalog-product-preview-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, 96vw);
  height: min(820px, 92vh);
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
}

.catalog-product-preview-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 12px 16px;
  border-bottom: 1px solid #dfdcd7;
}

.catalog-product-preview-dialog > header > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.catalog-product-preview-dialog > header strong,
.catalog-product-preview-dialog > header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-product-preview-dialog > header strong {
  font-size: 16px;
}

.catalog-product-preview-dialog > header small {
  color: #77736d;
  font-size: 9px;
}

.catalog-product-preview-actions,
.catalog-product-preview-devices {
  display: flex;
  align-items: center;
  gap: 7px;
}

.catalog-product-preview-devices {
  padding: 3px;
  background: #eeefed;
  border-radius: 5px;
}

.catalog-product-preview-devices button {
  min-height: 32px;
  padding: 0 11px;
  color: #62645f;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.catalog-product-preview-devices button.is-active {
  color: #242522;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
}

.catalog-product-preview-stage {
  min-height: 0;
  overflow: auto;
  padding: 28px;
  background: #e8e9e6;
}

.catalog-product-preview-page {
  width: min(1040px, 100%);
  min-height: 620px;
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(30 32 28 / 12%);
}

.catalog-product-preview-stage.is-mobile .catalog-product-preview-page {
  width: 390px;
  min-height: 720px;
  padding: 16px;
}

.catalog-product-preview-breadcrumbs {
  margin-bottom: 20px;
  color: #8a8781;
  font-size: 9px;
}

.catalog-product-preview-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 34px;
}

.catalog-product-preview-stage.is-mobile .catalog-product-preview-main {
  grid-template-columns: 1fr;
  gap: 18px;
}

.catalog-product-preview-gallery {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.catalog-product-preview-stage.is-mobile .catalog-product-preview-gallery {
  grid-template-columns: 1fr;
}

.catalog-product-preview-thumbs {
  display: grid;
  align-content: start;
  gap: 7px;
}

.catalog-product-preview-stage.is-mobile .catalog-product-preview-thumbs {
  grid-template-columns: repeat(5, 48px);
  order: 2;
}

.catalog-product-preview-thumbs span {
  display: grid;
  width: 56px;
  aspect-ratio: 1;
  overflow: hidden;
  place-items: center;
  background: #f1f2ef;
  border: 1px solid #e0ded9;
  border-radius: 4px;
}

.catalog-product-preview-stage.is-mobile .catalog-product-preview-thumbs span {
  width: 48px;
}

.catalog-product-preview-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-product-preview-image {
  position: relative;
  display: grid;
  min-height: 470px;
  overflow: hidden;
  place-items: center;
  color: #8d8983;
  background: #f0f1ee;
}

.catalog-product-preview-stage.is-mobile .catalog-product-preview-image {
  min-height: 330px;
}

.catalog-product-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-product-preview-image em {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  color: #245b32;
  background: #edf8ef;
  border-radius: 4px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.catalog-product-preview-image em.is-low {
  color: #735b16;
  background: #fff5d8;
}

.catalog-product-preview-image em.is-out {
  color: #8b2727;
  background: #ffeded;
}

.catalog-product-preview-info {
  display: grid;
  align-content: start;
  gap: 15px;
}

.catalog-product-preview-info > small {
  color: #77736d;
  font-size: 9px;
}

.catalog-product-preview-info h1,
.catalog-product-preview-info p {
  margin: 0;
}

.catalog-product-preview-info h1 {
  color: #222320;
  font-size: 27px;
  line-height: 1.15;
}

.catalog-product-preview-stage.is-mobile .catalog-product-preview-info h1 {
  font-size: 21px;
}

.catalog-product-preview-info p {
  color: #696660;
  font-size: 11px;
  line-height: 1.55;
}

.catalog-product-preview-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 10px;
  border-block: 1px solid #e5e2dd;
}

.catalog-product-preview-price strong {
  color: #242522;
  font-size: 23px;
}

.catalog-product-preview-price del {
  color: #8c8882;
  font-size: 13px;
}

.catalog-product-preview-price em {
  color: #b74317;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.catalog-product-preview-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #ece9e4;
  font-size: 10px;
}

.catalog-product-preview-info > button {
  min-height: 44px;
  color: #fff;
  background: #e85b28;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 850;
}

.catalog-product-preview-info > button:disabled {
  color: #76736d;
  background: #e2e1de;
}

.promotion-archive-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  background: #efefed;
  border-radius: 5px;
}

.promotion-archive-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  color: #686a65;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.promotion-archive-tabs button.is-active {
  color: #292a27;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
}

.promotion-archive-tabs b {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding-inline: 4px;
  place-items: center;
  color: #fff;
  background: #777a74;
  border-radius: 10px;
  font-size: 8px;
}

.promotion-archive-tabs button.is-active b {
  background: #df5c1c;
}

.promotion-preview-card {
  display: grid;
  gap: 13px;
  padding: 16px;
  background: #f6f7f6;
  border: 1px solid #d9dcd7;
  border-radius: 6px;
}

.promotion-preview-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 5px;
}

.promotion-preview-summary > div {
  display: grid;
  gap: 4px;
  padding: 11px;
  border-left: 1px solid #e5e2dd;
}

.promotion-preview-summary > div:first-child {
  border-left: 0;
}

.promotion-preview-summary span {
  color: #77736d;
  font-size: 8px;
}

.promotion-preview-summary strong {
  color: #272825;
  font-size: 18px;
}

.promotion-preview-warning {
  padding: 10px 12px;
  color: #74550e;
  background: #fff5d6;
  border: 1px solid #e2c46f;
  border-radius: 5px;
  font-size: 9px;
}

.promotion-preview-table {
  max-height: 380px;
  overflow: auto;
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 5px;
}

.promotion-preview-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 110px 110px 70px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 11px;
  border-bottom: 1px solid #ece9e5;
}

.promotion-preview-row.is-head {
  position: sticky;
  z-index: 1;
  top: 0;
  min-height: 34px;
  color: #77736d;
  background: #f3f4f2;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.promotion-preview-row > span,
.promotion-preview-row > b {
  min-width: 0;
}

.promotion-preview-row > span strong,
.promotion-preview-row > span small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-preview-row > span strong,
.promotion-preview-row > b {
  color: #3b3d39;
  font-size: 9px;
}

.promotion-preview-row > span small {
  margin-top: 3px;
  color: #85817b;
  font-size: 8px;
}

.promotion-preview-row.is-discounted > b:nth-child(3),
.promotion-preview-row em {
  color: #b33f15;
  font-style: normal;
  font-weight: 850;
}

.promotion-preview-more {
  color: #77736d;
  font-size: 8px;
}

.promotion-preview-empty {
  display: grid;
  gap: 4px;
  padding: 24px;
  color: #7d7973;
  background: #fff;
  border: 1px dashed #c9c6c0;
  text-align: center;
}

.promotion-preview-empty strong {
  color: #373936;
  font-size: 11px;
}

.promotion-preview-empty span {
  font-size: 9px;
}

.catalog-bulk-workspace .catalog-bulk-table {
  min-width: 1460px;
}

.catalog-bulk-workspace .catalog-bulk-row {
  grid-template-columns: 34px 54px minmax(230px, 1.35fr) minmax(180px, 0.85fr) 105px 105px 120px 118px 185px 78px;
}

@media (max-width: 900px) {
  .product-stock-grid,
  .promotion-preview-summary,
  .catalog-import-report__metrics {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-import-steps {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-import-steps span:nth-child(3) {
    border-left: 0;
  }

  .catalog-import-steps span:nth-child(n + 3) {
    border-top: 1px solid #e5e1dc;
  }

  .catalog-import-workspace > summary,
  .catalog-import-workspace__tools,
  .catalog-import-summary,
  .catalog-import-apply,
  .catalog-product-preview-dialog > header {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-import-summary > span {
    margin-right: 0;
  }

  .catalog-import-report__head,
  .promotion-safety-card__head {
    align-items: stretch;
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .catalog-import-report__head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .promotion-safety-card__stats {
    grid-column: 1 / -1;
    padding-left: 40px;
  }

  .catalog-product-preview-overlay {
    padding: 8px;
  }

  .catalog-product-preview-dialog {
    width: 100%;
    height: 96vh;
  }

  .catalog-product-preview-stage {
    padding: 14px;
  }

  .catalog-product-preview-actions {
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .product-stock-grid,
  .promotion-preview-summary {
    grid-template-columns: 1fr;
  }

  .promotion-preview-summary > div {
    border-top: 1px solid #e5e2dd;
    border-left: 0;
  }

  .promotion-preview-summary > div:first-child {
    border-top: 0;
  }

  .catalog-product-preview-stage.is-mobile .catalog-product-preview-page {
    width: 100%;
  }
}

.promo-code-manager {
  margin-top: 22px;
}

.promo-code-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.promo-code-row {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid #e3e6e8;
  background: #fff;
}

.promo-code-row > details {
  grid-column: 1 / -1;
}

.promo-code-row > * {
  min-width: 0;
}

.promo-code-row > .button {
  min-height: 42px;
}

@media (max-width: 1100px) {
  .promo-code-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-code-row > details {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .promo-code-row {
    grid-template-columns: 1fr;
  }

  .promo-code-row > details {
    grid-column: auto;
  }
}

/* Product-level pricing and promotion workspace. */
.catalog-product-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-commerce-card {
  display: grid;
  gap: 18px;
  border: 1px solid #e1ddd7;
  box-shadow: inset 4px 0 0 #e85d24;
}

.product-commerce-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8e4de;
}

.product-commerce-head > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-commerce-head > div:first-child > strong {
  color: #20221f;
  font-size: 18px;
}

.product-commerce-head > div:first-child > small {
  max-width: 620px;
  color: #716e69;
  font-size: 11px;
  line-height: 1.45;
}

.product-commerce-price {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-items: end;
  gap: 3px 9px;
  min-width: 150px;
}

.product-commerce-price span {
  grid-column: 1 / -1;
  color: #77746e;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-commerce-price del {
  color: #8f8b85;
  font-size: 12px;
}

.product-commerce-price strong {
  color: #20221f;
  font-size: 19px;
}

.product-commerce-price.is-sale strong {
  color: #c94410;
}

.product-commerce-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid #ece8e2;
  border-bottom: 1px solid #ece8e2;
}

.product-commerce-create > div {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
}

.product-commerce-create > div > span {
  color: #4d4c48;
  font-size: 11px;
  font-weight: 900;
}

.product-commerce-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.product-commerce-create > div:last-child .product-commerce-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-commerce-actions button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 46px;
  padding: 7px 8px;
  color: #353632;
  text-align: left;
  background: #f7f6f3;
  border: 1px solid #ddd9d2;
  border-radius: 6px;
  cursor: pointer;
}

.product-commerce-actions button:hover {
  color: #a33c0d;
  background: #fff4ec;
  border-color: #e7aa87;
}

.product-commerce-actions button b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: #e65d24;
  border-radius: 50%;
  font-size: 11px;
}

.product-commerce-actions button span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 10px;
  font-weight: 850;
}

.product-commerce-section {
  display: grid;
  gap: 9px;
}

.product-commerce-section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-commerce-section__title > span {
  display: grid;
  gap: 2px;
}

.product-commerce-section__title strong {
  color: #292a27;
  font-size: 13px;
}

.product-commerce-section__title small {
  color: #77736d;
  font-size: 10px;
}

.product-commerce-section__title > b,
.product-commerce-inherited > summary > b {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  color: #a23e11;
  background: #fff0e6;
  border-radius: 50%;
  font-size: 10px;
}

.product-commerce-rules {
  display: grid;
  gap: 8px;
}

.product-commerce-rule {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  background: #faf9f7;
  border: 1px solid #e3dfd9;
  border-left: 3px solid #e45b22;
  border-radius: 6px;
}

.product-commerce-rule.is-promo {
  border-left-color: #2e7061;
}

.product-commerce-rule__head {
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.product-commerce-rule__head > strong {
  min-width: 0;
  overflow: hidden;
  color: #252623;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-commerce-active {
  display: inline-flex !important;
  align-items: center;
  grid-template-columns: none !important;
  gap: 5px !important;
  color: #343531;
  font-size: 10px;
  font-weight: 850;
}

.product-commerce-status {
  padding: 4px 7px;
  color: #6e6963;
  background: #ece9e4;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.product-commerce-status.is-active {
  color: #17644d;
  background: #e5f3ed;
}

.product-commerce-status.is-upcoming,
.product-commerce-status.is-scheduled {
  color: #72510d;
  background: #fff3d7;
}

.product-commerce-rule__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-commerce-rule__fields--promo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-commerce-rule__fields label {
  gap: 4px;
  min-width: 0;
  color: #6f6b66;
  font-size: 9px;
}

.product-commerce-rule__fields input,
.product-commerce-rule__fields select {
  min-width: 0;
  height: 35px;
  background: #fff;
}

.product-commerce-rule__note {
  color: #7b6b62;
  font-size: 9px;
  line-height: 1.4;
}

.product-commerce-empty {
  padding: 14px;
  color: #77736e;
  text-align: center;
  background: #f8f7f4;
  border: 1px dashed #d7d2cb;
  border-radius: 6px;
  font-size: 10px;
}

.product-commerce-inherited {
  border-top: 1px solid #e8e4de;
  border-bottom: 1px solid #e8e4de;
}

.product-commerce-inherited > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 900;
}

.product-commerce-inherited > summary::-webkit-details-marker {
  display: none;
}

.product-commerce-inherited > div {
  display: grid;
  padding-bottom: 9px;
}

.product-commerce-inherited > div > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-top: 1px solid #ece8e2;
}

.product-commerce-inherited span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.product-commerce-inherited strong,
.product-commerce-inherited small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-commerce-inherited small {
  color: #77736e;
  font-size: 9px;
}

.product-commerce-inherited em {
  color: #a23e11;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.product-commerce-open-all {
  justify-self: start;
}

.promotion-visibility-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 11px 12px;
  background: #f8f7f4;
  border: 1px solid #e1ddd7;
  border-radius: 6px;
}

.promotion-banner-settings__body,
.promotion-content-settings__body {
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.promotion-rule-settings__body,
.product-publication-fields .product-seo-grid {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.product-publication-fields {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.product-publication-fields summary,
.product-publication-fields .product-seo-grid,
.product-publication-fields .two,
.product-publication-fields label {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.product-publication-fields summary small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.promotion-rule-settings__body > .builder-check {
  justify-self: start;
}

.promotion-banner-settings__body > p,
.promotion-content-settings__body > p {
  margin: 0;
  padding: 10px 12px;
  color: #6f655e;
  background: #f8f7f4;
  border-left: 3px solid #df5c1c;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .product-commerce-rule__fields,
  .product-commerce-rule__fields--promo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .catalog-product-steps {
    grid-template-columns: repeat(4, minmax(42px, 1fr));
  }

  .product-commerce-head,
  .product-commerce-create {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-commerce-head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-commerce-price {
    justify-items: start;
  }

  .product-commerce-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-commerce-rule__head {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .product-commerce-rule__head .button {
    width: 100%;
  }

  .product-commerce-rule__fields,
  .product-commerce-rule__fields--promo {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Client workflow: banners, production, reusable references and promotion scopes */
.catalog-workspace-tabs {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  width: 100%;
}

.catalog-workspace-tabs__icon.is-references::before {
  width: 18px;
  height: 18px;
  border: 1px solid #d65a1e;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff2e9 0 3px, #d65a1e 4px 5px, transparent 6px);
  box-shadow: inset 0 -5px 0 rgba(214, 90, 30, 0.14);
  content: '';
}

.catalog-workspace-tabs__icon.is-promotions::before {
  width: 18px;
  height: 18px;
  color: #d65a1e;
  border: 1px solid #d65a1e;
  border-radius: 50%;
  background: #fff2e9;
  content: '%';
  font-size: 10px;
  font-weight: 900;
  line-height: 17px;
  text-align: center;
}

.home-banner-list {
  gap: 7px;
}

.home-banner-list__head,
.home-banner-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.home-banner-list__head {
  margin-bottom: 5px;
  padding: 4px 2px 10px;
  border-bottom: 1px solid #e4e0da;
}

.home-banner-list__head strong,
.home-banner-list__head small {
  display: block;
}

.home-banner-list__head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.home-banner-row {
  padding: 3px;
  border: 1px solid #e2dfda;
  border-radius: 6px;
  background: #fff;
}

.home-banner-row.is-active {
  border-color: #e16a32;
  box-shadow: inset 3px 0 0 #e16a32;
}

.home-banner-row .list-button {
  border: 0;
  background: transparent;
}

.home-banner-visibility {
  display: inline-grid;
  grid-template-columns: 24px auto;
  align-items: center;
  gap: 6px;
  min-width: 78px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #d8d6d1;
  border-radius: 5px;
  background: #f7f7f5;
  color: #6d706d;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
}

.home-banner-visibility > span {
  position: relative;
  width: 24px;
  height: 14px;
  border-radius: 8px;
  background: #b9bcb9;
}

.home-banner-visibility > span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  content: '';
  transition: transform 130ms ease;
}

.home-banner-visibility.is-on {
  border-color: #e8a57d;
  background: #fff4ec;
  color: #a94713;
}

.home-banner-visibility.is-on > span {
  background: #df5c1c;
}

.home-banner-visibility.is-on > span::after {
  transform: translateX(10px);
}

.production-editor-card {
  max-width: 1060px;
}

.production-editor-intro {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-left: 4px solid var(--orange);
  background: #f6f6f3;
}

.production-editor-intro strong {
  font-size: 18px;
  line-height: 1.25;
}

.production-editor-intro small {
  color: var(--muted);
}

.production-metric-editor {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #e0ddd8;
  border-radius: 6px;
  background: #f9f9f7;
}

.production-metric-row {
  display: grid;
  grid-template-columns: 32px minmax(130px, 0.32fr) minmax(220px, 1fr);
  align-items: end;
  gap: 8px;
}

.production-metric-row > b {
  align-self: center;
  color: #c44b15;
  font-size: 11px;
}

.catalog-reference-workspace {
  display: grid;
  gap: 12px;
}

.catalog-reference-heading {
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  background: #fff;
}

.catalog-reference-heading h2,
.catalog-reference-heading p {
  margin: 5px 0 0;
}

.catalog-reference-heading p {
  max-width: 820px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.catalog-reference-columns {
  display: grid;
  grid-template-columns: minmax(520px, 1.2fr) minmax(390px, 0.8fr);
  align-items: start;
  gap: 12px;
}

.catalog-reference-card {
  min-width: 0;
}

.catalog-reference-list {
  display: grid;
  gap: 1px;
  max-height: 760px;
  overflow: auto;
  border: 1px solid #dedbd6;
  background: #dedbd6;
}

.catalog-reference-row {
  position: relative;
  background: #fff;
}

.catalog-reference-row--color {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(260px, 1.2fr);
  gap: 10px;
  padding: 11px;
}

.catalog-reference-row__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-reference-row__head .catalog-reference-order {
  display: grid;
  grid-template-columns: auto 74px;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.catalog-reference-name-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

.catalog-reference-name-row input[type='color'] {
  width: 42px;
  height: 38px;
  padding: 3px;
}

.catalog-reference-image-picker {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.catalog-reference-image-preview {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dedbd6;
  background: #f3f3f0;
  color: #8b8984;
  font-size: 9px;
}

.catalog-reference-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-reference-image-picker > span:last-child {
  display: grid;
  gap: 5px;
}

.catalog-reference-image-picker .inline-upload {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
}

.catalog-reference-image-picker .inline-upload small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-reference-row--weight {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) minmax(120px, 0.8fr) 86px 28px;
  align-items: end;
  gap: 8px;
  padding: 10px;
}

.catalog-reference-delete {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #e1d8d2;
  border-radius: 4px;
  background: #fff;
  color: #a34b38;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
}

.product-reference-quick-add {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  gap: 6px;
  margin-top: 6px;
}

.product-variant-grid {
  align-items: start;
}

.product-variant-editor {
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dedbd6;
  border-radius: 7px;
  background: #fbfbfa;
}

.product-variant-editor__head > span {
  display: grid;
  gap: 2px;
}

.product-variant-editor__head strong {
  color: #25231f;
  font-size: 14px;
}

.product-variant-editor__head small,
.product-variant-help {
  color: #756f68;
  font-size: 11px;
  line-height: 1.4;
}

.product-color-create {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 84px auto;
  align-items: end;
  gap: 7px;
  padding: 10px;
  border: 1px solid #f0c8b3;
  border-radius: 6px;
  background: #fff7f2;
}

.product-color-create > label {
  min-width: 0;
}

.product-color-create__swatch input[type="color"] {
  width: 100%;
  min-height: 42px;
  padding: 4px;
  cursor: pointer;
}

.product-color-create > .button {
  min-height: 42px;
  white-space: nowrap;
}

.promotion-target-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #ddd9d3;
  border-radius: 6px;
  background: #f8f8f6;
}

.promotion-target-card .promotion-product-picker {
  padding: 0;
  border: 0;
  background: transparent;
}

.promotion-folder-picker,
.promotion-folder-options {
  display: grid;
  gap: 8px;
}

.promotion-folder-picker > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.promotion-folder-options {
  max-height: 360px;
  overflow: auto;
  border: 1px solid #dedbd6;
  background: #fff;
}

.promotion-folder-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 8px 10px;
  border-bottom: 1px solid #ebe8e4;
  cursor: pointer;
}

.promotion-folder-option:hover,
.promotion-folder-option.is-selected {
  background: #fff5ee;
}

.promotion-folder-option strong,
.promotion-folder-option small,
.promotion-all-catalog strong,
.promotion-all-catalog span {
  display: block;
}

.promotion-folder-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.promotion-all-catalog {
  padding: 14px;
  border-left: 4px solid #df5c1c;
  background: #fff3ea;
}

.promotion-all-catalog span {
  margin-top: 4px;
  color: #765f53;
  font-size: 10px;
}

@media (max-width: 1100px) {
  .catalog-workspace-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-reference-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .catalog-workspace-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-banner-list__head,
  .home-banner-row,
  .production-metric-row,
  .catalog-reference-row--color,
  .catalog-reference-row--weight,
  .product-reference-quick-add {
    grid-template-columns: 1fr;
  }

  .product-color-create {
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .product-color-create > .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .home-banner-list__head .button,
  .home-banner-visibility {
    width: 100%;
  }

  .production-metric-row > b,
  .catalog-reference-row__head,
  .catalog-reference-name-row,
  .catalog-reference-image-picker {
    grid-column: auto;
  }

  .catalog-reference-row__head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .catalog-reference-row__head .catalog-reference-order {
    margin-left: 0;
  }

  .catalog-reference-row--weight .catalog-reference-delete {
    position: absolute;
    top: 8px;
    right: 8px;
  }
}

/* Catalog workspace: offers and nomenclature */
.catalog-workspace-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 1px;
  overflow: hidden;
  width: min(100%, 860px);
  background: #dcd9d4;
  border: 1px solid #dcd9d4;
  border-radius: 7px;
}

.catalog-workspace-tabs > button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 14px;
  color: #535450;
  background: #fff;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.catalog-workspace-tabs > button:hover,
.catalog-workspace-tabs > button.is-active {
  color: #9f3f08;
  background: #fff5ee;
}

.catalog-workspace-tabs > button.is-active {
  box-shadow: inset 0 -3px 0 var(--orange);
}

.catalog-workspace-tabs strong,
.catalog-workspace-tabs small {
  display: block;
}

.catalog-workspace-tabs strong {
  font-size: 13px;
}

.catalog-workspace-tabs small {
  margin-top: 3px;
  color: #817d77;
  font-size: 10px;
  font-weight: 750;
}

.catalog-workspace-tabs__icon {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #e3ded8;
  border-radius: 6px;
  background: #fff;
}

.catalog-workspace-tabs__icon.is-products::before,
.catalog-workspace-tabs__icon.is-products::after {
  width: 17px;
  height: 4px;
  border: 1px solid #d65a1e;
  border-radius: 2px;
  background: #fff2e9;
  box-shadow: 0 6px 0 #fff2e9, 0 6px 0 0 #d65a1e;
  content: '';
}

.catalog-workspace-tabs__icon.is-products::after {
  position: absolute;
  left: 6px;
  width: 3px;
  border-color: #d65a1e;
  background: #d65a1e;
  box-shadow: 0 6px 0 #d65a1e;
}

.catalog-workspace-tabs__icon.is-tree::before {
  width: 16px;
  height: 11px;
  border-left: 2px solid #d65a1e;
  border-bottom: 2px solid #d65a1e;
  content: '';
}

.catalog-workspace-tabs__icon.is-tree::after {
  position: absolute;
  top: 7px;
  right: 5px;
  width: 8px;
  height: 6px;
  border: 1px solid #d65a1e;
  border-radius: 2px;
  background: #fff2e9;
  box-shadow: 0 9px 0 #fff2e9, 0 9px 0 0 #d65a1e;
  content: '';
}

.catalog-workspace-tabs__icon.is-bulk::before {
  width: 18px;
  height: 14px;
  border: 1px solid #d65a1e;
  border-radius: 2px;
  background:
    linear-gradient(#d65a1e, #d65a1e) 0 4px / 100% 1px no-repeat,
    linear-gradient(#d65a1e, #d65a1e) 0 9px / 100% 1px no-repeat,
    linear-gradient(#d65a1e, #d65a1e) 6px 0 / 1px 100% no-repeat,
    #fff2e9;
  content: '';
}

.catalog-workbench.is-products-mode {
  grid-template-columns: minmax(380px, 0.86fr) minmax(0, 1.14fr);
}

.catalog-nomenclature-workspace {
  display: grid;
  grid-template-columns: minmax(270px, 0.34fr) minmax(680px, 1fr);
  align-items: start;
  gap: 12px;
}

.catalog-nomenclature-tree {
  max-height: calc(100vh - 164px);
  overflow: auto;
}

.catalog-nomenclature-main {
  min-width: 0;
}

.catalog-family-editor {
  display: grid;
  gap: 12px;
}

.catalog-family-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 7px;
}

.catalog-family-editor__head h2,
.catalog-family-editor__head p {
  margin: 0;
}

.catalog-family-editor__head h2 {
  margin-top: 4px;
  color: #292a28;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.catalog-family-editor__head p {
  max-width: 660px;
  margin-top: 5px;
  color: #74716c;
  font-size: 11px;
  line-height: 1.45;
}

.catalog-family-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 240px;
  padding: 10px 12px;
  background: #f5f6f3;
  border: 1px solid #d9ddd5;
  border-radius: 6px;
  cursor: pointer;
}

.catalog-family-toggle:has(input:checked) {
  background: #eff8f1;
  border-color: #a9ceb0;
}

.catalog-family-toggle strong,
.catalog-family-toggle small {
  display: block;
}

.catalog-family-toggle strong {
  color: #333631;
  font-size: 11px;
}

.catalog-family-toggle small {
  margin-top: 2px;
  color: #737a71;
  font-size: 9px;
}

.catalog-family-sections {
  position: sticky;
  z-index: 5;
  top: 8px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 5px;
  background: rgba(247, 246, 243, 0.96);
  border: 1px solid #dfdcd7;
  border-radius: 7px;
  backdrop-filter: blur(10px);
}

.catalog-family-sections a {
  min-height: 34px;
  padding: 9px 12px;
  color: #555752;
  background: #fff;
  border: 1px solid #e2dfda;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.catalog-family-sections a:hover,
.catalog-family-sections a:focus-visible {
  color: #a43f0b;
  border-color: #efb994;
}

.catalog-family-card {
  display: grid;
  gap: 13px;
  scroll-margin-top: 64px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 7px;
}

.catalog-family-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e7e3de;
}

.catalog-family-card__title > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.catalog-family-card__title b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #fff;
  background: #e35c24;
  border-radius: 50%;
  font-size: 9px;
}

.catalog-family-card__title strong {
  color: #292a28;
  font-size: 13px;
}

.catalog-family-card__title small,
.catalog-family-card__intro {
  color: #7b7771;
  font-size: 10px;
}

.catalog-family-card__intro {
  margin: -3px 0 0;
  line-height: 1.45;
}

.catalog-family-order-actions,
.catalog-family-assignment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.catalog-family-print-group {
  max-width: 520px;
}

.catalog-family-settings-table {
  overflow: hidden;
  border: 1px solid #dfdcd7;
  border-radius: 6px;
}

.catalog-family-settings-table > label {
  display: grid;
  grid-template-columns: minmax(210px, 0.55fr) minmax(260px, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 11px;
  background: #fff;
  border-bottom: 1px solid #ebe7e2;
}

.catalog-family-settings-table > label:nth-child(even) {
  background: #f8f8f6;
}

.catalog-family-settings-table > label:last-child {
  border-bottom: 0;
}

.catalog-family-settings-table > label.is-hidden-on-site {
  opacity: 0.58;
}

.catalog-family-settings-table strong,
.catalog-family-settings-table small {
  display: block;
}

.catalog-family-settings-table strong {
  color: #3a3b38;
  font-size: 11px;
}

.catalog-family-settings-table small {
  margin-top: 2px;
  color: #8a867f;
  font-size: 8px;
}

.catalog-family-offer-table {
  overflow-x: auto;
  border: 1px solid #dfdcd7;
  border-radius: 6px;
}

.catalog-family-offer-row {
  display: grid;
  grid-template-columns: 52px minmax(180px, 1fr) 90px 70px 90px 34px;
  align-items: center;
  gap: 9px;
  min-width: 650px;
  min-height: 62px;
  padding: 6px 9px;
  background: #fff;
  border-bottom: 1px solid #e8e4df;
}

.catalog-family-offer-row:last-child {
  border-bottom: 0;
}

.catalog-family-offer-row.is-head {
  min-height: 36px;
  color: #817d77;
  background: #f7f6f3;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-family-offer-row strong,
.catalog-family-offer-row small {
  display: block;
}

.catalog-family-offer-row strong {
  color: #323330;
  font-size: 10px;
}

.catalog-family-offer-row small {
  margin-top: 3px;
  color: #7f7b75;
  font-size: 9px;
}

.catalog-family-offer-row > b {
  color: #4c4e4a;
  font-size: 10px;
  font-weight: 800;
}

.catalog-family-offer-thumb {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  color: #928e88;
  background: #f3f2ef;
  border-radius: 4px;
  font-size: 7px;
}

.catalog-family-offer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-offer-edit {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #a8440f;
  background: #fff4ec;
  border: 1px solid #edc1a6;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.catalog-family-search {
  max-width: 620px;
}

.catalog-family-assignment-list {
  display: grid;
  max-height: 360px;
  overflow: auto;
  border: 1px solid #dfdcd7;
  border-radius: 6px;
}

.catalog-family-assignment-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(90px, auto);
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 7px 10px;
  background: #fff;
  border-bottom: 1px solid #ebe7e2;
  cursor: pointer;
}

.catalog-family-assignment-row:hover,
.catalog-family-assignment-row.is-selected {
  background: #fff6ef;
}

.catalog-family-assignment-row strong,
.catalog-family-assignment-row small {
  display: block;
}

.catalog-family-assignment-row strong {
  color: #383936;
  font-size: 10px;
}

.catalog-family-assignment-row small {
  margin-top: 2px;
  color: #7e7a74;
  font-size: 9px;
}

.catalog-family-assignment-row em {
  color: #8b8178;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.catalog-family-savebar {
  position: sticky;
  z-index: 6;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  background: rgba(36, 37, 35, 0.97);
  border: 1px solid #151615;
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(32, 29, 27, 0.2);
}

.catalog-family-savebar strong,
.catalog-family-savebar small {
  display: block;
}

.catalog-family-savebar strong {
  color: #fff;
  font-size: 11px;
}

.catalog-family-savebar small {
  margin-top: 2px;
  color: #bdbcb8;
  font-size: 9px;
}

.catalog-nomenclature-empty {
  display: grid;
  min-height: 420px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 32px;
  color: #74716c;
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 7px;
  text-align: center;
}

.catalog-nomenclature-empty h2,
.catalog-nomenclature-empty p {
  margin: 0;
}

.catalog-nomenclature-empty h2 {
  color: #30312e;
  font-size: 18px;
}

.catalog-nomenclature-empty p {
  max-width: 520px;
  font-size: 11px;
  line-height: 1.5;
}

.catalog-nomenclature-empty > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  color: #a44713;
  font-size: 10px;
}

.catalog-product-steps {
  position: sticky;
  z-index: 5;
  top: 58px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: -1px -1px 2px;
  background: #dcd9d4;
  border: 1px solid #dcd9d4;
  border-radius: 6px;
}

.catalog-product-steps button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px;
  color: #646560;
  background: #fff;
  border: 0;
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
}

.catalog-product-steps button:hover,
.catalog-product-steps button.is-active {
  color: #a4400b;
  background: #fff4ec;
}

.catalog-product-steps b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
  background: #858783;
  border-radius: 50%;
  font-size: 8px;
}

.catalog-product-steps button.is-active b {
  background: #e35c24;
}

[data-catalog-product-section-target] {
  scroll-margin-top: 112px;
}

.product-shared-content-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  color: #31573a;
  background: #f0f8f1;
  border: 1px solid #b9d7be;
  border-radius: 6px;
}

.product-shared-content-note strong,
.product-shared-content-note small {
  display: block;
}

.product-shared-content-note strong {
  font-size: 10px;
}

.product-shared-content-note small {
  margin-top: 3px;
  color: #667d6b;
  font-size: 9px;
  line-height: 1.35;
}

.product-seo-override-fields {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.product-seo-override-fields:disabled {
  opacity: 0.55;
}

.visual-toolbar-button.is-cancel {
  color: #9b3f20;
  background: #fff4ee;
  border-color: #eab79e;
}

.visual-toolbar-button.is-cancel:disabled {
  color: #989590;
  background: #f1f0ed;
  border-color: #dedbd6;
}

/* Nomenclature works like a file explorer: folders stay visible while offers remain scannable. */
.catalog-nomenclature-workspace--explorer {
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  align-items: start;
}

.catalog-nomenclature-workspace--explorer .catalog-nomenclature-tree {
  max-height: calc(100vh - 92px);
  overflow: auto;
}

.catalog-explorer-main {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 7px;
}

.catalog-explorer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 104px;
  padding: 18px 20px;
  border-bottom: 1px solid #e4e0db;
  background: #fff;
}

.catalog-explorer-head h2,
.catalog-explorer-head p {
  margin: 0;
}

.catalog-explorer-head h2 {
  margin-top: 7px;
  color: #292a27;
  font-size: 20px;
}

.catalog-explorer-head p {
  margin-top: 5px;
  color: #706d67;
  font-size: 10px;
  line-height: 1.45;
}

.catalog-explorer-head__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.catalog-explorer-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #9f3f08;
  font-size: 9px;
  font-weight: 850;
}

.catalog-explorer-breadcrumbs i {
  color: #aaa39b;
  font-style: normal;
}

.catalog-explorer-breadcrumbs button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
}

.catalog-explorer-breadcrumbs button:hover,
.catalog-explorer-breadcrumbs button:focus-visible {
  color: #d24f0d;
  text-decoration: underline;
}

.catalog-explorer-contents {
  min-width: 0;
}

.catalog-folder-dashboard {
  padding: 14px 16px 16px;
  background: #fcfbf9;
  border-bottom: 1px solid #dedad4;
}

.catalog-folder-dashboard__head,
.catalog-folder-dashboard__head > span,
.catalog-folder-dashboard__head > span strong,
.catalog-folder-dashboard__head > span small {
  display: flex;
}

.catalog-folder-dashboard__head {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.catalog-folder-dashboard__head > span {
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.catalog-folder-dashboard__head > span strong {
  color: #2f302d;
  font-size: 12px;
}

.catalog-folder-dashboard__head > span small {
  color: #79756f;
  font-size: 9px;
}

.catalog-folder-dashboard__head > div {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 7px;
}

.catalog-folder-metrics,
.catalog-folder-inheritance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #dedad4;
  border-radius: 6px;
  background: #fff;
}

.catalog-folder-metrics {
  overflow: hidden;
}

.catalog-folder-metrics button {
  display: grid;
  min-width: 0;
  min-height: 76px;
  align-content: center;
  gap: 3px;
  padding: 10px 12px;
  color: #6f6b65;
  background: #fff;
  border: 0;
  border-right: 1px solid #e6e2dd;
  cursor: pointer;
  text-align: left;
}

.catalog-folder-metrics button:last-child {
  border-right: 0;
}

.catalog-folder-metrics button:hover,
.catalog-folder-metrics button:focus-visible,
.catalog-folder-metrics button.is-active {
  background: #fff2e8;
  box-shadow: inset 0 -3px 0 #df5b1d;
}

.catalog-folder-metrics button span,
.catalog-folder-metrics button small {
  overflow: hidden;
  font-size: 8px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-folder-metrics button strong {
  color: #272824;
  font-size: 20px;
  line-height: 1;
}

.catalog-folder-metrics button small {
  color: #8b857e;
  font-weight: 650;
}

.catalog-folder-inheritance {
  margin-top: 8px;
  background: #f4f7f5;
  border-color: #d9e0dc;
}

.catalog-folder-inheritance > div {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid #dfe5e1;
}

.catalog-folder-inheritance > div:last-child {
  border-right: 0;
}

.catalog-folder-inheritance span,
.catalog-folder-inheritance strong,
.catalog-folder-inheritance small,
.catalog-folder-activity span,
.catalog-folder-activity strong,
.catalog-folder-activity small {
  display: block;
}

.catalog-folder-inheritance span {
  color: #727a75;
  font-size: 8px;
  font-weight: 850;
}

.catalog-folder-inheritance strong {
  overflow: hidden;
  margin-top: 4px;
  color: #2c4236;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-folder-inheritance small {
  overflow: hidden;
  margin-top: 3px;
  color: #758078;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-folder-activity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  padding: 9px 11px;
  background: #fff;
  border-left: 3px solid #dc671f;
}

.catalog-folder-activity strong {
  color: #42433f;
  font-size: 9px;
}

.catalog-folder-activity small {
  overflow: hidden;
  margin-top: 3px;
  color: #7b7771;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-explorer-folders {
  padding: 15px 18px 18px;
  background: #f8f7f5;
  border-bottom: 1px solid #e5e1dc;
}

.catalog-explorer-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.catalog-explorer-section-title > span,
.catalog-explorer-section-title > span strong,
.catalog-explorer-section-title > span small {
  display: block;
}

.catalog-explorer-section-title strong {
  color: #333431;
  font-size: 11px;
}

.catalog-explorer-section-title small {
  color: #817d77;
  font-size: 9px;
}

.catalog-explorer-folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
}

.catalog-explorer-new-folder {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  color: #9f3f08;
  background: #fff;
  border: 1px solid #e5b28f;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
}

.catalog-explorer-new-folder .catalog-explorer-folder__icon {
  width: 18px;
  height: 13px;
  cursor: pointer;
}

.catalog-explorer-new-folder .catalog-explorer-folder__icon::before {
  top: -4px;
  width: 8px;
  height: 4px;
}

.catalog-explorer-new-folder:hover,
.catalog-explorer-new-folder:focus-visible {
  background: #fff1e6;
  border-color: #dc671f;
}

.catalog-explorer-create-action {
  gap: 7px;
  color: #a5420d;
  background: #fff4ec;
  border-color: #e5a77f;
}

.catalog-explorer-create-action > span {
  font-size: 17px;
  line-height: 1;
}

.catalog-explorer-create-action:hover,
.catalog-explorer-create-action:focus-visible {
  color: #8f3508;
  background: #ffe9da;
  border-color: #d86625;
}

.catalog-explorer-create-folder {
  display: grid;
  grid-template-columns: 28px minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 9px;
  margin-bottom: 10px;
  padding: 11px;
  background: #fff;
  border: 1px solid #e1b798;
  border-radius: 6px;
  box-shadow: 0 5px 16px rgba(61, 47, 38, 0.07);
}

.catalog-explorer-create-folder > .catalog-explorer-folder__icon {
  align-self: center;
}

.catalog-explorer-create-folder label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.catalog-explorer-create-folder label strong {
  color: #4d4d49;
  font-size: 9px;
}

.catalog-explorer-create-folder input {
  width: 100%;
  min-height: 36px;
}

.catalog-explorer-folder-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px;
  color: #7b7771;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed #d8d2cb;
  border-radius: 6px;
  font-size: 10px;
}

.catalog-explorer-folder-empty--action {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: #5f5b56;
  background: #fff;
  border-style: solid;
}

.catalog-explorer-folder-empty--action strong,
.catalog-explorer-folder-empty--action small {
  display: block;
}

.catalog-explorer-folder-empty--action strong {
  color: #383936;
  font-size: 11px;
}

.catalog-explorer-folder-empty--action small {
  margin-top: 3px;
  color: #817d77;
  font-size: 9px;
}

.catalog-explorer-folder {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 9px 11px;
  color: #333431;
  background: #fff;
  border: 1px solid #ddd8d2;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.catalog-explorer-folder:hover,
.catalog-explorer-folder:focus-visible {
  border-color: #e47c40;
  box-shadow: 0 3px 10px rgba(61, 47, 38, 0.08);
}

.catalog-explorer-folder strong,
.catalog-explorer-folder small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-explorer-folder strong {
  font-size: 10px;
}

.catalog-explorer-folder small,
.catalog-explorer-folder > b {
  margin-top: 3px;
  color: #858079;
  font-size: 8px;
}

.catalog-explorer-folder__icon {
  position: relative;
  width: 25px;
  height: 18px;
  border: 1.5px solid #dc671f;
  border-radius: 3px;
  background: #fff2e8;
  cursor: grab;
}

.catalog-explorer-folder__icon::before {
  position: absolute;
  top: -5px;
  left: 1px;
  width: 11px;
  height: 5px;
  border: 1.5px solid #dc671f;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #fff2e8;
  content: '';
}

.catalog-explorer-offers {
  min-width: 0;
}

.catalog-explorer-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: end;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #e6e2dd;
}

.catalog-explorer-search span {
  display: block;
  margin-bottom: 5px;
  color: #6d6963;
  font-size: 8px;
  font-weight: 850;
}

.catalog-explorer-search input {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  color: #262724;
  background: #fff;
  border: 1px solid #d9d5cf;
  border-radius: 5px;
  font: inherit;
  font-size: 10px;
}

.catalog-explorer-select-all {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  color: #555651;
  font-size: 9px;
  font-weight: 800;
}

.catalog-explorer-selection {
  min-width: 90px;
  padding-bottom: 9px;
  color: #77736d;
  font-size: 9px;
  text-align: right;
}

.catalog-explorer-bulkbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: #553624;
  background: #fff4ec;
  border-bottom: 1px solid #e8c5af;
  font-size: 9px;
  font-weight: 850;
}

.catalog-explorer-bulkbar select {
  min-width: 190px;
  flex: 1 1 190px;
  min-height: 34px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #d9c1b2;
  border-radius: 5px;
  font: inherit;
  font-size: 9px;
}

.catalog-explorer-bulk-price {
  display: grid;
  grid-template-columns: minmax(92px, 130px) 20px;
  align-items: center;
  min-height: 34px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9c1b2;
  border-radius: 5px;
}

.catalog-explorer-bulk-price input {
  min-width: 0;
  height: 32px;
  padding: 5px 7px;
  border: 0;
  font: inherit;
  font-size: 9px;
}

.catalog-explorer-bulk-price b {
  color: #77675e;
  font-size: 9px;
}

.catalog-explorer-table-wrap {
  min-width: 0;
  overflow: auto;
}

.catalog-explorer-table {
  min-width: 1040px;
}

.catalog-explorer-row {
  display: grid;
  grid-template-columns: 24px 25px 48px minmax(230px, 1fr) 94px 104px 76px 98px 64px;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 6px 10px;
  background: #fff;
  border-bottom: 1px solid #e9e5e0;
}

.catalog-explorer-row.is-head {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 34px;
  color: #827d77;
  background: #f5f4f1;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-explorer-row:not(.is-head):hover,
.catalog-explorer-row.is-selected {
  background: #fff8f3;
}

.catalog-explorer-row > b {
  overflow: hidden;
  color: #4e504c;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-explorer-drag {
  display: grid;
  height: 30px;
  place-items: center;
  color: #9d968f;
  cursor: grab;
  font-size: 11px;
  font-weight: 900;
}

.catalog-explorer-drag:active {
  cursor: grabbing;
}

[data-catalog-folder-drag] .catalog-folder-child__icon {
  cursor: grab;
}

.catalog-explorer-check {
  display: grid;
  place-items: center;
}

.catalog-explorer-product {
  min-width: 0;
  padding: 5px 0;
  color: #30312e;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.catalog-explorer-product strong,
.catalog-explorer-product small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-explorer-product strong {
  font-size: 10px;
}

.catalog-explorer-product small {
  margin-top: 3px;
  color: #77736d;
  font-size: 8px;
}

.catalog-explorer-product em {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #ad4a15;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-explorer-product em.is-inherited {
  color: #3f765a;
}

.catalog-explorer-inline-number {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  min-width: 0;
  min-height: 32px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9d5cf;
  border-radius: 4px;
}

.catalog-explorer-inline-number.is-sort {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-explorer-inline-number input {
  min-width: 0;
  width: 100%;
  height: 30px;
  padding: 4px 6px;
  color: #363733;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
}

.catalog-explorer-inline-number span {
  color: #77716b;
  font-size: 8px;
}

.catalog-explorer-inline-status {
  min-width: 0;
  min-height: 32px;
  padding: 4px 6px;
  color: #227049;
  background: #eaf7ef;
  border: 1px solid #cfe6d7;
  border-radius: 4px;
  font: inherit;
  font-size: 8px;
  font-weight: 850;
}

.catalog-explorer-inline-status.is-hidden {
  color: #716b66;
  background: #efedeb;
  border-color: #ded9d4;
}

.catalog-explorer-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.catalog-explorer-row-actions > i {
  color: #2d7d50;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.catalog-explorer-issue {
  min-width: 28px;
  min-height: 25px;
  padding: 3px 5px;
  color: #a44211;
  background: #fff1e7;
  border: 1px solid #e7b08f;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  font-weight: 900;
}

.catalog-explorer-status {
  display: inline-flex;
  width: fit-content;
  padding: 4px 6px;
  color: #227049;
  background: #eaf7ef;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 850;
}

.catalog-explorer-status.is-hidden {
  color: #807973;
  background: #efedeb;
}

.catalog-explorer-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: #858079;
  text-align: center;
}

.catalog-explorer-empty strong {
  color: #3f403d;
  font-size: 12px;
}

.catalog-explorer-empty span,
.catalog-explorer-drop-hint {
  font-size: 9px;
}

.catalog-explorer-drop-hint {
  margin: 0;
  padding: 10px 14px;
  color: #77736d;
  background: #faf9f7;
  border-top: 1px solid #e8e4df;
}

.catalog-family-editor--settings {
  padding: 14px;
  background: #f6f5f2;
}

.catalog-folder-settings-section {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 6px;
}

.catalog-folder-settings-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.catalog-folder-settings-section > summary::-webkit-details-marker {
  display: none;
}

.catalog-folder-settings-section > summary span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.catalog-folder-settings-section > summary b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #fff;
  background: #e36324;
  border-radius: 50%;
  font-size: 8px;
}

.catalog-folder-settings-section > summary strong {
  color: #353633;
  font-size: 11px;
}

.catalog-folder-settings-section > summary small {
  color: #817d77;
  font-size: 9px;
}

.catalog-folder-settings-section__body {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid #e6e2dd;
}

.catalog-folder-settings-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.is-catalog-dragging {
  opacity: 0.35;
}

.is-catalog-drop-before {
  box-shadow: inset 0 3px 0 #e15d20 !important;
}

.is-catalog-drop-after {
  box-shadow: inset 0 -3px 0 #e15d20 !important;
}

.is-catalog-drop-inside {
  background: #fff0e5 !important;
  outline: 2px solid #e15d20;
  outline-offset: -2px;
}

.is-catalog-row-drop {
  box-shadow: inset 0 3px 0 #e15d20;
}

@media (max-width: 1240px) {
  .catalog-workbench.is-products-mode,
  .catalog-nomenclature-workspace {
    grid-template-columns: minmax(360px, 0.8fr) minmax(500px, 1.2fr);
  }

  .catalog-nomenclature-tree {
    max-height: none;
  }

  .catalog-nomenclature-workspace--explorer {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .catalog-explorer-folder-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 1480px) {
  .catalog-nomenclature-workspace--explorer .catalog-explorer-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-nomenclature-workspace--explorer .catalog-explorer-head__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .catalog-workbench.is-products-mode,
  .catalog-nomenclature-workspace {
    grid-template-columns: 1fr;
  }

  .catalog-nomenclature-tree {
    position: relative;
    top: auto;
    max-height: none;
  }

  .catalog-nomenclature-workspace--explorer {
    grid-template-columns: 1fr;
  }

  .catalog-nomenclature-workspace--explorer .catalog-nomenclature-tree {
    max-height: 420px;
    order: 1;
  }

  .catalog-nomenclature-workspace--explorer .catalog-explorer-main {
    order: 2;
  }

  .catalog-family-editor__head {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-family-toggle {
    min-width: 0;
  }

  .catalog-explorer-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-explorer-head__actions {
    width: 100%;
  }

  .catalog-explorer-head__actions .button {
    flex: 1 1 0;
  }

  .catalog-folder-metrics,
  .catalog-folder-inheritance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-folder-metrics button:nth-child(2),
  .catalog-folder-inheritance > div:nth-child(2) {
    border-right: 0;
  }

  .catalog-folder-metrics button:nth-child(-n + 2),
  .catalog-folder-inheritance > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e1ded9;
  }
}

@media (max-width: 680px) {
  .catalog-workspace-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .catalog-workspace-tabs > button {
    grid-template-columns: minmax(0, 1fr);
    min-height: 58px;
    padding: 8px 5px;
    text-align: center;
  }

  .catalog-workspace-tabs__icon {
    display: none;
  }

  .catalog-workspace-tabs strong {
    font-size: 11px;
    line-height: 1.15;
  }

  .catalog-workspace-tabs small {
    display: none;
  }

  .catalog-family-editor__head,
  .catalog-family-card {
    padding: 14px;
  }

  .catalog-family-card__title {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-family-settings-table > label {
    grid-template-columns: 1fr;
  }

  .catalog-family-savebar,
  .product-shared-content-note {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-family-savebar .button,
  .product-shared-content-note .button {
    width: 100%;
  }

  .catalog-explorer-folder-grid,
  .catalog-explorer-toolbar,
  .catalog-explorer-bulkbar,
  .catalog-folder-settings-toolbar {
    grid-template-columns: 1fr;
  }

  .catalog-explorer-section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-explorer-new-folder {
    justify-content: center;
    width: 100%;
  }

  .catalog-explorer-create-folder {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .catalog-explorer-create-folder .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .catalog-explorer-folder-empty--action {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .catalog-explorer-folder-empty--action .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .catalog-explorer-selection {
    padding-bottom: 0;
    text-align: left;
  }

  .catalog-explorer-head__actions {
    flex-direction: column;
  }

  .catalog-folder-dashboard__head {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-folder-dashboard__head > div,
  .catalog-folder-dashboard__head .button {
    width: 100%;
  }

  .catalog-folder-metrics,
  .catalog-folder-inheritance,
  .catalog-folder-activity {
    grid-template-columns: 1fr;
  }

  .catalog-folder-metrics button,
  .catalog-folder-inheritance > div,
  .catalog-folder-metrics button:nth-child(2),
  .catalog-folder-inheritance > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #e1ded9;
  }

  .catalog-folder-metrics button:last-child,
  .catalog-folder-inheritance > div:last-child {
    border-bottom: 0;
  }

  .catalog-explorer-bulkbar > *,
  .catalog-explorer-bulkbar select,
  .catalog-explorer-bulk-price {
    width: 100%;
  }

  .catalog-product-steps button {
    min-height: 44px;
  }

  .catalog-product-steps button span {
    display: none;
  }
}

.customer-import-card {
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
}

.customer-import-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.customer-import-card > summary::-webkit-details-marker {
  display: none;
}

.customer-import-toggle::after {
  content: "Открыть";
}

.customer-import-card[open] .customer-import-toggle::after {
  content: "Скрыть";
}

.customer-import-card > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.customer-import-card > summary strong {
  color: var(--ink);
  font-size: 16px;
}

.customer-import-card > summary small {
  color: var(--muted);
  font-size: 11px;
}

.customer-import-card[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #fffaf6;
}

.customer-import-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: 18px;
  padding: 18px;
}

.customer-import-card__body h3,
.customer-import-card__body p {
  margin-top: 0;
}

.customer-import-card__body p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.customer-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-import-result {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid #cfe4d9;
  border-radius: 7px;
  background: #f2fbf6;
}

.customer-import-result > small {
  color: #547163;
}

.customer-import-result details {
  padding-top: 6px;
  border-top: 1px solid #d8ebe0;
}

.customer-import-result details summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.customer-import-result details p {
  margin: 7px 0 0;
  font-size: 10px;
}

@media (max-width: 760px) {
  .customer-import-card__body {
    grid-template-columns: 1fr;
  }

  .customer-import-card > summary .button {
    display: none;
  }
}

/* Visual page editor */
.visual-editor-is-open,
.visual-editor-is-open body {
  overflow: hidden;
}

.visual-workbench {
  --visual-accent: #f05a28;
  --visual-accent-strong: #d94717;
  --visual-ink: #1d1e1f;
  --visual-dark: #20201f;
  --visual-border: #deddd9;
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
  overflow: hidden;
  color: var(--visual-ink);
  background: #ececea;
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

.visual-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 0 18px;
  color: #fff;
  background: #222220;
  border-bottom: 1px solid #3b3a37;
  box-shadow: 0 8px 24px rgba(25, 22, 20, 0.18);
}

.visual-toolbar-start,
.visual-toolbar-center,
.visual-toolbar-end {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.visual-toolbar-start {
  flex: 1 1 auto;
}

.visual-toolbar-center {
  flex: 0 0 auto;
}

.visual-toolbar-end {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.visual-icon-button,
.visual-toolbar-button,
.visual-segmented button,
.visual-inspector-tabs button,
.visual-align-control button {
  min-height: 36px;
  border: 1px solid #4a4946;
  color: inherit;
  background: #2b2b29;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.visual-icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  padding: 0;
  border-radius: 6px;
  font-size: 20px;
}

.visual-icon-button:hover,
.visual-toolbar-button:hover {
  border-color: #6c6964;
  background: #373633;
}

.visual-icon-button:disabled,
.visual-toolbar-button:disabled {
  opacity: 0.38;
  cursor: default;
}

.visual-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-right: 14px;
  border-right: 1px solid #494844;
}

.visual-brand img {
  width: 45px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.visual-brand > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.visual-brand strong {
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.visual-brand small {
  max-width: 170px;
  overflow: hidden;
  color: #aaa9a5;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-page-select,
.visual-zoom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #aaa9a5;
  font-size: 11px;
  font-weight: 600;
}

.visual-page-select select,
.visual-zoom select {
  height: 36px;
  min-width: 126px;
  padding: 0 30px 0 10px;
  color: #fff;
  background: #2b2b29;
  border: 1px solid #4a4946;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.visual-zoom select {
  min-width: 78px;
}

.visual-segmented,
.visual-align-control {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #4a4946;
  border-radius: 6px;
}

.visual-segmented button,
.visual-align-control button {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-right: 1px solid #4a4946;
  border-radius: 0;
  color: #bdbcb8;
  font-size: 11px;
}

.visual-segmented button:last-child,
.visual-align-control button:last-child {
  border-right: 0;
}

.visual-segmented button.is-active {
  color: #fff;
  background: var(--visual-accent);
}

.visual-toolbar-button {
  padding: 0 13px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.visual-toolbar-button.is-primary {
  border-color: var(--visual-accent);
  background: var(--visual-accent);
}

.visual-toolbar-button.is-primary:hover {
  border-color: var(--visual-accent-strong);
  background: var(--visual-accent-strong);
}

.visual-history-actions {
  display: flex;
  gap: 4px;
}

.visual-save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b7cbbd;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.visual-save-state i,
.visual-frame-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5bb678;
}

.visual-save-state.is-dirty {
  color: #ffd0bf;
}

.visual-save-state.is-dirty i {
  background: var(--visual-accent);
}

.visual-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 310px;
  min-width: 0;
  min-height: 0;
}

.visual-layers-panel,
.visual-inspector-panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: #f9f9f7;
}

.visual-layers-panel {
  border-right: 1px solid var(--visual-border);
}

.visual-inspector-panel {
  border-left: 1px solid var(--visual-border);
}

.visual-panel-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-height: 66px;
  padding: 14px 14px 12px;
  background: rgba(249, 249, 247, 0.96);
  border-bottom: 1px solid var(--visual-border);
}

.visual-panel-heading > span,
.visual-group-title {
  color: #8a8882;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-panel-heading strong {
  font-size: 13px;
}

.visual-panel-heading small {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  color: #9c3c1b;
  background: #ffe6dc;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.visual-panel-heading.is-secondary {
  top: auto;
  min-height: 48px;
  margin-top: 12px;
  border-top: 1px solid var(--visual-border);
}

.visual-object-list,
.visual-layer-list,
.visual-change-list {
  padding: 8px;
}

.visual-object-tools {
  display: grid;
  gap: 7px;
  padding: 9px 8px 5px;
  background: #f9f9f7;
}

.visual-object-search input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  color: #2f2e2b;
  background: #fff;
  border: 1px solid #d8d7d2;
  border-radius: 5px;
  outline: none;
  font: 600 10px/1 Arial, sans-serif;
}

.visual-object-search input:focus {
  border-color: var(--visual-accent);
  box-shadow: 0 0 0 2px rgba(240, 90, 40, 0.12);
}

.visual-object-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #d8d7d2;
  border-radius: 5px;
  overflow: hidden;
}

.visual-object-filters button {
  min-width: 0;
  height: 28px;
  padding: 0 3px;
  color: #77746d;
  background: #fff;
  border: 0;
  border-right: 1px solid #e2e1dc;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.visual-object-filters button:last-child {
  border-right: 0;
}

.visual-object-filters button.is-active {
  color: #fff;
  background: var(--visual-accent);
}

.visual-object-list {
  max-height: min(42vh, 410px);
  overflow: auto;
}

.visual-layer-item,
.visual-object-item,
.visual-change-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  margin: 0 0 4px;
  padding: 8px;
  color: #3a3936;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.visual-layer-item:hover,
.visual-object-item:hover,
.visual-change-item:hover {
  background: #f0efeb;
}

.visual-layer-item.is-active,
.visual-object-item.is-active,
.visual-change-item.is-active {
  color: #9d3715;
  background: #fff2ed;
  border-color: #ffc3ad;
}

.visual-layer-item > i,
.visual-object-item > i {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: #898781;
  background: #ecebe7;
  border-radius: 5px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.visual-object-item > i.is-photo {
  color: #11665d;
  background: #dff4ef;
}

.visual-object-item > i.is-text {
  color: #315c91;
  background: #e4eef9;
}

.visual-object-item > i.is-action {
  color: #a7411d;
  background: #ffe7dd;
}

.visual-layer-item > span,
.visual-object-item > span,
.visual-change-item > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.visual-layer-item strong,
.visual-object-item strong,
.visual-change-item strong {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-layer-item small,
.visual-object-item small,
.visual-change-item small {
  color: #93918b;
  font-size: 9px;
  text-transform: uppercase;
}

.visual-change-item {
  justify-content: space-between;
  min-height: 44px;
}

.visual-change-item > i {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--visual-accent);
}

.visual-list-empty {
  margin: 8px;
  color: #9b9993;
  font-size: 11px;
}

.visual-panel-empty {
  display: grid;
  gap: 8px;
  padding: 12px 8px;
}

.visual-panel-empty span {
  height: 38px;
  background: #eeedea;
  border-radius: 6px;
}

.visual-canvas-shell {
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: #e5e5e2;
}

.visual-canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: #f4f3f0;
  border-bottom: 1px solid #d5d4d0;
}

.visual-frame-status,
.visual-selection-crumb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #787670;
  font-size: 10px;
  font-weight: 700;
}

.visual-selection-crumb {
  overflow: hidden;
  color: #393835;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-canvas {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 28px;
  background-color: #dededb;
}

.visual-device-wrap {
  position: relative;
  margin: 0 auto;
}

.visual-device-frame {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  transform-origin: top left;
  background: #fff;
  border: 1px solid #bdbbb5;
  border-radius: 8px;
  box-shadow: 0 20px 55px rgba(30, 28, 25, 0.2);
}

.visual-device-frame.is-mobile {
  border-radius: 18px;
}

.visual-browser-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  color: #7b7973;
  background: #f6f5f2;
  border-bottom: 1px solid #deddd9;
  font-size: 11px;
}

.visual-browser-chrome > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8d5cf;
}

.visual-browser-chrome > span:first-child {
  background: var(--visual-accent);
}

.visual-browser-chrome strong {
  margin-left: 8px;
  font-size: 11px;
}

.visual-browser-chrome small {
  margin-left: auto;
  color: #aaa8a2;
}

.visual-device-frame iframe {
  display: block;
  width: 100%;
  height: calc(100% - 42px);
  background: #fff;
  border: 0;
}

.visual-inspector-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 50px;
  background: #f9f9f7;
  border-bottom: 1px solid var(--visual-border);
}

.visual-inspector-tabs button {
  min-height: 50px;
  color: #77756f;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 11px;
}

.visual-inspector-tabs button.is-active {
  color: var(--visual-accent-strong);
  border-bottom-color: var(--visual-accent);
}

.visual-inspector-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 68px 28px;
  text-align: center;
}

.visual-inspector-empty strong {
  font-size: 15px;
}

.visual-inspector-empty p {
  margin: 0;
  color: #84827c;
  font-size: 11px;
  line-height: 1.6;
}

.visual-selection-mark {
  width: 42px;
  height: 42px;
  border: 2px solid var(--visual-accent);
  border-radius: 6px;
  box-shadow: 8px 8px 0 #ffe5db;
}

.visual-selected-head {
  display: grid;
  gap: 5px;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--visual-border);
}

.visual-selected-head > span {
  width: max-content;
  padding: 3px 6px;
  color: #9c3c1b;
  background: #ffe7de;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
}

.visual-selected-head strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-selected-head small {
  overflow: hidden;
  color: #999790;
  font-family: Consolas, monospace;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-inspector-body {
  padding: 0 16px 20px;
}

.visual-field-group {
  display: grid;
  gap: 11px;
  padding: 18px 0;
  border-bottom: 1px solid var(--visual-border);
}

.visual-field,
.visual-color-row > label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: #5f5d58;
  font-size: 10px;
  font-weight: 700;
}

.visual-field > input,
.visual-field > select,
.visual-field > textarea,
.visual-color-row > input {
  width: 100%;
  min-height: 36px;
  padding: 8px 9px;
  color: #222220;
  background: #fff;
  border: 1px solid #cfcdc7;
  border-radius: 5px;
  font: inherit;
  font-size: 11px;
}

.visual-field > textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.visual-field-note {
  margin: 18px 0 0;
  padding: 10px;
  color: #77756f;
  background: #efeee9;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.5;
}

.visual-image-editor {
  display: grid;
  gap: 12px;
  padding: 18px 0 4px;
}

.visual-image-editor__preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #222321;
  border: 1px solid #c9c7c1;
  border-radius: 6px;
}

.visual-image-editor__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.visual-image-editor__preview > span {
  color: #b7b5ae;
  font-size: 10px;
  font-weight: 700;
}

.visual-image-editor__preview > small {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 6px;
  color: #fff;
  background: rgba(24, 24, 23, .8);
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
}

.visual-image-editor__current {
  min-width: 0;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid var(--visual-border);
  border-radius: 5px;
}

.visual-image-editor__current > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.visual-image-editor__current strong,
.visual-image-editor__current small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-image-editor__current strong {
  color: #2d2e2b;
  font-size: 10px;
}

.visual-image-editor__current small {
  color: #88857e;
  font-size: 8px;
}

.visual-image-editor__library {
  margin: 0;
}

.visual-image-editor__upload {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.visual-image-editor__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.visual-image-editor__upload input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.visual-image-editor__upload button {
  min-height: 38px;
  color: #fff;
  background: var(--visual-accent);
  border: 1px solid var(--visual-accent-strong);
  border-radius: 5px;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.visual-image-editor__upload button:hover {
  background: var(--visual-accent-strong);
}

.visual-image-editor__upload button.is-library {
  color: #983b1b;
  background: #fff;
  border-color: #e4ad98;
}

.visual-image-editor__upload button.is-library:hover {
  background: #fff0e9;
}

.visual-image-editor__upload button:disabled {
  opacity: .55;
  cursor: wait;
}

.visual-image-editor__upload small {
  color: #8c8983;
  font-size: 8px;
  text-align: center;
}

.visual-image-editor__details {
  padding-top: 2px;
  border-top: 1px solid var(--visual-border);
}

.visual-image-editor__details summary {
  padding: 10px 0;
  color: #77746e;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.visual-image-editor__details[open] {
  display: grid;
  gap: 10px;
}

.visual-image-library[hidden] {
  display: none;
}

.visual-image-library {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 28px;
}

.visual-image-library__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(21, 22, 20, .72);
  border: 0;
  border-radius: 0;
  cursor: default;
}

.visual-image-library__dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(1040px, calc(100vw - 56px));
  height: min(760px, calc(100vh - 56px));
  overflow: hidden;
  background: #f6f6f3;
  border: 1px solid #5f605c;
  border-radius: 7px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.visual-image-library__dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid #deded9;
}

.visual-image-library__dialog > header > span {
  display: grid;
  gap: 3px;
}

.visual-image-library__dialog > header strong {
  color: #252624;
  font-size: 15px;
}

.visual-image-library__dialog > header small {
  color: #85837d;
  font-size: 9px;
}

.visual-image-library__dialog > header button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #555650;
  background: #f3f3ef;
  border: 1px solid #d8d8d2;
  border-radius: 5px;
  font-size: 22px;
  cursor: pointer;
}

.visual-image-library__search {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 18px 8px;
  color: #555650;
  font-size: 10px;
  font-weight: 800;
}

.visual-image-library__search input {
  min-height: 40px;
  padding: 9px 11px;
  background: #fff;
  border: 1px solid #c9c9c3;
  border-radius: 5px;
  font: inherit;
  font-size: 11px;
}

.visual-image-library__meta {
  min-height: 28px;
  padding: 4px 18px 8px;
  color: #777872;
  font-size: 9px;
}

.visual-image-library__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 9px;
  align-content: start;
  min-height: 0;
  padding: 0 18px 18px;
  overflow-y: auto;
}

.visual-image-library__grid > button {
  display: grid;
  grid-template-rows: 104px auto;
  gap: 7px;
  min-width: 0;
  padding: 7px;
  color: #353632;
  text-align: left;
  background: #fff;
  border: 1px solid #d7d7d1;
  border-radius: 6px;
  cursor: pointer;
}

.visual-image-library__grid > button:hover {
  color: #963717;
  border-color: #f07144;
  box-shadow: 0 5px 14px rgba(73, 47, 37, .1);
}

.visual-image-library__grid > button > span {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eeeef0;
  border-radius: 4px;
}

.visual-image-library__grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.visual-image-library__grid strong {
  overflow: hidden;
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-image-library__empty {
  display: grid;
  grid-column: 1 / -1;
  justify-items: center;
  gap: 5px;
  padding: 70px 20px;
  color: #7b7c76;
}

.visual-image-library__empty strong {
  color: #363733;
  font-size: 14px;
}

.visual-image-library__empty span {
  font-size: 10px;
}

.visual-compact-grid {
  display: grid;
  gap: 8px;
}

.visual-compact-grid.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.visual-align-control {
  width: 100%;
  border-color: #cfcdc7;
}

.visual-align-control button {
  flex: 1;
  color: #6f6d67;
  background: #fff;
  border-right-color: #cfcdc7;
}

.visual-align-control button.is-active {
  color: #9c3c1b;
  background: #ffe9e0;
}

.visual-color-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  align-items: end;
}

.visual-color-row label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 6px 7px;
  background: #fff;
  border: 1px solid #cfcdc7;
  border-radius: 5px;
}

.visual-color-row input[type='color'] {
  width: 22px;
  height: 22px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.visual-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 0;
  padding: 12px 0;
  border-top: 1px solid var(--visual-border);
  border-bottom: 1px solid var(--visual-border);
}

.visual-toggle-row > span {
  display: grid;
  gap: 3px;
}

.visual-toggle-row strong {
  font-size: 11px;
}

.visual-toggle-row small {
  color: #8c8983;
  font-size: 9px;
}

.visual-toggle-row input {
  width: 36px;
  height: 20px;
  accent-color: var(--visual-accent);
}

.visual-inspector-footer {
  position: sticky;
  bottom: 0;
  padding: 12px 16px;
  background: rgba(249, 249, 247, 0.96);
  border-top: 1px solid var(--visual-border);
}

.visual-inspector-footer button {
  width: 100%;
  min-height: 36px;
  color: #a13b1a;
  background: #fff;
  border: 1px solid #e3b4a4;
  border-radius: 5px;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.visual-inspector-footer button:disabled {
  color: #aaa8a2;
  border-color: #dad8d2;
  cursor: default;
}

.visual-workbench.is-focus-mode .visual-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.visual-workbench.is-focus-mode .visual-layers-panel,
.visual-workbench.is-focus-mode .visual-inspector-panel {
  display: none;
}

.visual-editor-launch {
  color: #9f3b1a;
  background: #fff1eb;
  border-color: #ffc2ac;
}

.visual-editor-launch:hover {
  color: #fff;
  background: #e95422;
  border-color: #e95422;
}

@media (max-width: 1480px) {
  .visual-toolbar {
    gap: 10px;
  }

  .visual-brand small,
  .visual-save-state,
  .visual-zoom > span {
    display: none;
  }

  .visual-brand > span,
  .visual-page-select > span {
    display: none;
  }

  .visual-workspace {
    grid-template-columns: 205px minmax(0, 1fr) 294px;
  }
}

@media (max-width: 1180px) {
  .visual-brand > span,
  .visual-page-select > span,
  .visual-zoom,
  .visual-toolbar-center .visual-toolbar-button {
    display: none;
  }

  .visual-toolbar-start {
    flex: 0 1 auto;
  }

  .visual-toolbar-center {
    margin-right: auto;
  }

  .visual-workspace {
    grid-template-columns: 188px minmax(0, 1fr) 280px;
  }
}

@media (max-width: 900px) {
  .visual-toolbar {
    padding: 0 10px;
  }

  .visual-brand,
  .visual-layers-panel,
  .visual-history-actions,
  .visual-toolbar-center .visual-toolbar-button {
    display: none;
  }

  .visual-workspace {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .visual-canvas {
    padding: 18px;
  }
}

@media (max-width: 680px) {
  .visual-workbench {
    grid-template-rows: 58px minmax(0, 1fr);
  }

  .visual-toolbar-center,
  .visual-page-select {
    display: none;
  }

  .visual-toolbar-end {
    margin-left: auto;
  }

  .visual-workspace {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(330px, 54vh) minmax(0, 1fr);
    overflow: auto;
  }

  .visual-canvas-shell {
    min-height: 330px;
  }

  .visual-inspector-panel {
    min-height: 420px;
    border-top: 1px solid var(--visual-border);
    border-left: 0;
  }
}

/* Store analytics for managers. */
.analytics-loading {
  min-height: 420px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.analytics-loading strong {
  font-size: 25px;
}

.analytics-shell {
  display: grid;
  gap: 18px;
  padding-top: 22px;
}

.analytics-head {
  align-items: end;
}

.analytics-period {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.analytics-period select {
  min-width: 125px;
  min-height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.analytics-kpis article {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid #f06b3f;
}

.analytics-kpis span,
.analytics-kpis small {
  color: var(--muted);
  font-size: 11px;
}

.analytics-kpis strong {
  margin-block: 6px;
  color: #242626;
  font-size: 27px;
  line-height: 1;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.7fr);
  gap: 18px;
}

.analytics-chart-card,
.analytics-funnel-card,
.analytics-products-card {
  padding: 22px;
}

.analytics-card-head {
  min-height: 46px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.analytics-card-head span,
.analytics-card-head h3 {
  display: block;
  margin: 0;
}

.analytics-card-head span {
  color: #ef6538;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.analytics-card-head h3 {
  margin-top: 4px;
  font-size: 18px;
}

.analytics-card-head > small {
  color: var(--muted);
  font-size: 10px;
}

.analytics-legend {
  display: flex;
  gap: 12px;
}

.analytics-legend span {
  position: relative;
  padding-left: 12px;
  color: var(--muted);
  font-size: 9px;
  text-transform: none;
}

.analytics-legend span::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 7px;
  height: 7px;
  background: #4f5557;
  content: "";
}

.analytics-legend .is-cart::before { background: #f06b3f; }
.analytics-legend .is-order::before { background: #1a8c73; }

.analytics-chart {
  height: 235px;
  display: grid;
  grid-template-columns: repeat(14, minmax(18px, 1fr));
  align-items: end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #eceeed;
}

.analytics-chart > div {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 18px;
  align-items: end;
  gap: 6px;
}

.analytics-chart > div > span {
  min-height: 3px;
  display: flex;
  align-self: end;
  background: #4f5557;
  overflow: hidden;
}

.analytics-chart i {
  display: block;
  min-width: 2px;
  background: #4f5557;
}

.analytics-chart i.is-cart { background: #f06b3f; }
.analytics-chart i.is-order { background: #1a8c73; }

.analytics-chart small {
  color: #8b9193;
  font-size: 8px;
  text-align: center;
}

.analytics-funnel-card {
  display: grid;
  align-content: start;
  gap: 22px;
}

.analytics-funnel-row {
  display: grid;
  gap: 8px;
}

.analytics-funnel-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.analytics-funnel-row > div span {
  color: #5c6264;
  font-size: 11px;
}

.analytics-funnel-row > span {
  height: 8px;
  display: block;
  background: #eceeed;
}

.analytics-funnel-row > span i {
  height: 100%;
  display: block;
  background: #f06b3f;
}

.analytics-product-table {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.analytics-product-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(4, 100px);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.analytics-product-row.is-head {
  min-height: 40px;
  color: var(--muted);
  background: #f6f6f5;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.analytics-product-row strong,
.analytics-product-row small {
  display: block;
}

.analytics-product-row strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-product-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.analytics-product-row b {
  font-size: 12px;
}

@media (max-width: 1180px) {
  .analytics-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .analytics-product-table {
    overflow-x: auto;
  }

  .analytics-product-row {
    min-width: 800px;
  }
}

@media (max-width: 720px) {
  .analytics-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-chart {
    gap: 4px;
  }

  .analytics-legend {
    display: none;
  }
}

* {
  box-sizing: border-box;
}

body {
  min-width: 1024px;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.08) 0%, transparent 24%),
    radial-gradient(circle at 88% 0%, rgba(255, 122, 26, 0.18), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--text);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 122, 26, 0.14), transparent 22%),
    linear-gradient(180deg, #1b1b1b 0%, #24201d 54%, #151311 100%);
  padding: 24px;
  color: #fff;
}

.sidebar::before {
  position: absolute;
  inset: auto -90px 8% auto;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 50%;
  content: "";
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 74px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 122, 26, 0.34);
  border-radius: 15px;
  background: #222;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.brand strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.05;
}

.brand span span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.nav-block {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.nav-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 0 14px;
  font-weight: 900;
  text-align: left;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-button:hover,
.nav-button.is-active {
  border-color: rgba(255, 122, 26, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateX(3px);
}

.nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(255, 122, 26, 0.15);
}

.sidebar-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  border: 1px solid rgba(255, 122, 26, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.main {
  padding: 28px 32px 48px;
}

.topbar,
.panel,
.card,
.editor-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-radius: 24px;
  padding: 24px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 240, 0.94)),
    var(--surface);
}

.kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #b84c04;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.02;
}

h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 18px;
}

.muted {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 0 16px;
  font-weight: 950;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 26, 0.44);
  box-shadow: 0 14px 32px rgba(255, 122, 26, 0.18);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(180deg, #ff9238, #f06412);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 122, 26, 0.22);
}

.button.danger {
  border-color: rgba(199, 68, 50, 0.26);
  color: var(--red);
}

.button.compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

select {
  min-height: 44px;
}

.grid {
  display: grid;
  gap: 16px;
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 18px;
}

.card {
  position: relative;
  min-height: 204px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 26, 0.28);
  box-shadow: var(--shadow-strong);
}

.card::after {
  position: absolute;
  right: -48px;
  bottom: -58px;
  width: 154px;
  height: 154px;
  border: 1px solid rgba(255, 122, 26, 0.28);
  border-radius: 50%;
  content: "";
}

.status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 950;
}

.status.ready {
  background: rgba(22, 138, 91, 0.12);
  color: var(--green);
}

.status.needs_config {
  background: rgba(199, 68, 50, 0.11);
  color: var(--red);
}

.card-title {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.card-meta {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.panel {
  margin-top: 18px;
  border-radius: 24px;
  padding: 20px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  padding: 0 14px;
  font-weight: 950;
}

.tab:hover {
  border-color: rgba(255, 122, 26, 0.35);
  color: var(--ink);
}

.tab.is-active {
  border-color: transparent;
  background: #1f1d1a;
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--orange);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
}

.list {
  display: grid;
  max-height: 650px;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.list-button {
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(250, 246, 241, 0.86);
  padding: 12px;
  color: var(--text);
  text-align: left;
}

.list-button:hover,
.list-button.is-active {
  border-color: rgba(255, 122, 26, 0.28);
  background: #fff;
}

.list-button strong {
  display: block;
  font-size: 14px;
}

.list-button span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.button.wide {
  width: 100%;
  justify-content: center;
}

.knowledge-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
}

.knowledge-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
}

.knowledge-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.09), transparent),
    rgba(255, 255, 255, 0.76);
  padding: 13px;
}

.knowledge-toolbar strong,
.knowledge-toolbar span {
  display: block;
}

.knowledge-toolbar strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.knowledge-toolbar span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.knowledge-list {
  display: grid;
  max-height: 690px;
  overflow: auto;
  padding-right: 4px;
}

.knowledge-list-button span {
  line-height: 1.35;
}

.knowledge-editor-card {
  background:
    linear-gradient(135deg, rgba(255, 248, 242, 0.78), rgba(255, 255, 255, 0.9)),
    #fff;
}

.knowledge-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 122, 26, 0.14);
  padding-bottom: 12px;
}

.knowledge-editor-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.knowledge-answer-textarea {
  min-height: 260px;
  line-height: 1.55;
}

.knowledge-preview {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 122, 26, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.knowledge-preview > strong {
  color: var(--ink);
  font-size: 14px;
}

.knowledge-preview > div {
  min-height: 96px;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 13px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.menu-editor-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 122, 26, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.08), rgba(255, 255, 255, 0.75)),
    #fff;
  padding: 13px 15px;
}

.menu-editor-note strong {
  color: var(--ink);
  font-size: 14px;
}

.menu-editor-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.4;
}

.bot-menu-groups {
  display: grid;
  gap: 18px;
}

.bot-menu-group {
  display: grid;
  gap: 12px;
}

.bot-menu-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.bot-menu-group-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.bot-menu-group-head span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 850;
}

.bot-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.bot-menu-button {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 122, 26, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  padding: 13px;
}

.bot-menu-button > span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.bot-simple-texts-card {
  background:
    linear-gradient(135deg, rgba(255, 248, 242, 0.84), rgba(255, 255, 255, 0.92)),
    #fff;
}

.bot-texts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 14px;
}

.bot-text-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 122, 26, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.07), rgba(255, 255, 255, 0.82)),
    #fff;
  padding: 15px;
  box-shadow: 0 18px 42px rgba(146, 71, 13, 0.07);
}

.bot-text-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 122, 26, 0.12);
  padding-bottom: 10px;
}

.bot-text-card-head strong,
.bot-text-card-head span {
  display: block;
}

.bot-text-card-head strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.bot-text-card-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.4;
}

.bot-text-card-head small {
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 5px 9px;
  color: #9b4106;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.bot-text-card textarea {
  min-height: 150px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.bot-text-preview {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 122, 26, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
}

.bot-text-preview strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.bot-text-preview > div {
  min-height: 58px;
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  padding: 12px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.bot-texts-empty {
  display: grid;
  gap: 10px;
  max-width: 620px;
  border: 1px dashed rgba(255, 122, 26, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  padding: 18px;
}

.bot-texts-empty strong {
  color: var(--ink);
  font-size: 17px;
}

.bot-texts-empty span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.45;
}

.bot-plastics-shell .builder-list {
  align-self: start;
}

.bot-plastic-form {
  margin-top: 16px;
}

.plastic-preview {
  border-color: rgba(255, 122, 26, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.08), rgba(255, 255, 255, 0.9)),
    #fff;
}

.editor-card {
  border-radius: 18px;
  padding: 18px;
}

.section-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  padding: 12px 13px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 122, 26, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.1);
}

textarea {
  min-height: 220px;
  resize: vertical;
  font-family: "JetBrains Mono", Consolas, monospace;
  line-height: 1.5;
}

.code-area {
  min-height: 560px;
}

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.file-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.file-help-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  margin: 16px 0;
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.1), transparent 54%),
    rgba(255, 255, 255, 0.74);
  padding: 14px;
}

.file-help-card strong,
.file-help-card span {
  display: block;
}

.file-help-card strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.file-help-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.file-config-section {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.file-config-section > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.file-config-section h3 {
  margin-bottom: 0;
}

.file-config-section > div:first-child span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 850;
}

.file-input-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.file-input-card strong {
  font-size: 13px;
}

.file-input-card small {
  color: var(--subtle);
  font-weight: 700;
}

.document-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.document-summary-grid > div {
  border: 1px solid rgba(255, 122, 26, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 13px;
}

.document-summary-grid strong,
.document-summary-grid span {
  display: block;
}

.document-summary-grid strong {
  color: #d85b0c;
  font-size: 24px;
  font-weight: 950;
}

.document-summary-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.document-summary-grid .is-warn {
  border-color: rgba(214, 71, 34, 0.24);
  background: rgba(255, 242, 237, 0.84);
}

.document-matrix-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 4px;
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.09), rgba(255, 255, 255, 0.72)),
    #fff;
  padding: 13px 15px;
}

.document-matrix-note strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.document-matrix-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.4;
}

.document-matrix-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.document-matrix-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.document-matrix-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.document-matrix-head span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 850;
}

.document-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.document-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 122, 26, 0.15);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 248, 242, 0.92), rgba(255, 255, 255, 0.78)),
    #fff;
  padding: 13px;
}

.document-card.is-missing {
  border-color: rgba(214, 71, 34, 0.28);
  background: rgba(255, 246, 242, 0.86);
}

.document-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.document-card-top strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.document-card-top em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(27, 154, 101, 0.12);
  color: #168a5b;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.document-card.is-missing .document-card-top em {
  background: rgba(214, 71, 34, 0.12);
  color: #b94b27;
}

.document-file-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.document-id-field {
  display: grid;
  gap: 6px;
}

.document-id-field span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 900;
}

.asset-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.asset-grid > .editor-card {
  position: sticky;
  top: 12px;
}

.asset-list {
  display: grid;
  gap: 12px;
}

.asset-library-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.asset-library-head > * {
  min-width: 0;
}

.asset-library-head h2,
.asset-library-head p {
  margin: 3px 0 0;
}

.asset-library-head p {
  color: var(--muted);
  font-size: 11px;
}

.asset-library-head label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.asset-library-filters {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr);
  gap: 8px;
  width: min(500px, 52%);
}

.asset-library-filters select,
.asset-library-filters input {
  min-width: 0;
  min-height: 38px;
  background: #fff;
}

.asset-safety-note,
.asset-duplicate-alert {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.45;
}

.asset-safety-note {
  color: #226b51;
  background: #edf8f3;
  border: 1px solid #c8e4d8;
}

.asset-duplicate-alert {
  color: #8b4c1c;
  background: #fff7ec;
  border: 1px solid #edcfaa;
}

.asset-safety-note span,
.asset-duplicate-alert span {
  color: inherit;
  opacity: 0.78;
}

.storage-status-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: 14px 0;
  border: 1px solid rgba(41, 35, 29, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.storage-status-card.is-ready {
  border-color: rgba(36, 161, 105, 0.22);
  background: rgba(237, 250, 243, 0.78);
}

.storage-status-icon {
  display: block;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(36, 161, 105, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 34%, #24a169 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(36, 161, 105, 0.18), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 -8px 0 rgba(36, 161, 105, 0.08);
}

.storage-status-card strong,
.storage-status-card small {
  display: block;
}

.storage-status-card strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.storage-status-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.4;
}

.asset-group {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
}

.asset-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 12px;
}

.asset-group-head h3 {
  margin: 0;
}

.asset-group-head span {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  color: #8a3a19;
  background: #fff0e8;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.asset-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 108px 122px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.asset-row.is-used {
  background: linear-gradient(90deg, rgba(235, 248, 241, 0.72), transparent 45%);
}

.asset-row:first-of-type {
  border-top: 0;
}

.asset-name {
  display: grid;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.asset-name > strong,
.asset-name > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-name > strong {
  color: var(--ink);
  font-size: 12px;
}

.asset-name > small {
  color: var(--subtle);
  font-size: 9px;
}

.asset-name > span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.asset-preview {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  color: #a3421d;
  background: #f2f2ef;
  border: 1px solid #e0ddd8;
  border-radius: 5px;
}

.asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asset-preview.is-document {
  background: #fff4ee;
  font-size: 10px;
}

.asset-meta {
  display: grid;
  gap: 3px;
}

.asset-meta b {
  color: var(--ink);
  font-size: 10px;
}

.asset-meta small,
.asset-meta code {
  color: var(--subtle);
  font-size: 8px;
}

.asset-meta code {
  padding: 0;
  background: transparent;
}

.asset-actions {
  display: flex;
  justify-content: flex-end;
}

.asset-origin {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  margin-left: 5px;
  border-radius: 999px;
  background: rgba(41, 35, 29, 0.07);
  padding: 0 7px;
  color: var(--subtle);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.asset-origin.is-managed {
  background: rgba(36, 161, 105, 0.12);
  color: #176e48;
}

.asset-origin.is-used {
  color: #176e48;
  background: rgba(36, 161, 105, 0.12);
}

.asset-origin.is-duplicate {
  color: #9d4c1d;
  background: #fff0df;
}

.asset-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  color: var(--muted);
  background: #f7f6f3;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .asset-grid > .editor-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 720px) {
  .asset-library-head {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-library-head label {
    width: 100%;
  }

  .asset-library-filters {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .asset-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .asset-preview {
    width: 50px;
    height: 50px;
  }

  .asset-meta,
  .asset-actions {
    grid-column: 2;
  }

  .asset-actions {
    justify-content: flex-start;
  }
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.check-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.check-card {
  display: grid;
  gap: 5px;
  min-height: 102px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 13px;
}

.check-card strong {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 950;
}

.check-card.ok strong {
  background: rgba(22, 138, 91, 0.12);
  color: var(--green);
}

.check-card.bad strong {
  background: rgba(199, 68, 50, 0.12);
  color: var(--red);
}

.check-card span {
  font-weight: 900;
}

.check-card small {
  color: var(--muted);
  font-weight: 700;
}

.backup-list {
  display: grid;
  gap: 10px;
}

.backup-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 14px;
}

.backup-summary-strip > div {
  display: grid;
  gap: 3px;
  min-height: 76px;
  align-content: center;
  border: 1px solid rgba(255, 122, 26, 0.16);
  border-radius: 12px;
  background: #fffaf6;
  padding: 12px 14px;
}

.backup-summary-strip strong {
  color: var(--ink);
  font-size: 16px;
}

.backup-summary-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.backup-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.backup-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 13px 14px;
}

.backup-card.is-latest {
  border-color: rgba(26, 142, 91, 0.3);
  background: #fbfffd;
}

.backup-card-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.backup-version-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff2e9;
  color: var(--orange-strong);
  font-size: 16px;
  font-weight: 950;
}

.backup-card.is-latest .backup-version-icon {
  background: rgba(26, 142, 91, 0.11);
  color: var(--green);
}

.backup-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.backup-card-title em {
  border-radius: 999px;
  background: rgba(26, 142, 91, 0.1);
  color: var(--green);
  padding: 3px 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.backup-card strong {
  color: var(--ink);
}

.backup-card span,
.backup-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.backup-technical {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.backup-technical summary {
  width: max-content;
  cursor: pointer;
  font-weight: 800;
}

.backup-technical small {
  display: block;
  margin-top: 8px;
  border-left: 2px solid var(--line);
  padding-left: 10px;
  line-height: 1.7;
}

.backup-show-more {
  display: block;
  margin: 12px auto 0;
}

@media (max-width: 720px) {
  .backup-summary-strip {
    grid-template-columns: 1fr;
  }

  .backup-summary-strip > div {
    min-height: 0;
  }

  .backup-card {
    grid-template-columns: 1fr;
  }

  .backup-card .button {
    width: 100%;
  }
}

.ops-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-wide {
  grid-column: 1 / -1;
}

.log-details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.log-details + .log-details {
  margin-top: 10px;
}

.log-details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 950;
}

.log {
  max-height: 300px;
  overflow: auto;
  border: 1px solid rgba(255, 122, 26, 0.16);
  border-radius: 14px;
  background: #171717;
  color: #fff3e8;
  padding: 14px;
  white-space: pre-wrap;
}

.bot-overview {
  display: grid;
  gap: 16px;
}

.bot-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.bot-map-card {
  display: grid;
  min-height: 150px;
  align-content: space-between;
  gap: 12px;
  border: 1px solid rgba(41, 35, 29, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 238, 0.84)),
    #fff;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(31, 24, 17, 0.08);
}

.bot-map-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.bot-map-card strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.05;
}

.bot-map-card small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.4;
}

.bot-map-card.is-ok {
  border-color: rgba(22, 138, 91, 0.2);
}

.bot-map-card.is-warn {
  border-color: rgba(255, 122, 26, 0.24);
}

.bot-map-card.is-bad {
  border-color: rgba(199, 68, 50, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 239, 235, 0.88)),
    #fff;
}

.bot-readiness-card {
  display: grid;
  gap: 14px;
}

.bot-readiness-list {
  display: grid;
  gap: 10px;
}

.bot-readiness-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.bot-readiness-item > span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f7a33b;
  box-shadow: 0 0 0 5px rgba(247, 163, 59, 0.12);
}

.bot-readiness-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.bot-readiness-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.bot-readiness-item.is-ok {
  border-color: rgba(22, 138, 91, 0.22);
}

.bot-readiness-item.is-ok > span {
  background: #168a5b;
  box-shadow: 0 0 0 5px rgba(22, 138, 91, 0.12);
}

.bot-readiness-item.is-bad {
  border-color: rgba(199, 68, 50, 0.26);
  background:
    linear-gradient(135deg, rgba(199, 68, 50, 0.07), rgba(255, 255, 255, 0.76)),
    #fff;
}

.bot-readiness-item.is-bad > span {
  background: #c74432;
  box-shadow: 0 0 0 5px rgba(199, 68, 50, 0.12);
}

.notice-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 122, 26, 0.24);
  border-radius: 18px;
  background: rgba(255, 122, 26, 0.08);
  padding: 15px 16px;
}

.notice-card strong {
  color: var(--ink);
  font-size: 16px;
}

.notice-card span {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.notice-card.is-bad {
  border-color: rgba(199, 68, 50, 0.28);
  background: rgba(199, 68, 50, 0.08);
}

.bot-preview-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
}

.bot-preview-intro {
  margin-bottom: 16px;
}

.bot-preview-list,
.bot-phone-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 122, 26, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 248, 241, 0.92), rgba(255, 255, 255, 0.8)),
    #fff;
  padding: 16px;
  box-shadow: 0 18px 42px rgba(146, 71, 13, 0.07);
}

.bot-phone {
  display: grid;
  gap: 14px;
  max-width: 520px;
  min-height: 620px;
  border: 1px solid rgba(41, 35, 29, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 122, 26, 0.14), transparent 34%),
    linear-gradient(145deg, #fff7ef, #f8fbff 52%, #fff);
  padding: 18px;
}

.bot-phone-top {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid rgba(41, 35, 29, 0.1);
  padding-bottom: 13px;
}

.bot-phone-top span {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.bot-phone-top strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
}

.bot-message {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(255, 122, 26, 0.16);
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 15px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.55;
  white-space: normal;
}

.bot-inline-buttons {
  display: grid;
  gap: 8px;
}

.bot-inline-buttons button {
  min-height: 42px;
  border: 1px solid rgba(255, 122, 26, 0.22);
  border-radius: 12px;
  background: #fff;
  color: var(--orange-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: default;
}

.bot-preview-documents {
  display: grid;
  gap: 10px;
}

.bot-preview-documents article {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(41, 35, 29, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 11px;
}

.bot-preview-documents strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.bot-preview-documents span,
.bot-preview-documents small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.bot-audit-intro {
  margin-bottom: 16px;
}

.bot-audit-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.bot-audit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.bot-audit-check {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(41, 35, 29, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 240, 0.82)),
    #fff;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(31, 24, 17, 0.07);
}

.bot-audit-check.is-bad {
  border-color: rgba(199, 68, 50, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 239, 235, 0.88)),
    #fff;
}

.bot-audit-check.is-warn {
  border-color: rgba(255, 122, 26, 0.26);
}

.bot-audit-check-head {
  display: grid;
  gap: 5px;
}

.bot-audit-check-head span {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.bot-audit-check.is-bad .bot-audit-check-head span {
  color: #b5382b;
}

.bot-audit-check-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.bot-audit-check-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.45;
}

.bot-audit-items,
.bot-audit-table {
  display: grid;
  gap: 9px;
}

.bot-audit-item,
.bot-audit-row {
  border: 1px solid rgba(41, 35, 29, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  padding: 11px;
}

.bot-audit-item {
  display: grid;
  gap: 4px;
}

.bot-audit-item.is-bad,
.bot-audit-row.is-bad {
  border-color: rgba(199, 68, 50, 0.24);
  background: rgba(255, 242, 238, 0.82);
}

.bot-audit-item.is-warn,
.bot-audit-row.is-warn {
  border-color: rgba(255, 122, 26, 0.24);
  background: rgba(255, 248, 241, 0.86);
}

.bot-audit-item strong,
.bot-audit-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.bot-audit-item span,
.bot-audit-row span,
.bot-audit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.bot-audit-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(120px, 0.45fr) minmax(240px, 1fr);
  gap: 12px;
  align-items: start;
}

.bot-audit-row code {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 6px 10px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 950;
  white-space: normal;
  word-break: break-word;
}

.bot-audit-problems {
  display: grid;
  gap: 14px;
}

.bot-connection-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(360px, 0.62fr);
  align-items: center;
  gap: 16px;
}

.bot-runtime-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(320px, 0.56fr);
  align-items: center;
  gap: 16px;
}

.bot-runtime-card .field-note,
.bot-runtime-card .runtime-log,
.bot-runtime-card .runtime-log-details,
.bot-runtime-card .runtime-issue {
  grid-column: 1 / -1;
}

.bot-launch-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.launch-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.bot-connection-card.simple,
.bot-runtime-card {
  min-width: 0;
}

.bot-connection-card.simple {
  grid-template-columns: minmax(0, 1fr) auto;
}

.launch-side .bot-runtime-card {
  grid-template-columns: 1fr;
}

.bot-connection-card.simple .connection-result,
.bot-connection-card.simple .connection-pill {
  grid-column: 1 / -1;
}

.proxy-editor-card {
  align-content: start;
}

.proxy-count {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 122, 26, 0.2);
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.1);
  padding: 0 12px;
  color: #9b4106;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.proxy-textarea {
  min-height: 300px;
  resize: vertical;
}

.proxy-preview {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  padding: 13px;
}

.proxy-preview strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.proxy-preview span,
.proxy-preview small,
.simple-steps span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.proxy-preview span {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.simple-steps {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.runtime-log {
  max-height: 220px;
}

.runtime-log-details {
  border: 1px dashed rgba(41, 35, 29, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  padding: 11px 13px;
}

.runtime-log-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.runtime-log-details .runtime-log {
  margin-top: 10px;
}

.runtime-issue {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 122, 26, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.08), rgba(255, 255, 255, 0.72)),
    #fff;
  padding: 14px;
}

.runtime-issue strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.runtime-issue span,
.runtime-issue li {
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.45;
}

.runtime-issue ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.runtime-issue.is-ok {
  border-color: rgba(22, 138, 91, 0.24);
  background:
    linear-gradient(135deg, rgba(22, 138, 91, 0.08), rgba(255, 255, 255, 0.78)),
    #fff;
}

.runtime-issue.is-bad {
  border-color: rgba(199, 68, 50, 0.26);
  background:
    linear-gradient(135deg, rgba(199, 68, 50, 0.08), rgba(255, 255, 255, 0.78)),
    #fff;
}

.connection-pill,
.connection-result {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 122, 26, 0.24);
  border-radius: 16px;
  background: rgba(255, 122, 26, 0.08);
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 850;
}

.connection-result strong {
  color: var(--ink);
}

.connection-result span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.connection-result.is-ok {
  border-color: rgba(22, 138, 91, 0.24);
  background: rgba(22, 138, 91, 0.08);
}

.connection-result.is-bad {
  border-color: rgba(199, 68, 50, 0.28);
  background: rgba(199, 68, 50, 0.08);
}

.bot-admin-grid {
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
}

.operator-list,
.conversation-list {
  display: grid;
  gap: 10px;
}

.operator-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.42fr) 135px;
  gap: 12px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.operator-row.is-disabled {
  opacity: 0.68;
}

.operator-row-main {
  display: grid;
  gap: 8px;
}

.operator-row-main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
}

.operator-role-chip {
  width: fit-content;
  border: 1px solid rgba(255, 122, 26, 0.22);
  border-radius: 999px;
  background: rgba(255, 248, 241, 0.94);
  padding: 5px 10px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.operator-role-chip.is-engineer {
  border-color: rgba(41, 35, 29, 0.12);
  background: rgba(246, 247, 249, 0.94);
  color: var(--ink);
}

.builder-check.compact {
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
}

.conversation-row {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 13px;
}

.conversation-row strong {
  color: var(--ink);
}

.conversation-row span,
.conversation-row small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.conversation-admin-shell {
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(460px, 1.12fr);
  gap: 16px;
  align-items: start;
}

.conversation-sidebar,
.conversation-detail-card {
  min-height: 520px;
}

.conversation-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.conversation-stats span {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 122, 26, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 12px;
  font-size: 12px;
  font-weight: 850;
}

.conversation-stats strong {
  color: var(--orange);
  font-size: 24px;
  line-height: 1;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 5px;
}

.segmented button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.segmented button.is-active {
  background: linear-gradient(135deg, #ff7a1a, #ff9a3d);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 122, 26, 0.22);
}

.conversation-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.conversation-admin-item {
  display: grid;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  padding: 13px;
  text-align: left;
  transition: 0.2s ease;
}

.conversation-admin-item:hover,
.conversation-admin-item.is-active {
  border-color: rgba(255, 122, 26, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(48, 39, 31, 0.08);
}

.conversation-admin-item span {
  display: grid;
  gap: 4px;
}

.conversation-admin-item strong {
  color: var(--ink);
}

.conversation-admin-item em,
.conversation-admin-item small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.conversation-detail {
  display: grid;
  gap: 16px;
}

.conversation-message {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.conversation-message.is-client {
  border-color: rgba(20, 145, 230, 0.18);
  background: linear-gradient(135deg, rgba(237, 248, 255, 0.88), rgba(255, 255, 255, 0.96));
}

.conversation-message.is-operator {
  border-color: rgba(255, 122, 26, 0.22);
  background: linear-gradient(135deg, rgba(255, 245, 236, 0.88), rgba(255, 255, 255, 0.96));
}

.conversation-message strong {
  color: var(--ink);
}

.conversation-message span,
.conversation-message small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.5;
}

.conversation-timeline {
  display: grid;
  gap: 10px;
}

.conversation-timeline h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.site-request-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-request-item-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.request-type-chip,
.request-status {
  width: fit-content;
  border: 1px solid rgba(41, 35, 29, 0.12);
  border-radius: 999px;
  background: #f5f6f7;
  color: var(--ink);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 950;
  font-style: normal;
}

.request-type-chip.is-order {
  border-color: rgba(255, 122, 26, 0.25);
  background: rgba(255, 122, 26, 0.1);
  color: var(--orange-dark);
}

.request-type-chip.is-cooperation {
  border-color: rgba(20, 145, 230, 0.2);
  background: rgba(20, 145, 230, 0.08);
  color: #176fa6;
}

.request-status.is-new {
  border-color: rgba(255, 122, 26, 0.28);
  background: rgba(255, 122, 26, 0.1);
  color: var(--orange-dark);
}

.request-status.is-processing {
  border-color: rgba(20, 145, 230, 0.24);
  background: rgba(20, 145, 230, 0.08);
  color: #176fa6;
}

.request-status.is-done {
  border-color: rgba(22, 138, 91, 0.24);
  background: rgba(22, 138, 91, 0.08);
  color: var(--green);
}

.request-status.is-cancelled {
  border-color: rgba(199, 68, 50, 0.24);
  background: rgba(199, 68, 50, 0.08);
  color: var(--red);
}

.site-request-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.site-request-contact-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  padding: 13px;
}

.site-request-contact-grid article > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.site-request-contact-grid strong,
.site-request-contact-grid a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 900;
}

.site-request-contact-grid article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.site-request-contact-grid small {
  color: var(--muted);
  line-height: 1.4;
}

.site-request-order {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.site-request-order h3,
.site-request-order p {
  margin: 0;
}

.site-request-order-list {
  display: grid;
  gap: 8px;
}

.site-request-order-list > div,
.site-request-promo,
.site-request-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-request-promo {
  border-top: 1px dashed #e7c0a9;
  padding-top: 12px;
  color: #9f3b0b;
}

.site-request-package {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(41, 35, 29, 0.1);
  background: #f8f6f4;
  padding: 11px 13px;
  color: var(--muted);
  font-size: 12px;
}

.site-request-package strong {
  color: var(--ink);
  text-align: right;
}

.site-request-promo strong {
  white-space: nowrap;
}

.site-request-order-list span {
  display: grid;
  gap: 3px;
}

.site-request-order-list small,
.site-request-order > small {
  color: var(--muted);
  font-weight: 750;
}

.site-request-total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.site-request-total strong {
  color: var(--orange-dark);
  font-size: 22px;
}

.site-request-manager-form {
  display: grid;
  gap: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.08), rgba(255, 255, 255, 0.82));
  padding: 15px;
}

.site-request-manager-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.site-request-manager-form textarea {
  resize: vertical;
}

@media (max-width: 760px) {
  .site-request-filters,
  .site-request-contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-request-order-list > div,
  .site-request-promo,
  .site-request-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

.ozon-readiness {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding: 12px 13px;
  color: #7b3e2d;
  background: #fff4ee;
  border: 1px solid #f2c8b8;
  border-radius: 6px;
}

.integration-readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.integration-readiness-head .button {
  min-height: 34px;
  padding: 7px 11px;
  white-space: nowrap;
}

.integration-readiness-check {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  color: #4d5652;
  background: rgb(255 255 255 / 72%);
  border: 1px solid rgb(37 45 42 / 9%);
}

.integration-readiness-check strong,
.integration-readiness-check small,
.integration-readiness-check em {
  display: block;
}

.integration-readiness-check strong {
  font-size: 12px;
}

.integration-readiness-check small {
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
  opacity: 0.9;
}

.integration-readiness-check em {
  margin: 2px 0 0;
  font-size: 9px;
  font-style: normal;
  opacity: 0.66;
}

.integration-readiness-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.integration-readiness-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 7px;
  color: #59615d;
  background: rgb(255 255 255 / 65%);
  border: 1px solid rgb(37 45 42 / 10%);
  font-size: 9px;
  font-weight: 750;
}

.integration-readiness-meta .is-ok {
  color: #23654f;
  border-color: #bcdccc;
}

.integration-readiness-meta .is-missing {
  color: #88412f;
  border-color: #edc1b4;
}

.ozon-setup-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 2px 0;
  padding: 0;
  overflow: hidden;
  background: rgb(37 45 42 / 10%);
  border: 1px solid rgb(37 45 42 / 10%);
  list-style: none;
}

.ozon-setup-checklist li {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px;
  color: #774235;
  background: rgb(255 255 255 / 78%);
}

.ozon-setup-checklist li > b {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  color: #7d493a;
  background: #f7ded5;
  border-radius: 50%;
  font-size: 9px;
}

.ozon-setup-checklist strong,
.ozon-setup-checklist small {
  overflow-wrap: anywhere;
}

.ozon-setup-checklist strong {
  font-size: 10px;
}

.ozon-setup-checklist li.is-complete {
  color: #265b4a;
}

.ozon-setup-checklist li.is-complete > b {
  color: #fff;
  background: #2f8769;
}

.ozon-onboarding-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.ozon-onboarding-actions .button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 9px;
}

.ozon-checkout-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgb(37 45 42 / 12%);
  border-bottom: 1px solid rgb(37 45 42 / 12%);
}

.ozon-readiness .ozon-checkout-flow > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.3;
}

.ozon-readiness .ozon-checkout-flow > span + span {
  border-left: 1px solid rgb(37 45 42 / 10%);
}

.ozon-readiness .ozon-checkout-flow b {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2f8769;
  border-radius: 50%;
  font-size: 9px;
}

.ozon-readiness .ozon-checkout-note {
  margin: 0;
  line-height: 1.45;
}

.ozon-readiness.is-invalid_credentials,
.ozon-readiness.is-permission_denied,
.ozon-readiness.is-authorization_required,
.ozon-readiness.is-not_enabled,
.ozon-readiness.is-wrong_credential_type,
.ozon-readiness.is-unreachable,
.ozon-readiness.is-service_error {
  color: #7d3329;
  background: #fff1ed;
  border-color: #e8b9ad;
}

.integration-readiness-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.integration-readiness-list .ozon-readiness {
  margin: 0;
}

.yandex-readiness {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 12px 13px;
  color: #735a12;
  background: #fff9df;
  border: 1px solid #ebd780;
  border-radius: 6px;
}

.yandex-readiness.is-ready {
  color: #265b4a;
  background: #eef7f2;
  border-color: #cbe2d7;
}

.yandex-readiness span,
.yandex-readiness small {
  display: block;
}

.yandex-readiness b {
  font-size: 13px;
}

.yandex-readiness small,
.yandex-readiness em {
  margin-top: 2px;
  color: inherit;
  font-size: 10px;
  font-style: normal;
  opacity: 0.78;
}

.ozon-readiness.is-ready {
  color: #265b4a;
  background: #eef7f2;
  border-color: #cbe2d7;
}

.ozon-readiness span,
.ozon-readiness small {
  display: block;
}

.ozon-readiness b {
  font-size: 13px;
}

.ozon-readiness small,
.ozon-readiness em {
  margin-top: 2px;
  color: inherit;
  font-size: 10px;
  font-style: normal;
  opacity: 0.78;
}

.ozon-order-panel {
  display: grid;
  gap: 13px;
  padding: 17px;
  background: #fbfbfa;
  border: 1px solid #dddeda;
  border-left: 3px solid #ef6d4e;
  border-radius: 6px;
}

.ozon-order-panel.is-created,
.ozon-order-panel.is-ready {
  border-left-color: #2f8769;
}

.ozon-order-panel__head,
.ozon-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ozon-order-panel__head span,
.ozon-order-panel__head small,
.ozon-order-panel__head strong {
  display: block;
}

.ozon-order-panel__head small {
  color: #777c79;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.ozon-order-panel__head strong {
  margin-top: 3px;
  font-size: 17px;
}

.ozon-order-panel__head em {
  padding: 5px 8px;
  color: #8a3e25;
  background: #fff0e9;
  border-radius: 4px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.ozon-order-panel > p {
  margin: 0;
  color: #666d69;
  font-size: 12px;
  line-height: 1.5;
}

.ozon-order-panel dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid #e1e2df;
  border-bottom: 1px solid #e1e2df;
}

.ozon-order-panel dl > div {
  min-width: 0;
  padding: 11px 8px;
}

.ozon-order-panel dt {
  color: #858a87;
  font-size: 9px;
}

.ozon-order-panel dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 800;
}

.ozon-order-warning {
  padding: 10px 12px;
  color: #863a28;
  background: #fff1eb;
  border: 1px solid #f2c5b7;
  font-size: 11px;
  line-height: 1.45;
}

.ozon-posting-list {
  display: grid;
  gap: 7px;
}

.ozon-posting-list > strong {
  font-size: 11px;
}

.ozon-posting-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  background: #eef7f2;
  border-left: 3px solid #2f8769;
}

.ozon-posting-list span,
.ozon-posting-list b,
.ozon-posting-list small {
  display: block;
}

.ozon-posting-list b {
  font-size: 11px;
}

.ozon-posting-list small,
.ozon-posting-list em {
  margin-top: 2px;
  color: #68726d;
  font-size: 9px;
  font-style: normal;
}

.ozon-product-warning {
  padding: 10px 12px;
  color: #843d2d;
  background: #fff2ec;
  border-left: 3px solid #ef6d4e;
  font-size: 11px;
  line-height: 1.45;
}

.ozon-order-actions {
  justify-content: flex-start;
}

.yandex-order-panel {
  display: grid;
  gap: 13px;
  padding: 17px;
  background: #fbfbfa;
  border: 1px solid #dddeda;
  border-left: 3px solid #d7ac00;
  border-radius: 6px;
}

.yandex-order-panel.is-claim_created,
.yandex-order-panel.is-accepted {
  border-left-color: #2f8769;
}

.yandex-order-panel__head,
.yandex-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.yandex-order-panel__head span,
.yandex-order-panel__head small,
.yandex-order-panel__head strong {
  display: block;
}

.yandex-order-panel__head small {
  color: #777c79;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.yandex-order-panel__head strong {
  margin-top: 3px;
  font-size: 17px;
}

.yandex-order-panel__head em {
  padding: 5px 8px;
  color: #6d5700;
  background: #fff6c9;
  border-radius: 4px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.yandex-order-panel.is-accepted .yandex-order-panel__head em {
  color: #1f654d;
  background: #e7f4ed;
}

.yandex-order-panel > p {
  margin: 0;
  color: #666d69;
  font-size: 12px;
  line-height: 1.5;
}

.yandex-order-panel dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid #e1e2df;
  border-bottom: 1px solid #e1e2df;
}

.yandex-order-panel dl > div {
  min-width: 0;
  padding: 11px 8px;
}

.yandex-order-panel dt {
  color: #858a87;
  font-size: 9px;
}

.yandex-order-panel dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 800;
}

.yandex-order-warning {
  padding: 10px 12px;
  color: #735a12;
  background: #fff8d8;
  border: 1px solid #ebd57d;
  font-size: 11px;
  line-height: 1.45;
}

.yandex-order-actions {
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .integration-readiness-head {
    align-items: stretch;
    flex-direction: column;
  }

  .integration-readiness-head .button {
    width: 100%;
  }

  .ozon-order-panel dl,
  .yandex-order-panel dl {
    grid-template-columns: 1fr;
  }

  .ozon-checkout-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ozon-setup-checklist {
    grid-template-columns: 1fr;
  }

  .ozon-onboarding-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ozon-onboarding-actions .button {
    width: 100%;
  }

  .ozon-readiness .ozon-checkout-flow > span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgb(37 45 42 / 10%);
  }

  .ozon-readiness .ozon-checkout-flow > span:nth-child(4) {
    border-top: 1px solid rgb(37 45 42 / 10%);
  }

  .ozon-order-panel dl > div + div,
  .yandex-order-panel dl > div + div {
    border-top: 1px solid #e1e2df;
  }
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.menu-search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 14px 0;
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.07), rgba(255, 255, 255, 0.8)),
    #fff;
  padding: 13px;
}

.menu-search-row span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(255, 122, 26, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0 13px;
  color: #9b4106;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 420px;
  border: 1px solid rgba(255, 122, 26, 0.28);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-strong);
  padding: 14px 16px;
  color: var(--text);
  font-weight: 850;
}

.toast button {
  min-height: 32px;
  padding: 0 11px;
  color: #a43b0d;
  background: #fff1e8;
  border: 1px solid #efb18c;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.toast button:hover {
  color: #fff;
  background: #d8571d;
  border-color: #d8571d;
}

.empty {
  border: 1px dashed rgba(41, 35, 29, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  padding: 18px;
  color: var(--muted);
  font-weight: 750;
}

.builder-shell {
  display: grid;
  gap: 16px;
}

.builder-head {
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 240, 0.92)),
    #fff;
  padding: 18px;
}

.content-save-state {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid rgba(38, 133, 89, 0.18);
  border-radius: 999px;
  background: rgba(235, 250, 242, 0.82);
  padding: 0 11px;
  color: #176e48;
  font-size: 12px;
  font-weight: 900;
}

.content-save-state span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24a169;
  box-shadow: 0 0 0 4px rgba(36, 161, 105, 0.1);
}

.content-save-state.is-dirty {
  border-color: rgba(255, 122, 26, 0.24);
  background: rgba(255, 245, 235, 0.9);
  color: #a64507;
}

.content-save-state.is-dirty span {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
}

.builder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.constructor-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1.12fr);
  gap: 16px;
}

.constructor-map,
.constructor-preview-card {
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.08), transparent 56%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(31, 24, 17, 0.08);
  padding: 16px;
}

.constructor-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
}

.constructor-title {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.constructor-title span,
.constructor-card small {
  color: #b84c04;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.constructor-title strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.constructor-card {
  display: grid;
  min-height: 128px;
  align-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
  color: var(--text);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.constructor-card:hover,
.constructor-card.is-active {
  border-color: rgba(255, 122, 26, 0.48);
  background: #fff;
  box-shadow: 0 18px 44px rgba(255, 122, 26, 0.14);
  transform: translateY(-2px);
}

.constructor-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: flex-start;
  gap: 7px;
}

.constructor-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
}

.constructor-card i {
  width: fit-content;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #9b4106;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.document-search-row {
  grid-template-columns: minmax(260px, 1fr) auto auto;
}

.constructor-card span:not(.constructor-card-top) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.constructor-preview-card {
  display: grid;
  gap: 12px;
}

.preview-browser-bar {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  padding: 0 12px;
}

.preview-browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.74;
}

.preview-browser-bar span:nth-child(2) {
  background: #f3a13b;
}

.preview-browser-bar span:nth-child(3) {
  background: #168a5b;
}

.preview-browser-bar strong {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.constructor-preview-card iframe {
  width: 100%;
  height: 330px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.builder-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.builder-guide article {
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.86);
  padding: 13px 14px;
}

.builder-guide strong,
.builder-guide span,
.list-head strong,
.list-head span {
  display: block;
}

.builder-guide strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.builder-guide span,
.list-head span,
.field-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 16px;
}

.builder-list {
  display: grid;
  align-content: start;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.catalog-manager-list {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overscroll-behavior: contain;
}

.list-head {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 13px;
}

.list-head strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.catalog-list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.catalog-list-heading > div {
  min-width: 0;
}

.catalog-list-heading > div > strong,
.catalog-list-heading > div > span {
  display: block;
}

.catalog-filter-search {
  margin-top: 14px;
}

.catalog-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.catalog-filter-row select,
.catalog-filter-search input {
  min-height: 40px;
  border-radius: 11px;
  background: #fff;
  padding: 9px 11px;
}

.catalog-product-list {
  display: grid;
  gap: 8px;
}

.product-list-button {
  display: grid;
  width: 100%;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-color: rgba(41, 35, 29, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.product-list-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(70, 43, 22, 0.08);
}

.product-list-button.is-active {
  border-color: rgba(255, 122, 26, 0.48);
  background: #fff;
  box-shadow: inset 3px 0 0 var(--orange), 0 12px 30px rgba(70, 43, 22, 0.08);
}

.product-list-thumb {
  display: grid !important;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  margin: 0 !important;
  border: 1px solid rgba(41, 35, 29, 0.1);
  border-radius: 12px;
  background: #f7f3ef;
}

.product-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-list-thumb.is-empty span {
  margin: 0;
  color: #9b8e83;
  font-size: 10px;
  font-weight: 850;
}

.product-list-copy {
  display: grid !important;
  min-width: 0;
  gap: 5px;
  margin: 0 !important;
}

.product-list-title-row {
  display: flex !important;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 0 !important;
}

.product-list-title-row strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-list-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.product-list-status.is-visible {
  background: #e8f7ef;
  color: #176e48;
}

.product-list-status.is-hidden {
  background: #f3efec;
  color: #796b61;
}

.product-list-meta {
  overflow: hidden;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-list-copy b {
  color: #a64507;
  font-size: 13px;
}

.catalog-empty-state {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.catalog-empty-state strong,
.catalog-empty-state span {
  display: block;
}

.builder-save-dock {
  position: sticky;
  z-index: 25;
  bottom: 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 122, 26, 0.34);
  border-radius: 18px;
  background: rgba(31, 29, 26, 0.96);
  box-shadow: 0 22px 60px rgba(31, 24, 17, 0.26);
  padding: 13px 15px;
  color: #fff;
  backdrop-filter: blur(16px);
}

.builder-save-dock.is-visible {
  display: flex;
}

.builder-save-dock strong,
.builder-save-dock span {
  display: block;
}

.builder-save-dock strong {
  font-size: 14px;
}

.builder-save-dock span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 750;
}

.builder-save-dock .button:not(.primary) {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.builder-form-card textarea {
  min-height: 108px;
}

.form-section-title {
  margin: 8px 0 0;
  padding-top: 4px;
  color: #9b4106;
  font-size: 15px;
  text-transform: uppercase;
}

.image-picker-select {
  margin-top: 8px;
  background: #fff8f2;
}

.image-field {
  display: grid;
}

.image-thumb {
  display: grid;
  height: 156px;
  place-items: center;
  overflow: hidden;
  margin: 8px 0;
  border: 1px solid rgba(255, 122, 26, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.08), transparent),
    #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-thumb.is-empty {
  border-style: dashed;
}

.image-thumb.has-built-in {
  border-style: solid;
  border-color: rgba(38, 133, 89, 0.2);
  background:
    linear-gradient(135deg, rgba(36, 161, 105, 0.07), transparent),
    #fbfffd;
  color: #26724f;
}

.manual-path {
  margin-top: 8px;
  border: 1px dashed rgba(41, 35, 29, 0.18);
  border-radius: 13px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.68);
}

.manual-path summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.manual-path input {
  margin-top: 8px;
}

.field-note {
  margin: -4px 0 4px;
}

.file-picker-field {
  display: grid;
  gap: 10px;
}

.inline-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  border: 1px dashed rgba(255, 122, 26, 0.28);
  border-radius: 14px;
  background: rgba(255, 248, 241, 0.78);
  padding: 10px;
}

.inline-upload input[type="file"] {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(41, 35, 29, 0.12);
  border-radius: 10px;
  background: #fff;
  padding: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.inline-upload input[type="file"]::file-selector-button {
  min-height: 28px;
  margin-right: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--orange-soft);
  padding: 0 10px;
  color: var(--orange-dark);
  cursor: pointer;
  font-weight: 900;
}

.inline-upload-button {
  min-width: 172px;
}

.inline-upload small {
  align-self: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-add-actions {
  margin-bottom: 12px;
}

.product-simple-head {
  align-items: center;
  border: 1px solid rgba(255, 122, 26, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 247, 239, 0.94), rgba(255, 255, 255, 0.82)),
    #fff;
  padding: 16px;
  box-shadow: 0 18px 42px rgba(146, 71, 13, 0.07);
}

.product-simple-head .actions {
  align-items: center;
  flex-wrap: nowrap;
}

.product-simple-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 14px;
  border: 1px solid rgba(41, 35, 29, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
}

.product-main-card {
  border-color: rgba(255, 122, 26, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 247, 239, 0.68), rgba(255, 255, 255, 0.9)),
    #fff;
}

.product-attachments-card {
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.05), rgba(255, 255, 255, 0.86)),
    #fff;
}

.product-simple-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.product-simple-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.product-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-media-grid.is-single {
  max-width: 520px;
  grid-template-columns: minmax(0, 1fr);
}

.product-media-primary {
  max-width: 560px;
}

.product-optional {
  border: 1px dashed rgba(41, 35, 29, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0;
}

.product-optional summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
  list-style: none;
}

.product-optional summary::-webkit-details-marker {
  display: none;
}

.product-optional summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.1);
  color: var(--orange-dark);
  font-size: 18px;
  line-height: 1;
}

.product-optional[open] summary::after {
  content: "-";
}

.product-optional summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.product-optional .product-media-grid {
  padding: 0 14px 14px;
}

.product-edit-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 122, 26, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 247, 239, 0.9), rgba(255, 255, 255, 0.74)),
    #fff;
  padding: 16px;
  box-shadow: 0 18px 42px rgba(146, 71, 13, 0.07);
}

.product-edit-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.product-edit-panel__head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.product-edit-panel__head p {
  max-width: 560px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.compact-select {
  min-width: 170px;
}

.compact-select select {
  margin-top: 6px;
}

.product-type-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 122, 26, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 13px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.builder-technical-field {
  max-width: 260px;
}

.single-field {
  display: grid;
  max-width: 520px;
}

.product-doc-fields {
  display: grid;
  align-content: start;
  min-height: 156px;
  border: 1px solid rgba(255, 122, 26, 0.13);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.07), rgba(255, 255, 255, 0.82)),
    #fff;
  padding: 14px;
}

.certificate-media-grid {
  align-items: start;
}

.certificate-doc-fields {
  min-height: 0;
  gap: 12px;
}

.icon-action {
  width: 42px;
  min-width: 42px;
  padding: 0;
  font-size: 18px;
}

.builder-form-card .three textarea {
  min-height: 150px;
}

.builder-divider {
  height: 1px;
  margin: 6px 0;
  background: var(--line);
}

.builder-check {
  display: flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0 14px;
  color: var(--ink);
}

.builder-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

.product-visible-toggle {
  min-height: 40px;
  margin: 0;
  white-space: nowrap;
}

.builder-advanced {
  border: 1px dashed rgba(41, 35, 29, 0.24);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.6);
  padding: 12px 14px;
}

.builder-advanced summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.builder-advanced .two {
  margin-top: 12px;
}

.large-action {
  min-width: 218px;
}

.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.builder-empty {
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .sidebar-note {
    position: static;
    margin-top: 18px;
  }

  .catalog-manager-list {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .split,
  .asset-grid,
  .ops-grid,
  .bot-admin-grid,
  .bot-connection-card,
  .bot-runtime-card,
  .bot-launch-grid,
  .bot-preview-layout,
  .bot-audit-grid,
  .bot-audit-summary,
  .bot-audit-row,
  .constructor-shell,
  .constructor-map,
  .builder-guide,
  .builder-grid,
  .product-media-grid,
  .knowledge-shell,
  .conversation-admin-shell,
  .document-summary-grid,
  .menu-search-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .main,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .section-row,
  .knowledge-editor-head,
  .knowledge-toolbar,
  .menu-editor-note,
  .product-edit-panel__head,
  .document-matrix-note {
    display: grid;
  }

  h1 {
    font-size: 32px;
  }

  .project-grid,
  .file-config-grid,
  .check-grid,
  .check-grid.compact,
  .bot-readiness-item,
  .operator-row,
  .two,
  .three,
  .file-help-card {
    grid-template-columns: 1fr;
  }

  .inline-upload {
    grid-template-columns: 1fr;
  }

  .inline-upload input[type="file"] {
    grid-column: auto;
  }

  .inline-upload-button {
    width: 100%;
  }

  .catalog-filter-row {
    grid-template-columns: 1fr;
  }

  .builder-save-dock.is-visible {
    display: grid;
    bottom: 8px;
  }

  .builder-save-dock .actions,
  .builder-save-dock .button {
    width: 100%;
  }
}
.home-content-builder {
  display: grid;
  gap: 46px;
}

.home-photo-editor-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: center;
  min-height: 230px;
  padding: 28px;
  overflow: hidden;
  color: #fff;
  background: #20211f;
  border: 1px solid #343532;
  border-radius: 7px;
}

.home-photo-editor-entry__copy {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.home-photo-editor-entry__copy h2,
.home-photo-editor-entry__copy p {
  margin: 0;
}

.home-photo-editor-entry__copy h2 {
  max-width: 520px;
  color: #fff;
  font-size: 27px;
  line-height: 1.12;
}

.home-photo-editor-entry__copy p {
  max-width: 520px;
  color: #bdbeb9;
  font-size: 13px;
}

.home-photo-editor-entry__copy .button {
  margin-top: 5px;
}

.home-photo-editor-entry__previews {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 88px);
  gap: 8px;
}

.home-photo-editor-entry__previews span {
  min-width: 0;
  overflow: hidden;
  background: #30312e;
  border: 1px solid #494a46;
  border-radius: 5px;
}

.home-photo-editor-entry__previews span:first-child {
  grid-row: 1 / 3;
}

.home-photo-editor-entry__previews img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-content-builder__section {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.home-content-builder__section + .home-content-builder__section {
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.home-content-builder__section > .section-row {
  align-items: flex-end;
}

.home-content-builder__section > .section-row h2 {
  margin: 4px 0 6px;
}

.constructor-kicker {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .home-content-builder {
    gap: 32px;
  }

  .home-photo-editor-entry {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .home-photo-editor-entry__copy h2 {
    font-size: 23px;
  }

  .home-content-builder__section > .section-row {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Product review moderation */
.site-review-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.site-review-filters button:last-child {
  grid-column: 1 / -1;
}

.review-admin-item small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.review-rating-chip,
.verified-review-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.review-rating-chip {
  color: #9a3e1e;
  background: #fff0e6;
  border: 1px solid #ffc9ae;
}

.verified-review-chip {
  color: #237052;
  background: #eaf8f1;
  border: 1px solid #bfe7d3;
}

.request-status.is-pending {
  color: #9a5b00;
  background: #fff5d7;
  border-color: #f3d887;
}

.request-status.is-published {
  color: #176d4d;
  background: #e8f7ef;
  border-color: #b9e4ce;
}

.request-status.is-rejected,
.request-status.is-hidden {
  color: #8f3333;
  background: #fff0ef;
  border-color: #f2c2be;
}

.site-review-score {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 18px 20px;
  background: linear-gradient(90deg, #fff7f0, #fff);
  border: 1px solid #f3d5c3;
  border-radius: 8px;
}

.site-review-score strong {
  color: #e45f2f;
  font-size: 34px;
  line-height: 1;
}

.site-review-score > span,
.site-review-score small {
  color: #72665f;
  font-size: 12px;
}

.site-review-score b {
  margin-left: auto;
  color: #237052;
  font-size: 12px;
}

.review-message {
  min-height: 122px;
}

.site-review-manager-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.site-review-manager-form label {
  display: grid;
  gap: 7px;
  color: #5f554e;
  font-size: 12px;
  font-weight: 750;
}

.site-review-manager-form textarea {
  width: 100%;
  resize: vertical;
}

.review-moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 760px) {
  .site-review-filters {
    grid-template-columns: 1fr;
  }

  .site-review-filters button:last-child {
    grid-column: auto;
  }

  .site-review-score {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-review-score b {
    margin-left: 0;
  }
}

/* Manager workspace: compact, predictable and focused on daily content work. */
.site-manager-topbar {
  min-height: 126px;
  padding: 18px 20px;
  border-radius: 10px;
}

.site-manager-topbar h1 {
  margin-top: 7px;
  font-size: 32px;
}

.site-manager-topbar .muted {
  max-width: 720px;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.42;
}

.site-switcher {
  width: min(360px, 36vw);
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-switcher select {
  width: 100%;
  min-height: 42px;
  border-radius: 7px;
  background: #fff;
}

.site-manager-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
}

.site-manager-panel > .tabs {
  position: sticky;
  z-index: 45;
  top: 10px;
  flex-wrap: nowrap;
  margin: 0 0 12px;
  padding: 6px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(47, 34, 24, 0.08);
  scrollbar-width: none;
  backdrop-filter: blur(14px);
}

.builder-tabs + * {
  scroll-margin-top: 126px;
}

.site-manager-panel > .tabs::-webkit-scrollbar,
.builder-tabs::-webkit-scrollbar {
  display: none;
}

.site-manager-panel .tab,
.site-manager-panel .button {
  border-radius: 7px;
}

.site-manager-panel .tab {
  min-height: 38px;
  flex: 0 0 auto;
}

.builder-shell {
  gap: 12px;
}

.builder-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  box-shadow: none;
}

.builder-head h2 {
  margin-bottom: 5px;
  font-size: 21px;
}

.builder-head .muted {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.42;
}

.builder-head .content-save-state {
  min-height: 26px;
  margin-top: 8px;
  border-radius: 6px;
  font-size: 11px;
}

.builder-head-actions {
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.builder-head-actions .button {
  min-height: 40px;
  padding-inline: 13px;
  white-space: nowrap;
}

.builder-head-actions .large-action {
  min-width: 164px;
}

.builder-tools-menu {
  position: relative;
}

.builder-tools-menu > summary {
  min-width: 72px;
  cursor: pointer;
  list-style: none;
}

.builder-tools-menu > summary::-webkit-details-marker {
  display: none;
}

.builder-tools-menu > div {
  position: absolute;
  z-index: 70;
  top: calc(100% + 7px);
  right: 0;
  width: 238px;
  display: grid;
  gap: 4px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(40, 28, 19, 0.16);
}

.builder-tools-menu > div button {
  min-height: 40px;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  border-radius: 5px;
  text-align: left;
  font-weight: 850;
}

.builder-tools-menu > div button:hover,
.builder-tools-menu > div button:focus-visible {
  color: #a64507;
  background: var(--orange-soft);
}

.constructor-overview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.constructor-overview > summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 15px;
  cursor: pointer;
  list-style: none;
}

.constructor-overview > summary::-webkit-details-marker {
  display: none;
}

.constructor-overview > summary > span:first-child {
  display: grid;
  gap: 2px;
}

.constructor-overview > summary strong {
  color: var(--ink);
  font-size: 14px;
}

.constructor-overview > summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.constructor-overview__action {
  min-width: 74px;
  display: inline-flex;
  justify-content: center;
  padding: 7px 10px;
  color: #9b4106;
  background: var(--orange-soft);
  border-radius: 6px;
  font-size: 11px;
}

.constructor-overview__action b:last-child,
.constructor-overview[open] .constructor-overview__action b:first-child {
  display: none;
}

.constructor-overview[open] .constructor-overview__action b:last-child {
  display: block;
}

.constructor-overview .constructor-shell {
  margin: 0 12px 12px;
}

.constructor-map,
.constructor-preview-card {
  padding: 12px;
  border-radius: 8px;
  box-shadow: none;
}

.constructor-map {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.constructor-title {
  margin-bottom: 5px;
}

.constructor-title strong {
  font-size: 17px;
}

.constructor-card {
  min-height: 82px;
  gap: 7px;
  padding: 10px;
  border-radius: 7px;
}

.constructor-card span:not(.constructor-card-top) {
  display: none;
}

.constructor-card strong {
  font-size: 13px;
}

.constructor-card i {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 9px;
}

.constructor-preview-card {
  align-content: start;
}

.constructor-preview-card iframe {
  height: 252px;
  border-radius: 7px;
}

.preview-browser-bar {
  min-height: 30px;
  border-radius: 6px;
}

.preview-actions {
  align-self: start;
  align-items: center;
}

.preview-actions .button {
  min-height: 40px;
  flex: 0 0 auto;
}

.builder-tabs {
  position: sticky;
  z-index: 40;
  top: 64px;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 6px;
  overflow-x: auto;
  background: rgba(247, 244, 241, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(47, 34, 24, 0.07);
  scrollbar-width: none;
  backdrop-filter: blur(14px);
}

.builder-grid {
  grid-template-columns: minmax(292px, 320px) minmax(0, 1fr);
  gap: 12px;
}

.builder-list,
.catalog-manager-list {
  position: sticky;
  top: 118px;
  max-height: calc(100vh - 132px);
  overscroll-behavior: contain;
}

.list-head,
.product-simple-head,
.product-simple-card,
.product-edit-panel,
.product-doc-fields,
.product-optional,
.image-thumb,
.inline-upload,
.manual-path {
  border-radius: 8px;
}

.editor-card.builder-form-card {
  padding: 12px;
  border-radius: 8px;
  box-shadow: none;
}

.product-simple-head {
  padding: 13px;
  box-shadow: none;
}

.product-simple-head h2 {
  font-size: 22px;
}

.product-simple-card {
  gap: 12px;
  padding: 14px;
}

.product-list-button {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  padding: 8px;
  border-radius: 7px;
}

.product-list-thumb {
  width: 58px;
  height: 58px;
  border-radius: 6px;
}

.builder-check,
.product-type-chip,
.product-optional summary::after {
  border-radius: 6px;
}

.builder-form-card input,
.builder-form-card select,
.builder-form-card textarea {
  border-radius: 6px;
}

.catalog-order-editor {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.catalog-order-editor > summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 11px 14px;
}

.catalog-order-editor > summary::-webkit-details-marker {
  display: none;
}

.catalog-order-editor > summary span,
.catalog-order-editor > summary strong,
.catalog-order-editor > summary small {
  display: block;
}

.catalog-order-editor > summary strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.catalog-order-editor > summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.catalog-order-editor__count {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 102, 28, 0.22);
  border-radius: 6px;
  background: #fff7f1;
  padding: 6px 9px;
  color: #a9470d;
  font-size: 11px;
  font-weight: 900;
}

.catalog-order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px;
  background: #f7f5f3;
}

.catalog-order-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(41, 35, 29, 0.1);
  border-radius: 7px;
  background: #fff;
  padding: 9px 10px;
}

.catalog-order-row > span:first-child {
  min-width: 0;
}

.catalog-order-row strong,
.catalog-order-row small {
  display: block;
}

.catalog-order-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-order-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.catalog-order-row__field {
  flex: 0 0 78px;
}

.catalog-order-row__field input {
  width: 78px;
  min-height: 36px;
  margin-top: 3px;
  border-radius: 6px;
  padding: 7px 8px;
  font-weight: 900;
  text-align: center;
}

.catalog-order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
}

.catalog-order-actions > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.catalog-order-actions .button {
  flex: 0 0 auto;
}

.field-help {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.print-settings-manager {
  display: grid;
  gap: 12px;
}

.print-settings-fields,
.print-settings-editor {
  border-radius: 8px;
  box-shadow: none;
}

.print-settings-section-head,
.print-settings-editor__head,
.print-settings-groups__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.print-settings-section-head h2,
.print-settings-editor__head h2,
.print-settings-groups__head h2 {
  margin: 3px 0 5px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
}

.print-settings-section-head p,
.print-settings-editor__head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.print-settings-help-badge,
.print-settings-product-count {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 102, 28, 0.24);
  border-radius: 6px;
  background: #fff7f1;
  padding: 7px 10px;
  color: #a9470d;
  font-size: 11px;
  font-weight: 900;
}

.print-setting-labels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.print-setting-label-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(41, 35, 29, 0.1);
  border-radius: 7px;
  background: #fbfaf8;
  padding: 8px;
}

.print-setting-label-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: #262928;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}

.print-setting-label-input small {
  display: block;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.print-setting-label-input input {
  min-height: 34px;
  padding: 6px 9px;
  font-weight: 850;
}

.print-setting-visibility {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.print-setting-visibility input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--orange);
}

.print-settings-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.print-settings-groups {
  position: sticky;
  top: 118px;
  overflow: hidden;
  max-height: calc(100vh - 132px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.print-settings-groups__head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.print-settings-groups__head h2 {
  font-size: 17px;
}

.print-settings-search {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  background: #f8f6f4;
}

.print-settings-search > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.print-settings-search input {
  width: 100%;
  min-height: 38px;
  border-radius: 6px;
}

.print-settings-group-list {
  overflow-y: auto;
  max-height: calc(100vh - 286px);
  padding: 6px;
}

.print-settings-group-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease;
}

.print-settings-group-button:hover {
  border-color: rgba(255, 102, 28, 0.18);
  background: #fff8f3;
}

.print-settings-group-button.is-active {
  border-color: rgba(255, 102, 28, 0.35);
  background: #fff4ec;
}

.print-settings-group-button span,
.print-settings-group-button strong,
.print-settings-group-button small {
  display: block;
  min-width: 0;
}

.print-settings-group-button strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-settings-group-button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.print-settings-group-button b {
  flex: 0 0 auto;
  min-width: 36px;
  border-radius: 5px;
  background: rgba(39, 42, 41, 0.07);
  padding: 5px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.print-settings-group-button.is-active b {
  background: var(--orange);
  color: #fff;
}

.print-settings-editor {
  min-width: 0;
  padding: 18px;
}

.print-settings-group-meta {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.print-setting-values {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.print-setting-value-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(220px, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(41, 35, 29, 0.1);
  border-radius: 7px;
  background: #fbfaf8;
  padding: 9px 10px;
}

.print-setting-value-row > span {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  column-gap: 9px;
}

.print-setting-value-row > span b {
  grid-row: 1 / span 2;
  color: var(--orange);
  font-size: 10px;
  font-weight: 950;
}

.print-setting-value-row > span strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-setting-value-row > span small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.print-setting-value-row input {
  min-height: 40px;
  font-weight: 850;
}

.print-setting-value-row.is-hidden-on-site {
  opacity: 0.62;
}

.print-settings-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  border-left: 3px solid var(--orange);
  background: #fff7f1;
  padding: 11px 12px;
}

.print-settings-note strong {
  flex: 0 0 auto;
  color: #9c3f09;
  font-size: 12px;
}

.print-settings-note span {
  color: #6c584c;
  font-size: 11px;
  line-height: 1.45;
}

.print-settings-empty {
  margin: 8px 0;
}

.product-print-settings-link {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(230px, 0.8fr) auto;
  align-items: end;
  border-color: rgba(255, 102, 28, 0.22);
  background: #fff8f3;
}

.product-print-settings-link__copy strong,
.product-print-settings-link__copy small {
  display: block;
}

.product-print-settings-link__copy strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.product-print-settings-link__copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.product-print-settings-link .button {
  min-height: 40px;
}

.shipping-manager {
  display: grid;
  gap: 12px;
}

.shipping-default-card,
.shipping-overrides-card {
  border-radius: 8px;
  box-shadow: none;
}

.shipping-manager-head,
.product-shipping-head,
.product-shipping-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.shipping-manager-head h2 {
  margin: 3px 0 5px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
}

.shipping-manager-head p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.shipping-default-count {
  flex: 0 0 auto;
  border: 1px solid rgba(43, 119, 82, 0.2);
  border-radius: 6px;
  background: #f1f8f4;
  padding: 7px 10px;
  color: #236443;
  font-size: 11px;
  font-weight: 900;
}

.shipping-default-count.is-custom {
  border-color: rgba(255, 102, 28, 0.24);
  background: #fff7f1;
  color: #a9470d;
}

.shipping-default-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.65fr);
  gap: 14px;
  margin-top: 16px;
}

.shipping-dimension-grid,
.product-shipping-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.shipping-dimension-field,
.product-shipping-grid > label {
  display: block;
  border: 1px solid rgba(41, 35, 29, 0.1);
  border-radius: 7px;
  background: #fbfaf8;
  padding: 10px;
}

.shipping-dimension-field > span:first-child,
.product-shipping-grid > label > span:first-child {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.shipping-dimension-input,
.product-shipping-grid > label > span:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.shipping-dimension-input input,
.product-shipping-grid input {
  min-width: 0;
  min-height: 42px;
  padding: 8px 9px;
  font-size: 16px;
  font-weight: 900;
}

.shipping-dimension-input b,
.product-shipping-grid b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.shipping-package-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 102, 28, 0.2);
  border-radius: 8px;
  background: #fff7f1;
  padding: 14px;
}

.shipping-package-summary > span:last-child,
.shipping-package-summary small,
.shipping-package-summary strong,
.shipping-package-summary em {
  display: block;
  min-width: 0;
}

.shipping-package-summary small {
  color: #a9470d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.shipping-package-summary strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.shipping-package-summary em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.shipping-package-axis {
  display: grid;
  flex: 0 0 72px;
  min-height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 102, 28, 0.3);
  border-radius: 6px;
  background: #fff;
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
}

.shipping-package-axis.is-small {
  flex-basis: 62px;
  min-height: 42px;
}

.shipping-overrides-list {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.shipping-override-row {
  display: grid;
  grid-template-columns: 48px minmax(210px, 1fr) minmax(210px, auto) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(41, 35, 29, 0.1);
  border-radius: 7px;
  background: #fbfaf8;
  padding: 8px 10px;
}

.shipping-override-thumb {
  display: grid;
  width: 48px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.shipping-override-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shipping-override-thumb b {
  color: var(--muted);
  font-size: 8px;
}

.shipping-override-copy strong,
.shipping-override-copy small {
  display: block;
}

.shipping-override-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.shipping-override-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.shipping-override-row > b {
  color: #704a33;
  font-size: 11px;
  font-weight: 900;
}

.shipping-empty-state {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed rgba(41, 35, 29, 0.16);
  border-radius: 8px;
  background: #fbfaf8;
  padding: 16px;
}

.shipping-empty-state strong,
.shipping-empty-state p {
  display: block;
  margin: 0;
}

.shipping-empty-state strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.shipping-empty-state p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.product-shipping-card {
  border-color: rgba(41, 35, 29, 0.12);
  background: #fbfaf8;
}

.product-shipping-card.is-custom {
  border-color: rgba(255, 102, 28, 0.28);
  background: #fff8f3;
}

.product-shipping-head {
  align-items: center;
}

.product-shipping-head strong,
.product-shipping-head small {
  display: block;
}

.product-shipping-head strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.product-shipping-head small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.shipping-custom-toggle {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.shipping-custom-toggle input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--orange);
}

.product-shipping-grid {
  margin-top: 14px;
}

.product-shipping-grid input:disabled {
  border-color: rgba(41, 35, 29, 0.08);
  background: #efeeeb;
  color: #77726c;
  opacity: 1;
}

.product-shipping-foot {
  align-items: center;
  margin-top: 10px;
  border-top: 1px solid rgba(41, 35, 29, 0.09);
  padding-top: 10px;
}

.product-shipping-foot small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 1380px) {
  .builder-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .builder-head-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .builder-head {
    grid-template-columns: 1fr;
  }

  .builder-head-actions {
    justify-content: flex-start;
  }

  .constructor-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .print-setting-labels-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-print-settings-link {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  }

  .shipping-default-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .shipping-override-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .shipping-override-row > b {
    grid-column: 2 / 3;
  }

  .product-print-settings-link .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar,
  .main,
  .site-manager-topbar,
  .site-manager-panel,
  .builder-shell,
  .constructor-overview,
  .builder-tabs,
  .builder-grid,
  .editor-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .site-manager-topbar {
    align-items: stretch;
  }

  .site-switcher {
    width: 100%;
  }

  .site-manager-panel > .tabs,
  .builder-tabs {
    top: 6px;
  }

  .builder-list,
  .catalog-manager-list,
  .print-settings-groups {
    position: static;
    max-height: 420px;
    overflow: auto;
  }

  .builder-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .print-settings-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .print-settings-group-list {
    max-height: 330px;
  }

  .sidebar {
    padding: 14px 16px;
  }

  .sidebar .brand {
    margin-bottom: 14px;
  }

  .sidebar .nav-block {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .sidebar .nav-button {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding: 7px 8px;
    border-radius: 7px;
    font-size: 12px;
    text-align: center;
  }

  .sidebar .nav-button:hover,
  .sidebar .nav-button.is-active {
    transform: none;
  }

  .sidebar .nav-dot,
  .sidebar-note {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-manager-topbar {
    min-height: 0;
    padding: 15px;
  }

  .site-manager-topbar h1 {
    font-size: 28px;
  }

  .site-manager-panel {
    padding: 8px;
  }

  .builder-head {
    padding: 12px;
  }

  .catalog-order-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-order-actions .button {
    width: 100%;
  }

  .builder-head-actions,
  .builder-head-actions .button,
  .builder-head-actions > a,
  .builder-tools-menu {
    width: 100%;
  }

  .builder-tools-menu > summary {
    width: 100%;
  }

  .builder-tools-menu > div {
    position: static;
    width: 100%;
    margin-top: 6px;
  }

  .constructor-overview .constructor-shell {
    margin: 0 8px 8px;
  }

  .constructor-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .constructor-preview-card iframe {
    height: 300px;
  }

  .product-simple-head .actions {
    flex-wrap: wrap;
  }

  .print-settings-section-head,
  .print-settings-editor__head,
  .print-settings-groups__head,
  .print-settings-note {
    align-items: stretch;
    flex-direction: column;
  }

  .print-setting-label-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .print-setting-visibility {
    grid-column: 2;
  }

  .print-setting-value-row,
  .product-print-settings-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .shipping-manager-head,
  .product-shipping-head,
  .product-shipping-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .shipping-default-count,
  .shipping-custom-toggle {
    align-self: flex-start;
  }

  .shipping-dimension-grid,
  .product-shipping-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shipping-package-summary {
    align-items: flex-start;
  }

  .shipping-override-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .shipping-override-thumb {
    width: 42px;
    height: 42px;
  }

  .shipping-override-row > b,
  .shipping-override-row .button {
    grid-column: 2;
  }

  .shipping-override-row .button,
  .product-shipping-foot .button {
    width: 100%;
  }

  .product-print-settings-link .button {
    width: 100%;
  }
}

/* Device preview and manager-friendly SEO */
.preview-device-toggle {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
  padding: 2px;
  background: #ecebe7;
  border-radius: 6px;
}

.preview-device-toggle button {
  min-height: 26px;
  padding: 0 9px;
  color: #787670;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 850;
}

.preview-device-toggle button.is-active {
  color: #8f3b08;
  background: #fff;
  box-shadow: 0 1px 4px rgba(46, 38, 31, 0.12);
}

.constructor-preview-stage {
  min-width: 0;
  min-height: 252px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  background: #dddcd8;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.constructor-preview-card .constructor-preview-stage iframe {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 252px;
  background: #fff;
  border: 0;
  border-radius: 0;
}

.constructor-preview-stage.is-mobile {
  min-height: 600px;
  padding: 14px;
  background: #d4d3cf;
}

.constructor-preview-card .constructor-preview-stage.is-mobile iframe {
  width: min(390px, 100%);
  height: 680px;
  border: 1px solid #aaa7a0;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(35, 31, 27, 0.22);
}

.seo-manager {
  display: grid;
  gap: 12px;
}

.seo-global-card,
.seo-page-editor {
  border-radius: 8px;
}

.seo-ready-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #176e48;
  background: rgba(235, 250, 242, 0.86);
  border: 1px solid rgba(38, 133, 89, 0.2);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
}

.seo-default-fields {
  margin-top: 12px;
}

.seo-builder-grid {
  align-items: start;
}

.seo-page-list {
  align-self: start;
}

.seo-page-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.seo-page-button > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.seo-page-button > span strong,
.seo-page-button > span small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-page-button > i {
  padding: 4px 6px;
  color: #898781;
  background: #eeede9;
  border-radius: 4px;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.seo-page-button > i.is-ready {
  color: #176e48;
  background: #e8f6ee;
}

.seo-page-head {
  margin-bottom: 14px;
}

.seo-share-image {
  margin-top: 2px;
}

.seo-share-image .image-field {
  margin: 10px;
}

.seo-search-preview {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #dedfdc;
  border-left: 3px solid var(--orange);
  border-radius: 6px;
}

.seo-search-preview small {
  color: #328254;
  font-size: 11px;
}

.seo-search-preview strong {
  color: #2454a5;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
}

.seo-search-preview p {
  margin: 0;
  color: #5f625f;
  font-size: 12px;
  line-height: 1.5;
}

.product-seo-grid {
  display: grid;
  gap: 11px;
  padding: 12px;
}

.product-seo-grid .builder-check {
  justify-self: start;
}

@media (max-width: 760px) {
  .preview-browser-bar {
    flex-wrap: wrap;
    padding-block: 6px;
  }

  .preview-device-toggle {
    width: 100%;
    margin-left: 0;
  }

  .preview-device-toggle button {
    flex: 1;
  }

  .constructor-preview-stage.is-mobile {
    min-height: 540px;
    padding: 8px;
  }

  .constructor-preview-card .constructor-preview-stage.is-mobile iframe {
    height: 620px;
  }

  .seo-ready-badge {
    align-self: flex-start;
  }
}

/* Manager workspace v2: fewer layers, clearer daily workflow. */
.app-shell {
  grid-template-columns: 228px minmax(0, 1fr);
}

.sidebar {
  padding: 18px;
}

.brand {
  gap: 10px;
  margin-bottom: 22px;
}

.brand-mark {
  width: 62px;
  height: 43px;
  border-radius: 8px;
  box-shadow: none;
}

.brand strong {
  font-size: 16px;
}

.brand span span {
  font-size: 10px;
}

.nav-block {
  gap: 5px;
}

.nav-button {
  min-height: 43px;
  border-radius: 7px;
  padding: 0 11px;
  font-size: 13px;
}

.sidebar-role {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 7px;
  padding: 10px;
  font-size: 10px;
  line-height: 1.2;
}

.sidebar-role > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ff7a1a;
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.13);
}

.main {
  padding: 18px 22px 44px;
}

.site-workspace-bar {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 320px) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 10px 12px;
}

.site-workspace-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-workspace-mark {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 6px;
  background: #fff0e5;
  padding: 0 10px;
  color: #b74d09;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.site-workspace-title > span:last-child,
.site-workspace-title strong,
.site-workspace-title small {
  min-width: 0;
  display: block;
}

.site-workspace-title strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-workspace-title small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.site-switcher {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 10px;
}

.site-switcher select {
  min-height: 38px;
  border-radius: 6px;
  padding-block: 7px;
}

.site-workspace-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.site-workspace-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.site-workspace-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bdb7b1;
}

.site-workspace-status.is-ready i {
  background: #24a169;
}

.site-workspace-status.is-warning i {
  background: #ef6a1d;
}

.site-manager-panel {
  margin-top: 10px;
  padding: 0;
}

.site-manager-nav,
.content-manager-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px;
  box-shadow: 0 8px 24px rgba(47, 34, 24, 0.06);
  backdrop-filter: blur(14px);
}

.site-manager-nav {
  position: sticky;
  z-index: 55;
  top: 8px;
}

.content-manager-nav {
  position: sticky;
  z-index: 50;
  top: 59px;
}

.site-manager-nav > .tabs,
.content-manager-nav > .builder-tabs {
  position: static;
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 3px;
  margin: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  scrollbar-width: none;
  backdrop-filter: none;
}

.site-manager-nav .tab,
.content-manager-nav .tab {
  min-height: 35px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 12px;
  color: #6d6660;
  font-size: 12px;
  box-shadow: none;
}

.site-manager-nav .tab:hover,
.content-manager-nav .tab:hover {
  background: #f4f1ee;
  color: var(--ink);
}

.site-manager-nav .tab.is-active,
.content-manager-nav .tab.is-active,
.site-secondary-menu.is-active > summary,
.builder-section-menu.is-active > summary {
  background: #fff0e5;
  color: #ad4607;
  box-shadow: inset 0 -2px 0 #ff6d1d;
}

.site-secondary-menu,
.builder-section-menu,
.builder-tools-menu {
  position: relative;
  flex: 0 0 auto;
}

.site-secondary-menu > summary,
.builder-section-menu > summary,
.builder-tools-menu > summary {
  cursor: pointer;
  list-style: none;
}

.site-secondary-menu > summary::-webkit-details-marker,
.builder-section-menu > summary::-webkit-details-marker,
.builder-tools-menu > summary::-webkit-details-marker {
  display: none;
}

.site-secondary-menu > div,
.builder-section-menu > div,
.builder-tools-menu > div {
  position: absolute;
  z-index: 80;
  top: calc(100% + 7px);
  right: 0;
  width: 236px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 20px 48px rgba(40, 28, 19, 0.18);
}

.site-secondary-menu > div .tab,
.builder-section-menu > div .tab,
.builder-tools-menu > div button,
.builder-tools-menu > div a {
  width: 100%;
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 0 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  box-shadow: none;
}

.site-secondary-menu > div .tab:hover,
.builder-section-menu > div .tab:hover,
.builder-tools-menu > div button:hover,
.builder-tools-menu > div a:hover {
  background: #fff0e5;
  color: #a64507;
}

.builder-shell {
  gap: 9px;
  margin-top: 9px;
}

.manager-command-bar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 5px 3px 9px;
}

.manager-command-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.manager-command-context > span:first-child {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-command-bar .content-save-state {
  min-height: 24px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 10px;
}

.manager-command-actions {
  flex-wrap: nowrap;
  gap: 6px;
}

.manager-command-actions .button {
  min-height: 36px;
  border-radius: 6px;
  padding: 0 12px;
  white-space: nowrap;
}

.manager-command-actions .button:hover {
  transform: none;
}

.manager-log {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.manager-log > summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.manager-log .log {
  margin: 0 10px 10px;
}

.builder-grid {
  grid-template-columns: minmax(280px, 310px) minmax(0, 1fr);
  gap: 10px;
}

.builder-list,
.catalog-manager-list {
  top: 111px;
  max-height: calc(100vh - 124px);
}

.editor-card.builder-form-card {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.editor-card.builder-form-card > .form-grid,
.editor-card.builder-form-card .product-simple-head,
.editor-card.builder-form-card .product-simple-card,
.editor-card.builder-form-card .product-print-settings-link,
.editor-card.builder-form-card .product-shipping-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.catalog-order-editor {
  margin-bottom: 9px;
}

.catalog-order-editor > summary {
  min-height: 48px;
  padding: 8px 12px;
}

.catalog-order-editor > summary strong {
  font-size: 13px;
}

.catalog-order-editor > summary small {
  font-size: 10px;
}

.catalog-order-editor--sidebar {
  height: max-content;
  min-height: 50px;
  margin: 0 4px 8px 0;
  background: #fff;
}

.catalog-order-editor--sidebar > summary {
  min-height: 42px;
  padding: 7px 9px;
}

.catalog-order-editor--sidebar .catalog-order-editor__count {
  min-width: 28px;
  padding: 4px 7px;
  text-align: center;
}

.catalog-order-editor--sidebar .catalog-order-grid {
  grid-template-columns: minmax(0, 1fr);
  max-height: 330px;
  overflow-y: auto;
  padding: 7px;
}

.catalog-order-editor--sidebar .catalog-order-row {
  gap: 6px;
  padding: 7px 8px;
}

.catalog-order-editor--sidebar .catalog-order-row__field,
.catalog-order-editor--sidebar .catalog-order-row__field input {
  width: 66px;
  flex-basis: 66px;
}

.catalog-order-editor--sidebar .catalog-order-actions {
  align-items: stretch;
  flex-direction: column;
  gap: 7px;
  padding: 8px;
}

.catalog-order-editor--sidebar .catalog-order-actions .button {
  width: 100%;
}

.list-head {
  margin-bottom: 8px;
  border-radius: 8px;
  padding: 11px;
}

.catalog-filter-search {
  margin-top: 10px;
}

.catalog-add-actions {
  margin-bottom: 8px;
}

.catalog-add-actions .button {
  width: 100%;
  min-height: 38px;
}

.product-simple-head {
  min-height: 66px;
  margin-bottom: 0;
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.product-simple-head__copy {
  min-width: 0;
}

.product-simple-head__copy > span {
  display: block;
  overflow: hidden;
  margin-bottom: 3px;
  color: #9a7560;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-simple-head h2 {
  overflow: hidden;
  margin: 0;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-simple-card {
  border-radius: 8px;
  background: #fff;
  padding: 13px;
}

.product-main-card {
  background: #fff;
}

.product-list-button {
  min-height: 70px;
  border-radius: 7px;
}

.builder-save-dock {
  bottom: 10px;
  border-radius: 8px;
  padding: 10px 12px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 204px minmax(0, 1fr);
  }

  .site-workspace-bar {
    grid-template-columns: minmax(190px, 1fr) minmax(190px, 280px);
  }

  .site-workspace-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .builder-grid {
    grid-template-columns: minmax(260px, 290px) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: relative;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
  }

  .sidebar .brand {
    margin: 0;
  }

  .sidebar .brand > span:last-child,
  .sidebar-role {
    display: none;
  }

  .sidebar .nav-block {
    display: flex;
    justify-content: flex-end;
  }

  .main {
    padding: 12px 14px 36px;
  }

  .site-workspace-bar {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 280px);
  }

  .site-workspace-actions {
    grid-column: auto;
  }

  .site-workspace-status {
    display: none;
  }

  .builder-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .builder-list,
  .catalog-manager-list {
    position: static;
    max-height: 430px;
  }
}

@media (max-width: 680px) {
  .sidebar {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .brand-mark {
    width: 52px;
    height: 38px;
  }

  .sidebar .nav-button {
    min-height: 38px;
    padding: 0 7px;
    font-size: 10px;
  }

  .site-workspace-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .site-switcher {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .site-workspace-actions {
    display: none;
  }

  .site-manager-nav,
  .content-manager-nav {
    position: static;
  }

  .site-manager-nav .tab,
  .content-manager-nav .tab {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .site-secondary-menu > div,
  .builder-section-menu > div,
  .builder-tools-menu > div {
    right: 0;
    width: min(240px, calc(100vw - 28px));
  }

  .manager-command-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .manager-command-context {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .manager-command-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 42px;
  }

  .manager-command-actions .button,
  .manager-command-actions .builder-tools-menu {
    width: 100%;
  }

  .builder-tools-menu > summary {
    width: 100%;
    padding: 0;
  }

  .product-simple-head {
    display: grid;
  }

  .product-simple-head .actions {
    justify-content: space-between;
  }

  .product-simple-head h2 {
    white-space: normal;
  }
}

/* One working toolbar for content sections and publishing. */
.content-workspace-toolbar {
  position: sticky;
  z-index: 50;
  top: 59px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 5px;
  box-shadow: 0 8px 24px rgba(47, 34, 24, 0.06);
  backdrop-filter: blur(14px);
}

.content-workspace-toolbar .content-manager-nav {
  position: static;
  flex: 1 1 auto;
  overflow: visible;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.content-workspace-toolbar .manager-command-bar {
  min-height: 0;
  flex: 0 0 auto;
  gap: 8px;
  border: 0;
  padding: 0;
}

.content-workspace-toolbar .content-save-state {
  max-width: 136px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-workspace-empty {
  padding: 0 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .content-workspace-toolbar .content-save-state {
    display: none;
  }
}

@media (max-width: 900px) {
  .content-workspace-toolbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  .content-workspace-toolbar .content-manager-nav,
  .content-workspace-toolbar .manager-command-bar {
    width: 100%;
  }

  .content-workspace-toolbar .manager-command-bar {
    align-items: center;
    flex-direction: row;
    justify-content: flex-end;
  }
}

@media (max-width: 680px) {
  .content-workspace-toolbar .manager-command-bar,
  .content-workspace-toolbar .manager-command-actions {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .content-workspace-toolbar .manager-command-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-workspace-toolbar .manager-command-actions > * {
    min-width: 0;
  }
}

/* Manager palette v3: neutral workspace, brand orange only for intent. */
:root {
  --bg: #f2f4f5;
  --ink: #171a1d;
  --ink-2: #252b30;
  --text: #20252a;
  --muted: #5f6972;
  --subtle: #7b858e;
  --surface: rgba(255, 255, 255, 0.97);
  --surface-strong: #ffffff;
  --line: rgba(35, 47, 56, 0.12);
  --line-strong: rgba(35, 47, 56, 0.22);
  --orange: #e95a1b;
  --orange-action: #c9470a;
  --orange-soft: rgba(233, 90, 27, 0.09);
  --steel: #476579;
  --steel-soft: #edf2f4;
  --green: #137a52;
  --red: #b9382a;
  --shadow: 0 10px 28px rgba(24, 34, 41, 0.08);
  --shadow-strong: 0 16px 38px rgba(24, 34, 41, 0.12);
}

html {
  background: var(--bg);
}

body {
  min-width: 0;
  background: var(--bg);
  color: var(--text);
}

* {
  scrollbar-color: #b6bec4 transparent;
}

.sidebar {
  border-right-color: #30363b;
  background: #191c1f;
}

.sidebar::before {
  display: none;
}

.brand-mark {
  border-color: #3b4248;
  background: #111315;
}

.brand span span {
  color: #aeb6bc;
}

.sidebar .nav-button {
  border-color: transparent;
  color: #c4cbd0;
  font-weight: 800;
}

.sidebar .nav-button:hover {
  border-color: #373e44;
  background: #23282c;
  color: #ffffff;
  transform: none;
}

.sidebar .nav-button.is-active {
  border-color: #3c444a;
  background: #292e33;
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--orange);
  transform: none;
}

.nav-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  box-shadow: none;
}

.sidebar-role {
  border-color: #363d43;
  background: #202428;
  color: #bcc4c9;
}

.sidebar-role > span {
  background: var(--orange);
  box-shadow: none;
}

.site-workspace-bar,
.site-manager-nav,
.content-workspace-toolbar {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 2px 9px rgba(24, 34, 41, 0.06);
  backdrop-filter: none;
}

.site-workspace-bar {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.site-workspace-mark {
  border-left: 3px solid var(--orange);
  background: var(--steel-soft);
  padding-left: 7px;
  color: #405561;
}

.site-manager-nav .tab,
.content-manager-nav .tab {
  color: #58636c;
  font-weight: 800;
}

.site-manager-nav .tab:hover,
.content-manager-nav .tab:hover {
  background: #f3f5f6;
  color: var(--ink);
}

.site-manager-nav .tab.is-active,
.content-manager-nav .tab.is-active,
.site-secondary-menu.is-active > summary,
.builder-section-menu.is-active > summary {
  background: #eef1f3;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--orange);
}

.site-secondary-menu > div,
.builder-section-menu > div,
.builder-tools-menu > div {
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(24, 34, 41, 0.14);
}

.site-secondary-menu > div .tab:hover,
.builder-section-menu > div .tab:hover,
.builder-tools-menu > div button:hover,
.builder-tools-menu > div a:hover {
  background: #f1f4f5;
  color: var(--ink);
}

.topbar,
.panel,
.card,
.editor-card:not(.builder-form-card) {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.button {
  border-color: #ced5d9;
  background: #ffffff;
  color: var(--ink);
  font-weight: 850;
  box-shadow: none;
}

.button:hover {
  border-color: #aeb8bf;
  background: #f5f7f8;
  box-shadow: 0 3px 9px rgba(24, 34, 41, 0.08);
  transform: none;
}

.button.primary {
  border-color: var(--orange-action);
  background: var(--orange-action);
  color: #ffffff;
  box-shadow: 0 5px 13px rgba(159, 52, 4, 0.18);
}

.button.primary:hover {
  border-color: #b63d07;
  background: #b63d07;
  box-shadow: 0 6px 15px rgba(145, 45, 2, 0.2);
}

.button.danger {
  border-color: rgba(185, 56, 42, 0.28);
  background: #ffffff;
  color: #a93428;
}

.button.danger:hover {
  border-color: rgba(185, 56, 42, 0.5);
  background: #fff3f2;
  box-shadow: none;
}

input,
textarea,
select {
  border-color: #cdd4d8;
  background: #ffffff;
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: #87919a;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--steel);
  outline: none;
  box-shadow: 0 0 0 3px rgba(71, 101, 121, 0.14);
}

.list-head,
.product-simple-head,
.product-simple-card,
.product-edit-panel,
.product-shipping-card,
.catalog-order-editor {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: none;
}

.list-button,
.product-list-button {
  border-color: #e0e5e8;
  background: #ffffff;
  box-shadow: none;
}

.list-button:hover,
.product-list-button:hover {
  border-color: #b8c1c7;
  background: #f7f9fa;
  box-shadow: none;
  transform: none;
}

.list-button.is-active,
.product-list-button.is-active {
  border-color: #9ba7af;
  background: #f2f5f6;
  box-shadow: inset 3px 0 0 var(--orange);
}

.product-list-status.is-visible {
  border: 1px solid rgba(19, 122, 82, 0.18);
  background: #e9f5ef;
  color: #126b49;
}

.product-list-status.is-hidden {
  border: 1px solid #dfe4e7;
  background: #eff2f3;
  color: #606b73;
}

.builder-check input {
  accent-color: var(--green);
}

.content-save-state.is-dirty {
  border-color: rgba(201, 71, 10, 0.24);
  background: #fff2e9;
  color: #a53b08;
}

.content-save-state.is-dirty span {
  background: var(--orange-action);
  box-shadow: none;
}

.kicker {
  background: #fff0e6;
  color: #a83c09;
}

.analytics-kpis article {
  border-color: var(--line);
  border-top-color: var(--metric-accent, #526572);
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(24, 34, 41, 0.04);
}

.analytics-kpis article:nth-child(1) { --metric-accent: #526572; }
.analytics-kpis article:nth-child(2) { --metric-accent: #6a7f8d; }
.analytics-kpis article:nth-child(3) { --metric-accent: #343b40; }
.analytics-kpis article:nth-child(4) { --metric-accent: var(--orange); }
.analytics-kpis article:nth-child(5) { --metric-accent: var(--green); }
.analytics-kpis article:nth-child(6) { --metric-accent: var(--steel); }

.analytics-card-head span {
  color: #526572;
}

.analytics-chart i.is-view,
.analytics-legend .is-view::before {
  background: #526572;
}

.analytics-chart i.is-cart,
.analytics-legend .is-cart::before {
  background: var(--orange);
}

.analytics-chart i.is-order,
.analytics-legend .is-order::before {
  background: var(--green);
}

.analytics-funnel-row > span {
  background: #e8edef;
}

.analytics-funnel-row > span i {
  background: var(--steel);
}

.empty {
  border-color: #cbd3d8;
  background: #f7f9fa;
}

@media (max-width: 900px) {
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid #30363b;
  }
}

/* Manager catalog ordering and document library */
.catalog-order-row__controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.catalog-order-icon,
.document-folder-actions button {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #3e4a52;
  background: #f4f6f7;
  border: 1px solid #d6dde1;
  border-radius: 5px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.catalog-order-icon:hover,
.document-folder-actions button:hover {
  color: #bd430c;
  background: #fff3eb;
  border-color: #efb08e;
}

.catalog-order-icon:disabled,
.document-folder-actions button:disabled {
  opacity: .35;
  cursor: default;
}

.catalog-category-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  padding: 8px;
  border-top: 1px solid #e2e7ea;
}

.catalog-category-add input {
  min-width: 0;
  min-height: 36px;
}

.product-order-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -2px;
  padding: 9px 11px;
  color: #60707b;
  background: #f5f7f8;
  border: 1px solid #dfe5e8;
  border-radius: 6px;
  font-size: 12px;
}

.product-order-tools > span {
  margin-right: auto;
  font-weight: 700;
}

.document-library-manager {
  display: grid;
  grid-template-columns: 220px 320px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.documents-workspace-page {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.documents-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #dce2e5;
  border-radius: 8px;
}

.documents-workspace-head h1 {
  margin: 3px 0 5px;
  font-size: 27px;
  line-height: 1.12;
}

.documents-workspace-head p {
  margin: 0;
  color: #69757c;
  font-size: 13px;
}

.documents-workspace-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.documents-workspace-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr)) auto;
  gap: 1px;
  overflow: hidden;
  background: #dce2e5;
  border: 1px solid #dce2e5;
  border-radius: 8px;
}

.documents-workspace-stats > div {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  background: #fff;
}

.documents-workspace-stats span {
  color: #768188;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.documents-workspace-stats strong {
  color: #20282d;
  font-size: 21px;
}

.documents-workspace-stats > .button {
  min-height: 100%;
  border-radius: 0;
}

.documents-workspace-page .document-library-manager {
  grid-template-columns: 220px 350px minmax(0, 1fr);
}

.document-folder-panel,
.document-file-panel,
.document-editor-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid #dce2e5;
  border-radius: 8px;
}

.document-folder-panel,
.document-file-panel {
  position: sticky;
  top: 111px;
  max-height: calc(100vh - 124px);
  overflow: auto;
}

.document-folder-panel .list-head,
.document-file-panel .list-head {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e4e8ea;
  border-radius: 0;
}

.document-folder-list,
.document-file-list {
  display: grid;
  gap: 5px;
  padding: 8px;
}

.document-folder-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 8px;
  color: #26333b;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.document-folder-button:hover {
  background: #f5f7f8;
}

.document-folder-button.is-active {
  color: #a43b0d;
  background: #fff1e8;
  border-color: #f1c2a7;
}

.is-document-dragging .document-folder-button {
  border-color: #ead8cd;
  border-style: dashed;
}

.document-folder-button.is-drop-target {
  color: #8f3108;
  background: #ffe4d3;
  border-color: #ef6b2e;
  border-style: solid;
  box-shadow: 0 8px 18px rgba(210, 81, 24, 0.16);
  transform: translateY(-1px);
}

.document-folder-button.is-drop-target .document-folder-icon {
  background: #ef7b3d;
}

.document-folder-button.is-drop-target .document-folder-icon::before {
  background: #c94f18;
}

.document-folder-button > span:last-child,
.document-file-button > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.document-folder-button strong,
.document-file-button strong,
.document-file-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-folder-button strong {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.25;
}

.document-folder-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-folder-button small,
.document-file-button small {
  color: #77838b;
  font-size: 10px;
}

.document-folder-icon {
  position: relative;
  width: 28px;
  height: 21px;
  background: #f0a679;
  border-radius: 3px;
}

.document-folder-icon::before {
  content: '';
  position: absolute;
  left: 2px;
  top: -5px;
  width: 12px;
  height: 7px;
  background: #dc7840;
  border-radius: 3px 3px 0 0;
}

.document-folder-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid #e4e8ea;
}

.document-folder-create input {
  min-width: 0;
}

.document-folder-actions {
  display: grid;
  grid-template-columns: 34px 34px minmax(0, 1fr);
  gap: 5px;
  padding: 0 8px 8px;
}

.document-folder-actions button:nth-child(3),
.document-folder-actions button:nth-child(4) {
  width: auto;
  padding: 0 7px;
  font-size: 10px;
}

.document-folder-actions button:nth-child(4) {
  grid-column: 1 / -1;
}

.document-folder-actions button.is-danger {
  color: #a93428;
}

.document-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.document-file-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.document-nomenclature-search {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #e4e8ea;
}

.document-nomenclature-search > span {
  color: #747f86;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.document-nomenclature-search input {
  width: 100%;
  min-height: 35px;
  padding-right: 34px;
}

.document-nomenclature-search button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #6b7479;
  background: transparent;
  border: 0;
  font-size: 18px;
  cursor: pointer;
}

.document-file-button {
  display: grid;
  grid-template-columns: 14px 42px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.document-file-button[draggable='true'] {
  cursor: grab;
}

.document-file-button[draggable='true']:active {
  cursor: grabbing;
}

.document-file-button.is-dragging {
  opacity: 0.42;
  transform: scale(0.985);
}

.document-drag-handle {
  display: grid;
  place-items: center;
  align-self: stretch;
  color: #9aa3a8;
  cursor: grab;
  font-size: 16px;
  line-height: 1;
  touch-action: none;
  user-select: none;
}

.document-file-button:hover .document-drag-handle,
.document-file-button.is-active .document-drag-handle {
  color: #d85d24;
}

.document-file-type {
  display: grid;
  place-items: center;
  width: 40px;
  height: 31px;
  color: #a83c0a;
  background: #fff0e6;
  border: 1px solid #f0c4aa;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 900;
}

.document-file-code {
  color: #b64a16 !important;
  font-size: 9px !important;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.document-record-actions {
  gap: 7px !important;
}

.document-order-buttons {
  display: inline-grid;
  grid-template-columns: repeat(2, 34px);
  gap: 5px;
}

.document-order-buttons button {
  display: grid;
  place-items: center;
  min-height: 36px;
  color: #364148;
  background: #f5f7f8;
  border: 1px solid #d8dee1;
  border-radius: 5px;
  font-weight: 900;
  cursor: pointer;
}

.document-order-buttons button:hover {
  color: #b64210;
  background: #fff1e8;
  border-color: #efb38f;
}

.document-folder-empty {
  min-height: 150px;
}

.document-editor-panel {
  border: 0;
  position: sticky;
  top: 111px;
  max-height: calc(100vh - 124px);
  overflow: auto;
}

.document-editor-panel .product-simple-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.document-editor-panel .product-simple-head h2 {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.2;
}

.document-editor-panel .product-simple-head .actions {
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Visual editor: shared content and block library */
.visual-library-heading {
  position: static;
  min-height: 54px;
  background: #fff7f2;
  border-bottom-color: #f0c8b4;
}

.visual-block-library {
  display: grid;
  gap: 5px;
  padding: 8px;
  background: #fff;
  border-bottom: 1px solid var(--visual-border);
}

.visual-block-library > button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 7px;
  color: #373a3c;
  text-align: left;
  background: #fafafa;
  border: 1px solid #dedfdd;
  border-radius: 6px;
  cursor: pointer;
}

.visual-block-library > button:hover {
  color: #9e3916;
  background: #fff2ec;
  border-color: #efb99f;
}

.visual-block-library > button > i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--visual-accent);
  border-radius: 5px;
  font-size: 17px;
  font-style: normal;
}

.visual-block-library > button > span {
  display: grid;
  gap: 2px;
}

.visual-block-library strong {
  font-size: 11px;
}

.visual-block-library small {
  color: #807d77;
  font-size: 9px;
  line-height: 1.35;
}

.visual-managed-binding {
  display: grid;
  gap: 7px;
  margin: 12px;
  padding: 11px;
  color: #33413f;
  background: #edf7f2;
  border: 1px solid #bbdecf;
  border-radius: 6px;
}

.visual-managed-binding > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.visual-managed-binding > span i {
  width: 8px;
  height: 8px;
  background: #21865f;
  border-radius: 50%;
}

.visual-managed-binding strong {
  font-size: 10px;
}

.visual-managed-binding p {
  margin: 0;
  color: #61716b;
  font-size: 9px;
  line-height: 1.45;
}

.visual-managed-actions,
.visual-button-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.visual-managed-actions button,
.visual-button-presets button {
  min-height: 29px;
  padding: 5px 8px;
  color: #38534a;
  background: #fff;
  border: 1px solid #b8d5c9;
  border-radius: 4px;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.visual-managed-actions button:first-child {
  flex: 1 0 100%;
}

.visual-managed-actions button.is-danger {
  color: #a93428;
  border-color: #e4b7b1;
}

.visual-managed-actions button:disabled {
  opacity: .35;
  cursor: default;
}

.visual-button-presets button {
  flex: 1;
  color: #8f3515;
  border-color: #e7bba7;
}

@media (max-width: 1180px) {
  .documents-workspace-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .documents-workspace-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .documents-workspace-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .documents-workspace-stats > .button {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  .document-library-manager,
  .documents-workspace-page .document-library-manager {
    grid-template-columns: 210px minmax(280px, 1fr);
  }

  .document-editor-panel {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 820px) {
  .documents-workspace-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-library-manager,
  .documents-workspace-page .document-library-manager {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-folder-panel,
  .document-file-panel {
    position: static;
    max-height: none;
  }

  .document-editor-panel {
    grid-column: auto;
  }

  .catalog-order-row__controls {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .product-order-tools > span {
    flex-basis: 100%;
  }
}

/* Manager workspace: direct navigation, dashboard and bulk catalog */
.site-manager-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: block;
  overflow: hidden;
  margin: 0 0 14px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #dedbd6;
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(33, 30, 27, 0.06);
  backdrop-filter: blur(14px);
}

.site-manager-nav > .tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-manager-nav .tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 54px;
  padding: 0 15px;
  color: #62615e;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 800;
}

.site-manager-nav .tab::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  background: transparent;
  content: '';
}

.site-manager-nav .tab:hover {
  color: #a83d11;
  background: #fff8f3;
}

.site-manager-nav .tab.is-active {
  color: #a83d11;
  background: #fff8f3;
}

.site-manager-nav .tab.is-active::after {
  background: var(--orange);
}

.manager-dashboard,
.catalog-workspace-page,
.publishing-workspace {
  display: grid;
  gap: 14px;
}

.manager-dashboard__hero,
.manager-page-head,
.publish-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 7px;
}

.manager-dashboard__hero {
  min-height: 178px;
  color: #fff;
  background: linear-gradient(105deg, #252625 0%, #30302e 64%, #783515 100%);
  border-color: #363532;
}

.manager-dashboard__hero h1,
.manager-page-head h1 {
  margin: 5px 0 8px;
  letter-spacing: 0;
}

.manager-dashboard__hero h1 {
  max-width: 680px;
  color: #fff;
  font-size: clamp(27px, 3vw, 42px);
}

.manager-dashboard__hero p,
.manager-page-head p,
.publish-action-card p {
  max-width: 720px;
  margin: 0;
  line-height: 1.55;
}

.manager-dashboard__hero p {
  color: rgba(255, 255, 255, 0.68);
}

.manager-dashboard__hero .constructor-kicker {
  color: #ffb183;
}

.manager-dashboard__hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 390px;
}

.manager-dashboard__hero-actions .button:not(.primary) {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.manager-dashboard__metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.manager-metric {
  --metric-color: #d85d24;
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 132px;
  padding: 17px;
  overflow: hidden;
  color: #272825;
  text-align: left;
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.manager-metric::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--metric-color);
  content: '';
}

.manager-metric:hover {
  border-color: color-mix(in srgb, var(--metric-color) 45%, #dedbd6);
  box-shadow: 0 12px 24px rgba(32, 29, 25, 0.08);
  transform: translateY(-2px);
}

.manager-metric.is-green { --metric-color: #2c8d69; }
.manager-metric.is-steel { --metric-color: #77858c; }
.manager-metric.is-slate { --metric-color: #586773; }
.manager-metric.is-dark { --metric-color: #2c2e2e; }

.manager-metric > span,
.manager-metric > small {
  color: #75716d;
  font-size: 10px;
}

.manager-metric > span {
  font-weight: 850;
  text-transform: uppercase;
}

.manager-metric > strong {
  font-size: 30px;
  line-height: 1;
}

.manager-metric > i {
  align-self: end;
  color: var(--metric-color);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.manager-dashboard__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 14px;
  align-items: start;
}

.manager-readiness,
.manager-quick-actions {
  padding: 24px;
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 7px;
}

.manager-readiness__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.manager-readiness__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: #278462;
  border-radius: 50%;
  font-size: 21px;
  font-weight: 900;
}

.manager-readiness.has-errors .manager-readiness__mark {
  background: #c94a32;
}

.manager-readiness h2,
.manager-quick-actions h2,
.publish-action-card h2 {
  margin: 4px 0 5px;
  font-size: 21px;
}

.manager-readiness p {
  margin: 0;
  color: #7c7872;
  font-size: 11px;
}

.manager-readiness__list {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.manager-readiness__item {
  display: grid;
  grid-template-columns: 66px minmax(150px, 0.45fr) minmax(190px, 1fr) 36px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px;
  color: #31322f;
  text-align: left;
  background: #faf9f7;
  border: 1px solid #e4e0da;
  border-radius: 5px;
  cursor: pointer;
}

.manager-readiness__item:hover {
  background: #fff8f3;
  border-color: #e9b18f;
}

.manager-readiness__item > span {
  color: #b83e28;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.manager-readiness__item.is-warning > span {
  color: #a75b1d;
}

.manager-readiness__item small {
  color: #7a7772;
  line-height: 1.35;
}

.manager-readiness__item b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #a73d25;
  background: #fff0e9;
  border-radius: 50%;
}

.manager-readiness__success {
  margin-top: 18px;
  padding: 14px;
  color: #256a52;
  background: #edf7f2;
  border: 1px solid #c8e3d6;
  border-radius: 5px;
}

.manager-quick-actions {
  display: grid;
  gap: 7px;
}

.manager-quick-actions > button {
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 11px 13px;
  color: #2b2d2b;
  text-align: left;
  background: #f8f7f5;
  border: 1px solid #e4e0da;
  border-radius: 5px;
  cursor: pointer;
}

.manager-quick-actions > button:hover {
  color: #9f3912;
  background: #fff6f0;
  border-color: #edb798;
}

.manager-quick-actions > button span {
  color: #7b7772;
  font-size: 10px;
}

.manager-dashboard-loading {
  display: grid;
  place-items: center;
  min-height: 330px;
  gap: 6px;
  padding: 30px;
  color: #77736d;
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 7px;
  text-align: center;
}

.manager-dashboard-loading strong {
  color: #2c2d2b;
  font-size: 19px;
}

.manager-page-head h1 {
  font-size: 30px;
}

.publication-error-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  color: #a63e26;
  background: #fff3ed;
  border: 1px solid #efb89e;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.publication-error-chip span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  color: #fff;
  background: #c84a31;
  border-radius: 50%;
}

.publish-action-card.is-blocked {
  background: #fff9f6;
  border-color: #efb89e;
}

.catalog-workbench-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr)) auto;
  gap: 1px;
  overflow: hidden;
  background: #dedbd6;
  border: 1px solid #dedbd6;
  border-radius: 7px;
}

.catalog-workbench-summary > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 10px;
  min-height: 70px;
  padding: 12px 15px;
  background: #fff;
}

.catalog-workbench-summary > div.has-warning {
  background: #fff8f3;
}

.catalog-workbench-summary span,
.catalog-workbench-summary small {
  color: #7b7771;
  font-size: 9px;
}

.catalog-workbench-summary span {
  font-weight: 850;
  text-transform: uppercase;
}

.catalog-workbench-summary strong {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #292a28;
  font-size: 23px;
}

.catalog-workbench-summary .has-warning strong {
  color: #c54b2e;
}

.catalog-workbench-summary > .button {
  align-self: stretch;
  min-height: 70px;
  border: 0;
  border-radius: 0;
}

.catalog-workbench {
  display: grid;
  grid-template-columns: minmax(210px, 0.52fr) minmax(390px, 0.9fr) minmax(480px, 1.15fr);
  align-items: start;
  gap: 12px;
}

.catalog-navigation-pane,
.catalog-products-pane,
.catalog-editor-pane {
  min-width: 0;
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 7px;
}

.catalog-navigation-pane,
.catalog-products-pane {
  max-height: calc(100vh - 146px);
  overflow: auto;
}

.catalog-navigation-pane,
.catalog-editor-pane {
  position: sticky;
  top: 12px;
}

.catalog-editor-pane {
  max-height: calc(100vh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
}

.catalog-editor-pane .product-stock-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-editor-pane .product-reference-quick-add {
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  max-width: 100%;
}

.catalog-editor-pane .product-reference-quick-add > .ghost {
  grid-column: 1 / -1;
  width: 100%;
}

.catalog-product-drawer {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  justify-items: end;
  background: rgba(24, 24, 22, 0.42);
  backdrop-filter: blur(2px);
}

.catalog-product-drawer__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1120px, calc(100vw - 48px));
  height: 100dvh;
  overflow: hidden;
  background: #f6f5f2;
  border-left: 1px solid #d8d4ce;
  box-shadow: -18px 0 46px rgba(29, 27, 24, 0.2);
}

.catalog-product-drawer__header {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid #dedbd6;
}

.catalog-product-drawer__header > div:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.catalog-product-drawer__header span {
  color: #a2461c;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.catalog-product-drawer__header strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-product-drawer__actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.catalog-product-drawer__body {
  min-height: 0;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
}

.catalog-product-drawer__body > .form-grid,
.catalog-product-drawer__body .product-simple-head,
.catalog-product-drawer__body .product-simple-card,
.catalog-product-drawer__body .product-print-settings-link,
.catalog-product-drawer__body .product-shipping-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.catalog-product-drawer__body > form {
  margin: 0;
}

.catalog-pane-title {
  position: sticky;
  z-index: 4;
  top: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e2dfda;
  backdrop-filter: blur(10px);
}

.catalog-pane-title > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #fff;
  background: #e35c24;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.catalog-pane-title strong,
.catalog-pane-title small {
  display: block;
}

.catalog-pane-title strong {
  color: #2b2c29;
  font-size: 12px;
}

.catalog-pane-title small {
  margin-top: 2px;
  color: #827e78;
  font-size: 9px;
}

.catalog-navigation-pane .catalog-folder-browser,
.catalog-navigation-pane .catalog-order-editor {
  margin: 12px;
}

.catalog-products-pane .catalog-product-list {
  min-height: 360px;
}

.catalog-bulk-toolbar {
  display: grid;
  gap: 8px;
  padding: 11px;
  background: #f4f4f1;
  border-top: 1px solid #e0ddd8;
  border-bottom: 1px solid #e0ddd8;
}

.catalog-bulk-toolbar.has-selection {
  background: #fff4ec;
  border-color: #efc4a9;
}

.catalog-bulk-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e2d9d1;
  border-radius: 6px;
}

.catalog-bulk-price__copy {
  display: grid;
  align-self: center;
  gap: 3px;
}

.catalog-bulk-price__copy strong {
  color: #292a28;
  font-size: 11px;
}

.catalog-bulk-price__copy small {
  color: #7b7771;
  font-size: 9px;
  line-height: 1.35;
}

.catalog-bulk-price label {
  position: relative;
  display: grid;
  gap: 3px;
  color: #686a67;
  font-size: 9px;
  font-weight: 850;
}

.catalog-bulk-price input {
  min-height: 34px;
  padding-right: 28px;
}

.catalog-bulk-price label b {
  position: absolute;
  right: 10px;
  bottom: 9px;
  color: #777873;
  font-size: 11px;
}

.catalog-select-all,
.catalog-row-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f504d;
  font-size: 10px;
  font-weight: 850;
}

.catalog-select-all input,
.catalog-row-select input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
}

.catalog-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-bulk-actions select {
  min-height: 34px;
  min-width: 180px;
}

.catalog-table-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 76px 88px;
  gap: 8px;
  padding: 8px 10px;
  color: #88837d;
  background: #faf9f7;
  border-bottom: 1px solid #e5e1dc;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.catalog-table-head.is-browse {
  grid-template-columns: 54px minmax(0, 1fr) 76px 88px;
  padding-left: 12px;
}

.catalog-product-list {
  gap: 0;
  padding: 0;
}

.catalog-load-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #dedbd6;
  background: #faf9f7;
  padding: 11px 13px;
}

.catalog-load-more span {
  color: #77736e;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 520px) {
  .builder-save-dock.is-visible {
    display: block;
    bottom: 6px;
    padding: 7px;
  }

  .builder-save-dock > div:first-child {
    display: none;
  }

  .builder-save-dock .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .builder-save-dock .button {
    min-height: 42px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .builder-save-dock .actions > .button:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }

  .catalog-load-more {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-load-more .button {
    width: 100%;
  }
}

.catalog-product-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: stretch;
  padding: 0 8px 0 4px;
  background: #fff;
  border-bottom: 1px solid #e8e4df;
}

.catalog-product-row.is-browse-row {
  grid-template-columns: minmax(0, 1fr);
  padding-left: 8px;
}

.catalog-product-row.is-selected {
  background: #fff7f1;
}

.catalog-row-select {
  justify-content: center;
  cursor: pointer;
}

.catalog-row-select > span {
  display: none;
}

.catalog-product-row .product-list-button {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 76px 88px;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.catalog-product-row .product-list-button:hover,
.catalog-product-row .product-list-button.is-active {
  background: transparent;
  box-shadow: none;
}

.catalog-product-row:has(.product-list-button.is-active) {
  box-shadow: inset 3px 0 0 var(--orange);
}

.catalog-product-row .product-list-thumb {
  width: 50px;
  height: 50px;
  border-radius: 4px;
}

.catalog-product-row .product-list-copy {
  align-self: center;
}

.catalog-product-row .product-list-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 5px;
  margin-top: 4px;
  font-size: 9px;
}

.product-list-commerce-chip {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  color: #a43c0e;
  background: #fff0e7;
  border-radius: 999px;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.product-list-commerce-chip.is-promo {
  color: #216555;
  background: #e7f3ee;
}

.product-list-price {
  color: #242624;
  font-size: 11px;
  text-align: right;
}

.product-list-price.is-sale {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.product-list-price.is-sale del {
  color: #8a8680;
  font-size: 8px;
  font-weight: 650;
}

.product-list-price.is-sale span {
  color: #bd400f;
}

.catalog-product-row .product-list-status {
  justify-self: start;
  margin: 0;
  white-space: nowrap;
}

.catalog-bulk-workspace {
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 7px;
}

.catalog-bulk-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid #e3dfda;
}

.catalog-bulk-page-head h2,
.catalog-bulk-page-head p {
  margin: 0;
}

.catalog-bulk-page-head h2 {
  margin-top: 4px;
  color: #242624;
  font-size: 20px;
}

.catalog-bulk-page-head p {
  margin-top: 5px;
  color: #76736e;
  font-size: 11px;
  font-weight: 750;
}

.catalog-bulk-page-head__actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.catalog-bulk-selection-count {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: #666862;
  background: #f3f3f0;
  border: 1px solid #dcddd8;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 850;
}

.catalog-bulk-selection-count.has-selection {
  color: #9f3f08;
  background: #fff3e9;
  border-color: #e9b58f;
}

.catalog-bulk-filterbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(150px, 0.6fr) minmax(220px, 0.9fr) minmax(145px, 0.55fr) auto;
  align-items: end;
  gap: 10px;
  padding: 13px 16px;
  background: #faf9f7;
  border-bottom: 1px solid #e3dfda;
}

.catalog-bulk-filterbar label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #6f716d;
  font-size: 9px;
  font-weight: 850;
}

.catalog-bulk-filterbar input,
.catalog-bulk-filterbar select {
  width: 100%;
  min-height: 38px;
}

.catalog-bulk-page-actions {
  gap: 10px;
  padding: 13px 16px;
  border-top: 0;
}

.catalog-bulk-select-all {
  width: 100%;
  min-height: 30px;
}

.catalog-bulk-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 1px;
  overflow: hidden;
  background: #dedbd6;
  border: 1px solid #dedbd6;
  border-radius: 6px;
}

.catalog-bulk-action-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  background: #fff;
}

.catalog-bulk-action-cell.is-price {
  grid-template-columns: minmax(0, 1fr) 92px auto;
}

.catalog-bulk-action-cell > span {
  align-self: center;
  min-width: 0;
}

.catalog-bulk-action-cell:not(.is-price) > span {
  grid-column: 1 / -1;
}

.catalog-bulk-action-cell > span strong,
.catalog-bulk-action-cell > span small {
  display: block;
}

.catalog-bulk-action-cell > span strong {
  color: #292a28;
  font-size: 10px;
}

.catalog-bulk-action-cell > span small {
  margin-top: 2px;
  color: #817d77;
  font-size: 8px;
}

.catalog-bulk-action-cell > label {
  position: relative;
}

.catalog-bulk-action-cell > label input {
  width: 92px;
  min-height: 34px;
  padding-right: 25px;
}

.catalog-bulk-action-cell > label b {
  position: absolute;
  right: 9px;
  bottom: 9px;
  color: #76736e;
  font-size: 10px;
}

.catalog-bulk-action-cell > div {
  display: flex;
  gap: 5px;
}

.catalog-bulk-action-cell > select {
  min-width: 0;
  width: 100%;
  min-height: 34px;
}

.catalog-bulk-action-cell--shipping {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.catalog-bulk-dimensions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 6px !important;
}

.catalog-bulk-dimensions label {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.catalog-bulk-dimensions label > span {
  color: #666862;
  font-size: 9px;
  font-weight: 900;
}

.catalog-bulk-dimensions input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding-right: 23px;
}

.catalog-bulk-dimensions label > b {
  position: absolute;
  right: 7px;
  bottom: 10px;
  color: #858079;
  font-size: 8px;
}

.catalog-bulk-shipping-actions {
  display: flex !important;
  justify-content: flex-end;
  gap: 6px !important;
}

.catalog-bulk-clear {
  justify-self: end;
}

.catalog-bulk-table-wrap {
  min-width: 0;
  max-height: 620px;
  overflow: auto;
  overscroll-behavior: contain;
}

.catalog-bulk-table {
  min-width: 1460px;
}

.catalog-bulk-row {
  display: grid;
  grid-template-columns: 34px 54px minmax(230px, 1.35fr) minmax(180px, 0.85fr) 105px 105px 120px 118px 185px 78px;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 7px 13px;
  background: #fff;
  border-bottom: 1px solid #e8e4df;
}

.catalog-bulk-row.is-head {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 38px;
  padding-block: 8px;
  color: #817d77;
  background: #f6f7f7;
  border-top: 1px solid #dedbd6;
  border-bottom-color: #d8d9d7;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-bulk-row.is-selected {
  background: #fff7f1;
  box-shadow: inset 3px 0 0 var(--orange);
}

.catalog-bulk-inline-status,
.catalog-bulk-inline-number input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  color: #343633;
  background: #fff;
  border: 1px solid #d7d7d2;
  border-radius: 4px;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
}

.catalog-bulk-inline-status {
  padding: 5px 7px;
}

.catalog-bulk-inline-status.is-hidden {
  color: #7b5652;
  background: #fff5f3;
  border-color: #e2c0ba;
}

.catalog-bulk-inline-number {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 3px;
}

.catalog-bulk-inline-number input {
  padding: 5px 24px 5px 8px;
}

.catalog-bulk-inline-number.is-sort input,
.catalog-bulk-inline-number.is-stock input {
  padding-right: 8px;
}

.catalog-bulk-inline-number > span {
  position: absolute;
  top: 10px;
  right: 8px;
  color: #77736e;
  font-size: 9px;
}

.catalog-bulk-inline-number > small {
  overflow: hidden;
  color: #7b7771;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-bulk-inline-status:focus,
.catalog-bulk-inline-number input:focus {
  outline: 2px solid rgba(227, 92, 36, 0.16);
  border-color: #d8672e;
}

.catalog-bulk-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: #77736e;
  background: #faf9f7;
  border-top: 1px solid #e1ddd8;
  font-size: 9px;
  font-weight: 800;
}

.catalog-bulk-row > * {
  min-width: 0;
}

.catalog-bulk-row > b {
  color: #4c4e49;
  font-size: 10px;
}

.catalog-bulk-thumb {
  display: grid;
  width: 50px;
  height: 50px;
  overflow: hidden;
  place-items: center;
  background: #f2f1ed;
  border: 1px solid #e2ded8;
  border-radius: 4px;
}

.catalog-bulk-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-bulk-thumb i {
  color: #95918b;
  font-size: 8px;
  font-style: normal;
  text-align: center;
}

.catalog-bulk-product {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 6px 4px;
  color: #282a27;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.catalog-bulk-product:hover strong {
  color: #b14615;
}

.catalog-bulk-product strong,
.catalog-bulk-product small,
.catalog-bulk-folder strong,
.catalog-bulk-folder small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-bulk-product strong,
.catalog-bulk-folder strong {
  font-size: 11px;
}

.catalog-bulk-product small,
.catalog-bulk-folder small {
  margin-top: 3px;
  color: #807c76;
  font-size: 9px;
}

.catalog-bulk-row-price {
  color: #252724 !important;
  font-size: 11px !important;
}

.catalog-bulk-row-shipping strong,
.catalog-bulk-row-shipping small {
  display: block;
  white-space: nowrap;
}

.catalog-bulk-row-shipping strong {
  color: #3f413d;
  font-size: 10px;
}

.catalog-bulk-row-shipping small {
  margin-top: 3px;
  color: #807c76;
  font-size: 8px;
}

.catalog-bulk-empty {
  display: grid;
  gap: 5px;
  padding: 36px 20px;
  color: #797670;
  text-align: center;
}

.catalog-bulk-empty strong {
  color: #30312f;
}

@media (max-width: 1280px) {
  .catalog-bulk-action-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

.catalog-promotions-workspace {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin-top: 16px;
}

.promotion-workspace-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1.28fr);
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd9d3;
  border-radius: 7px;
}

.promotion-workspace-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.promotion-workspace-copy h2,
.promotion-workspace-copy p {
  margin: 0;
}

.promotion-workspace-copy h2 {
  color: #262724;
  font-size: 22px;
}

.promotion-workspace-copy p {
  max-width: 620px;
  color: #6f6b65;
  font-size: 11px;
  line-height: 1.55;
}

.promotion-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2ded8;
  border-radius: 6px;
}

.promotion-workflow > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 70px;
  padding: 10px 12px;
  background: #faf9f7;
  border-left: 1px solid #e2ded8;
}

.promotion-workflow > div:first-child {
  border-left: 0;
}

.promotion-workflow b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: #df5c1c;
  border-radius: 50%;
  font-size: 10px;
}

.promotion-workflow span,
.promotion-workflow strong,
.promotion-workflow small {
  display: block;
  min-width: 0;
}

.promotion-workflow strong {
  color: #343531;
  font-size: 11px;
}

.promotion-workflow small {
  margin-top: 3px;
  color: #817d77;
  font-size: 9px;
  line-height: 1.35;
}

.promotion-workspace-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: #fff;
  border: 1px solid #ddd9d3;
  border-radius: 7px;
}

.promotion-workspace-metrics > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  min-height: 62px;
  padding: 11px 15px;
  border-left: 1px solid #e4e0da;
}

.promotion-workspace-metrics > div:first-child {
  border-left: 0;
}

.promotion-workspace-metrics span,
.promotion-workspace-metrics small {
  color: #77736d;
  font-size: 9px;
}

.promotion-workspace-metrics strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #252623;
  font-size: 20px;
}

.promotion-workspace-metrics small {
  grid-column: 1;
}

.promotion-manager-grid {
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  align-items: start;
}

.promotion-manager-list {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 92px);
  overflow: auto;
}

.promotion-manager-editor {
  min-width: 0;
}

.promotion-manager-editor > .empty,
.promotion-manager-list > .empty {
  display: grid;
  gap: 5px;
}

.promotion-manager-editor > .empty strong,
.promotion-manager-editor > .empty span,
.promotion-manager-list > .empty strong,
.promotion-manager-list > .empty span {
  display: block;
}

.promotion-manager-editor .promotion-target-card,
.promotion-manager-editor .promotion-discount-card,
.promotion-manager-editor .promotion-preview-card {
  scroll-margin-top: 90px;
}

.promotion-editor-nav {
  position: sticky;
  z-index: 4;
  top: 68px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: #fff;
  border: 1px solid #ddd9d3;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgb(38 39 36 / 7%);
}

.promotion-editor-nav button {
  min-height: 38px;
  padding: 7px 10px;
  color: #54514c;
  background: #fff;
  border: 0;
  border-left: 1px solid #e3dfd9;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
}

.promotion-editor-nav button:first-child {
  border-left: 0;
}

.promotion-editor-nav button:hover,
.promotion-editor-nav button:focus-visible {
  color: #9e3d11;
  background: #fff5ed;
}

.promotion-safety-card {
  display: grid;
  gap: 11px;
  padding: 14px;
  background: #f2f8f3;
  border: 1px solid #a9ceb3;
  border-radius: 6px;
}

.promotion-safety-card.is-warning {
  background: #fff9ea;
  border-color: #dfc36f;
}

.promotion-safety-card.is-danger {
  background: #fff3f2;
  border-color: #dda7a3;
}

.promotion-safety-card__head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.promotion-safety-card__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: #3e8b53;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 950;
}

.promotion-safety-card.is-warning .promotion-safety-card__icon {
  background: #ad7b12;
}

.promotion-safety-card.is-danger .promotion-safety-card__icon {
  background: #b74037;
}

.promotion-safety-card__head > div:nth-child(2) {
  display: grid;
  gap: 3px;
}

.promotion-safety-card__head strong {
  color: #29312b;
  font-size: 12px;
}

.promotion-safety-card__head small,
.promotion-safety-card > p {
  color: #667069;
  font-size: 9px;
  line-height: 1.45;
}

.promotion-safety-card__stats {
  display: flex;
  gap: 6px;
}

.promotion-safety-card__stats b {
  padding: 5px 7px;
  color: #5e625e;
  background: rgb(255 255 255 / 76%);
  border: 1px solid rgb(113 119 113 / 22%);
  border-radius: 4px;
  font-size: 8px;
  white-space: nowrap;
}

.promotion-safety-issues {
  display: grid;
  gap: 6px;
}

.promotion-safety-issues > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) minmax(240px, 1fr);
  gap: 10px;
  padding: 8px 10px;
  background: rgb(255 255 255 / 74%);
  border-left: 3px solid #be8619;
  border-radius: 3px;
}

.promotion-safety-issues > div.is-danger {
  border-left-color: #bd4037;
}

.promotion-safety-issues strong,
.promotion-safety-issues span {
  font-size: 9px;
  line-height: 1.4;
}

.promotion-safety-issues span {
  color: #6d6861;
}

.promotion-safety-conflicts summary {
  cursor: pointer;
  color: #6f5314;
  font-size: 9px;
  font-weight: 900;
}

.promotion-safety-conflicts > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  background: rgb(255 255 255 / 72%);
  border-bottom: 1px solid rgb(128 117 91 / 14%);
  font-size: 9px;
}

.promotion-list-safety {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 5px;
  color: #246739;
  background: #eef7f0;
  border: 1px solid #b8d6bf;
  border-radius: 3px;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}

.promotion-list-safety.is-warning {
  color: #76560e;
  background: #fff7df;
  border-color: #e1ca85;
}

.promotion-list-safety.is-danger {
  color: #962f29;
  background: #fff0ef;
  border-color: #deb0ad;
}

.promotion-product-picker {
  display: grid;
  gap: 11px;
  padding: 16px;
  background: #f8f7f5;
  border: 1px solid #e2ded8;
  border-radius: 6px;
}

.promotion-discount-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff5ed;
  border: 1px solid #efc2a7;
  border-radius: 6px;
}

.promotion-discount-card > p {
  margin: 0;
  color: #7c6558;
  font-size: 11px;
  line-height: 1.45;
}

.promotion-product-search input {
  background: #fff;
}

.promotion-product-options {
  display: grid;
  max-height: 390px;
  overflow: auto;
  background: #fff;
  border: 1px solid #dfdcd7;
  border-radius: 5px;
}

.promotion-product-option {
  display: grid;
  grid-template-columns: 18px 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 7px 10px;
  border-bottom: 1px solid #ebe8e4;
  cursor: pointer;
}

.promotion-product-option:hover,
.promotion-product-option.is-selected {
  background: #fff6f0;
}

.promotion-product-option__thumb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  color: #938f89;
  background: #f3f2ef;
  border-radius: 4px;
  font-size: 8px;
}

.promotion-product-option__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promotion-product-option > span:nth-child(3) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.promotion-product-option strong,
.promotion-product-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-product-option small {
  color: #7c7873;
  font-size: 9px;
}

.promotion-product-option em {
  color: #9f3912;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.publish-action-card {
  align-items: center;
}

@media (max-width: 1420px) {
  .manager-dashboard__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-workbench {
    grid-template-columns: minmax(210px, 0.48fr) minmax(350px, 0.82fr) minmax(430px, 1fr);
  }
}

@media (max-width: 1240px) {
  .catalog-workbench {
    grid-template-columns: minmax(220px, 0.42fr) minmax(430px, 1fr);
  }

  .catalog-editor-pane {
    position: relative;
    top: auto;
    grid-column: 1 / -1;
    max-height: none;
  }
}

@media (max-width: 1100px) {
  .manager-dashboard__hero,
  .manager-page-head,
  .publish-action-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .manager-dashboard__hero-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .manager-dashboard__grid,
  .catalog-workbench {
    grid-template-columns: 1fr;
  }

  .promotion-workspace-header,
  .promotion-manager-grid {
    grid-template-columns: 1fr;
  }

  .promotion-manager-list {
    position: relative;
    top: auto;
    max-height: none;
  }

  .catalog-navigation-pane,
  .catalog-products-pane,
  .catalog-editor-pane {
    position: relative;
    top: auto;
    grid-column: auto;
    max-height: none;
  }

  .catalog-products-pane {
    order: 1;
  }

  .catalog-navigation-pane {
    order: 2;
  }

  .catalog-editor-pane {
    order: 3;
  }

  .catalog-workbench-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-workbench-summary > .button {
    grid-column: 1 / -1;
    min-height: 44px;
  }
}

@media (max-width: 760px) {
  .catalog-import-report__metrics,
  .promotion-safety-issues > div {
    grid-template-columns: 1fr;
  }

  .catalog-import-report__metrics span:nth-child(3) {
    border-left: 0;
  }

  .catalog-import-report__metrics span:nth-child(n + 3) {
    border-top: 1px solid #e3e9e4;
  }

  .catalog-import-report__rows > div {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .catalog-import-report__rows > div strong:last-child {
    grid-column: 1 / -1;
  }

  .promotion-editor-nav {
    top: 56px;
  }

  .promotion-editor-nav button {
    min-height: 44px;
    padding-inline: 5px;
    font-size: 8px;
  }

  .promotion-safety-card__stats {
    flex-wrap: wrap;
    padding-left: 0;
  }

  .catalog-editor-pane .product-stock-grid {
    grid-template-columns: 1fr;
  }

  .catalog-product-drawer__panel {
    width: 100vw;
  }

  .catalog-product-drawer__header {
    min-height: 64px;
    padding: 10px 12px;
  }

  .catalog-product-drawer__header strong {
    max-width: 56vw;
    font-size: 14px;
  }

  .catalog-product-drawer__body {
    padding: 10px;
  }

  .site-manager-nav {
    margin-right: -8px;
    margin-left: -8px;
    padding-inline: 4px;
  }

  .site-manager-nav .tab {
    min-height: 48px;
    padding-inline: 12px;
  }

  .manager-dashboard__hero,
  .manager-page-head,
  .publish-action-card,
  .manager-readiness,
  .manager-quick-actions {
    padding: 18px;
  }

  .manager-dashboard__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promotion-workflow {
    grid-template-columns: 1fr;
  }

  .promotion-workflow > div {
    border-top: 1px solid #e2ded8;
    border-left: 0;
  }

  .promotion-workflow > div:first-child {
    border-top: 0;
  }

  .promotion-workspace-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promotion-workspace-metrics > div:nth-child(3) {
    border-left: 0;
  }

  .promotion-workspace-metrics > div:nth-child(n + 3) {
    border-top: 1px solid #e4e0da;
  }

  .manager-readiness__item {
    grid-template-columns: minmax(0, 1fr) 32px;
  }

  .manager-readiness__item > span,
  .manager-readiness__item > small {
    grid-column: 1;
  }

  .manager-readiness__item > b {
    grid-column: 2;
    grid-row: 1 / 4;
  }

  .catalog-bulk-page-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px;
  }

  .catalog-bulk-selection-count {
    width: 100%;
    text-align: center;
  }

  .catalog-bulk-page-head__actions,
  .catalog-bulk-page-head__actions .button {
    width: 100%;
  }

  .catalog-bulk-filterbar,
  .catalog-bulk-action-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-bulk-filterbar {
    padding: 11px;
  }

  .catalog-bulk-filterbar .button,
  .catalog-bulk-clear {
    width: 100%;
  }

  .catalog-bulk-page-actions {
    padding: 11px;
  }

  .catalog-bulk-action-cell.is-price {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .catalog-bulk-action-cell.is-price > span {
    grid-column: 1 / -1;
  }

  .catalog-bulk-action-cell.is-price > .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .catalog-bulk-action-cell--shipping {
    grid-column: auto;
  }

  .catalog-bulk-dimensions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-bulk-shipping-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-bulk-shipping-actions .button {
    width: 100%;
  }

  .catalog-bulk-table {
    min-width: 1310px;
  }

  .catalog-table-head {
    display: none;
  }

  .catalog-product-row .product-list-button {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .catalog-product-row .product-list-status {
    grid-column: 2;
  }

  .product-list-price {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .promotion-product-option {
    grid-template-columns: 18px 42px minmax(0, 1fr);
  }

  .promotion-product-option em {
    grid-column: 3;
  }
}

@media (max-width: 520px) {
  .manager-dashboard__metrics {
    grid-template-columns: 1fr;
  }

  .manager-metric {
    min-height: 112px;
  }

  .catalog-bulk-actions select,
  .catalog-bulk-actions .button {
    flex: 1 1 145px;
  }

  .catalog-bulk-price {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .catalog-bulk-price .button {
    width: 100%;
  }
}

/* Catalog folders and product gallery */
.catalog-folder-browser {
  height: max-content;
  margin: 0 4px 9px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.catalog-folder-tree {
  max-height: 520px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.catalog-folder-browser__head {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 11px;
  background: #f8f6f4;
}

.catalog-folder-browser__actions {
  display: flex !important;
  align-items: center;
  gap: 3px;
}

.catalog-folder-browser__actions button {
  display: grid;
  width: 25px;
  min-width: 25px;
  min-height: 25px;
  place-items: center;
  padding: 0;
  color: #716a64;
  background: #fff;
  border: 1px solid #d9d2cb;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
}

.catalog-folder-browser__actions button:hover,
.catalog-folder-browser__actions button:focus-visible {
  color: #a5420d;
  border-color: #dca47e;
}

.catalog-folder-browser__head > span:last-child,
.catalog-folder-browser__head strong,
.catalog-folder-browser__head small {
  display: block;
}

.catalog-folder-browser__head strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  overflow-wrap: normal;
  word-break: normal;
}

.catalog-folder-browser__head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  overflow-wrap: normal;
  word-break: normal;
}

.catalog-folder-browser__icon,
.catalog-folder-branch__folder {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 14px;
  flex: 0 0 auto;
  border: 1.5px solid #d75a12;
  border-radius: 3px;
  background: #fff4ec;
}

.catalog-folder-browser__icon::before,
.catalog-folder-branch__folder::before {
  position: absolute;
  top: -5px;
  left: 1px;
  width: 9px;
  height: 5px;
  border: 1.5px solid #d75a12;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #fff4ec;
  content: '';
}

.catalog-folder-root,
.catalog-folder-child {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.catalog-folder-root {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

.catalog-folder-root:hover,
.catalog-folder-root.is-active,
.catalog-folder-child:hover,
.catalog-folder-child.is-active {
  background: #fff2e9;
  color: #9f3f08;
}

.catalog-folder-root.is-active,
.catalog-folder-child.is-active {
  box-shadow: inset 3px 0 0 var(--orange);
}

.catalog-folder-root b,
.catalog-folder-child b {
  color: var(--muted);
  font-size: 10px;
}

.catalog-folder-branch {
  border-top: 1px solid rgba(41, 35, 29, 0.08);
}

.catalog-folder-branch > summary {
  display: grid;
  min-height: 46px;
  grid-template-columns: 20px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  cursor: pointer;
  list-style: none;
}

.catalog-folder-branch > summary::-webkit-details-marker {
  display: none;
}

.catalog-folder-branch > summary strong,
.catalog-folder-branch > summary small {
  display: block;
}

.catalog-folder-branch > summary strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.catalog-folder-branch > summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.catalog-folder-branch__chevron {
  width: 7px;
  height: 7px;
  transform: rotate(-45deg);
  border-right: 1.5px solid #7d7168;
  border-bottom: 1.5px solid #7d7168;
  transition: transform 160ms ease;
}

.catalog-folder-branch[open] .catalog-folder-branch__chevron {
  transform: rotate(45deg) translate(-2px, -2px);
}

.catalog-folder-children {
  padding: 0 0 6px 30px;
  background: #fcfbfa;
}

.catalog-folder-node {
  position: relative;
  margin-left: calc(var(--catalog-folder-depth, 0) * 11px);
}

.catalog-folder-node__row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 29px;
  align-items: center;
  min-width: 0;
}

.catalog-folder-node__row--root {
  grid-template-columns: minmax(0, 1fr) 29px;
}

.catalog-folder-node__toggle,
.catalog-folder-node__toggle-spacer {
  display: grid;
  width: 22px;
  height: 30px;
  place-items: center;
  padding: 0;
}

.catalog-folder-node__toggle {
  color: #736d67;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.catalog-folder-node__toggle:hover,
.catalog-folder-node__toggle:focus-visible {
  color: #a5420d;
  background: #fff0e5;
}

.catalog-folder-node__toggle > span {
  width: 7px;
  height: 7px;
  transform: rotate(-45deg);
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transition: transform 150ms ease;
}

.catalog-folder-node__toggle[aria-expanded="true"] > span {
  transform: rotate(45deg) translate(-2px, -2px);
}

.catalog-folder-subtree {
  min-width: 0;
}

.catalog-folder-node__row > .catalog-folder-child {
  min-width: 0;
}

.catalog-folder-quick-add {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  justify-self: center;
  padding: 0;
  color: #a14612;
  background: #fff;
  border: 1px solid #dfb293;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
}

.catalog-folder-quick-add:hover,
.catalog-folder-quick-add:focus-visible,
.catalog-folder-node__row:has(.catalog-folder-child.is-active) .catalog-folder-quick-add {
  color: #fff;
  background: #d75a12;
  border-color: #d75a12;
}

.catalog-folder-node[style*="depth:1"]::before,
.catalog-folder-node[style*="depth:2"]::before,
.catalog-folder-node[style*="depth:3"]::before,
.catalog-folder-node[style*="depth:4"]::before,
.catalog-folder-node[style*="depth:5"]::before,
.catalog-folder-node[style*="depth:6"]::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -6px;
  border-left: 1px solid #ded6cf;
  content: '';
}

.catalog-folder-child {
  display: grid;
  min-height: 34px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  font-size: 11px;
  font-weight: 800;
}

.catalog-folder-child:has(.catalog-folder-child__icon) {
  grid-template-columns: 16px minmax(0, 1fr) auto;
}

.catalog-folder-child__icon {
  position: relative;
  width: 14px;
  height: 10px;
  border: 1px solid #d66a27;
  border-radius: 2px;
  background: #fff4eb;
  cursor: grab;
}

.catalog-folder-child__icon:active {
  cursor: grabbing;
}

.catalog-folder-child__icon::before {
  position: absolute;
  top: -4px;
  left: 1px;
  width: 6px;
  height: 4px;
  border: 1px solid #d66a27;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  background: #fff4eb;
  content: '';
}

.catalog-folder-node.has-children > .catalog-folder-node__row > .catalog-folder-child .catalog-folder-child__icon {
  border-color: #e78a52;
  background: #fff2e9;
}

.catalog-folder-child.is-empty:not(.is-active) {
  color: #8d8279;
}

.catalog-folder-child.is-empty:not(.is-active) b {
  opacity: 0.7;
}

.catalog-subfolder-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 5px;
  padding: 6px 8px 2px 12px;
}

.catalog-subfolder-create input {
  min-width: 0;
  min-height: 30px;
  border: 1px solid #d9d1cb;
  border-radius: 6px;
  padding: 5px 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 10px;
}

.catalog-subfolder-create input:focus {
  outline: 2px solid rgba(239, 93, 24, 0.2);
  border-color: var(--orange);
}

.catalog-subfolder-create button {
  display: grid;
  width: 30px;
  min-height: 30px;
  place-items: center;
  border: 1px solid #f2b28e;
  border-radius: 6px;
  background: #fff2e9;
  color: #b94608;
  cursor: pointer;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.catalog-subfolder-create button:hover,
.catalog-subfolder-create button:focus-visible {
  border-color: var(--orange);
  background: #ffe4d2;
}

.catalog-subfolder-selected {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px 11px;
  background: #fffaf6;
}

.catalog-subfolder-selected > span,
.catalog-subfolder-selected small,
.catalog-subfolder-selected strong,
.catalog-subfolder-selected em {
  display: block;
}

.catalog-subfolder-selected small {
  color: #b54b0e;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-subfolder-selected strong {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
}

.catalog-subfolder-selected em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.catalog-subfolder-selected__create-label {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
}

.catalog-subfolder-create--nested {
  padding: 0;
}

.catalog-subfolder-selected__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}

.catalog-subfolder-selected button {
  min-height: 29px;
  border: 1px solid #d9d1cb;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
}

.catalog-subfolder-selected button.is-danger {
  color: #a63d2d;
}

.catalog-subfolder-selected button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.catalog-subfolder-hint {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 9px 11px 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
}

.product-catalog-subfolder {
  border: 1px solid #f0d5c5;
  border-radius: 7px;
  padding: 10px;
  background: #fffaf6;
}

.catalog-empty-state--subfolder {
  border-color: #f1c7ad;
  background: #fffaf6;
}

.product-media-grid--gallery {
  grid-template-columns: minmax(0, 1fr);
}

.product-gallery-editor {
  display: grid;
  gap: 11px;
}

.product-gallery-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-gallery-editor__head span,
.product-gallery-editor__head strong,
.product-gallery-editor__head small {
  display: block;
}

.product-gallery-editor__head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.product-gallery-editor__head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.product-gallery-editor__head b {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 102, 28, 0.22);
  border-radius: 6px;
  background: #fff7f1;
  padding: 5px 8px;
  color: #a9470d;
  font-size: 10px;
}

.product-gallery-list {
  display: grid;
  gap: 6px;
}

.product-gallery-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 22px 26px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(41, 35, 29, 0.11);
  border-radius: 7px;
  background: #fff;
  padding: 7px;
  transition: border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.product-gallery-item:hover {
  border-color: rgba(255, 102, 28, 0.35);
  box-shadow: 0 7px 18px rgba(66, 41, 22, 0.06);
}

.product-gallery-item.is-dragging {
  opacity: 0.42;
}

.product-gallery-item.is-drop-target {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.product-gallery-drag {
  height: 38px;
  border: 0;
  background: transparent;
  color: #9b8e83;
  cursor: grab;
  font-size: 16px;
  letter-spacing: -5px;
}

.product-gallery-drag:active {
  cursor: grabbing;
}

.product-gallery-position {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  background: #f3efec;
  color: #6e6259;
  font-size: 10px;
  font-weight: 950;
}

.product-gallery-thumb {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(41, 35, 29, 0.1);
  border-radius: 6px;
  background: #f7f4f1;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-copy {
  min-width: 0;
}

.product-gallery-copy strong,
.product-gallery-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-gallery-copy strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.product-gallery-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.product-gallery-actions {
  display: flex;
  gap: 4px;
}

.product-gallery-actions button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(41, 35, 29, 0.12);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.product-gallery-actions button:hover:not(:disabled) {
  border-color: rgba(255, 102, 28, 0.38);
  background: #fff5ee;
  color: #a9470d;
}

.product-gallery-actions button.is-danger:hover:not(:disabled) {
  border-color: rgba(179, 43, 43, 0.3);
  background: #fff0f0;
  color: #a52424;
}

.product-gallery-actions button:disabled {
  cursor: default;
  opacity: 0.35;
}

.product-gallery-empty {
  display: grid;
  gap: 4px;
  border: 1px dashed rgba(41, 35, 29, 0.18);
  border-radius: 7px;
  background: #fbfaf9;
  padding: 16px;
}

.product-gallery-empty strong {
  color: var(--ink);
  font-size: 12px;
}

.product-gallery-empty span,
.product-gallery-hint {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.product-gallery-library {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.product-gallery-library label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.product-gallery-library select {
  min-height: 38px;
  border-radius: 6px;
  background: #fff;
}

.product-gallery-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  border: 1px dashed rgba(255, 102, 28, 0.3);
  border-radius: 7px;
  background: #fff8f2;
  padding: 10px;
}

.product-gallery-upload input[type="file"] {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(41, 35, 29, 0.12);
  border-radius: 6px;
  background: #fff;
  padding: 6px;
  color: var(--muted);
  font-size: 11px;
}

.product-gallery-upload input[type="file"]::file-selector-button {
  min-height: 27px;
  margin-right: 9px;
  border: 0;
  border-radius: 5px;
  background: var(--orange-soft);
  padding: 0 9px;
  color: var(--orange-dark);
  cursor: pointer;
  font-weight: 900;
}

.product-gallery-upload small {
  align-self: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-gallery-hint {
  margin: 0;
}

@media (max-width: 760px) {
  .product-gallery-item {
    grid-template-columns: 20px 22px 52px minmax(0, 1fr);
  }

  .product-gallery-thumb {
    width: 52px;
    height: 52px;
  }

  .product-gallery-actions {
    grid-column: 3 / -1;
    justify-content: flex-end;
  }

  .product-gallery-library,
  .product-gallery-upload {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-gallery-library .button,
  .product-gallery-upload .button {
    width: 100%;
  }

  .product-gallery-upload small {
    white-space: normal;
  }
}

/* Ozon-style product photo workspace */
.product-photo-workspace {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.product-photo-guide {
  overflow: hidden;
  border: 1px solid #dde4eb;
  border-radius: 8px;
  background: #f7f9fb;
}

.product-photo-guide > summary {
  display: grid;
  min-height: 40px;
  grid-template-columns: minmax(0, 1fr) 12px;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  list-style: none;
}

.product-photo-guide > summary::-webkit-details-marker {
  display: none;
}

.product-photo-guide > summary b {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border-right: 1.5px solid #627080;
  border-bottom: 1.5px solid #627080;
  transition: transform 150ms ease;
}

.product-photo-guide[open] > summary b {
  transform: rotate(225deg) translate(-2px, -2px);
}

.product-photo-guide__body {
  display: grid;
  gap: 4px;
  border-top: 1px solid #e6ebf0;
  padding: 9px 12px 11px;
  color: #65717d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.product-photo-upload {
  min-width: 0;
}

.product-photo-dropzone {
  display: grid;
  min-height: 80px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px dashed #c9d3dd;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.product-photo-dropzone:hover,
.product-photo-dropzone.is-dragover {
  border-color: var(--orange);
  background: #fff9f5;
  box-shadow: inset 0 0 0 1px rgba(239, 93, 24, 0.12);
}

.product-photo-dropzone__icon {
  position: relative;
  display: grid;
  width: 36px;
  height: 42px;
  place-items: center;
  border: 1px solid #bdc8d2;
  border-radius: 6px;
  background: linear-gradient(135deg, #f8fafc 0 62%, #e9eef3 62%);
  color: #6f7c89;
  font-size: 20px;
  font-weight: 700;
}

.product-photo-dropzone__copy,
.product-photo-dropzone__copy strong,
.product-photo-dropzone__copy small {
  display: block;
  min-width: 0;
}

.product-photo-dropzone__copy strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.product-photo-dropzone__copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-photo-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
}

.product-photo-link-row input,
.product-photo-library select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #d6dde4;
  border-radius: 6px;
  background: #fff;
  padding: 7px 10px;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

.product-photo-link-row input:focus,
.product-photo-library select:focus {
  outline: 2px solid rgba(239, 93, 24, 0.14);
  border-color: var(--orange);
}

.product-photo-link-row button,
.product-photo-library button {
  display: grid;
  width: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid #f0aa82;
  border-radius: 6px;
  background: #fff5ef;
  color: #b4480d;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
}

.product-photo-link-row button:hover,
.product-photo-library button:hover:not(:disabled) {
  border-color: var(--orange);
  background: #ffe8d9;
}

.product-photo-library {
  border: 1px solid #e1e6eb;
  border-radius: 7px;
  background: #fbfcfd;
}

.product-photo-library > summary {
  padding: 9px 11px;
  color: #596572;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
}

.product-photo-library > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
  border-top: 1px solid #e5e9ed;
  padding: 9px;
}

.product-photo-library button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.product-photo-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 5px;
}

.product-photo-editor__head > span,
.product-photo-editor__head strong,
.product-photo-editor__head small {
  display: block;
}

.product-photo-editor__head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.product-photo-editor__head strong b {
  display: inline-grid;
  min-width: 26px;
  min-height: 20px;
  place-items: center;
  margin-left: 5px;
  border-radius: 5px;
  background: #edf1f4;
  color: #3f4a55;
  font-size: 9px;
}

.product-photo-editor__head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.product-photo-grid {
  display: grid;
  grid-auto-rows: 158px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 7px;
  min-width: 0;
}

.product-photo-card,
.product-photo-add {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e2e7ec;
  border-radius: 7px;
  background: #f6f8fa;
}

.product-photo-card {
  transition: border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.product-photo-card.is-main {
  grid-column: span 2;
  grid-row: span 2;
  background: #fff;
}

.product-photo-card:not(.is-main) {
  cursor: grab;
}

.product-photo-card:not(.is-main):active {
  cursor: grabbing;
}

.product-photo-card:hover,
.product-photo-card:focus-within,
.product-photo-card.is-drop-target {
  border-color: rgba(239, 93, 24, 0.55);
  box-shadow: 0 5px 14px rgba(48, 36, 27, 0.08);
}

.product-photo-card.is-dragging {
  opacity: 0.4;
}

.product-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.product-photo-card__badge,
.product-photo-card__position {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  min-width: 22px;
  min-height: 21px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 5px;
  background: rgba(34, 38, 42, 0.82);
  padding: 0 6px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.product-photo-card__position {
  min-width: 21px;
  padding: 0 4px;
}

.product-photo-card__drag {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(28, 32, 36, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  color: #3f4850;
  cursor: grab;
  touch-action: none;
  user-select: none;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.product-photo-card__drag:active {
  cursor: grabbing;
}

.product-photo-card__drag:hover,
.product-photo-card__drag:focus-visible {
  border-color: var(--orange);
  color: #b3480c;
}

.product-photo-card__actions {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: flex;
  gap: 2px;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 130ms ease, transform 130ms ease;
}

.product-photo-card:hover .product-photo-card__actions,
.product-photo-card:focus-within .product-photo-card__actions,
.product-photo-workspace.is-editing .product-photo-card__actions {
  opacity: 1;
  transform: translateY(0);
}

.product-photo-card__actions button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(28, 32, 36, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #2b3238;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.product-photo-card__actions button:hover:not(:disabled) {
  border-color: var(--orange);
  color: #b3480c;
}

.product-photo-card__actions button.is-danger:hover:not(:disabled) {
  border-color: #c84a43;
  background: #fff3f2;
  color: #a82d28;
}

.product-photo-card__actions button:disabled {
  cursor: default;
  opacity: 0.36;
}

.product-photo-card__empty-action {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #798591;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
}

.product-photo-card__empty-action b {
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
}

.product-photo-card__no-preview {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.product-photo-add {
  display: grid;
  place-content: center;
  gap: 7px;
  border-style: dashed;
  background: #f7f9fb;
  color: #65727d;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.product-photo-add span {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.product-photo-add strong {
  font-size: 10px;
  font-weight: 850;
}

.product-photo-add:hover,
.product-photo-add:focus-visible {
  border-color: var(--orange);
  background: #fff8f4;
  color: #b3480c;
}

.product-photo-hint {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.product-document-panel {
  margin-top: 2px;
}

@media (hover: none) {
  .product-photo-card__actions {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .product-photo-dropzone {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .product-photo-dropzone > .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .product-photo-dropzone__copy small {
    white-space: normal;
  }

  .product-photo-editor__head {
    align-items: stretch;
    flex-direction: column;
  }

  .product-photo-editor__head .button {
    width: 100%;
  }

  .product-photo-grid {
    grid-auto-rows: 150px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-photo-card__actions {
    right: 3px;
    bottom: 3px;
  }

  .product-photo-card__actions button {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

/* Keep all catalog workspaces visible together after all legacy rules. */
.catalog-workspace-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
}

@media (max-width: 1100px) {
  .catalog-workspace-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.catalog-reference-search {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
}

.catalog-reference-row--weight {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px;
}

.catalog-reference-row--weight > .builder-check {
  grid-column: 1 / 3;
  grid-row: 1;
}

.catalog-reference-row--weight > label:nth-of-type(2) {
  grid-column: 1 / 4;
  grid-row: 2;
}

.catalog-reference-row--weight > label:nth-of-type(3) {
  grid-column: 1;
  grid-row: 3;
}

.catalog-reference-row--weight > label:nth-of-type(4) {
  grid-column: 2 / 4;
  grid-row: 3;
}

.catalog-reference-row--weight > .catalog-reference-delete {
  grid-column: 3;
  grid-row: 1;
}

[data-ortonit-home-slide-form] .product-simple-head,
[data-ortonit-home-card-form] .product-simple-head {
  align-items: flex-start;
  flex-wrap: wrap;
}

[data-ortonit-home-slide-form] .product-simple-head > div:first-child,
[data-ortonit-home-card-form] .product-simple-head > div:first-child {
  flex: 1 1 330px;
  min-width: 0;
}

[data-ortonit-home-slide-form] .product-simple-head > .actions,
[data-ortonit-home-card-form] .product-simple-head > .actions {
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}

@media (max-width: 680px) {
  .catalog-reference-row--color {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-reference-row--color > *,
  .catalog-reference-image-picker > span:last-child,
  .catalog-reference-image-picker .inline-upload {
    min-width: 0;
  }

  .catalog-reference-image-picker select,
  .catalog-reference-image-picker input[type='file'] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .catalog-reference-image-picker .inline-upload {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-reference-image-picker .inline-upload .button {
    width: 100%;
  }
}

/* Final catalog workflow: persistent save actions and scoped promo codes. */
.catalog-save-dock {
  margin: 18px 0 0;
  border-radius: 8px;
}

.promo-code-scope {
  min-width: 0;
  border: 1px solid #e1ded9;
  border-radius: 7px;
  background: #faf9f7;
}

.promo-code-scope > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 13px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 900;
}

.promo-code-scope > summary::-webkit-details-marker {
  display: none;
}

.promo-code-scope > summary small {
  color: #a64a18;
  font-size: 10px;
}

.promo-code-scope__body {
  display: grid;
  gap: 14px;
  padding: 0 13px 13px;
  border-top: 1px solid #ece9e5;
}

.promo-code-scope__body > label:first-child {
  margin-top: 13px;
}

.promo-code-product-options,
.promo-code-folder-options {
  max-height: 360px;
}

.promo-code-row:has(.promo-code-scope[open]) {
  border-color: #e5b392;
  box-shadow: inset 3px 0 0 #dd6221;
}

@media (max-width: 760px) {
  .promo-code-scope,
  .promo-code-scope__body,
  .promo-code-product-options,
  .promo-code-folder-options {
    min-width: 0;
    max-width: 100%;
  }

  .promo-code-scope > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .promo-code-product-options,
  .promo-code-folder-options {
    max-height: 300px;
  }
}

/* Manager workspace v4: one navigation, compact headers, work first. */
.app-shell.is-site-workspace {
  grid-template-columns: 210px minmax(0, 1fr);
}

.app-shell.is-site-workspace .sidebar {
  display: flex;
  height: 100vh;
  flex-direction: column;
  overflow: auto;
  padding: 13px 11px;
}

.app-shell.is-site-workspace .brand {
  flex: 0 0 auto;
  margin: 0 3px 12px;
}

.app-shell.is-site-workspace .brand-mark {
  width: 48px;
  height: 36px;
}

.app-shell.is-site-workspace .brand strong {
  font-size: 14px;
}

.app-shell.is-site-workspace .brand span span {
  font-size: 9px;
}

.sidebar-project-context {
  display: grid;
  gap: 2px;
  margin: 0 3px 10px;
  border: 1px solid #333a3f;
  border-radius: 6px;
  background: #202428;
  padding: 9px 10px;
}

.sidebar-project-context span,
.workspace-nav-label {
  color: #89949c;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-project-context strong {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-block--workspace {
  display: grid;
  gap: 11px;
}

.workspace-nav-group {
  display: grid;
  gap: 2px;
}

.workspace-nav-label {
  padding: 0 9px 3px;
}

.app-shell.is-site-workspace .workspace-nav-button {
  position: relative;
  min-height: 35px;
  justify-content: flex-start;
  gap: 8px;
  border-radius: 6px;
  padding: 0 9px;
  font-size: 11px;
}

.workspace-nav-button .nav-dot {
  width: 5px;
  height: 5px;
  margin-left: auto;
}

.workspace-nav-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border: 1px solid #3a4248;
  border-radius: 4px;
  color: #aeb8bf;
  font-size: 11px;
  font-weight: 900;
}

.workspace-nav-icon.is-dashboard::before { content: "⌂"; }
.workspace-nav-icon.is-catalog::before { content: "▦"; }
.workspace-nav-icon.is-builder::before { content: "✎"; }
.workspace-nav-icon.is-documents::before { content: "▤"; }
.workspace-nav-icon.is-requests::before { content: "↓"; }
.workspace-nav-icon.is-assets::before { content: "▧"; }
.workspace-nav-icon.is-analytics::before { content: "↗"; }
.workspace-nav-icon.is-backups::before { content: "↶"; }
.workspace-nav-icon.is-build::before { content: "↑"; }
.workspace-nav-icon.is-content::before { content: "T"; }
.workspace-nav-icon.is-health::before { content: "✓"; }

.workspace-nav-button.is-active .workspace-nav-icon {
  border-color: rgba(233, 90, 27, 0.62);
  background: rgba(233, 90, 27, 0.12);
  color: #ff9a61;
}

.nav-block--switcher {
  gap: 2px;
  margin-top: 13px;
  border-top: 1px solid #31373c;
  padding-top: 11px;
}

.app-shell.is-site-workspace .nav-block--switcher .nav-button {
  min-height: 34px;
  border-radius: 6px;
  padding-inline: 9px;
  font-size: 10px;
}

.app-shell.is-site-workspace .sidebar-role {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  margin-top: auto;
  padding: 8px 9px;
  font-size: 9px;
}

.app-shell.is-site-workspace .sidebar-role.is-dirty {
  border-color: rgba(233, 90, 27, 0.5);
  background: rgba(233, 90, 27, 0.12);
  color: #ffd4bb;
}

.app-shell.is-site-workspace .main {
  min-width: 0;
  padding: 10px 14px 34px;
}

.app-shell.is-site-workspace .site-workspace-bar {
  position: sticky;
  z-index: 70;
  top: 0;
  min-height: 52px;
  grid-template-columns: minmax(190px, 1fr) minmax(210px, 290px) auto;
  gap: 10px;
  border-radius: 6px;
  padding: 5px 8px;
}

.app-shell.is-site-workspace .site-workspace-mark {
  min-height: 26px;
  padding-inline: 7px;
  font-size: 8px;
}

.app-shell.is-site-workspace .site-workspace-title strong {
  font-size: 14px;
}

.app-shell.is-site-workspace .site-workspace-title small,
.app-shell.is-site-workspace .site-switcher > span,
.app-shell.is-site-workspace .site-workspace-status {
  font-size: 8px;
}

.app-shell.is-site-workspace .site-switcher select,
.app-shell.is-site-workspace .site-workspace-actions .button {
  min-height: 34px;
}

.app-shell.is-site-workspace .site-manager-panel {
  margin-top: 8px;
}

.app-shell.is-site-workspace .manager-dashboard,
.app-shell.is-site-workspace .catalog-workspace-page,
.app-shell.is-site-workspace .publishing-workspace {
  gap: 8px;
}

.app-shell.is-site-workspace .manager-page-head,
.app-shell.is-site-workspace .publish-action-card {
  min-height: 60px;
  gap: 12px;
  border-radius: 6px;
  padding: 10px 13px;
}

.app-shell.is-site-workspace .manager-page-head h1 {
  margin: 2px 0 0;
  font-size: 20px;
}

.app-shell.is-site-workspace .manager-page-head p {
  display: none;
}

.app-shell.is-site-workspace .manager-page-head .constructor-kicker {
  font-size: 8px;
}

.app-shell.is-site-workspace .manager-page-head .actions {
  flex-wrap: nowrap;
}

.app-shell.is-site-workspace .manager-page-head .button {
  min-height: 34px;
  padding-inline: 11px;
  font-size: 10px;
}

.app-shell.is-site-workspace .manager-dashboard__hero {
  min-height: 104px;
  gap: 16px;
  border-radius: 6px;
  padding: 16px 18px;
}

.app-shell.is-site-workspace .manager-dashboard__hero h1 {
  max-width: none;
  margin: 3px 0 4px;
  font-size: 25px;
}

.app-shell.is-site-workspace .manager-dashboard__hero p {
  max-width: 650px;
  font-size: 11px;
}

.app-shell.is-site-workspace .manager-dashboard__metrics {
  gap: 6px;
}

.app-shell.is-site-workspace .manager-metric {
  min-height: 78px;
  align-content: center;
  gap: 3px;
  border-radius: 5px;
  padding: 10px 12px;
}

.app-shell.is-site-workspace .manager-metric > strong {
  font-size: 22px;
}

.app-shell.is-site-workspace .manager-metric > i {
  display: none;
}

.app-shell.is-site-workspace .manager-dashboard__grid {
  gap: 8px;
}

.app-shell.is-site-workspace .manager-readiness,
.app-shell.is-site-workspace .manager-quick-actions {
  border-radius: 6px;
  padding: 14px;
}

.app-shell.is-site-workspace .manager-readiness__head {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}

.app-shell.is-site-workspace .manager-readiness__mark {
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.app-shell.is-site-workspace .manager-readiness h2,
.app-shell.is-site-workspace .manager-quick-actions h2,
.app-shell.is-site-workspace .publish-action-card h2 {
  font-size: 17px;
}

.app-shell.is-site-workspace .manager-quick-actions > button {
  min-height: 48px;
  padding: 8px 10px;
}

.app-shell.is-site-workspace .catalog-workspace-tabs {
  min-height: 46px;
  overflow: hidden;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.app-shell.is-site-workspace .catalog-workspace-tabs > button {
  min-height: 46px;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 6px 10px;
}

.app-shell.is-site-workspace .catalog-workspace-tabs > button.is-active {
  background: #fff7f1;
  box-shadow: inset 0 -3px 0 var(--orange);
}

.app-shell.is-site-workspace .catalog-workspace-tabs__icon {
  width: 24px;
  height: 24px;
}

.app-shell.is-site-workspace .catalog-workspace-tabs strong {
  font-size: 10px;
}

.app-shell.is-site-workspace .catalog-workspace-tabs small {
  font-size: 8px;
}

.app-shell.is-site-workspace .catalog-workbench-summary {
  min-height: 42px;
  border-radius: 6px;
}

.app-shell.is-site-workspace .catalog-workbench-summary > div {
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 6px 10px;
}

.app-shell.is-site-workspace .catalog-workbench-summary strong {
  font-size: 17px;
}

.app-shell.is-site-workspace .catalog-workbench-summary small {
  display: none;
}

.app-shell.is-site-workspace .catalog-workbench-summary > .button {
  min-height: 42px;
}

.app-shell.is-site-workspace .catalog-workbench,
.app-shell.is-site-workspace .catalog-nomenclature-workspace--explorer {
  gap: 8px;
}

.app-shell.is-site-workspace .catalog-workbench.is-products-mode {
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr);
}

.app-shell.is-site-workspace .catalog-navigation-pane,
.app-shell.is-site-workspace .catalog-products-pane {
  max-height: calc(100vh - 178px);
}

.app-shell.is-site-workspace .catalog-pane-title {
  min-height: 44px;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 7px;
  padding: 7px 10px;
}

.app-shell.is-site-workspace .catalog-pane-title > span {
  width: 22px;
  height: 22px;
  font-size: 9px;
}

.app-shell.is-site-workspace .catalog-product-row .product-list-button {
  min-height: 60px;
}

.app-shell.is-site-workspace .catalog-nomenclature-workspace--explorer {
  grid-template-columns: 242px minmax(0, 1fr);
}

.app-shell.is-site-workspace .catalog-bulk-page-head,
.app-shell.is-site-workspace .catalog-bulk-filterbar,
.app-shell.is-site-workspace .catalog-bulk-page-actions {
  padding: 10px 12px;
}

.app-shell.is-site-workspace .catalog-bulk-page-head h2 {
  font-size: 17px;
}

.app-shell.is-site-workspace .catalog-promotions-workspace {
  gap: 8px;
  margin-top: 0;
}

.app-shell.is-site-workspace .promotion-workspace-header {
  grid-template-columns: minmax(220px, 0.55fr) minmax(460px, 1.45fr);
  gap: 14px;
  border-radius: 6px;
  padding: 11px 13px;
}

.app-shell.is-site-workspace .promotion-workspace-copy h2 {
  font-size: 18px;
}

.app-shell.is-site-workspace .promotion-workspace-copy p {
  font-size: 9px;
}

.app-shell.is-site-workspace .promotion-workflow > div {
  min-height: 48px;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  padding: 6px 8px;
}

.app-shell.is-site-workspace .promotion-workflow b {
  width: 22px;
  height: 22px;
  font-size: 8px;
}

.app-shell.is-site-workspace .promotion-workspace-metrics > div {
  min-height: 42px;
  padding: 6px 10px;
}

.app-shell.is-site-workspace .promotion-workspace-metrics strong {
  font-size: 16px;
}

.app-shell.is-site-workspace .promotion-manager-grid {
  grid-template-columns: minmax(245px, 0.32fr) minmax(0, 1fr);
  gap: 8px;
}

.app-shell.is-site-workspace .promotion-manager-list {
  top: 62px;
  max-height: calc(100vh - 74px);
}

.app-shell.is-site-workspace .promotion-editor-nav {
  top: 60px;
}

.app-shell.is-site-workspace .content-workspace-toolbar {
  top: 60px;
  gap: 5px;
  border-radius: 6px;
  padding: 4px;
}

.app-shell.is-site-workspace .content-workspace-toolbar .content-manager-nav,
.app-shell.is-site-workspace .content-workspace-toolbar .manager-command-bar {
  min-height: 38px;
}

.app-shell.is-site-workspace .content-workspace-toolbar .tab,
.app-shell.is-site-workspace .content-workspace-toolbar .button {
  min-height: 32px;
  padding-inline: 9px;
  font-size: 10px;
}

.app-shell.is-site-workspace .home-content-builder {
  gap: 12px;
}

.app-shell.is-site-workspace .home-photo-editor-entry {
  min-height: 132px;
  gap: 18px;
  border-radius: 6px;
  padding: 18px;
}

.app-shell.is-site-workspace .home-photo-editor-entry__copy h2 {
  font-size: 23px;
}

.app-shell.is-site-workspace .home-content-builder__section {
  padding-top: 8px;
}

.app-shell.is-site-workspace .home-content-builder__section > .section-row {
  margin-bottom: 8px;
}

.app-shell.is-site-workspace .asset-grid {
  grid-template-columns: minmax(240px, 0.28fr) minmax(0, 1fr);
  gap: 10px;
}

.app-shell.is-site-workspace .asset-grid > .editor-card,
.app-shell.is-site-workspace .asset-library-head {
  border-radius: 6px;
  padding: 14px;
}

.app-shell.is-site-workspace .asset-upload-panel {
  overflow: hidden;
  padding: 0;
}

.app-shell.is-site-workspace .asset-upload-panel > summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.app-shell.is-site-workspace .asset-upload-panel > summary::-webkit-details-marker {
  display: none;
}

.app-shell.is-site-workspace .asset-upload-panel > summary > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.app-shell.is-site-workspace .asset-upload-panel > summary i {
  color: #c94d13;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.app-shell.is-site-workspace .asset-upload-panel > summary strong {
  font-size: 16px;
}

.app-shell.is-site-workspace .asset-upload-panel > summary small {
  overflow: hidden;
  color: #77736d;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell.is-site-workspace .asset-upload-panel > summary > b {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #ddd8d1;
  border-radius: 5px;
  background: #fff;
  font-size: 18px;
  transition: transform 0.16s ease;
}

.app-shell.is-site-workspace .asset-upload-panel[open] > summary > b {
  transform: rotate(45deg);
}

.app-shell.is-site-workspace .asset-upload-panel__body {
  padding: 0 14px 14px;
  border-top: 1px solid #e4e0da;
}

.app-shell.is-site-workspace .asset-upload-panel__body > .muted {
  margin: 10px 0;
  font-size: 10px;
  line-height: 1.45;
}

.app-shell.is-site-workspace .asset-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 8px;
  border-radius: 6px;
  padding: 10px;
}

.app-shell.is-site-workspace .asset-group-head {
  grid-column: 1 / -1;
  padding: 2px 2px 5px;
}

.app-shell.is-site-workspace .asset-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 8px;
}

.app-shell.is-site-workspace .asset-row.is-used {
  background: #f4faf7;
}

.app-shell.is-site-workspace .asset-preview {
  grid-column: 1 / -1;
  width: 100%;
  height: 126px;
  border-radius: 5px;
  background: #f5f6f6;
}

.app-shell.is-site-workspace .asset-name {
  grid-column: 1 / -1;
}

.app-shell.is-site-workspace .asset-meta {
  align-self: end;
}

.app-shell.is-site-workspace .asset-actions {
  align-self: end;
}

.app-shell.is-site-workspace .asset-actions .button {
  min-height: 30px;
  padding-inline: 8px;
  font-size: 9px;
}

.app-shell.is-site-workspace .publishing-workspace .manager-readiness {
  padding: 16px;
}

.app-shell.is-site-workspace .publish-action-card {
  padding: 14px 16px;
}

.app-shell.is-site-workspace .builder-save-dock.is-visible {
  right: 14px;
  bottom: 10px;
  left: 224px;
  border-radius: 6px;
}

@media (max-width: 1180px) {
  .app-shell.is-site-workspace .manager-dashboard__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-shell.is-site-workspace .catalog-workbench.is-products-mode,
  .app-shell.is-site-workspace .catalog-nomenclature-workspace--explorer,
  .app-shell.is-site-workspace .promotion-workspace-header,
  .app-shell.is-site-workspace .promotion-manager-grid {
    grid-template-columns: 1fr;
  }

  .app-shell.is-site-workspace .catalog-navigation-pane,
  .app-shell.is-site-workspace .catalog-products-pane,
  .app-shell.is-site-workspace .promotion-manager-list {
    position: relative;
    top: auto;
    max-height: none;
  }

  .app-shell.is-site-workspace .catalog-nomenclature-tree {
    max-height: 360px;
  }
}

@media (max-width: 900px) {
  .app-shell.is-site-workspace {
    display: block;
  }

  .app-shell.is-site-workspace .sidebar {
    position: sticky;
    z-index: 100;
    top: 0;
    display: flex;
    width: 100%;
    height: 54px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid #30363b;
    padding: 7px 8px;
  }

  .app-shell.is-site-workspace .brand {
    margin: 0;
  }

  .app-shell.is-site-workspace .brand-mark {
    width: 42px;
    height: 34px;
  }

  .app-shell.is-site-workspace .brand > span:last-child,
  .app-shell.is-site-workspace .sidebar-project-context,
  .app-shell.is-site-workspace .workspace-nav-label,
  .app-shell.is-site-workspace .workspace-nav-icon,
  .app-shell.is-site-workspace .sidebar-role {
    display: none;
  }

  .app-shell.is-site-workspace .nav-block--workspace,
  .app-shell.is-site-workspace .nav-block--switcher {
    display: flex;
    min-width: 0;
    flex: 0 1 auto;
    justify-content: flex-start;
    gap: 3px;
    margin: 0;
    overflow-x: auto;
    border: 0;
    padding: 0;
    scrollbar-width: none;
  }

  .app-shell.is-site-workspace .nav-block--workspace {
    flex: 1 1 auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .app-shell.is-site-workspace .workspace-nav-group {
    display: contents;
  }

  .app-shell.is-site-workspace .workspace-nav-button,
  .app-shell.is-site-workspace .nav-block--switcher .nav-button {
    width: auto;
    min-width: max-content;
    min-height: 36px;
    flex: 0 0 auto;
    padding-inline: 10px;
    scroll-snap-align: center;
  }

  .app-shell.is-site-workspace .workspace-nav-button .nav-dot,
  .app-shell.is-site-workspace .nav-block--switcher .nav-dot {
    display: none;
  }

  .app-shell.is-site-workspace .main {
    padding: 7px 8px 74px;
  }

  .app-shell.is-site-workspace .catalog-workbench.is-products-mode {
    min-height: 0;
  }

  .app-shell.is-site-workspace .catalog-workbench.is-products-mode > .catalog-products-pane {
    max-height: calc(100dvh - 310px);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .app-shell.is-site-workspace .catalog-workbench.is-products-mode > .catalog-editor-pane {
    display: none;
  }

  .app-shell.is-site-workspace .site-workspace-bar {
    top: 54px;
  }

  .app-shell.is-site-workspace .content-workspace-toolbar,
  .app-shell.is-site-workspace .promotion-editor-nav {
    top: 113px;
  }

  .app-shell.is-site-workspace .builder-save-dock.is-visible {
    right: 8px;
    bottom: 7px;
    left: 8px;
  }

  .app-shell.is-site-workspace .asset-grid {
    grid-template-columns: 1fr;
  }

  .app-shell.is-site-workspace .asset-grid > .editor-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 680px) {
  .app-shell.is-site-workspace .nav-block--switcher {
    display: none;
  }

  .app-shell.is-site-workspace .site-workspace-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .app-shell.is-site-workspace .site-workspace-title,
  .app-shell.is-site-workspace .site-workspace-status {
    display: none;
  }

  .app-shell.is-site-workspace .site-switcher {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell.is-site-workspace .site-switcher > span {
    display: none;
  }

  .app-shell.is-site-workspace .manager-page-head,
  .app-shell.is-site-workspace .manager-dashboard__hero,
  .app-shell.is-site-workspace .publish-action-card {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell.is-site-workspace .manager-page-head .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell.is-site-workspace .manager-page-head .actions > * {
    width: 100%;
  }

  .app-shell.is-site-workspace .catalog-workspace-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-shell.is-site-workspace .catalog-workspace-tabs > button {
    min-width: 148px;
  }

  .app-shell.is-site-workspace .catalog-workbench-summary {
    display: none;
  }

  .app-shell.is-site-workspace .manager-dashboard__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell.is-site-workspace .manager-dashboard__grid,
  .app-shell.is-site-workspace .asset-library-head {
    grid-template-columns: 1fr;
  }

  .app-shell.is-site-workspace .asset-library-head {
    display: grid;
    align-items: stretch;
  }

  .app-shell.is-site-workspace .asset-library-filters {
    width: 100%;
  }

  .app-shell.is-site-workspace .asset-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell.is-site-workspace .asset-preview {
    height: 112px;
  }
}

@media (max-width: 440px) {
  .app-shell.is-site-workspace .asset-group {
    grid-template-columns: 1fr;
  }
}
