.product-name {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.product-name:hover,
.mono:hover {
  color: var(--brand2);
  text-decoration: underline;
}

.clickable-row { cursor: pointer; }
.clickable-row:focus { outline: 2px solid var(--brand); outline-offset: -2px; }

.dashboard-sections { display: grid; gap: 44px; }
.dashboard-section { min-width: 0; }
.dashboard-section-head { margin-bottom: 16px; }
.dashboard-section-head h2 { margin: 0; font: 700 26px/1.2 Georgia, serif; }
.dashboard-section-head p { margin: 5px 0 0; color: var(--muted); }
.dashboard-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dashboard-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 108px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; background: var(--paper); box-shadow: 0 7px 22px rgba(21,45,40,.045); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.dashboard-card:hover { border-color: #8ea7a2; background: #f8fbfa; box-shadow: 0 11px 28px rgba(21,45,40,.085); }
.dashboard-card:focus-visible,.dashboard-setting:focus-visible { outline: 3px solid rgba(23,107,91,.22); outline-offset: 2px; }
.dashboard-card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 11px; background: #dcebe6; color: var(--brand2); font-weight: 850; }
.dashboard-card strong,.dashboard-card small { display: block; }
.dashboard-card strong { font-size: 16px; line-height: 1.3; }
.dashboard-card small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.dashboard-settings { padding-top: 2px; }
.dashboard-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dashboard-setting { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 11px; align-items: center; min-height: 76px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; background: rgba(255,255,255,.72); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.dashboard-setting:hover { border-color: #9aada8; background: #fff; box-shadow: 0 7px 18px rgba(21,45,40,.06); }
.dashboard-setting > span { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #e7efed; color: var(--brand2); font-size: 12px; font-weight: 850; }
.dashboard-setting strong { align-self: end; line-height: 1.25; }
.dashboard-setting small { align-self: start; margin-top: 2px; color: var(--muted); line-height: 1.3; }
.sync-dashboard-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.sync-dashboard-summary span,.sync-dashboard-summary strong { display: block; }
.sync-dashboard-summary strong { margin-top: 4px; }

.purpose {
  display: inline-flex;
  border-radius: 99px;
  padding: 5px 10px;
  background: #edf1f0;
  color: #52615e;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.purpose-remains { background: #e8edf5; color: #455d7a; }
.purpose-production { background: #e2f2e9; color: #176044; }
.purpose-unknown { background: #f0f1f1; color: #687481; }
.gtin-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.gtin-cell .purpose-compact { display: inline-flex; width: max-content; margin: 0; padding: 2px 7px; font-size: 10px; line-height: 1.35; }
.gtin-chips .presence { margin-top: 0; }
.presence { display: inline-flex; width: max-content; margin-top: 5px; padding: 2px 7px; border-radius: 99px; font-size: 10px; line-height: 1.35; font-weight: 800; white-space: nowrap; }
.presence-local { background: #fff0d7; color: #8b5900; }
.presence-processing { background: #e5effa; color: #285d8d; }
.presence-remote { background: #e2f2e9; color: #176044; }

.sync-launcher { position: relative; }
.sync-launcher > summary { list-style: none; }
.sync-launcher > summary::-webkit-details-marker { display: none; }
.sync-launcher > form { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: 390px; display: grid; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.sync-launcher label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.sync-launcher label input { width: auto; }
.sync-launcher .sync-from-option { display: grid; grid-template-columns: auto auto 1fr; }
.sync-launcher .sync-from-option input[type="date"] { min-width: 145px; }
.sync-launcher form > .btn { justify-self: end; }
.sync-heading small { display: block; color: var(--muted); margin-top: 3px; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.breadcrumbs a { color: var(--brand); text-decoration: none; }
.product-hero { align-items: flex-start; }
.product-detail-actions { margin: -10px 0 24px; }

.hero-facts {
  display: flex;
  gap: 32px;
  margin-top: 18px;
}

.hero-facts div { display: grid; gap: 2px; }
.hero-facts span { color: var(--muted); font-size: 12px; }
.composition-list { max-width: 620px; }

.composition-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.composition-list b { font-variant-numeric: tabular-nums; }
.doc-row small { display: block; color: var(--muted); margin-top: 3px; }
.service-info { background: #f9faf9; box-shadow: none; }
.technical-data summary { cursor: pointer; font-weight: 800; }
.technical-data dl { margin: 18px 0; }
.technical-data pre { max-height: 520px; }
.version-row small { display: block; color: var(--brand); }

.batch-tabs { grid-template-columns: repeat(5, minmax(130px, 1fr)); }
.batch-wizard { max-width: 1160px; margin-inline: auto; }
.batch-wizard .panel { min-height: 0; }
.step-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.step-heading > span { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.step-heading h2 { margin: 0 0 4px; }
.step-heading p { margin: 0; color: var(--muted); }
.batch-product-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-field { min-width: 0; }
.form-field-wide { grid-column: 1 / -1; }
.form-field > label,.choice-box > label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-field > input,.form-field > select,.search-combobox > input { min-height: 46px; }
.search-combobox { position: relative; }
.combobox-native { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.combobox-menu { position: absolute; z-index: 20; top: calc(100% - 2px); left: 0; right: 0; max-height: 310px; overflow-y: auto; padding: 6px; border: 1px solid #b9c9c5; border-radius: 9px; background: #fff; box-shadow: 0 14px 36px rgba(20,45,39,.16); }
.combobox-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; }
.combobox-menu button:hover,.combobox-menu button[aria-selected="true"] { background: #e5f0ec; color: var(--brand2); }
.combobox-empty { display: block; padding: 10px; color: var(--muted); }
.multi-combobox { position: relative; min-width: 0; }
.multi-combobox > label { display: block; font-weight: 700; margin-bottom: 6px; }
.multi-control { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; padding: 6px 40px 6px 8px; border: 1px solid #cbd5d5; border-radius: 9px; background: #fff; cursor: text; position: relative; }
.multi-control:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,107,91,.1); }
.multi-chips { display: contents; }
.multi-chip { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; padding: 5px 5px 5px 9px; border: 1px solid #c9d8d4; border-radius: 8px; background: #f2f7f5; }
.multi-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-chip button { flex: 0 0 25px; width: 25px; height: 25px; margin-left: 4px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.multi-chip button:hover { background: #f8e5e1; color: var(--danger); }
.multi-search { flex: 1 1 190px; width: auto; min-width: 150px; min-height: 34px; padding: 4px 2px; border: 0; border-radius: 0; outline: 0; }
.multi-search:focus { outline: 0; }
.multi-toggle { position: absolute; top: 7px; right: 7px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.multi-toggle:hover { background: #edf3f1; color: var(--brand2); }
.multi-results { position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; right: 0; max-height: 350px; overflow-y: auto; padding: 6px; border: 1px solid #b9c9c5; border-radius: 10px; background: #fff; box-shadow: 0 14px 36px rgba(20,45,39,.16); }
.multi-option { display: grid; grid-template-columns:minmax(0,1fr) auto; gap: 2px 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; text-align: left; cursor: pointer; }
.multi-option:hover,.multi-option.active { outline: 0; background: #e5f0ec; color: var(--brand2); }
.multi-option.selected { color: var(--brand2); background: #f2f7f5; cursor: pointer; }
.multi-option.unavailable { opacity:.58; cursor:not-allowed; }
.multi-option.unavailable:hover { background:transparent; color:inherit; }
.multi-option b { font: inherit; font-weight: 700; }
.multi-option span { color: var(--muted); white-space: normal; line-height: 1.45; }
.multi-option .multi-option-description { grid-column:1 / -1; white-space: pre-line; }
.multi-group { display: block; padding: 10px 10px 4px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.multi-message { display: block; padding: 12px; color: var(--muted); }
.multi-retry { margin: 0 12px 12px; border: 0; background: transparent; color: var(--brand); font-weight: 700; cursor: pointer; }
.document-form { max-width: 960px; }
.document-form .form-grid { gap: 18px 20px; }
.document-form textarea { min-height: 110px; resize: vertical; }
.document-form input[type="file"] { min-height: 46px; padding: 8px; }
.document-form input[type="checkbox"] { display: inline-block; width: 18px; height: 18px; min-height: 0; margin: 10px 7px 10px 0; padding: 0; vertical-align: middle; accent-color: var(--brand); }
.document-form input[type="checkbox"] + label { display: inline; margin: 0; color: var(--danger); font-size: 13px; vertical-align: middle; }
.document-form > .actions { justify-content: flex-end; margin-top: 24px; }
.document-subtitle { margin: 5px 0 0; color: var(--muted); }
.document-state { display: inline-flex; margin-bottom: 4px; padding: 6px 11px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.document-state.valid { background: #dff3e9; color: #176044; }
.document-state.pending { background: #fff0cd; color: #84600f; }
.document-state.expired { background: #fde7e2; color: #9d382c; }
.auto-note { margin-top: 22px; border-radius: 10px; padding: 14px 16px; background: #eef6f3; color: #315d53; }
.expired-docs { margin-top: 18px; color: var(--muted); }
.batch-wizard .wizard-nav { position: static; margin-top: 12px; padding-inline: 0; background: transparent; }
.batch-wizard #prev:disabled { display: none; }
.variant-pickers { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; }
.choice-box { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.gtin-mode input,.variant-enabled { width: auto; }
.variant-total { margin: 20px 0; padding: 14px 18px; background: #f7f9f8; border-radius: 10px; font-size: 17px; }
.wizard-step[data-panel="2"] .variant-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; }
.wizard-step[data-panel="2"] .variant-total span:last-child { margin-left: auto; }
.variant-total strong { color: var(--brand); font-size: 24px; }
.gtin-mode { border: 1px solid #b9d9cf; background: #eff8f5; border-radius: 12px; padding: 17px; }
.gtin-mode label { display: flex; gap: 10px; align-items: center; font-weight: 800; }
.gtin-mode p { margin: 5px 0 0 26px; color: var(--muted); }
.composition-builder { display: grid; gap: 16px; }
.composition-text-field textarea { width: 100%; min-height: 132px; resize: vertical; }
.composition-builder-panel { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.composition-builder-panel[hidden] { display: none; }
.composition-part-block { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fafbfa; }
.composition-part-head { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 16px; align-items: end; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.composition-part-head label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.remove-composition-part { min-height: 42px; padding: 8px 12px; border: 0; border-radius: 8px; background: #f8e5e1; color: var(--danger); font-weight: 700; cursor: pointer; }
.composition-materials-title { display: grid; grid-template-columns: 1fr 120px 42px; gap: 10px; margin: 16px 0 7px; color: var(--muted); font-size: 12px; }
.composition-materials-title span { grid-column: 2; }
.composition-materials { display: grid; gap: 8px; }
.composition-material-row { display: grid; grid-template-columns: minmax(220px, 1fr) 120px 42px; gap: 10px; align-items: center; }
.composition-percent-field { position: relative; }
.composition-percent-field input { padding-right: 34px; font-variant-numeric: tabular-nums; }
.composition-percent-field span { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.remove-composition-material { height: 42px; border: 0; background: #f8e5e1; color: var(--danger); border-radius: 8px; font-size: 22px; cursor: pointer; }
.composition-part-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.composition-part-total { margin-top: 15px; padding: 10px 12px; border-radius: 8px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.composition-part-total.valid { color: #176044; background: #dff3e9; }
.composition-part-total.invalid { color: #9d382c; background: #fde7e2; }
.composition-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.btn.subtle { color: var(--brand); background: transparent; border-color: transparent; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.review-grid > div { background: #f7f9f8; border-radius: 9px; padding: 12px; }.review-grid .wide { grid-column: 1 / -1; }
.review-grid span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.review-grid #review-composition { white-space: pre-line; }
.preview-table input.manual-gtin { min-width: 170px; padding: 8px; }
.batch-status-head { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.batch-status-head h2 { margin: 9px 0 0; }.batch-counters { display: flex; gap: 28px; }
.batch-counters div { text-align: right; }.batch-counters b { display: block; font: 700 28px Georgia,serif; }.batch-counters span { color: var(--muted); font-size: 12px; }
.btn.compact { padding: 6px 9px; font-size: 12px; margin: 2px; }.danger-text { color: var(--danger); }.batch-moderation { margin-top: 18px; display: flex; align-items: center; gap: 14px; }.batch-moderation p { color: var(--muted); }
.s-completed,.s-succeeded { background:#dff3e9;color:#176044 }.s-partial,.s-failed { background:#fde7e2;color:#9d382c }.s-processing,.s-submitting { background:#e2effa;color:#285c87 }.s-moderation { background:#fff0cd;color:#84600f }
.initial-state { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.initial-state legend { padding: 0 7px; font-weight: 800; }
.initial-state ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.initial-state label { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.initial-state input { width: auto; }.initial-state p { margin: 10px 0 0; color: var(--muted); }
.bulk-toolbar { position: sticky; top: 0; z-index: 4; display: grid; grid-template-columns: auto minmax(220px, 1fr) auto; align-items: center; gap: 16px; height: 68px; min-height: 68px; padding: 10px 16px; overflow: hidden; background: #edf6f3; border-bottom: 1px solid #c7ddd6; }
.bulk-toolbar[hidden],.bulk-toolbar [hidden] { display: none; }
.bulk-toolbar-summary { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 7px; white-space: nowrap; }
.bulk-toolbar-summary b { color: var(--brand2); font-size: 24px; line-height: 1; }
.bulk-toolbar-summary span:last-child { color: var(--muted); font-size: 13px; }
.bulk-toolbar-selection { color: #365a52; font-size: 13px; text-align: center; }
.bulk-toolbar-actions { display: flex; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--brand); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.btn.danger-outline { color: var(--danger); background: #fff; border-color: #dc9b91; }
.btn.danger-outline:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.selection-cell { width: 38px; text-align: center; }.selection-cell input { width: 18px; height: 18px; accent-color: var(--brand); }
.catalog-pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; margin: 18px 0; }
.pagination-direction { display: flex; align-items: center; gap: 8px; }
.pagination-direction-forward { justify-content: flex-end; }
.pagination-button { min-width: 104px; justify-content: center; margin: 0; }
.pagination-button.disabled { color: #9aa4a2; background: #f1f3f2; border-color: #e1e5e4; cursor: default; pointer-events: none; }
.pagination-jump { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); white-space: nowrap; }
.pagination-jump label { color: var(--ink); font-weight: 700; }
.pagination-jump input[type="number"] { width: 68px; padding: 7px 8px; text-align: center; }
.pagination-jump .btn { margin: 0; }
.btn.danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.fox-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 25px 70px rgba(0,0,0,.3); }
.fox-dialog::backdrop { background: rgba(10,25,22,.55); }.fox-dialog form { position: relative; padding: 26px; }.fox-dialog h2 { margin-top: 0; }.fox-dialog .actions { justify-content: flex-end; margin-top: 22px; }
.dialog-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 25px; color: var(--muted); cursor: pointer; }
.bulk-progress { margin: 16px 0; }.bulk-progress-head { display: flex; justify-content: space-between; align-items: center; }.bulk-progress-head h2 { margin: 3px 0 10px; }.bulk-progress-head > b { font-size: 22px; }
.bulk-progress progress { width: 100%; height: 12px; accent-color: var(--brand); }.bulk-counts { display: flex; gap: 22px; margin-top: 10px; }.bulk-result { display: grid; grid-template-columns: auto 150px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.bulk-signing-actions { justify-content: flex-end; margin-top: 16px; }
.active-catalog-operation { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.s-skipped { background: #eef0f1; color: #52606a; }
.status-timeline { display: grid; }
.status-timeline-item { position: relative; display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; padding: 10px 0; }
.status-timeline-item::before { content: ""; position: absolute; left: 6px; top: 28px; bottom: -10px; width: 2px; background: #d8e4e1; }
.status-timeline-item:last-child::before { display: none; }
.status-timeline-item > i { width: 14px; height: 14px; margin-top: 5px; border: 3px solid #cfe3dd; border-radius: 50%; background: var(--brand); }
.status-timeline-item small { display: block; margin-top: 4px; color: var(--muted); }
.status-timeline-item time { color: var(--muted); font-size: 13px; }
.product-notifications { display: grid; gap: 10px; margin: 0 0 18px; }
.product-notifications .notice { margin: 0; }
.product-notifications .notice span { display: block; margin-top: 4px; }
.product-notifications .notice.warning { background: #fff4dd; border-color: #d2a347; }
.product-marking-actions { align-items: flex-start; }
.marking-order-action { display: grid; gap: 5px; max-width: 360px; }
.marking-order-action small { color: var(--danger); line-height: 1.3; }
.marking-order-action .btn.disabled { color: #87918e; background: #e8ecea; border-color: #d7ddda; cursor: not-allowed; pointer-events: none; }

@media (max-width: 1100px) {
  .dashboard-card-grid,.dashboard-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulk-toolbar { grid-template-columns: auto 1fr; }
  .bulk-toolbar-selection { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .catalog-pagination { grid-template-columns: 1fr 1fr; }
  .pagination-jump { grid-column: 1 / -1; grid-row: 1; }
}

@media (max-width: 760px) {
  .dashboard-card-grid,.dashboard-settings-grid,.sync-dashboard-summary,.batch-product-fields { grid-template-columns: 1fr; }
  .dashboard-sections { gap: 34px; }
  .form-field-wide { grid-column: auto; }
  .variant-pickers,.review-grid { grid-template-columns: 1fr; }
  .review-grid .wide { grid-column: auto; }
  .composition-part-head,.composition-material-row { grid-template-columns: 1fr; }
  .composition-materials-title { display: none; }
  .remove-composition-part { justify-self: start; }
  .remove-composition-material { width: 42px; }
  .batch-status-head,.batch-moderation { align-items: flex-start; flex-direction: column; }
  .batch-counters { width: 100%; justify-content: space-between; }
  .bulk-toolbar { grid-template-columns: 1fr; height: 126px; position: static; }
  .bulk-toolbar-selection,.bulk-toolbar-actions { grid-column: auto; grid-row: auto; text-align: left; justify-content: flex-start; flex-wrap: wrap; }
  .catalog-pagination { grid-template-columns: 1fr; }
  .pagination-jump { grid-column: auto; grid-row: auto; flex-wrap: wrap; }
  .pagination-direction { justify-content: center; flex-wrap: wrap; }
  .wizard-step[data-panel="2"] .variant-total span:last-child { width: 100%; margin-left: 0; }
}

@media (min-width: 521px) and (max-width: 850px) {
  .honest-sign-sidebar nav { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .hero-facts { flex-direction: column; gap: 10px; }
}
