/* Generated from styles.css; edit the source, then prepare-frontend.py. */
:root {
  --bg: #191722;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-solid: #fbfbff;
  --surface-soft: rgba(255, 255, 255, 0.46);
  --ink: #090811;
  --muted: #756f86;
  --line: rgba(255, 255, 255, 0.58);
  --line-strong: rgba(88, 66, 139, 0.18);
  --green: #b8fa18;
  --green-dark: #537007;
  --green-soft: #edffb7;
  --purple: #7542d9;
  --purple-dark: #4f27ba;
  --trello-board-background: #171221;
  --trello-header-background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  --purple-soft: #eadfff;
  --progress-track: rgba(117, 66, 217, 0.15);
  --progress-fill: var(--purple);
  --accent: #090811;
  --blue: #2f6fcc;
  --blue-soft: #e6f0ff;
  --coral: #c75268;
  --coral-soft: #ffe4eb;
  --amber: #886321;
  --amber-soft: #fff0c9;
  --shadow: 0 24px 70px rgba(24, 18, 42, 0.16);
  --soft-shadow: 0 14px 34px rgba(47, 29, 84, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #191722;
}

body {
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  background:
    radial-gradient(circle at 48% -12%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(135deg, #191722 0%, #1c1a26 46%, #15141d 100%);
  color: var(--ink);
  font-family: Inter, "SF Pro Display", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  padding: 28px;
}

body:has(#kanbanView:not(.is-hidden)) {
  padding: 7px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: calc(100vh - 56px);
  max-width: 1760px;
  margin: 0 auto;
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.24), transparent 30%),
    radial-gradient(circle at 58% 105%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(244, 243, 248, 0.98) 0%, rgba(224, 222, 232, 0.98) 48%, rgba(204, 202, 214, 0.98) 100%);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #222;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(22px) saturate(1.12);
}

.topbar-search {
  flex: 1 1 420px;
  position: relative;
  display: block;
  width: 100%;
  max-width: 640px;
  min-width: 0;
  justify-self: start;
}

.topbar-search-icon {
  position: absolute;
  top: 50%;
  left: 11px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 999px;
  background: #020106;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 1;
  align-items: center;
  justify-content: center;
}

.topbar-search-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.topbar-search input {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 249, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  padding-left: 66px;
  font-size: 14px;
  font-weight: 650;
}

.topbar-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  justify-self: end;
  margin-left: auto;
  margin-right: 0;
  min-width: 0;
}

.topbar-health-widget {
  display: none;
  grid-template-columns: auto minmax(0, 1fr) auto;
  flex: 0 1 360px;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 360px;
  min-width: 0;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  padding: 8px 10px;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.topbar-health-widget:hover,
.topbar-health-widget:focus-visible {
  border-color: rgba(184, 250, 24, 0.64);
  background: rgba(184, 250, 24, 0.12);
  color: #fff;
  outline: none;
}

.topbar-health-widget:focus-visible {
  outline: 2px solid rgba(184, 250, 24, 0.72);
  outline-offset: 2px;
}

.topbar-health-widget-score {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--green);
  color: #090811;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.topbar-health-widget-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.topbar-health-widget-copy strong {
  color: currentColor;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.topbar-health-widget-copy span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-health-widget-pill {
  display: inline-flex;
  min-width: 42px;
  min-height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.topbar-health-widget.is-warning .topbar-health-widget-score,
.topbar-health-widget.is-warning .topbar-health-widget-pill {
  background: var(--amber);
  color: #090811;
}

.topbar-health-widget.is-danger .topbar-health-widget-score,
.topbar-health-widget.is-danger .topbar-health-widget-pill {
  background: var(--coral);
  color: #fff;
}

body.contentds-site-auth-locked .topbar-health-widget {
  display: none;
}

@media (max-width: 900px) {
  .topbar-health-widget {
    display: none;
  }
}


.topbar-actions .topbar-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 0;
  padding-inline: 18px;
  white-space: nowrap;
  font-weight: 750;
}

.topbar-actions .topbar-action-button + .topbar-action-button {
  box-shadow: inset 1px 0 rgba(255, 255, 255, 0.16);
}

.topbar-actions #siteExchange {
  border-radius: 0 8px 8px 0;
  background: #090811;
  color: #fff;
}

.topbar-actions #siteExchange {
  transition: background 160ms ease, color 160ms ease;
}

.topbar-actions #siteExchange:hover,
.topbar-actions #siteExchange:focus-visible {
  background: #12101d;
  color: #fff;
  transform: none;
  box-shadow: none;
}

.topbar-actions #siteExchange:active {
  transform: none;
}

.topbar-settings {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  min-height: 56px;
}

.topbar-settings-button {
  display: inline-flex;
  width: 44px;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.topbar-settings-button:hover,
.topbar-settings-button:focus-visible,
.topbar-settings-button[aria-expanded="true"] {
  background: transparent;
  color: #fff;
}

.topbar-settings-button:focus-visible {
  outline: 2px solid rgba(204, 204, 204, 0.7);
  outline-offset: 2px;
}

.topbar-settings-button svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.topbar-icon-button {
  display: inline-flex;
  width: 44px;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.topbar-icon-button:hover,
.topbar-icon-button:focus-visible {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
}

.topbar-icon-button:focus-visible {
  outline: 2px solid rgba(204, 204, 204, 0.7);
  outline-offset: 2px;
}

.topbar-icon-button svg {
  display: block;
  width: 25.3px;
  height: 25.3px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.topbar-admin-switch-button[hidden] {
  display: none !important;
}

.topbar-archive-button {
  display: none;
}

@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) #frontPanelButton {
    display: none;
  }

  body:not(.contentds-site-auth-locked):has(#kanbanView:not(.is-hidden)) .topbar-archive-button:not([hidden]) {
    display: inline-flex;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-archive-button.is-active {
    color: var(--green);
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-archive-button:disabled {
    cursor: default;
    opacity: 0.5;
  }
}

/* codex-contentds-room-dsd-orange-topbar-20260531 */
@media (min-width: 901px) {
  body:has(#roomView:not(.is-hidden)) .topbar {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    background: #ff5a00;
    backdrop-filter: none;
  }

  body:has(#roomView:not(.is-hidden)) .topbar-search input {
    border-color: #fff;
    background: #f9f9f9;
    color: #bbb;
    font-weight: 500;
    box-shadow: none;
  }

  body:has(#roomView:not(.is-hidden)) .topbar-search input:focus {
    border-color: #fff;
  }

  body:has(#roomView:not(.is-hidden)) .topbar-search input::placeholder {
    color: #bbb;
    font-weight: 500;
    opacity: 1;
  }

  body:has(#roomView:not(.is-hidden)) .topbar-search-icon {
    background: #ff5a00;
    color: #fff;
  }

  body:has(#roomView:not(.is-hidden)) .topbar-settings-button,
  body:has(#roomView:not(.is-hidden)) .topbar-icon-button,
  body:has(#roomView:not(.is-hidden)) .topbar-settings-button:hover,
  body:has(#roomView:not(.is-hidden)) .topbar-settings-button:focus-visible,
  body:has(#roomView:not(.is-hidden)) .topbar-settings-button[aria-expanded="true"],
  body:has(#roomView:not(.is-hidden)) .topbar-icon-button:hover,
  body:has(#roomView:not(.is-hidden)) .topbar-icon-button:focus-visible {
    color: #fff;
  }

  body:has(#roomView:not(.is-hidden)) .topbar-settings-button svg,
  body:has(#roomView:not(.is-hidden)) .topbar-icon-button svg {
    width: 25.3px;
    height: 25.3px;
  }

  html[data-trello-native] body.is-crm-view-active .topbar-actions {
    --crm-avatar-side-spacing: 12px;
  }

  html[data-trello-native] body.is-crm-view-active #crm-two-columns-toggle {
    margin-inline-end: var(--crm-avatar-side-spacing);
  }

  html[data-trello-native] body.is-crm-view-active .topbar-actions > .topbar-settings {
    margin-inline-start: var(--crm-avatar-side-spacing);
  }

  /* codex-contentds-room-auth-avatar-desktop-20260603 */
  body:has(#roomView:not(.is-hidden)) .topbar-login-button {
    display: inline-flex;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    transition: color 0.18s ease, opacity 0.18s ease;
    white-space: nowrap;
  }

  body:has(#roomView:not(.is-hidden)) .topbar-login-button:hover,
  body:has(#roomView:not(.is-hidden)) .topbar-login-button:focus-visible {
    color: rgba(255, 255, 255, 0.78);
  }

  body:has(#roomView:not(.is-hidden)) .topbar-login-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.72);
    outline-offset: 2px;
  }

  body:has(#roomView:not(.is-hidden)) .topbar-login-button.is-authenticated {
    width: 56px;
    padding: 0 7px;
  }

  body:has(#roomView:not(.is-hidden)) .topbar-user-avatar {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 17px;
    font-weight: 760;
    line-height: 1;
  }

  body:has(#roomView:not(.is-hidden)) .topbar-user-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* codex-contentds-crm-muted-dark-navy-topbar-20260612 */
  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .topbar {
    background: #273658;
  }

  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .topbar-search-icon {
    background: #273658;
  }
}

.topbar-login-button {
  display: none;
}

.topbar-catalog-button,
.topbar-kanban-add-column-button,
.topbar-column-filter-button,
.topbar-automation-button {
  display: none;
}

.settings-menu {
  position: fixed;
  top: 113px;
  right: max(53px, calc((100vw - 1760px) / 2 + 25px));
  z-index: 20;
  min-width: 250px;
  border: 1px solid rgba(17, 16, 26, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.96);
  padding: 6px;
  box-shadow: 0 18px 46px rgba(20, 17, 32, 0.2);
}

.settings-menu[hidden] {
  display: none;
}

.settings-menu-separator {
  display: block;
  height: 1px;
  margin: 4px 6px;
  background: rgba(17, 16, 26, 0.1);
}

.settings-menu-item {
  display: flex;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 10px 12px;
  font: inherit;
  font-weight: 750;
  align-items: center;
  text-align: left;
  text-decoration: none;
}

.settings-menu-item:hover,
.settings-menu-item:focus-visible {
  background: rgba(99, 48, 213, 0.1);
  color: var(--purple);
  outline: none;
}

.auth-modal {
  width: min(420px, calc(100vw - 32px));
  max-width: 100%;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.auth-modal::backdrop {
  background: rgba(9, 8, 17, 0.58);
  backdrop-filter: blur(8px);
}

.auth-modal-card {
  position: relative;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 18px;
  background: rgba(255, 255, 249, 0.98);
  box-shadow: 0 28px 74px rgba(9, 8, 17, 0.32);
  padding: 34px;
}

.auth-modal-card h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 850;
}

.auth-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.auth-field input {
  min-height: 48px;
  border: 1px solid rgba(88, 66, 139, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font-size: 15px;
  font-weight: 650;
}

.auth-field input:focus {
  border-color: var(--purple);
  outline: 2px solid rgba(118, 67, 255, 0.2);
  outline-offset: 0;
}

.auth-status {
  min-height: 18px;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.auth-status.is-error {
  color: #c85567;
}

.auth-status.is-success {
  color: #15803d;
}

.auth-recovery-link {
  color: inherit;
  opacity: .8;
  text-align: center;
  font-size: 13px;
  text-underline-offset: 3px;
}
.auth-recovery-link:hover { opacity: 1; }

.auth-submit {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 820;
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(9, 8, 17, 0.08);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}

.auth-modal-close:hover,
.auth-modal-close:focus-visible {
  background: var(--ink);
  color: #fff;
}

.auth-modal-close:focus-visible {
  outline: 2px solid rgba(118, 67, 255, 0.35);
  outline-offset: 2px;
}

/* codex-contentds-site-auth-gate-20260619 */
body.contentds-site-auth-locked {
  min-height: 100vh;
  background: #f6f7f3;
}

body.contentds-site-auth-locked .app-shell {
  min-height: 100vh;
}

body.contentds-site-auth-locked .topbar {
  border-bottom: 1px solid rgba(9, 8, 17, 0.08);
  background: rgba(255, 255, 249, 0.96);
  color: #090811;
}

body.contentds-site-auth-locked .topbar-search,
body.contentds-site-auth-locked .topbar-boards-button,
body.contentds-site-auth-locked .topbar-kanban-add-column-button,
body.contentds-site-auth-locked .topbar-column-filter-button,
body.contentds-site-auth-locked .topbar-automation-button,
body.contentds-site-auth-locked .topbar-settings,
body.contentds-site-auth-locked .topbar-front-button,
body.contentds-site-auth-locked .topbar-sync-card,
body.contentds-site-auth-locked #createProduct,
body.contentds-site-auth-locked #siteExchange,
body.contentds-site-auth-locked #siteExchangeFilterButton {
  display: none !important;
}

body.contentds-site-auth-locked .topbar-brand {
  min-height: 56px;
}

body.contentds-site-auth-locked .topbar-catalog-button {
  position: absolute;
  top: 50%;
  left: 200px;
  display: inline-flex !important;
  width: 56px;
  min-width: 56px;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #090811;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateY(-50%);
}

body.contentds-site-auth-locked .topbar-login-button {
  display: inline-flex;
  min-height: 46px;
  border: 1px solid rgba(9, 8, 17, 0.16);
  border-radius: 8px;
  background: #090811;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
}

body.contentds-site-auth-locked .topbar-login-button:hover,
body.contentds-site-auth-locked .topbar-login-button:focus-visible {
  background: #23222a;
}

body.contentds-site-auth-locked .topbar-login-button:focus-visible {
  outline: 2px solid rgba(9, 8, 17, 0.28);
  outline-offset: 2px;
}

.contentds-site-auth-gate[hidden] {
  display: none !important;
}

.contentds-site-auth-gate {
  display: grid;
  min-height: calc(100vh - 92px);
  place-items: center;
  padding: 56px 24px;
}

.contentds-site-auth-gate-card {
  display: grid;
  width: min(420px, 100%);
  gap: 18px;
  justify-items: start;
  border: 1px solid rgba(9, 8, 17, 0.1);
  border-radius: 8px;
  background: #fffff9;
  padding: 34px;
}

.contentds-site-auth-gate-card span {
  color: rgba(9, 8, 17, 0.54);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contentds-site-auth-gate-card h2 {
  margin: 0;
  color: #090811;
  font-size: 30px;
  line-height: 1.1;
}

.contentds-site-auth-gate-card p {
  margin: 0;
  color: rgba(9, 8, 17, 0.66);
  font-size: 15px;
  font-weight: 650;
}

.topbar-brand {
  display: grid;
  position: relative;
  z-index: 60;
  justify-items: start;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 750;
}

.topbar-caption {
  margin: 6px 0 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

.topbar-logo {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: min(195px, 100%);
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.topbar-logo-wordmark {
  display: inline-flex;
  color: #fff;
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
}

.topbar-logo--text {
  display: none;
}

.topbar-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 27px;
  object-fit: contain;
}

.topbar-logo:hover {
  opacity: 0.86;
}

.is-brands-view-active .topbar-logo {
  max-width: 112px;
}

.is-brands-view-active .topbar-logo-wordmark {
  font-size: 20px;
  font-weight: 820;
}

.topbar-logo[aria-expanded="true"] {
  opacity: 1;
}

.topbar-logo:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

/* codex-kanban-logo-only-board-desktop-20260521 */
@media (min-width: 901px) {
  .topbar-brand.is-kanban-logo-mode .topbar-logo--image {
    display: none;
  }

  .topbar-brand.is-kanban-logo-mode .topbar-logo--text {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--ink);
    font-size: 34px;
    font-weight: 850;
    line-height: 1;
  }
}

/* codex-kanban-topbar-purple-white-trello-desktop-20260521 */
.topbar-boards-button {
  display: none;
}

.topbar-boards-button[hidden] {
  display: none !important;
}

.topbar-boards-current {
  display: none;
}

.topbar-kanban-search {
  display: none;
}

@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .app-shell {
    border-color: #555;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar {
    padding: 8px 18px;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    background: var(--trello-header-background);
    box-shadow: 0 18px 46px rgba(79, 39, 186, 0.28);
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-brand.is-kanban-logo-mode .topbar-logo--text {
    color: #fff;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-brand.is-kanban-logo-mode {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-boards-button {
    position: static;
    flex: 0 0 44px;
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: none;
    transition: color 0.18s ease, opacity 0.18s ease;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-boards-button:hover,
  body:has(#kanbanView:not(.is-hidden)) .topbar-boards-button:focus-visible {
    color: var(--green);
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-boards-button:focus-visible {
    outline: 2px solid rgba(184, 250, 24, 0.7);
    outline-offset: 2px;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-boards-button svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-boards-current:not([data-board-id="main"]) {
    position: static;
    flex: 0 0 auto;
    display: block;
    max-width: min(30vw, 100%);
    min-width: 0;
    padding-block: 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-kanban-search {
    position: relative;
    display: block;
    flex: 0 1 420px;
    min-width: 260px;
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    transform: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-kanban-search input {
    width: 100%;
    min-height: 54px;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    outline: none;
    padding: 11px 12px 11px 66px;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-kanban-search .topbar-search-icon {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    box-shadow: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-kanban-search input::placeholder {
    color: rgba(255, 255, 255, 0.64);
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-kanban-search:has(input:focus) .topbar-search-icon,
  body:has(#kanbanView:not(.is-hidden)) .topbar-kanban-search input:focus {
    border-color: rgba(184, 250, 24, 0.72);
    box-shadow: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-logo:focus-visible {
    outline-color: #fff;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-settings-button {
    color: #fff;
    height: 44px;
    min-height: 44px;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-settings,
  body:has(#kanbanView:not(.is-hidden)) .topbar-icon-button,
  body:has(#kanbanView:not(.is-hidden)) .topbar-catalog-button {
    height: 44px;
    min-height: 44px;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-catalog-button {
    position: static;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    transform: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-settings-button:hover,
  body:has(#kanbanView:not(.is-hidden)) .topbar-settings-button:focus-visible,
  body:has(#kanbanView:not(.is-hidden)) .topbar-settings-button[aria-expanded="true"] {
    color: #ccc;
  }
}

/* codex-root-catalog-launcher-20260525 */
@media (min-width: 901px) {
  /* codex-catalog-button-all-pages-20260526 */
  .topbar-brand {
    min-height: 56px;
  }

  .is-brands-view-active .topbar {
    gap: 10px;
    padding-inline: 16px;
  }

  .is-brands-view-active .topbar-brand {
    min-height: 44px;
  }

  .is-brands-view-active .topbar-catalog-button {
    left: 112px;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .is-brands-view-active .topbar-search input {
    min-height: 44px;
    padding-left: 52px;
  }

  .is-brands-view-active .topbar-search-icon {
    width: 34px;
    height: 34px;
    left: 8px;
  }

  .is-brands-view-active .topbar-actions .topbar-action-button,
  .is-brands-view-active .topbar-settings-button,
  .is-brands-view-active .topbar-icon-button {
    min-height: 42px;
  }

  .topbar-catalog-button {
    position: absolute;
    top: 50%;
    left: 200px;
    display: inline-flex;
    width: 56px;
    min-width: 56px;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    transition: color 0.18s ease, opacity 0.18s ease;
  }

  .topbar-catalog-button:hover,
  .topbar-catalog-button:focus-visible {
    color: var(--green);
  }

  .topbar-catalog-button:focus-visible {
    outline: 2px solid rgba(184, 250, 24, 0.7);
    outline-offset: 2px;
  }

  .topbar-catalog-button svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

}







.catalog-modal {
  width: 70vw;
  height: 70vh;
  max-width: calc(100vw - 96px);
  max-height: calc(100vh - 128px);
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: #222;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.48);
  color: #fff;
  overflow: auto;
  padding: clamp(30px, 3.4vw, 44px);
  outline: none;
}

.catalog-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
}


.catalog-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 30px);
  justify-content: start;
  align-content: start;
}

.catalog-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: clamp(116px, 15vh, 176px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #2d2d2d;
  color: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.22);
  padding: 22px;
  text-align: center;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.catalog-modal-card[hidden] {
  display: none !important;
}

.catalog-modal-card:hover,
.catalog-modal-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 54px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.catalog-modal-card:disabled,
.catalog-modal-card[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.catalog-modal-card:disabled:hover,
.catalog-modal-card:disabled:focus-visible,
.catalog-modal-card[aria-disabled="true"]:hover,
.catalog-modal-card[aria-disabled="true"]:focus-visible {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.22);
  transform: none;
}

.boards-modal-item { position: relative; min-width: 0; }
.boards-modal-item[hidden] { display: none !important; }
.boards-modal-item > .boards-modal-card { width: 100%; height: 100%; }
.boards-rename-button { display: none; }
@media (min-width: 901px) {
  .boards-modal-item > .boards-modal-card { padding: 38px 22px; }
  .boards-rename-button {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    box-shadow: none;
    cursor: pointer;
  }
  .boards-rename-button:hover, .boards-rename-button:focus-visible {
    color: #b8fa18;
    border-color: currentColor;
    outline: none;
  }
  .boards-rename-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .boards-rename-form input { box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.22); }
  .boards-create-form.boards-rename-form input:focus { outline: none; box-shadow: none; border-color: #b8fa18; }
}

.boards-modal-card.is-active {
  border-color: rgba(184, 250, 24, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 22px 54px rgba(0, 0, 0, 0.3);
}

.boards-modal-add {
  position: absolute;
  top: clamp(22px, 2.4vw, 34px);
  right: clamp(22px, 2.4vw, 34px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.boards-modal-add:hover,
.boards-modal-add:focus-visible {
  border-color: rgba(184, 250, 24, 0.62);
  background: rgba(184, 250, 24, 0.08);
  color: #b8fa18;
}

.boards-modal-add:focus-visible {
  outline: 2px solid rgba(184, 250, 24, 0.72);
  outline-offset: 3px;
}

.boards-modal-add svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.boards-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto auto;
  gap: 10px;
  align-items: center;
  margin: 0 clamp(52px, 5vw, 78px) 22px 0;
}

.boards-create-form[hidden] {
  display: none !important;
}

.boards-create-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0 12px;
  font: inherit;
}

.boards-create-form input:focus {
  border-color: rgba(184, 250, 24, 0.62);
  outline: 2px solid rgba(184, 250, 24, 0.24);
  outline-offset: 2px;
}

.boards-create-status {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.catalog-modal-card:focus-visible {
  outline: 2px solid rgba(184, 250, 24, 0.72);
  outline-offset: 3px;
}

.catalog-modal-card--trello {
  border-color: rgba(196, 163, 255, 0.28);
  background: #7542d9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 22px 56px rgba(79, 39, 186, 0.34);
}

.catalog-modal-card--content,
.catalog-modal-card--content:hover,
.catalog-modal-card--content:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #000;
  box-shadow: none;
}

.catalog-modal-card--content:hover,
.catalog-modal-card--content:focus-visible {
  transform: none;
}

.catalog-modal-card--marketing {
  border-color: rgba(255, 122, 184, 0.42);
  background: #f04f9f;
  color: #fff;
}

.catalog-modal-card--marketing:hover,
.catalog-modal-card--marketing:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  background: #ff61ad;
}

.catalog-modal-card--health {
  border-color: rgba(184, 250, 24, 0.46);
  background: #b8fa18;
  color: #090811;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 22px 56px rgba(184, 250, 24, 0.22);
}

.catalog-modal-card--health:hover,
.catalog-modal-card--health:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
  background: #c6ff34;
}

.catalog-modal-card--b2b {
  border-color: rgba(255, 255, 255, 0.18);
  background: #ff5a00;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 22px 56px rgba(255, 90, 0, 0.28);
}

.catalog-modal-card--b2b:hover,
.catalog-modal-card--b2b:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 24px 62px rgba(255, 90, 0, 0.36);
}

.catalog-modal-card--dsd {
  padding: 0;
  overflow: hidden;
}

.catalog-modal-card--dsd:focus-within {
  border-color: rgba(255, 255, 255, 0.34);
}

.catalog-modal-card-main {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  color: inherit;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.catalog-modal-card-main:focus-visible {
  outline: 2px solid rgba(184, 250, 24, 0.72);
  outline-offset: -5px;
}

.catalog-modal-admin-link {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(9, 8, 17, 0.18);
  color: #fff;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.catalog-modal-admin-link:hover,
.catalog-modal-admin-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.18);
}

.catalog-modal-admin-link:focus-visible {
  outline: 2px solid rgba(184, 250, 24, 0.72);
  outline-offset: 3px;
}

.catalog-modal-admin-link svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.catalog-modal-card-title {
  display: block;
  max-width: 100%;
  color: currentColor;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.catalog-modal-card-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  align-items: center;
  justify-content: center;
}

.catalog-modal-card-icon svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.menu-settings-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

@media (min-width: 901px) {
  .menu-settings-modal {
    position: fixed;
    inset: var(--menu-settings-modal-top, 28px) auto auto var(--menu-settings-modal-left, 28px);
    width: var(--menu-settings-modal-width, min(1760px, calc(100vw - 56px)));
    height: var(--menu-settings-modal-height, calc(100vh - 56px));
    max-width: none;
    max-height: none;
    margin: 0;
    border: 1px solid rgba(9, 8, 17, 0.12);
    border-radius: 28px 28px 0 0;
    background: #eee;
    color: #090811;
    overflow: hidden;
    padding: 0;
    outline: none;
  }

  .menu-settings-modal-surface {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    height: 100%;
    padding: 34px 30px 24px;
    overflow: hidden;
  }

  .menu-settings-modal-head {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
  }

  .menu-settings-modal-head h3 {
    flex: 0 0 auto;
    margin: 0;
    color: #090811;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.16;
  }

  .menu-settings-head-device-tabs {
    flex: 0 0 auto;
    margin-left: 56px;
  }

  .menu-settings-modal-head-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
  }

  .menu-settings-modal-close {
    display: grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 1px solid #090811;
    border-radius: 999px;
    background: #090811;
    color: #fff;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    place-items: center;
  }

  .menu-settings-modal-close svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
  }

  .menu-settings-modal-close:hover,
  .menu-settings-modal-close:focus-visible {
    border-color: #090811;
    background: #191722;
    color: #fff;
    outline: none;
  }

  /* codex-discounts-modal-dark-empty-20260529 */
  .discounts-modal {
    border-color: rgba(255, 255, 255, 0.12);
    background: #222;
    color: #fff;
  }

  .discounts-modal .menu-settings-modal-surface {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 28px;
    padding: 34px 30px 24px;
  }

  .discounts-modal .menu-settings-modal-head {
    width: 100%;
    justify-content: space-between;
  }

  .discounts-modal .menu-settings-modal-head h3 {
    color: #fff;
  }

  .discounts-modal .menu-settings-modal-close {
    margin-left: auto;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #eee;
  }

  .discounts-modal .menu-settings-modal-close:hover,
  .discounts-modal .menu-settings-modal-close:focus-visible {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
  }

  .discounts-modal-grid {
    display: grid;
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    color: #fff;
    overflow: hidden;
  }

  .discounts-modal-column {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    align-content: start;
    padding: 2px 28px 0;
  }

  .discounts-modal-column:first-child {
    padding-left: 0;
  }

  .discounts-modal-column:last-child {
    padding-right: 0;
  }

  .discounts-modal-column + .discounts-modal-column {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .discounts-modal-column-head {
    display: flex;
    min-width: 0;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .discounts-modal-column-head h4 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discounts-modal-add-name {
    display: inline-flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  }

  .discounts-modal-add-name:hover,
  .discounts-modal-add-name:focus-visible {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(110, 67, 210, 0.9);
    outline: none;
  }

  .discounts-modal-add-name:active {
    transform: translateY(1px);
  }

  .discounts-modal-add-name svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
  }

  .discounts-name-list,
  .discounts-filter-list,
  .discounts-rule-list {
    display: grid;
    min-width: 0;
    align-content: start;
  }

  .discounts-name-list {
    gap: 8px;
    overflow: auto;
    padding-right: 4px;
  }

  .discounts-name-sublist {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .discounts-individual-summary {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    overflow-wrap: anywhere;
  }

  .discounts-individual-summary:focus-visible {
    outline: 2px solid #7952ce;
    outline-offset: 2px;
  }

  .discounts-individual-list {
    margin-top: 8px;
    padding-left: 12px;
  }

  .discounts-name-list::-webkit-scrollbar {
    width: 8px;
  }

  .discounts-name-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
  }

  .discounts-name-item {
    position: relative;
    display: block;
    min-width: 0;
  }

  .discounts-name-item[draggable="true"] .discounts-name-button {
    cursor: grab;
  }

  .discounts-name-item[draggable="true"] .discounts-name-button:active {
    cursor: grabbing;
  }

  .discounts-name-delete {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 0.16s ease, color 0.16s ease, background 0.16s ease;
  }

  .discounts-name-item:hover .discounts-name-delete,
  .discounts-name-item:focus-within .discounts-name-delete {
    opacity: 1;
    pointer-events: auto;
  }

  .discounts-name-delete:hover,
  .discounts-name-delete:focus-visible {
    background: rgba(255, 87, 87, 0.14);
    color: #ff8f8f;
    outline: none;
  }

  .discounts-name-delete svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    min-width: 0;
  }

  .discounts-name-item.is-dragging {
    opacity: 0.54;
  }

  .discounts-name-item.is-drop-before::before,
  .discounts-name-item.is-drop-after::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: #6e43d2;
    pointer-events: none;
  }

  .discounts-name-item.is-drop-before::before {
    top: -5px;
  }

  .discounts-name-item.is-drop-after::after {
    bottom: -5px;
  }

  .discounts-field,
  .discounts-rule-row {
    display: grid;
    min-width: 0;
    gap: 6px;
  }

  .discounts-filter-list {
    gap: 30px;
    overflow: visible;
  }

  .discounts-filter-area {
    /* codex-discounts-inline-filter-20260530 */
    display: grid;
    min-width: 0;
    align-content: start;
  }

  .discounts-rule-list {
    gap: 12px;
  }

  .discounts-rule-block-title {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
  }

  .discounts-rule-block-label {
    min-width: 0;
  }

  .discounts-period-toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    cursor: pointer;
  }

  .discounts-period-toggle-control {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 22px;
    flex: 0 0 auto;
  }

  .discounts-period-toggle input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }

  .discounts-period-toggle-track {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: #1c1c1c;
    transition: background 0.18s ease, border-color 0.18s ease;
  }

  .discounts-period-toggle-track::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    transition: transform 0.18s ease, background 0.18s ease;
  }

  .discounts-period-toggle input:checked + .discounts-period-toggle-track {
    border-color: #6e43d2;
    background: #6e43d2;
  }

  .discounts-period-toggle input:checked + .discounts-period-toggle-track::before {
    transform: translateX(20px);
    background: #fff;
  }

  .discounts-period-toggle input:focus-visible + .discounts-period-toggle-track {
    outline: 2px solid rgba(110, 67, 210, 0.7);
    outline-offset: 3px;
  }

  .discounts-rule-row {
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .discounts-field span,
  .discounts-rule-row span {
    min-width: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
  }

  .discounts-rule-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discounts-name-button,
  .discounts-name-input,
  .discounts-field select,
  .discounts-rule-row input {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #1c1c1c;
    color: #fff;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    text-align: left;
    cursor: pointer;
    color-scheme: dark;
  }

  .discounts-name-input {
    cursor: text;
  }

  .discounts-rule-row input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.72;
    filter: invert(1);
  }

  .discounts-field select {
    appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.72) 50%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.72) 50%, transparent 50%);
    background-position:
      calc(100% - 17px) 15px,
      calc(100% - 11px) 15px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    padding-right: 34px;
  }

  .discounts-field > div,
  .discounts-filter-combobox {
    min-width: 0;
  }

  .discounts-field .site-exchange-filter-select-button {
    min-height: 36px;
  }

  .discounts-field .site-exchange-filter-combobox.is-open {
    z-index: 60;
  }

  .discounts-field .site-exchange-filter-select-panel {
    max-height: min(300px, 42vh);
    box-shadow: none;
  }

  .discounts-field .site-exchange-filter-select-options {
    max-height: 198px;
  }

  .discounts-field .discounts-filter-selected-badges {
    min-height: 0;
    gap: 6px;
    padding-top: 8px;
  }

  .discounts-field .discounts-filter-selected-badge {
    min-height: 26px;
    max-width: 100%;
    border-radius: 7px;
    background: rgba(110, 67, 210, 0.84);
    padding: 0 7px 0 9px;
    font-size: 12px;
    font-weight: 600;
  }

  .discounts-field .discounts-filter-selected-badge span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discounts-rule-row input::placeholder {
    color: rgba(255, 255, 255, 0.36);
  }

  .discounts-name-button:hover,
  .discounts-name-button:focus-visible,
  .discounts-name-input:focus,
  .discounts-field select:focus,
  .discounts-rule-row input:focus {
    border-color: rgba(255, 255, 255, 0.34);
    background: #242424;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  }

  .discounts-name-button.is-active {
    border-color: rgba(255, 255, 255, 0.48);
    background: #242424;
    color: #fff;
  }

  .discounts-name-button {
    padding-right: 42px;
  }
}

.logo-menu {
  position: absolute;
  top: -8px;
  left: 209px;
  z-index: 80;
  display: grid;
  gap: 4px;
  width: min(270px, calc(100vw - 48px));
  border: 1px solid rgba(17, 16, 26, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.97);
  box-shadow: 0 22px 56px rgba(20, 17, 32, 0.24);
  padding: 8px;
  animation: logoMenuSlideIn 180ms ease-out both;
  backdrop-filter: blur(18px);
}

.logo-menu[hidden] {
  display: none;
}

.logo-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 780;
  line-height: 1.2;
  text-align: left;
}

.logo-menu-item:hover,
.logo-menu-item:focus-visible {
  background: rgba(9, 8, 17, 0.08);
  outline: none;
}

@keyframes logoMenuSlideIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 2.4vw, 40px);
  font-weight: 720;
  line-height: 1.05;
}

h3 {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 760;
}

.topbar-actions,
.status-controls,
.publish-actions,
.danger-actions,
.view-tabs,
.bulk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-actions {
  position: relative;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
}

.topbar-actions.has-site-exchange-progress {
  min-height: 56px;
}

.topbar-actions.has-site-exchange-progress .topbar-sync-card,
.topbar-actions.has-site-exchange-progress #createProduct,
.topbar-actions.has-site-exchange-progress #siteExchange,
.topbar-actions.has-site-exchange-progress #siteExchangeFilterButton {
  visibility: hidden;
}

.site-exchange-progress {
  position: absolute;
  top: 0;
  right: 56px;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 5px;
  align-content: center;
  min-width: 0;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 14px 30px rgba(24, 18, 42, 0.1);
  padding: 7px 12px 8px;
  color: var(--ink);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.site-exchange-progress[hidden] {
  display: none;
}

.site-exchange-progress-head,
.site-exchange-progress-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.site-exchange-progress-head span,
.site-exchange-progress-meta span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-exchange-progress-head strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.site-exchange-progress-track {
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: rgba(9, 8, 17, 0.12);
}

.site-exchange-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #ff4d2d;
  box-shadow: 0 0 16px rgba(255, 77, 45, 0.38);
  transition: width 240ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-exchange-progress.is-running .site-exchange-progress-track span {
  background: linear-gradient(90deg, #ff4d2d 0%, #ff7b36 100%);
}

.site-exchange-progress.is-success .site-exchange-progress-track span {
  background: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.3);
}

.site-exchange-progress.is-warning .site-exchange-progress-track span {
  background: #d98a12;
  box-shadow: 0 0 16px rgba(217, 138, 18, 0.28);
}

.site-exchange-progress.is-error .site-exchange-progress-track span {
  background: var(--coral);
  box-shadow: 0 0 16px rgba(199, 82, 104, 0.28);
}

.view-tabs {
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: var(--surface);
}

.view-tab {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 7px 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.view-tab.active {
  background: var(--ink);
  color: #fff;
}

.sync-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sync-indicator.online {
  border-color: rgba(45, 106, 79, 0.2);
  background: var(--green-soft);
  color: var(--green);
}

.sync-indicator.warning {
  border-color: rgba(139, 104, 40, 0.22);
  background: var(--amber-soft);
  color: var(--amber);
}

.button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  font-weight: 720;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 10px 22px rgba(51, 33, 84, 0.12);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button-primary {
  border-color: rgba(7, 5, 13, 0.86);
  background: var(--ink);
  color: #fff;
}

.button-secondary {
  background: var(--green);
  color: #142000;
  border-color: rgba(112, 154, 10, 0.28);
}

.button-danger {
  background: var(--coral-soft);
  color: var(--coral);
  border-color: rgba(185, 93, 79, 0.2);
}

#deleteCurrentProduct {
  background: transparent;
  border-color: transparent;
  color: var(--coral);
  box-shadow: none;
  font-weight: 500;
}

#deleteCurrentProduct:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.button-ghost {
  background: transparent;
  border-color: var(--line);
}

.app-main {
  min-height: calc(100vh - 124px);
}

.is-hidden {
  display: none !important;
}

.catalog-view {
  padding: 22px 24px 24px;
}

.dashboard-view {
  padding: 22px 24px 24px;
}

.dashboard-page {
  display: grid;
  gap: 12px;
}

.bfi-view {
  padding: 22px 24px 24px;
}

.bfi-page {
  display: grid;
  gap: 12px;
}

.bfi-refresh-button {
  min-width: 132px;
}

.bfi-panel {
  display: grid;
  gap: 12px;
}

.bfi-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bfi-panel-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.bfi-panel-head p,
.bfi-status,
.bfi-updated {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.bfi-status.is-error {
  color: var(--coral);
}

.bfi-updated {
  margin-top: 0;
  white-space: nowrap;
}

.bfi-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bfi-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.bfi-table th,
.bfi-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

.bfi-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.bfi-table tr:last-child td {
  border-bottom: 0;
}

.bfi-table code {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.bfi-stock-value {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bfi-raw-value {
  display: block;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.45;
  white-space: normal;
}

.bfi-product-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.bfi-product-cell strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

.bfi-product-cell span {
  color: var(--muted);
  font-size: 12px;
}

.bfi-empty-cell {
  min-height: 64px;
  color: var(--muted) !important;
  text-align: center !important;
}

.dashboard-toolbar {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: flex-start;
}

.dashboard-period-filter {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(117, 111, 134, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 42px rgba(17, 16, 26, 0.07);
}

.dashboard-period-filter button {
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}

.dashboard-period-filter button:hover,
.dashboard-period-filter button:focus-visible {
  background: rgba(17, 16, 26, 0.06);
  color: var(--ink);
  outline: none;
}

.dashboard-period-filter button.is-active {
  background: var(--ink);
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.dashboard-card {
  display: grid;
  align-content: space-between;
  gap: 20px;
  min-height: 196px;
  padding: 22px;
  overflow: hidden;
}

.dashboard-revenue-card {
  background:
    linear-gradient(135deg, rgba(184, 250, 24, 0.22), rgba(255, 255, 255, 0.62) 46%, rgba(255, 255, 255, 0.86)),
    rgba(255, 255, 255, 0.66);
}

.dashboard-card-head,
.dashboard-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.dashboard-card-head span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.08;
}

.dashboard-card-head strong,
.dashboard-card-foot strong {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-card-value {
  color: var(--ink);
  font-size: 42px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  white-space: nowrap;
}

.dashboard-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-card-details > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(17, 16, 26, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.dashboard-card-details span {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.1;
}

.dashboard-card-details p,
.dashboard-card-foot span {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.dashboard-card-foot span {
  min-width: 0;
}

@media (max-width: 1500px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(360px, 1fr));
  }
}

.site-health-page {
  gap: 14px;
}

.site-health-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 26px;
  border: 1px solid rgba(17, 16, 26, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.site-health-hero-copy {
  min-width: 0;
}

.site-health-eyebrow {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.site-health-hero h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.05;
}

.site-health-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.site-health-hero-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(17, 16, 26, 0.1);
  border-radius: 8px;
  background: var(--green);
  color: var(--ink);
}

.site-health-hero-score span {
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
}

.site-health-hero-score p {
  max-width: 88px;
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
}

.site-health-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.site-health-toolbar .dashboard-period-filter {
  border: 1px solid rgba(17, 16, 26, 0.1);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.site-health-tabs {
  max-width: 100%;
  overflow-x: auto;
}

.site-health-tabs button,
.site-health-periods button {
  border-radius: 6px;
}

.site-health-panel {
  display: grid;
  gap: 14px;
}

.site-health-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.site-health-kpi,
.site-health-card,
.site-health-resource {
  border: 1px solid rgba(17, 16, 26, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.site-health-kpi {
  display: grid;
  gap: 12px;
  min-height: 156px;
  padding: 18px;
}

.site-health-kpi-head,
.site-health-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.site-health-kpi-head strong,
.site-health-card-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}

.site-health-card-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.site-health-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-dark);
}

.site-health-kpi--warn .site-health-status-dot {
  background: var(--amber);
}

.site-health-kpi--danger .site-health-status-dot {
  background: var(--coral);
}

.site-health-kpi--info .site-health-status-dot {
  background: var(--blue);
}

.site-health-kpi-value {
  color: var(--ink);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.site-health-kpi-value-button {
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.site-health-kpi-value-button:hover,
.site-health-kpi-value-button:focus-visible {
  color: var(--coral);
  outline: none;
}

.site-health-kpi-value-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(199, 82, 104, 0.16);
}

.site-health-kpi p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.site-health-overview-grid,
.site-health-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 14px;
  align-items: stretch;
}

.site-health-card {
  display: grid;
  gap: 18px;
  min-height: 260px;
  padding: 20px;
  overflow: visible;
}

.site-health-card--wide {
  min-height: 320px;
}

.site-health-card--guide,
.site-health-card--server-guide {
  min-height: 0;
}

.site-health-card--guide p,
.site-health-card--server-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
}

.site-health-score-row {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.site-health-ring {
  display: grid;
  place-items: center;
  width: 178px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--value) * 1%), rgba(17, 16, 26, 0.08) 0);
}

.site-health-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 126px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.site-health-ring span {
  grid-area: 1 / 1;
  position: relative;
  color: var(--ink);
  font-size: 42px;
  font-weight: 950;
}

.site-health-score-breakdown {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.site-health-score-breakdown div,
.site-health-resource,
.site-health-funnel div {
  display: grid;
  gap: 7px;
}

.site-health-score-breakdown div {
  grid-template-columns: minmax(90px, 0.25fr) auto 26px;
  align-items: center;
}

.site-health-score-breakdown span,
.site-health-service-list span,
.site-health-table span,
.site-health-check-table span,
.site-health-resource span,
.site-health-metrika-grid span,
.site-health-seo-grid span,
.site-health-funnel span,
.site-health-task-list span,
.site-health-event-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
}

.site-health-score-breakdown strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.site-health-score-breakdown i,
.site-health-resource i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green)) 0 / var(--w) 100% no-repeat, rgba(17, 16, 26, 0.08);
}

.site-health-help {
  justify-self: end;
}

.site-health-help-button {
  appearance: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(47, 111, 204, 0.22);
  border-radius: 50%;
  background: rgba(47, 111, 204, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.site-health-help-button:hover,
.site-health-help-button:focus-visible {
  border-color: rgba(47, 111, 204, 0.42);
  background: rgba(47, 111, 204, 0.14);
  outline: none;
}

.site-health-guide-list {
  display: grid;
  gap: 8px;
}

.site-health-guide-list div {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 16, 26, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.site-health-guide-list strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.site-health-guide-list small {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
}

.site-health-guide-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
  line-height: 1.35;
}

.site-health-service-list,
.site-health-table,
.site-health-check-table,
.site-health-event-list,
.site-health-task-list {
  display: grid;
  gap: 8px;
}

.site-health-service-list div,
.site-health-table div,
.site-health-check-table div,
.site-health-event-list div,
.site-health-task-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 9px 10px;
  border: 1px solid rgba(17, 16, 26, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.site-health-service-list strong,
.site-health-table strong,
.site-health-check-table strong,
.site-health-resource strong,
.site-health-event-list strong,
.site-health-task-list strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.site-health-table em,
.site-health-check-table em,
.site-health-card-head em,
.site-health-event-list strong.is-ok,
.site-health-event-list strong.is-warn,
.site-health-event-list strong.is-danger,
.site-health-event-list strong.is-info {
  min-width: 52px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.site-health-table em.is-ok,
.site-health-check-table em.is-ok,
.site-health-card-head em.is-ok,
.site-health-event-list strong.is-ok {
  background: var(--green-soft);
  color: var(--green-dark);
}

.site-health-table em.is-warn,
.site-health-check-table em.is-warn,
.site-health-card-head em.is-warn,
.site-health-event-list strong.is-warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.site-health-table em.is-danger,
.site-health-check-table em.is-danger,
.site-health-card-head em.is-danger,
.site-health-event-list strong.is-danger {
  background: rgba(255, 86, 86, 0.14);
  color: var(--coral);
}

.site-health-table em.is-info,
.site-health-check-table em.is-info,
.site-health-card-head em.is-info,
.site-health-event-list strong.is-info {
  background: rgba(47, 111, 204, 0.12);
  color: var(--blue);
}

.site-health-line-chart {
  width: 100%;
  min-height: 220px;
}

.site-health-chart-grid {
  fill: none;
  stroke: rgba(17, 16, 26, 0.08);
  stroke-width: 1;
}

.site-health-chart-line {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.site-health-chart-line--blue {
  stroke: var(--blue);
}

.site-health-chart-line--green {
  stroke: var(--green-dark);
}

.site-health-chart-line--coral {
  stroke: var(--coral);
}

.site-health-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-health-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-health-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.site-health-legend-dot.is-blue {
  background: var(--blue);
}

.site-health-legend-dot.is-green {
  background: var(--green-dark);
}

.site-health-legend-dot.is-coral {
  background: var(--coral);
}

.site-health-bar-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 238px;
}

.site-health-bar-chart div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  height: 100%;
}

.site-health-bar-chart i {
  display: block;
  min-height: 6px;
  height: var(--h);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--coral), var(--amber));
}

.site-health-bar-chart--speed i {
  background: linear-gradient(180deg, var(--blue), var(--green-dark));
}

.site-health-bar-chart span,
.site-health-bar-chart strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.site-health-event-list div {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.site-health-event-list time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.site-health-event-list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.site-health-sync-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.site-health-sync-card {
  display: grid;
  gap: 14px;
  min-height: 292px;
  padding: 18px;
  border: 1px solid rgba(17, 16, 26, 0.08);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.site-health-sync-card--is-ok {
  border-color: rgba(30, 167, 112, 0.22);
}

.site-health-sync-card--is-warn {
  border-color: rgba(244, 162, 97, 0.28);
}

.site-health-sync-card--is-danger {
  border-color: rgba(255, 86, 86, 0.28);
}

.site-health-sync-card--is-info {
  border-color: rgba(47, 111, 204, 0.22);
}

.site-health-sync-runline,
.site-health-sync-metrics {
  display: grid;
  gap: 8px;
}

.site-health-sync-runline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-health-sync-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-health-sync-runline div,
.site-health-sync-metrics div,
.site-health-sync-metric-button {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 70px;
  padding: 11px;
  border: 1px solid rgba(17, 16, 26, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.site-health-sync-metric-button {
  appearance: none;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.site-health-sync-metric-button:hover,
.site-health-sync-metric-button:focus-visible {
  border-color: rgba(17, 16, 26, 0.18);
  background: rgba(255, 255, 255, 0.76);
  outline: none;
}

.site-health-sync-metric-button:disabled {
  cursor: default;
}

.site-health-sync-metric-button:disabled:hover,
.site-health-sync-metric-button:disabled:focus-visible {
  border-color: rgba(17, 16, 26, 0.08);
  background: rgba(255, 255, 255, 0.5);
}

.site-health-sync-runline strong,
.site-health-sync-metrics strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.site-health-sync-runline span,
.site-health-sync-metrics span,
.site-health-sync-schedule span,
.site-health-check-table--sync span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.site-health-sync-schedule {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.site-health-sync-schedule strong {
  color: var(--ink);
  font-weight: 900;
}

.site-health-sync-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.site-health-event-list--sync div {
  min-height: 52px;
}

.site-health-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.site-health-kpi-grid--server {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-health-resource {
  min-height: 116px;
  padding: 16px;
  overflow: visible;
}

.site-health-resource > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.site-health-resource strong {
  font-size: 28px;
}

.site-health-resource i {
  height: 10px;
}

.site-health-metrika-grid,
.site-health-seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.site-health-metrika-grid div,
.site-health-seo-grid div {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(17, 16, 26, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.site-health-metrika-grid strong,
.site-health-seo-grid strong {
  color: var(--ink);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.site-health-metrika-grid i {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.site-health-funnel {
  display: grid;
  gap: 10px;
}

.site-health-funnel div {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(47, 111, 204, 0.16) var(--w), rgba(255, 255, 255, 0.5) 0);
  border: 1px solid rgba(17, 16, 26, 0.08);
}

.site-health-funnel strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.site-health-task-list div {
  grid-template-columns: auto minmax(0, 1fr);
}

.site-health-task-list strong {
  min-width: 32px;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  text-align: center;
}

@media (max-width: 1500px) {
  .site-health-kpi-grid,
  .site-health-kpi-grid--server,
  .site-health-sync-grid,
  .site-health-metrika-grid,
  .site-health-seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-health-overview-grid,
  .site-health-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 901px) and (max-width: 1500px) {
  .kanban-card-detail-modal > .kanban-card-modal-head {
    grid-template-columns: minmax(200px, 1fr) minmax(190px, auto) auto auto minmax(140px, 180px) auto auto;
    gap: 10px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head .kanban-card-modal-head-meta {
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .site-health-hero,
  .site-health-score-row,
  .site-health-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-health-toolbar {
    display: grid;
  }

  .site-health-kpi-grid,
  .site-health-kpi-grid--server,
  .site-health-sync-grid,
  .site-health-metrika-grid,
  .site-health-seo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-health-hero-score,
  .site-health-ring {
    width: 128px;
  }
}

.kanban-view {
  padding: 22px 24px 24px;
}

/* codex-kanban-background-222-20260521 */
@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .app-main {
    background: #222;
  }
}

.settings-view {
  padding: 22px 24px 24px;
}

.integrations-view {
  padding: 22px 24px 24px;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

@media (min-width: 901px) {

  .menu-builder-choice-modal {
    position: fixed;
    z-index: 30;
    inset: var(--menu-builder-choice-modal-top, var(--menu-settings-modal-top, 28px)) auto auto var(--menu-builder-choice-modal-left, var(--menu-settings-modal-left, 28px));
    display: grid;
    width: var(--menu-builder-choice-modal-width, var(--menu-settings-modal-width, min(1760px, calc(100vw - 56px))));
    height: var(--menu-builder-choice-modal-height, var(--menu-settings-modal-height, calc(100vh - 56px)));
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.62);
    overflow: hidden;
    padding: 0;
  }

  .menu-builder-choice-card {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: #222;
    color: #fff;
    overflow: hidden;
  }

  .menu-builder-choice-card--with-roots {
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .menu-builder-choice-card--with-roots.menu-builder-choice-card--with-parents {
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
  }

  .menu-builder-choice-head {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) minmax(220px, 1fr);
    min-width: 0;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 20px 16px;
  }

  .menu-builder-choice-title {
    display: grid;
    min-width: 0;
    justify-self: start;
    gap: 4px;
  }

  .menu-builder-choice-head h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.16;
  }

  .menu-builder-choice-title > span,
  .menu-builder-choice-search span,
  .menu-builder-choice-toolbar small,
  .menu-builder-choice-fourth-head small,
  .menu-builder-choice-empty,
  .menu-builder-choice-option small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
  }

  .menu-builder-choice-head-actions {
    display: flex;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 14px;
    margin-left: 0;
  }

  .menu-builder-choice-selected-badges {
    display: flex;
    min-width: 0;
    max-width: 100%;
    max-height: 72px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    flex-wrap: wrap;
    gap: 6px;
    overflow: auto;
  }

  .menu-builder-choice-selected-badges.is-empty {
    min-height: 0;
  }

  .menu-builder-choice-selected-badge {
    display: inline-flex;
    max-width: 220px;
    min-width: 0;
    min-height: 30px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(184, 250, 24, 0.88);
    border-radius: 8px;
    background: var(--green);
    color: var(--ink);
    padding: 0 6px 0 10px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
  }

  .menu-builder-choice-selected-badge > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-builder-choice-selected-badge button {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(9, 8, 17, 0.12);
    color: var(--ink);
    padding: 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
  }

  .menu-builder-choice-selected-badge button:hover,
  .menu-builder-choice-selected-badge button:focus-visible {
    background: rgba(9, 8, 17, 0.2);
  }

  .menu-builder-choice-close {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #eee;
    font-size: 28px;
    line-height: 1;
  }

  .menu-builder-choice-close:hover,
  .menu-builder-choice-close:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
  }

  .menu-builder-choice-search {
    display: grid;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 20px;
  }

  .menu-builder-choice-search input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #1c1c1c;
    color: #fff;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 650;
    outline: none;
    box-shadow: none;
  }

  .menu-builder-choice-search input:focus {
    border-color: rgba(255, 255, 255, 0.36);
    background: #242424;
  }

  .menu-builder-choice-search input::placeholder {
    color: rgba(255, 255, 255, 0.36);
  }

  .menu-builder-choice-roots,
  .menu-builder-choice-parents {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 20px;
  }

  .menu-builder-choice-parents {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .menu-builder-choice-root,
  .menu-builder-choice-parent {
    display: inline-flex;
    max-width: 100%;
    min-height: 34px;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    padding: 0 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
  }

  .menu-builder-choice-roots .menu-builder-choice-root input,
  .menu-builder-choice-parents .menu-builder-choice-parent input {
    position: static;
    width: 14px;
    min-width: 14px;
    height: 14px;
    margin: 0;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
    accent-color: #ffffff;
  }

  .menu-builder-choice-root span,
  .menu-builder-choice-parent span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-builder-choice-root small,
  .menu-builder-choice-parent small {
    color: rgba(255, 255, 255, 0.46);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
  }

  .menu-builder-choice-root:hover,
  .menu-builder-choice-root:focus-visible,
  .menu-builder-choice-parent:hover,
  .menu-builder-choice-parent:focus-visible {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
  }

  .menu-builder-choice-root.is-active,
  .menu-builder-choice-parent.is-active {
    border-color: rgba(110, 67, 210, 0.9);
    background: #6e43d2;
    color: #fff;
  }

  .menu-builder-choice-root.is-active small,
  .menu-builder-choice-parent.is-active small {
    color: rgba(255, 255, 255, 0.72);
  }

  .menu-builder-choice-root.is-selected,
  .menu-builder-choice-root:has(input:checked),
  .menu-builder-choice-parent.is-selected,
  .menu-builder-choice-parent:has(input:checked) {
    border-color: rgba(184, 250, 24, 0.88);
    background: var(--green);
    color: var(--ink);
  }

  .menu-builder-choice-root.is-selected small,
  .menu-builder-choice-root:has(input:checked) small,
  .menu-builder-choice-parent.is-selected small,
  .menu-builder-choice-parent:has(input:checked) small {
    color: rgba(9, 8, 17, 0.62);
  }

  .menu-builder-choice-toolbar {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
  }

  .menu-builder-choice-toolbar span {
    min-width: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
  }

  .menu-builder-choice-toolbar button {
    min-height: 34px;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #eee;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 850;
  }

  .menu-builder-choice-toolbar button:hover,
  .menu-builder-choice-toolbar button:focus-visible {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .menu-builder-choice-toolbar button:disabled {
    opacity: 0.52;
  }

  .menu-builder-choice-list {
    display: grid;
    align-content: start;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
    min-height: 0;
    overflow: auto;
    padding: 18px 20px 24px;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="category"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 20px 24px;
  }

  .menu-builder-choice-option {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 10px;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #242424;
    color: #fff;
    padding: 10px;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    min-height: 34px;
    width: auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    padding: 0 12px 0 10px;
    font-size: 12px;
    font-weight: 850;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="brand"] .menu-builder-choice-option {
    align-items: center;
    min-height: 46px;
  }

  .menu-builder-choice-option:hover,
  .menu-builder-choice-option:focus-within {
    border-color: rgba(255, 255, 255, 0.32);
    background: #282828;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option:hover,
  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option:focus-within {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
  }

  /* codex-menu-choice-subcategory-sand-outline-corners-20260623 */
  .menu-builder-choice-root.has-subcategories,
  .menu-builder-choice-parent.has-subcategories,
  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option.has-subcategories {
    border-color: rgba(224, 190, 125, 0.72);
    color: #ead6ad;
  }

  .menu-builder-choice-root.has-subcategories:hover,
  .menu-builder-choice-root.has-subcategories:focus-visible,
  .menu-builder-choice-parent.has-subcategories:hover,
  .menu-builder-choice-parent.has-subcategories:focus-visible,
  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option.has-subcategories:hover,
  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option.has-subcategories:focus-within {
    border-color: rgba(238, 209, 151, 0.86);
    color: #fff0ce;
  }

  .menu-builder-choice-option.has-fourth-level {
    cursor: pointer;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option.is-fourth-active {
    border-color: rgba(110, 67, 210, 0.9);
    background: #6e43d2;
    color: #fff;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option.is-selected,
  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option:has(input:checked) {
    border-color: rgba(184, 250, 24, 0.88);
    background: var(--green);
    color: var(--ink);
  }

  .menu-builder-choice-root.has-subcategories.is-active,
  .menu-builder-choice-parent.has-subcategories.is-active,
  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option.has-subcategories.is-fourth-active,
  .menu-builder-choice-root.has-subcategories.is-selected,
  .menu-builder-choice-root.has-subcategories:has(input:checked),
  .menu-builder-choice-parent.has-subcategories.is-selected,
  .menu-builder-choice-parent.has-subcategories:has(input:checked),
  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option.has-subcategories.is-selected,
  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option.has-subcategories:has(input:checked) {
    border-color: rgba(238, 203, 137, 0.9);
  }

  .menu-builder-choice-root.has-subcategories.is-active,
  .menu-builder-choice-parent.has-subcategories.is-active {
    color: #fff;
  }

  .menu-builder-choice-root.has-subcategories.is-selected,
  .menu-builder-choice-root.has-subcategories:has(input:checked),
  .menu-builder-choice-parent.has-subcategories.is-selected,
  .menu-builder-choice-parent.has-subcategories:has(input:checked) {
    color: var(--ink);
  }

  .menu-builder-choice-option input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #6e43d2;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option input {
    position: static;
    width: 14px;
    min-width: 14px;
    height: 14px;
    margin: 0;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
    accent-color: #ffffff;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="brand"] .menu-builder-choice-option input {
    margin-top: 0;
  }

  .menu-builder-choice-option span {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option span {
    display: inline-flex;
    align-items: center;
    gap: 0;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="category"].menu-builder-choice-list--search .menu-builder-choice-option span {
    display: grid;
    align-items: start;
    gap: 3px;
  }

  .menu-builder-choice-option strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option strong {
    overflow: hidden;
    color: currentColor;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="category"].menu-builder-choice-list--search .menu-builder-choice-option strong {
    white-space: normal;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="category"].menu-builder-choice-list--search .menu-builder-choice-option small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
  }

  .menu-builder-choice-option-count {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    margin-left: auto;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option-count {
    display: inline;
    min-width: 0;
    height: auto;
    margin-left: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option.is-fourth-active .menu-builder-choice-option-count {
    color: rgba(255, 255, 255, 0.72);
  }

  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option.is-selected .menu-builder-choice-option-count,
  .menu-builder-choice-list[data-menu-builder-choice-list="category"] .menu-builder-choice-option:has(input:checked) .menu-builder-choice-option-count {
    color: rgba(9, 8, 17, 0.62);
  }

  .menu-builder-choice-fourth-block {
    display: flex;
    flex: 0 0 100%;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 14px;
    padding-top: 16px;
  }

  .menu-builder-choice-fourth-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .menu-builder-choice-empty {
    grid-column: 1 / -1;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 18px;
    text-align: center;
  }

  .discounts-rule-row input:disabled {
    border-color: rgba(255, 255, 255, 0.08);
    background: #191919;
    color: rgba(255, 255, 255, 0.48);
    cursor: not-allowed;
  }

  .discounts-period-field:has(input:disabled) span {
    color: rgba(255, 255, 255, 0.38);
  }

  /* codex-menu-builder-normal-weight-20260529 */
  .menu-settings-modal,
  .menu-settings-modal * {
    font-weight: 400 !important;
  }
}

/* codex-settings-menu-sizes-only-20260520 */
.settings-view.settings-view-has-category-menu .settings-layout {
  grid-template-columns: minmax(210px, 250px) minmax(250px, 300px) minmax(250px, 300px) minmax(0, 1fr);
}

.integrations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

@media (min-width: 1101px) {
  .app-shell.is-mail-view-active {
    overflow: visible;
  }
}

/* codex-mail-client-dark-design-system-20260524 */
@media (min-width: 901px) {
  body:has(#mailView:not(.is-hidden)) .app-shell {
    border-color: rgba(255, 255, 255, 0.12);
    background: #222;
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.48);
  }

  body:has(#mailView:not(.is-hidden)) .app-main{
    background: #222;
  }

  body:has(#mailView:not(.is-hidden)) .topbar {
    grid-template-columns: minmax(250px, 300px) minmax(360px, 680px) auto;
    align-items: center;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    background: #14213d;
    box-shadow:
      0 18px 46px rgba(6, 13, 28, 0.38),
      inset 0 -1px rgba(255, 255, 255, 0.08);
  }

  body:has(#mailView:not(.is-hidden)) .topbar-logo--image img {
    filter: brightness(0) invert(1);
    opacity: 0.96;
  }

  body:has(#mailView:not(.is-hidden)) .topbar-logo:focus-visible {
    outline-color: #fff;
  }

  body:has(#mailView:not(.is-hidden)) .topbar-search {
    display: block;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
    margin-left: 0;
    justify-self: stretch;
  }

  body:has(#mailView:not(.is-hidden)) .topbar-search-icon {
    background: transparent;
    color: #fff;
  }

  body:has(#mailView:not(.is-hidden)) .topbar-search input {
    border-color: rgba(255, 255, 255, 0.9);
    background: transparent;
    box-shadow: none;
    color: #fff;
  }

  body:has(#mailView:not(.is-hidden)) .topbar-search input:focus {
    border-color: #fff;
    outline: none;
    box-shadow: none;
  }

  body:has(#mailView:not(.is-hidden)) .topbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.68);
  }

  body:has(#mailView:not(.is-hidden)) .topbar-actions {
    grid-column: 3;
    grid-row: 1;
  }

  body:has(#mailView:not(.is-hidden)) .topbar-sync-card,
  body:has(#mailView:not(.is-hidden)) .topbar-actions #createProduct,
  body:has(#mailView:not(.is-hidden)) .topbar-actions #siteExchange,
  body:has(#mailView:not(.is-hidden)) .topbar-actions #siteExchangeFilterButton,
  body:has(#mailView:not(.is-hidden)) .site-exchange-progress,
  body:has(#mailView:not(.is-hidden)) .topbar-kanban-add-column-button,
  body:has(#mailView:not(.is-hidden)) .topbar-column-filter-button,
  body:has(#mailView:not(.is-hidden)) .topbar-automation-button,
  body:has(#mailView:not(.is-hidden)) .topbar-login-button {
    display: none;
  }

  body:has(#mailView:not(.is-hidden)) .topbar-settings {
    margin-left: 0;
  }

  body:has(#mailView:not(.is-hidden)) .topbar-settings-button {
    color: #fff;
  }

  body:has(#mailView:not(.is-hidden)) .topbar-settings-button:hover,
  body:has(#mailView:not(.is-hidden)) .topbar-settings-button:focus-visible,
  body:has(#mailView:not(.is-hidden)) .topbar-settings-button[aria-expanded="true"] {
    color: var(--green);
  }

  body:has(#mailView:not(.is-hidden)) .topbar-settings-button:focus-visible {
    outline-color: rgba(184, 250, 24, 0.7);
  }
}

.kanban-column {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 520px;
  overflow: visible;
  padding: 14px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.kanban-column.is-width-2 {
  grid-column: span 2;
}

.kanban-column.is-width-3 {
  grid-column: span 3;
}

.kanban-column.is-column-dragging {
  opacity: 0.62;
  transform: translateY(-2px);
}

.kanban-column.has-custom-background {
  background: var(--kanban-column-bg);
  border-color: rgba(89, 71, 132, 0.14);
}

.kanban-column.has-open-card-menu {
  z-index: 70;
}

.kanban-column.is-over {
  border-color: rgba(184, 250, 24, 0.95);
  background: rgba(255, 255, 255, 0.68);
  transform: translateY(-2px);
}

.kanban-column.has-custom-background.is-over {
  background: var(--kanban-column-bg);
}
body.automation-modal-open,
body.site-exchange-filter-modal-open,
body.loader-modal-open,
body.settings-category-specs-modal-open,
body.settings-category-woo-selector-modal-open,
body.site-health-sync-detail-modal-open,
body.site-health-errors-modal-open,
body.site-health-help-modal-open,
body.room-order-modal-open,
body.room-dealer-modal-open,
body.settings-modal-open,
body.catalog-modal-open,
body.category-create-modal-open,
body.menu-settings-modal-open {
  overflow: hidden;
}

.site-health-help-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 145;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 16, 26, 0.46);
  padding: 24px;
}

.site-health-help-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(640px, calc(100vw - 48px));
  max-height: min(82vh, 720px);
  overflow: hidden;
  border: 1px solid rgba(17, 16, 26, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(17, 16, 26, 0.22);
}

.site-health-help-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid rgba(17, 16, 26, 0.08);
  padding: 20px 22px 16px;
}

.site-health-help-modal-head h2,
.site-health-help-modal-head p {
  margin: 0;
}

.site-health-help-modal-head h2 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.12;
}

.site-health-help-modal-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.site-health-help-modal-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(17, 16, 26, 0.1);
  border-radius: 50%;
  background: rgba(17, 16, 26, 0.04);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.site-health-help-modal-close:hover,
.site-health-help-modal-close:focus-visible {
  border-color: rgba(47, 111, 204, 0.26);
  background: rgba(47, 111, 204, 0.08);
  outline: none;
}

.site-health-help-modal-body {
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 18px 22px 22px;
}

.site-health-help-modal-body p,
.site-health-help-modal-body ul {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 690;
  line-height: 1.48;
}

.site-health-help-modal-body b,
.site-health-help-modal-body strong {
  color: var(--ink);
  font-weight: 900;
}

.site-health-help-modal-body div {
  display: grid;
  gap: 8px;
}

.site-health-help-modal-body ul {
  display: grid;
  gap: 7px;
  padding-left: 20px;
}

@media (max-width: 640px) {
  .site-health-help-modal-backdrop {
    padding: 12px;
  }

  .site-health-help-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .site-health-help-modal-head {
    padding: 16px;
  }

  .site-health-help-modal-head h2 {
    font-size: 21px;
  }

  .site-health-help-modal-body {
    padding: 14px 16px 18px;
  }
}

.site-health-errors-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 34, 34, 0.96);
  padding: 24px;
}

.site-health-errors-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(880px, calc(100vw - 48px));
  height: min(78vh, 760px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #222;
}

.site-health-errors-modal .site-exchange-log-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 24px 18px;
}

.site-health-errors-modal .site-exchange-log-detail-head h2,
.site-health-errors-modal .site-exchange-log-detail-head p {
  margin: 0;
}

.site-health-errors-modal .site-exchange-log-detail-head h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.05;
}

.site-health-errors-modal .site-exchange-log-detail-head p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.site-health-errors-modal .site-exchange-log-detail-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.site-health-errors-modal .site-exchange-log-detail-close:hover,
.site-health-errors-modal .site-exchange-log-detail-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.site-health-errors-modal .site-exchange-log-detail-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
  padding: 18px 20px 20px;
}

.site-health-errors-modal-warning {
  border: 1px solid rgba(244, 211, 94, 0.26);
  border-radius: 8px;
  background: rgba(244, 211, 94, 0.1);
  color: #ffe8a0;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.site-health-errors-modal .site-exchange-log-detail-section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.site-health-errors-modal .site-exchange-log-detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-health-errors-modal .site-exchange-log-detail-section-head h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
}

.site-health-errors-modal .site-exchange-log-detail-section-head span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 600;
}

.site-health-errors-modal-summary {
  padding-bottom: 0;
}

.site-health-errors-modal-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.site-health-errors-modal-groups div {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.site-health-errors-modal-groups span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.site-health-errors-modal-groups strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
}

.site-health-errors-modal-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.site-health-errors-modal-source-list div {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid rgba(98, 181, 144, 0.85);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 11px 12px;
}

.site-health-errors-modal-source-list div.is-partial {
  border-left-color: rgba(244, 211, 94, 0.9);
}

.site-health-errors-modal-source-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.site-health-errors-modal-source-list span {
  justify-self: start;
  border-radius: 999px;
  background: rgba(98, 181, 144, 0.16);
  color: #b8f0d0;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.site-health-errors-modal-source-list div.is-partial span {
  background: rgba(244, 211, 94, 0.14);
  color: #ffe8a0;
}

.site-health-errors-modal-source-list p,
.site-health-errors-modal-source-list small {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
}

.site-health-errors-modal-source-list small {
  color: rgba(255, 255, 255, 0.48);
}

.site-health-errors-modal-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-health-errors-modal-list li {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 12px;
}

.site-health-errors-modal-event-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.site-health-errors-modal-event-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}

.site-health-errors-modal-event-head time {
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.site-health-errors-modal-list p {
  margin: 0;
  color: #ffb1b1;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.site-health-errors-modal-list li > span {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

.site-health-errors-modal .site-exchange-log-detail-empty {
  margin: 0;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 640px) {
  .site-health-errors-modal-backdrop {
    padding: 12px;
  }

  .site-health-errors-modal {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
  }

  .site-health-errors-modal .site-exchange-log-detail-head {
    gap: 12px;
    padding: 16px;
  }

  .site-health-errors-modal .site-exchange-log-detail-head h2 {
    font-size: 22px;
  }

  .site-health-errors-modal .site-exchange-log-detail-body {
    padding: 14px 14px 16px;
  }

  .site-health-errors-modal-groups {
    grid-template-columns: 1fr;
  }

  .site-health-errors-modal-source-list {
    grid-template-columns: 1fr;
  }

  .site-health-errors-modal-event-head {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

.kanban-card-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 8, 18, 0.42);
  padding: 24px;
}

.kanban-card-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(70vw, 1120px);
  height: min(70vh, 820px);
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid rgba(117, 111, 134, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(9, 8, 18, 0.28);
}

.kanban-card-modal-side {
  display: none;
}

.category-create-modal-backdrop {
  z-index: 132;
  background: rgba(9, 8, 18, 0.58);
}

.category-create-modal {
  grid-template-rows: auto auto;
  width: min(460px, calc(100vw - 40px));
  height: auto;
  max-height: calc(100vh - 48px);
  border-color: rgba(255, 255, 255, 0.14);
  background: #202020;
  color: #fff;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
}

.category-create-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 24px 16px;
}

.category-create-modal-kicker {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.category-create-modal h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.18;
}

.category-create-modal-close {
  display: inline-grid;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.category-create-modal-close:hover,
.category-create-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.category-create-modal-form {
  display: grid;
  gap: 14px;
  padding: 20px 24px 24px;
}

.category-create-modal-field {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.category-create-modal-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 0 14px;
  outline: none;
}

.category-create-modal-input:focus {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(110, 67, 210, 0.26);
}

.category-create-modal-error {
  margin: -2px 0 0;
  color: #ff8f8f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.category-create-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.category-create-modal .button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.category-create-modal .button:hover,
.category-create-modal .button:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.category-create-modal .button-primary {
  border-color: #7044d5;
  background: #7044d5;
}

.category-create-modal .button-primary:hover,
.category-create-modal .button-primary:focus-visible {
  border-color: #8052ea;
  background: #8052ea;
}

.kanban-sync-conflict .kanban-card-modal-head {
  display: block;
}

.kanban-card-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto minmax(160px, 260px) auto auto;
  align-items: start;
  gap: 18px;
  border-bottom: 1px solid rgba(117, 111, 134, 0.14);
  padding: 18px 20px 16px;
}

.kanban-card-modal-delete {
  appearance: none;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-self: center;
  justify-self: end;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(117, 111, 134, 0.18);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.kanban-card-modal-delete svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.kanban-card-modal-delete:hover,
.kanban-card-modal-delete:focus-visible {
  border-color: rgba(220, 73, 91, 0.55);
  color: #dc495b;
  outline: none;
}

.kanban-card-modal-delete:disabled,
.kanban-card-modal-delete.is-loading {
  cursor: wait;
  opacity: 0.48;
}

.kanban-card-modal-heading > span,
.kanban-card-modal-field > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kanban-card-modal-heading {
  min-width: 0;
}

.kanban-card-modal-head-meta {
  display: none;
}

.kanban-card-modal-members {
  position: relative;
  display: flex;
  min-width: 40px;
  min-height: 40px;
  align-self: center;
  justify-self: center;
  align-items: center;
  justify-content: center;
  z-index: 8;
}

.kanban-card-modal-member-list {
  display: inline-flex;
  max-width: 188px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px 0;
}

.kanban-card-modal-member-avatar,
.kanban-card-modal-member-add,
.kanban-card-modal-member-picker-avatar,
.kanban-card-modal-member-remove {
  appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(117, 66, 217, 0.96), rgba(88, 48, 176, 0.96));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(8, 7, 16, 0.22);
  cursor: pointer;
}

.kanban-card-modal-member-avatar + .kanban-card-modal-member-avatar {
  margin-left: -7px;
}

.kanban-card-modal-member-avatar img,
.kanban-card-modal-member-picker-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.kanban-card-modal-member-avatar,
.kanban-card-modal-member-picker-avatar {
  padding: 0;
}

.kanban-card-modal-member-add,
.kanban-card-modal-member-picker-avatar,
.kanban-card-modal-member-remove {
  padding: 0;
  text-decoration: none;
}

.kanban-card-modal-member-add {
  border-color: rgba(117, 111, 134, 0.38);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(9, 8, 18, 0.78);
  box-shadow: none;
}

.kanban-card-modal-member-add svg {
  display: block;
  width: 17px;
  height: 17px;
}

.kanban-card-modal-member-remove {
  border-color: rgba(255, 255, 255, 0.14);
  background: #222;
  color: #fff;
  box-shadow: none;
}

.kanban-card-modal-member-remove svg {
  display: block;
  width: 15px;
  height: 15px;
}

.kanban-card-modal-member-add:hover,
.kanban-card-modal-member-add:focus-visible,
.kanban-card-modal-member-avatar:hover,
.kanban-card-modal-member-avatar:focus-visible,
.kanban-card-modal-member-picker-avatar:hover,
.kanban-card-modal-member-picker-avatar:focus-visible,
.kanban-card-modal-member-remove:hover,
.kanban-card-modal-member-remove:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(117, 66, 217, 0.24), 0 8px 18px rgba(8, 7, 16, 0.2);
}

.kanban-card-modal-member-picker {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: max-content;
  max-width: min(236px, calc(100vw - 56px));
  border: 1px solid rgba(117, 111, 134, 0.18);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(9, 8, 18, 0.24);
  padding: 10px;
  transform: translateX(-50%);
}

.kanban-card-modal-member-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 34px);
  gap: 8px;
}

.kanban-card-modal-member-picker-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.kanban-card-modal-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.kanban-card-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-card-modal-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 0;
}

.kanban-card-detail-modal .kanban-card-modal-main > .kanban-card-modal-heading {
  flex: 0 0 auto;
  min-width: 0;
}

.kanban-card-detail-modal .kanban-card-modal-main > .kanban-rich-text-field {
  display: block;
  flex: 0 0 auto;
  margin: 0;
}

.kanban-card-detail-modal .kanban-card-modal-body .kanban-card-modal-main .kanban-rich-text-editor {
  height: auto;
  min-height: 180px;
  overflow: visible;
}

.kanban-card-detail-modal .kanban-card-modal-main > .kanban-card-checklist {
  flex: 0 0 auto;
  overflow: visible;
  margin: 0;
  padding: 0;
}

.kanban-card-modal-field .kanban-card-checklist-row textarea,
.kanban-card-modal-field .kanban-card-checklist-row textarea:focus {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.kanban-card-modal-head h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
}

.kanban-card-modal-title {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
  margin: 0 0 0 -5px;
  display: inline-block;
  max-width: 100%;
  min-height: 1.16em;
  overflow-wrap: anywhere;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 2px 4px;
  cursor: text;
  outline: none;
}

.kanban-card-modal-title:focus {
  border-color: rgba(117, 66, 217, 0.48);
  background: rgba(117, 66, 217, 0.1);
  box-shadow: 0 0 0 3px rgba(117, 66, 217, 0.12);
}

.kanban-card-modal-head-column {
  width: min(260px, 100%);
}

.kanban-card-modal-close {
  display: inline-flex;
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(9, 8, 18, 0.08);
  color: #eee;
  font-size: 0;
  line-height: 0;
  align-items: center;
  justify-content: center;
}

.kanban-card-modal-close::before,
.kanban-card-modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.kanban-card-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.kanban-card-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.kanban-card-modal-close:hover,
.kanban-card-modal-close:focus-visible {
  background: rgba(9, 8, 18, 0.13);
  outline: none;
}

.kanban-card-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.kanban-card-modal-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: start;
  gap: 16px;
  min-width: 0;
}

.kanban-card-modal-top.no-images {
  grid-template-columns: minmax(0, 1fr);
}

.kanban-card-modal-fields {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.kanban-card-modal-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.kanban-card-modal-field.wide {
  grid-column: 1 / -1;
}

.kanban-card-modal-field input,
.kanban-card-modal-field select,
.kanban-card-modal-field textarea {
  width: 100%;
  border: 1px solid rgba(117, 111, 134, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
}

.kanban-card-modal-field input:focus,
.kanban-card-modal-field select:focus,
.kanban-card-modal-field textarea:focus {
  border-color: rgba(117, 66, 217, 0.48);
  box-shadow: 0 0 0 3px rgba(117, 66, 217, 0.12);
}

.kanban-card-modal-field textarea {
  min-height: 300px;
  font-size: 15px;
  resize: vertical;
  white-space: pre-wrap;
}

.kanban-card-modal-images {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.kanban-card-modal-cover,
.kanban-card-modal-photo-list,
.kanban-card-modal-extra-images,
.kanban-card-modal-file-list {
  min-width: 0;
}

.kanban-card-modal-photo-list,
.kanban-card-modal-extra-images,
.kanban-card-modal-file-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 2px;
}

.kanban-card-modal-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(117, 111, 134, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.kanban-card-modal-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: inherit;
}

.kanban-card-modal-image-button:focus-visible {
  outline: 3px solid rgba(117, 66, 217, 0.32);
  outline-offset: -3px;
}

.kanban-card-modal-image-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(15, 14, 24, 0.72);
  color: #fff;
  cursor: pointer;
  opacity: 0;
}

.kanban-card-modal-image:hover .kanban-card-modal-image-delete,
.kanban-card-modal-image:focus-within .kanban-card-modal-image-delete {
  opacity: 1;
}

.kanban-card-modal-image-cover {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(15, 14, 24, 0.72);
  color: #fff;
  cursor: pointer;
  opacity: 0;
}

.kanban-card-modal-image:hover .kanban-card-modal-image-cover,
.kanban-card-modal-image:focus-within .kanban-card-modal-image-cover {
  opacity: 1;
}

.kanban-card-modal-image-delete svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.kanban-card-modal-image-cover svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.kanban-card-modal-image-delete:hover,
.kanban-card-modal-image-delete:focus-visible {
  background: rgba(205, 42, 42, 0.92);
  outline: none;
}

.kanban-card-modal-image-cover:hover,
.kanban-card-modal-image-cover:focus-visible {
  background: rgba(117, 66, 217, 0.92);
  outline: none;
}

.kanban-card-modal-file-tile {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.kanban-card-modal-file-tile:focus-visible {
  outline: 3px solid rgba(117, 66, 217, 0.32);
  outline-offset: -3px;
}

.kanban-card-modal-image img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.kanban-card-modal-file-preview {
  display: flex;
  width: 100%;
  height: 120px;
  align-items: center;
  justify-content: center;
  background: var(--green);
}

.kanban-card-modal-file-icon {
  display: inline-flex;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.kanban-card-modal-image.is-cover img {
  height: 188px;
}

.kanban-card-modal-extra-images .kanban-card-modal-image {
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
}

.kanban-card-modal-image.is-extra {
  border-radius: 8px;
}

.kanban-card-modal-image.is-extra .kanban-card-modal-image-button {
  width: auto;
  max-width: none;
}

.kanban-card-modal-image.is-extra img {
  width: auto;
  max-width: none;
  height: 50px;
  object-fit: contain;
}

.kanban-card-modal-image.is-extra figcaption {
  display: none;
}

.kanban-card-modal-photo-list .kanban-card-modal-image {
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
  border-radius: 8px;
}

.kanban-card-modal-photo-list .kanban-card-modal-image-button {
  width: auto;
  max-width: none;
}

.kanban-card-modal-photo-list .kanban-card-modal-image img,
.kanban-card-modal-photo-list .kanban-card-modal-image.is-cover img,
.kanban-card-modal-photo-list .kanban-card-modal-image.is-extra img {
  width: auto;
  max-width: none;
  height: 50px;
  object-fit: contain;
}

.kanban-card-modal-photo-list .kanban-card-modal-image.is-cover figcaption {
  position: absolute;
  left: 4px;
  bottom: 4px;
  max-width: calc(100% - 8px);
  padding: 1px 3px;
  border: 0;
  border-radius: 5px;
  background: rgba(15, 14, 24, 0.68);
  color: rgba(255, 255, 255, 0.78);
  font-size: 7px;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.kanban-card-modal-image figcaption {
  padding: 7px 8px;
  border-top: 1px solid rgba(117, 111, 134, 0.12);
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.kanban-card-modal-attachment-file figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  text-transform: none;
}

.kanban-card-modal-attachment-file figcaption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-card-modal-attachment-file figcaption em {
  color: inherit;
  font-style: normal;
  font-weight: 400;
  opacity: 0.68;
}

.kanban-card-modal-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.kanban-card-image-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.kanban-card-image-upload svg{
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kanban-card-image-upload:hover {
  background: rgba(127, 127, 127, 0.14);
}

.kanban-card-image-upload:focus-visible{
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .kanban-card-image-upload { width: 44px; height: 44px; flex-basis: 44px; }
  .kanban-card-detail-modal .kanban-card-modal-side:has(.kanban-card-modal-images-inline) {
    display: block;
    grid-row: 1;
    min-width: 0;
  }
  .kanban-card-detail-modal .kanban-card-modal-side > :not(.kanban-card-modal-images-inline) {
    display: none;
  }
  .kanban-card-detail-modal .kanban-card-modal-photo-list .kanban-card-modal-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 140px;
  }
  .kanban-card-detail-modal .kanban-card-modal-photo-list .kanban-card-modal-image-button {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }
  .kanban-card-detail-modal .kanban-card-modal-photo-list .kanban-card-modal-image img {
    width: 100%;
    height: 88px;
    object-fit: contain;
  }
  .kanban-card-detail-modal .kanban-card-modal-photo-list .kanban-card-modal-image-delete,
  .kanban-card-detail-modal .kanban-card-modal-photo-list .kanban-card-modal-image-cover {
    position: static;
    grid-row: 2;
    width: 44px;
    height: 44px;
    opacity: 1;
    margin: 4px;
  }
  .kanban-card-detail-modal .kanban-card-modal-photo-list .kanban-card-modal-image-delete {
    grid-column: 2;
    justify-self: end;
  }
  .kanban-card-detail-modal .kanban-card-modal-photo-list figcaption {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

.kanban-card-modal-backdrop:has(.kanban-image-lightbox-backdrop) .kanban-card-detail-modal {
  pointer-events: none;
}

@media (min-width: 901px) {
  .kanban-card-modal-backdrop {
    background: rgba(8, 8, 10, 0.72);
  }

  .kanban-card-modal {
    width: min(86vw, 1780px);
    height: min(78vh, 900px);
    max-width: calc(100vw - 96px);
    max-height: calc(100vh - 128px);
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: #222;
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.48);
  }

  .kanban-card-modal-head {
    grid-template-columns: minmax(260px, 1fr) minmax(250px, auto) auto auto minmax(180px, 260px) auto auto;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    padding: 20px 24px 18px;
  }

  /* codex-milio-card-modal-head-right-20260706 */
  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-heading {
    grid-column: 1;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-members {
    grid-column: 3;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-rich-text-toolbar {
    grid-column: 2;
    align-self: center;
    justify-self: start;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-checklist-button {
    grid-column: 4;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-head-meta {
    grid-column: 5;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-head-column {
    grid-column: 5;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-actions {
    grid-column: 6;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-close {
    grid-column: 7;
    align-self: center;
    justify-self: end;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-delete {
    grid-column: 6;
  }

  .kanban-card-modal-member-add {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(232, 229, 240, 0.82);
  }

  .kanban-card-modal-member-add:hover,
  .kanban-card-modal-member-add:focus-visible {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
  }

  .kanban-card-modal-member-picker {
    border-color: rgba(255, 255, 255, 0.14);
    background: #2f2f2f;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  }

  .kanban-card-modal-member-remove {
    border-color: rgba(255, 255, 255, 0.16);
    background: #222;
  }

  .kanban-card-modal-member-picker-empty {
    color: rgba(232, 229, 240, 0.68);
  }

  .kanban-card-modal-heading > span,
  .kanban-card-modal-field > span,
  .kanban-card-modal-meta {
    color: rgba(232, 229, 240, 0.74);
  }

  .kanban-card-modal-head-meta {
    display: flex;
    align-self: center;
    justify-self: center;
    max-width: clamp(220px, 22vw, 380px);
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    color: rgba(232, 229, 240, 0.62);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
  }

  .kanban-card-modal-head-meta em {
    font-style: normal;
    font-weight: 400;
  }

  .kanban-card-modal-head h2 {
    margin-top: 0;
    color: #fff;
  }

  .kanban-card-modal-title:focus {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  }

  .kanban-card-modal-close {
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #eee;
  }

  .kanban-card-modal-close:hover,
  .kanban-card-modal-close:focus-visible {
    background: rgba(255, 255, 255, 0.18);
  }

  .kanban-card-modal-field input,
  .kanban-card-modal-field select,
  .kanban-card-modal-field textarea{
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #333;
    color: #fff;
    box-shadow: none;
    color-scheme: dark;
  }

  .kanban-card-modal-field input::placeholder,
  .kanban-card-modal-field textarea::placeholder{
    color: rgba(232, 229, 240, 0.62);
  }

  .kanban-card-modal-field input:focus,
  .kanban-card-modal-field select:focus,
  .kanban-card-modal-field textarea:focus{
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  }

  .kanban-card-modal-body.has-side {
    grid-template-columns: minmax(0, 1fr) clamp(400px, 31.25%, 540px);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    align-items: stretch;
    gap: 16px;
    overflow: hidden;
    padding-right: 24px;
  }

  .kanban-card-modal-top,
  .kanban-card-modal-top.no-images {
    grid-template-columns: minmax(180px, 20%) minmax(0, 1fr);
  }

  .kanban-card-modal-body.has-side .kanban-card-modal-top,
  .kanban-card-modal-body.has-side .kanban-card-modal-top.no-images {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(180px, 20%) minmax(0, 1fr);
  }

  .kanban-card-modal-body.has-side .kanban-card-checklist {
    grid-column: 1;
    grid-row: 1;
  }

  .kanban-card-modal-body.has-side .kanban-card-modal-field.wide {
    grid-column: 1;
    grid-row: 2;
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
  }

  .kanban-card-modal-body.has-side .kanban-card-modal-images-inline {
    grid-column: 1;
    grid-row: 3;
  }

  .kanban-card-modal-body.has-side .kanban-card-modal-meta {
    grid-column: 1;
    grid-row: 4;
    display: none;
  }

  .kanban-card-modal-body.has-side:not(:has(.kanban-card-checklist)) .kanban-card-modal-field.wide {
    grid-row: 1;
  }

  .kanban-card-modal-body.has-side:not(:has(.kanban-card-checklist)) .kanban-card-modal-images-inline {
    grid-row: 2;
  }

  .kanban-card-modal-body.has-side:not(:has(.kanban-card-checklist)) .kanban-card-modal-meta {
    grid-row: 3;
  }

  .kanban-card-modal-body.has-side:not(:has(.kanban-card-checklist)) .kanban-card-modal-side {
    grid-row: 1 / 4;
  }

  /* codex-milio-modal-textarea-fill-height-20260725 */
  .kanban-card-modal-body.has-side {
    row-gap: 6px;
  }

  .kanban-card-modal-body.has-side:not(:has(.kanban-card-checklist)) {
    grid-template-rows: minmax(0, 1fr) auto auto;
  }

  .kanban-card-modal-body.has-side:not(:has(.kanban-card-checklist)):not(:has(.kanban-card-modal-images-inline)) {
    row-gap: 0;
  }

  /* codex-milio-modal-checklist-scroll-20260728 */
  .kanban-card-modal-body.has-side:has(.kanban-card-checklist) {
    grid-template-rows: auto minmax(80px, 1fr) auto auto;
  }

  .kanban-card-modal-body.has-side .kanban-card-checklist {
    align-content: start;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
    scrollbar-width: thin;
  }

  .kanban-card-modal-body.has-side .kanban-card-modal-field.wide textarea {
    height: 100%;
    min-height: 0;
  }

  .kanban-card-modal-body.has-side .kanban-rich-text-editor {
    height: 100%;
    min-height: 0;
  }

  .kanban-card-modal-side {
    grid-column: 2;
    grid-row: 1 / 5;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: #333;
    padding: 14px;
  }

  .kanban-card-modal-images {
    display: grid;
    align-items: start;
    gap: 12px;
    overflow: visible;
    padding: 0 2px 6px 0;
  }

  .kanban-card-modal-side .kanban-card-modal-images {
    min-height: 0;
    align-content: start;
    padding: 0 0 8px;
  }

  .kanban-card-modal-image {
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #333;
    scroll-snap-align: start;
  }

  .kanban-card-modal-extra-images,
  .kanban-card-modal-file-list {
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .kanban-card-modal-file-list .kanban-card-modal-image {
    flex: 0 0 clamp(190px, 24%, 300px);
  }

  .kanban-card-modal-image figcaption {
    border-top-color: rgba(255, 255, 255, 0.1);
    background: #333;
    color: rgba(232, 229, 240, 0.72);
    font-weight: 400;
  }

  .kanban-card-modal-head-column {
    align-self: center;
  }

  .kanban-card-modal-image img,
  .kanban-card-modal-image.is-cover img,
  .kanban-card-modal-file-preview {
    height: 100px;
  }

  .kanban-card-modal-image.is-extra img {
    height: 100px;
    object-fit: contain;
  }

  .kanban-card-modal-photo-list .kanban-card-modal-image img,
  .kanban-card-modal-photo-list .kanban-card-modal-image.is-cover img,
  .kanban-card-modal-photo-list .kanban-card-modal-image.is-extra img {
    height: 100px;
  }

  .kanban-card-modal-backdrop:has(.kanban-image-lightbox-backdrop) .kanban-card-detail-modal {
    pointer-events: none;
  }
}

/* codex-settings-site-exchange-modal-20260531 */
@media (min-width: 901px) {
  .settings-modal-view {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: block;
    padding: 0;
  }

  .settings-modal-view.is-hidden {
    display: none !important;
  }

  .settings-modal {
    width: min(91vw, calc(100vw - 96px));
    height: min(91vh, calc(100vh - 96px));
    max-height: calc(100vh - 96px);
    grid-template-rows: auto minmax(0, 1fr);
    border-color: rgba(255, 255, 255, 0.12);
    background: #222;
  }

  .settings-modal-tabs {
    width: min(100%, 1120px);
    min-width: 0;
  }

  .settings-modal > .settings-modal-head:has(> .settings-logout-button:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .settings-modal-head > .settings-logout-button {
    margin-left: auto;
    min-height: 38px;
  }

  .settings-modal .settings-user-delete:not(:disabled):hover,
  .settings-modal .settings-user-delete:not(:disabled):focus-visible {
    border-color: #e48181;
    color: #ffb2b2;
  }

  .settings-modal .settings-user-delete:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .settings-modal .settings-user-delete {
    display: inline-flex;
  }

  .settings-section-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.is-milio-schedule-active .settings-modal-tabs {
    width: max-content;
  }

  body.is-milio-schedule-active .settings-section-tab:not([data-settings-section="users"]) {
    display: none;
  }

  .settings-section-tabs::-webkit-scrollbar {
    display: none;
  }

  .settings-section-tab {
    min-width: max-content;
    padding-inline: 18px;
  }

  .settings-modal-body {
    min-height: 0;
    overflow: hidden;
    padding: 18px 20px 20px;
    background: #222;
  }

  .settings-modal-view.settings-view-has-category-choice .settings-modal-body {
    padding-top: 0;
  }

  .settings-modal-layout-wrap,
  .settings-modal-section {
    height: 100%;
    min-height: 0;
  }

  .settings-modal-section {
    padding: 0;
    overflow: hidden;
  }

  .settings-modal-view.settings-view-has-category-choice .settings-modal-section {
    padding-top: 0;
  }

  .settings-modal .settings-layout {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  }

  .settings-modal-view.settings-view-has-category-menu .settings-layout {
    grid-template-columns: minmax(190px, 230px) minmax(220px, 260px) minmax(0, 1fr);
  }

  /* codex-settings-category-mirror-choice-20260620 */
  .settings-modal-view.settings-view-has-category-choice .settings-layout {
    grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
    transition: grid-template-columns 180ms ease;
  }

  .settings-modal .category-menu,
  .settings-modal .settings-main-panel {
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .settings-modal .category-menu {
    align-content: start;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 14px;
    overflow: hidden;
  }

  .settings-modal-view.settings-view-has-category-choice .category-menu {
    padding-top: 0;
  }

  .settings-modal .settings-main-panel {
    display: grid;
    position: relative;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: start;
    gap: 14px;
    padding: 20px 24px;
    overflow: auto;
    scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
  }

  .settings-category-panel-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 4;
    display: none;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.74);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  }

  .settings-modal-view.settings-view-has-category-choice .settings-category-panel-toggle:not([hidden]) {
    display: grid;
  }

  .settings-category-panel-toggle::before {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .settings-category-panel-toggle:hover,
  .settings-category-panel-toggle:focus-visible {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
  }

  .settings-modal-view.settings-view-has-category-choice .settings-main-panel > .panel-title {
    padding-right: 52px;
  }

  .settings-modal-view.settings-view-has-category-choice.settings-view-category-panel-collapsed .settings-layout {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .settings-modal-view.settings-view-has-category-choice.settings-view-category-panel-collapsed .settings-main-panel {
    overflow: hidden;
    padding-left: 8px;
    padding-right: 8px;
  }

  .settings-modal-view.settings-view-has-category-choice.settings-view-category-panel-collapsed .settings-main-panel > :not(.settings-category-panel-toggle) {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .settings-modal-view.settings-view-has-category-choice.settings-view-category-panel-collapsed .settings-category-panel-toggle {
    right: 9px;
  }

  .settings-modal-view.settings-view-has-category-choice.settings-view-category-panel-collapsed .settings-category-panel-toggle::before {
    transform: rotate(225deg);
  }

  .settings-modal .category-menu-list {
    min-height: 0;
    max-height: none;
    height: 100%;
    align-content: start;
    overflow: auto;
    margin-right: -10px;
    padding-right: 10px;
    scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
  }

  .settings-modal .settings-category-menu .category-menu-list,
  .settings-modal .settings-catalog-category-menu .category-menu-list {
    min-height: 0;
    max-height: none;
  }

  .settings-modal .settings-values-list.settings-category-choice {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-content: start;
    padding-right: 10px;
  }

  .settings-modal-view.settings-view-has-category-choice .settings-values-menu {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .settings-modal-view.settings-view-has-category-choice .settings-category-product-preview {
    display: grid;
    gap: 10px;
    min-height: 118px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 12px;
  }

  .settings-modal-view.settings-view-has-category-choice .settings-category-product-preview.is-hidden {
    display: none;
  }

  .settings-category-product-preview-head {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
  }

  .settings-category-product-preview-head strong {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
  }

  .settings-category-product-preview-head span {
    color: rgba(255, 255, 255, 0.52);
    white-space: nowrap;
  }

  .settings-category-product-preview-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
  }

  .settings-category-product-preview-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    min-width: 0;
    min-height: 72px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
  }

  .settings-category-product-preview-card img {
    width: 62px;
    height: 72px;
    background: rgba(255, 255, 255, 0.08);
    object-fit: cover;
    object-position: center;
  }

  .settings-category-product-preview-copy {
    display: grid;
    min-width: 0;
    align-content: center;
    gap: 4px;
    padding: 8px 8px 8px 9px;
  }

  .settings-category-product-preview-copy strong,
  .settings-category-product-preview-copy span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .settings-category-product-preview-copy strong {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
  }

  .settings-category-product-preview-copy span {
    display: -webkit-box;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .settings-category-product-preview-empty {
    display: grid;
    min-height: 72px;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    margin: 0;
    text-align: center;
  }

  .settings-modal .settings-category-choice .menu-builder-choice-roots,
  .settings-modal .settings-category-choice .menu-builder-choice-parents {
    margin-right: -10px;
    padding-left: 0;
    padding-right: 10px;
  }

  /* codex-settings-category-search-toolbar-top20-20260620 */
  .settings-modal .settings-category-choice-toolbar {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(180px, 40%) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin-right: -10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 10px 12px 0;
  }

  .settings-modal .settings-category-choice .settings-category-choice-search {
    display: block;
    position: relative;
    min-width: 0;
    margin-right: 0;
    border-bottom: 0;
    padding: 0;
  }

  .settings-modal .settings-category-choice-search input {
    padding-left: 44px;
  }

  .settings-modal .settings-category-choice-search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: rgba(255, 255, 255, 0.42);
    pointer-events: none;
    transform: translateY(-50%);
  }

  .settings-modal .settings-category-choice-search-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .settings-modal .settings-category-choice-block {
    display: grid;
    min-width: 0;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin-right: -10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-right: 10px;
  }

  .settings-modal .settings-category-choice-block .menu-builder-choice-roots,
  .settings-modal .settings-category-choice-block .menu-builder-choice-parents {
    margin-right: 0;
    border-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .settings-modal .settings-category-choice-block-cards .settings-category-choice-list {
    padding: 20px 0 20px 0;
  }

  /* codex-settings-category-fourth-level-empty-20260620 */
  .settings-modal .settings-category-choice-block-fourth {
    min-height: 330px;
    border-bottom: 0;
  }

  .settings-modal .settings-category-choice-level-spacer {
    width: 24px;
    height: 34px;
    justify-self: center;
    margin-top: 20px;
  }

  .settings-modal .settings-category-choice-fourth-empty {
    min-height: 318px;
    padding: 20px 10px 20px 0;
  }

  .settings-modal .settings-category-choice .settings-category-choice-fourth-list {
    padding: 0;
  }

  .settings-modal .settings-category-choice-fourth-empty.settings-category-drop-over {
    background: rgba(255, 255, 255, 0.06);
    outline: 1px dashed rgba(255, 255, 255, 0.32);
    outline-offset: -1px;
  }

  :is(.settings-modal, .crm-marketing-workspace) .settings-category-choice-level-add {
    display: grid;
    width: 24px;
    height: 34px;
    place-items: center;
    justify-self: center;
    margin-top: 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
  }

  .settings-modal .settings-category-choice-block-cards .settings-category-choice-level-add {
    margin-top: 20px;
  }

  :is(.settings-modal, .crm-marketing-workspace) .settings-category-choice-level-add:hover,
  :is(.settings-modal, .crm-marketing-workspace) .settings-category-choice-level-add:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
  }

  .settings-modal .settings-category-choice-root-item {
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
    align-items: stretch;
  }

  .settings-modal .settings-category-choice-summary {
    display: flex;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-right: 0;
    border-bottom: 0;
    padding: 0;
  }

  .settings-modal .settings-category-choice-summary span {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
  }

  .settings-modal .settings-category-choice-summary small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 800;
  }

  .settings-modal .settings-category-choice-summary button {
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 850;
  }

  .settings-modal .settings-category-choice-summary button:not(:disabled):hover,
  .settings-modal .settings-category-choice-summary button:not(:disabled):focus-visible {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
  }

  .settings-modal .settings-category-choice-summary button:disabled {
    opacity: 0.44;
    cursor: default;
  }

  .settings-modal .settings-category-choice-list {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 20px 10px 2px 0;
  }

  .settings-modal .settings-category-choice-card {
    display: inline-flex;
    max-width: 100%;
    min-height: 34px;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.82);
    padding: 0 12px;
    font-size: 12px;
    font-weight: 400;
    text-align: left;
  }

  .settings-modal .settings-category-choice-card:hover,
  .settings-modal .settings-category-choice-card:focus-visible {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
  }

  .settings-modal .settings-category-choice-card.active {
    border-color: rgba(110, 67, 210, 0.9);
    background: rgba(110, 67, 210, 0.9);
    color: #fff;
  }

  /* codex-settings-category-virtual-folder-outline-badges-20260620 */
  .settings-modal .settings-category-choice .menu-builder-choice-root.is-virtual-folder,
  .settings-modal .settings-category-choice .menu-builder-choice-parent.is-virtual-folder,
  .settings-modal .settings-category-choice-card.is-virtual-folder {
    border-color: rgba(224, 190, 125, 0.72);
    color: #ead6ad;
  }

  .settings-modal .settings-category-choice .menu-builder-choice-root.is-virtual-folder:hover,
  .settings-modal .settings-category-choice .menu-builder-choice-root.is-virtual-folder:focus-visible,
  .settings-modal .settings-category-choice .menu-builder-choice-parent.is-virtual-folder:hover,
  .settings-modal .settings-category-choice .menu-builder-choice-parent.is-virtual-folder:focus-visible,
  .settings-modal .settings-category-choice-card.is-virtual-folder:hover,
  .settings-modal .settings-category-choice-card.is-virtual-folder:focus-visible {
    border-color: rgba(238, 209, 151, 0.86);
    color: #fff0ce;
  }

  .settings-modal .settings-category-choice .menu-builder-choice-root.is-virtual-folder.is-active,
  .settings-modal .settings-category-choice .menu-builder-choice-parent.is-virtual-folder.is-active,
  .settings-modal .settings-category-choice-card.is-virtual-folder.active {
    border-color: rgba(238, 203, 137, 0.9);
    background: rgba(110, 67, 210, 0.9);
    color: #fff;
  }

  .settings-modal .settings-category-choice [draggable="true"] {
    cursor: grab;
  }

  .settings-modal .settings-category-choice .settings-category-dragging {
    cursor: grabbing;
    opacity: 0.54;
  }

  .settings-modal .settings-category-choice .settings-category-drop-over {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .settings-modal .settings-category-choice .settings-category-choice-card {
    font-weight: 400;
  }

  .settings-modal .settings-category-choice .settings-category-choice-card.is-grandchild {
    padding-left: 12px;
  }

  .settings-modal .settings-category-choice-card .category-menu-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .settings-modal .settings-category-choice-card > .category-menu-count {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.46);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
  }

  .settings-modal .settings-category-choice .menu-builder-choice-root,
  .settings-modal .settings-category-choice .menu-builder-choice-parent {
    font-weight: 400;
  }

  .settings-modal .settings-category-choice .menu-builder-choice-root small,
  .settings-modal .settings-category-choice .menu-builder-choice-parent small,
  .settings-modal .settings-category-choice-card > .category-menu-count {
    font-weight: 400;
  }

  .settings-modal .settings-category-choice-card.active .category-menu-count {
    color: rgba(255, 255, 255, 0.72);
  }

  .settings-modal .settings-category-choice-empty {
    min-height: 110px;
    grid-column: 1 / -1;
    align-content: center;
    justify-items: center;
    text-align: center;
  }

  /* codex-settings-category-font-12-tabs-16-20260620 */
  .settings-modal-view.settings-view-has-category-choice {
    --settings-category-content-font-size: 12px;
    --settings-category-header-tab-font-size: 16px;
  }

  .settings-modal-view.settings-view-has-category-choice .settings-section-tab {
    font-size: var(--settings-category-header-tab-font-size);
  }

  .settings-modal-view.settings-view-has-category-choice .settings-category-choice .menu-builder-choice-search span,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice .menu-builder-choice-search input,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice .menu-builder-choice-root,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice .menu-builder-choice-root span,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice .menu-builder-choice-root small,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice .menu-builder-choice-parent,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice .menu-builder-choice-parent span,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice .menu-builder-choice-parent small,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice-root-add,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice-level-add,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice-summary span,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice-summary small,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice-summary button,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice-card,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice-card .category-menu-name,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice-card > .category-menu-count,
  .settings-modal-view.settings-view-has-category-choice .settings-category-choice-empty,
  .settings-modal-view.settings-view-has-category-choice .settings-main-panel .panel-title h3,
  .settings-modal-view.settings-view-has-category-choice .settings-main-panel .field-grid label > span,
  .settings-modal-view.settings-view-has-category-choice .settings-main-panel .field-grid input,
  .settings-modal-view.settings-view-has-category-choice .settings-main-panel .field-grid textarea,
  .settings-modal-view.settings-view-has-category-choice .settings-category-woo-meta,
  .settings-modal-view.settings-view-has-category-choice .settings-category-woo-open,
  .settings-modal-view.settings-view-has-category-choice .settings-category-description summary,
  .settings-modal-view.settings-view-has-category-choice .settings-category-spec-groups summary,
  .settings-modal-view.settings-view-has-category-choice .settings-category-spec-group-row,
  .settings-modal-view.settings-view-has-category-choice .settings-category-spec-group-row span,
  .settings-modal-view.settings-view-has-category-choice .settings-category-spec-field-row {
    font-size: var(--settings-category-content-font-size);
  }

  .settings-modal-view.settings-view-has-category-choice .settings-category-choice .menu-builder-choice-search input::placeholder,
  .settings-modal-view.settings-view-has-category-choice .settings-main-panel .field-grid input::placeholder,
  .settings-modal-view.settings-view-has-category-choice .settings-main-panel .field-grid textarea::placeholder {
    font-size: var(--settings-category-content-font-size);
  }

  .settings-modal .category-menu-item,
  .settings-modal .settings-values-list:not(.is-category-tree) .settings-value-item {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 650;
  }

  .settings-modal .category-menu-item:hover,
  .settings-modal .settings-values-list:not(.is-category-tree) .settings-value-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .settings-modal .category-menu-item.active,
  .settings-modal .settings-values-list:not(.is-category-tree) .settings-value-item.active {
    border-left-color: #fff;
    background: rgba(110, 67, 210, 0.9);
    color: #fff;
    box-shadow: none;
  }

  .settings-modal .category-menu-count,
  .settings-modal .settings-values-list:not(.is-category-tree) .settings-value-item.has-size-filter,
  .settings-modal .settings-values-list:not(.is-category-tree) .settings-value-item.has-size-filter .category-menu-count {
    color: rgba(255, 255, 255, 0.58);
  }

  .settings-modal .panel-title {
    min-height: 40px;
    margin-bottom: 0;
  }

  .settings-modal .panel-title h3,
  .settings-modal .settings-users-title,
  .settings-modal .settings-user-login,
  .settings-modal .settings-brand-favorite-title {
    color: #fff;
  }

  /* codex-settings-category-contentds-title-link-20260620 */
  .settings-modal .settings-category-title-row {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
  }

  .settings-modal .settings-category-title-text {
    color: inherit;
  }

  .settings-modal .settings-category-title-link {
    color: inherit;
    text-decoration: none;
  }

  .settings-modal .settings-category-contentds-link {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .settings-modal .settings-category-title-link:hover,
  .settings-modal .settings-category-title-link:focus-visible,
  .settings-modal .settings-category-contentds-link:hover,
  .settings-modal .settings-category-contentds-link:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .settings-modal .settings-main-empty,
  .settings-modal .settings-category-note,
  .settings-modal .settings-brand-logo-hint,
  .settings-modal .settings-users-note,
  .settings-modal .settings-user-status,
  .settings-modal .settings-users-empty,
  .settings-modal .settings-user-form label > span,
  .settings-modal .settings-user-roles legend,
  .settings-modal .settings-user-column-field > span,
  .settings-modal .settings-kanban-column-grid label > span,
  .settings-modal .settings-kanban-color-field > span,
  .settings-modal .settings-size-filter-grid label > span,
  .settings-modal .settings-category-woo-field > span,
  .settings-modal .settings-category-woo-meta,
  .settings-modal .settings-category-description summary,
  .settings-modal .settings-category-spec-groups summary,
  .settings-modal .settings-category-spec-group-row span,
  .settings-modal .settings-category-spec-field-row,
  .settings-modal .settings-category-spec-settings-button,
  .settings-modal .settings-brand-logo-meta-row span,
  .settings-modal .settings-brand-favorite-row span {
    color: rgba(255, 255, 255, 0.58);
  }

  .settings-modal .settings-brand-panel {
    --settings-brand-logo-size: 156px;
    grid-template-columns: var(--settings-brand-logo-size) minmax(0, 1fr) minmax(190px, 230px);
    gap: 14px;
  }

  .settings-modal .settings-brand-logo-preview,
  .settings-modal .settings-brand-logo-meta,
  .settings-modal .settings-brand-favorite-block,
  .settings-modal .settings-brand-landing-block,
  .settings-modal .settings-users-card,
  .settings-modal .settings-user-avatar-card,
  .settings-modal .settings-user-column-card,
  .settings-modal .settings-users-list,
  .settings-modal .settings-category-description,
  .settings-modal .settings-category-spec-groups,
  .settings-modal .settings-main-empty {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
  }

  .settings-modal .settings-brand-logo-meta-row strong,
  .settings-modal .settings-brand-favorite-row,
  .settings-modal .settings-category-spec-group-row,
  .settings-modal .settings-category-woo-open,
  .settings-modal .settings-brand-landing-row,
  .settings-modal .settings-brand-landing-title {
    color: #fff;
  }

  .settings-modal .settings-category-spec-group {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .settings-modal .settings-category-spec-field-row {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .settings-modal .settings-category-woo-open {
    border-color: rgba(255, 255, 255, 0.22);
    background: transparent;
  }

  .settings-modal .settings-category-woo-card {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
  }

  .settings-modal .settings-category-woo-name {
    color: #fff;
  }

  .settings-modal .settings-category-woo-button {
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
  }

  .settings-modal .settings-category-woo-clear {
    color: rgba(255, 255, 255, 0.68);
  }

  .settings-modal .settings-category-woo-open:hover,
  .settings-modal .settings-category-woo-open:focus-visible,
  .settings-modal .settings-category-woo-button:hover,
  .settings-modal .settings-category-woo-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
  }

  .settings-modal .settings-category-spec-settings-button {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
  }

  .settings-modal .settings-category-spec-settings-button:hover,
  .settings-modal .settings-category-spec-settings-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
  }

  .settings-modal-view.settings-view-has-category-choice .settings-category-panel {
    height: 100%;
    grid-template-rows: auto auto minmax(38px, 1fr);
  }

  .settings-modal .settings-category-delete-button {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.58);
  }

  .settings-modal .settings-category-delete-button:hover,
  .settings-modal .settings-category-delete-button:focus-visible {
    border-color: rgba(214, 91, 91, 0.58);
    background: rgba(214, 91, 91, 0.12);
    color: #ffb2b2;
  }

  .settings-modal input,
  .settings-modal select,
  .settings-modal textarea,
  .settings-modal .settings-user-form input[type="text"],
  .settings-modal .settings-user-form input[type="password"],
  .settings-modal .settings-user-department-field select,
  .settings-modal .settings-user-column-field select,
  .settings-modal .settings-brand-landing-row input[type="url"] {
    border-color: rgba(255, 255, 255, 0.16);
    background-color: #1c1c1c;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .settings-modal input:focus,
  .settings-modal select:focus,
  .settings-modal textarea:focus,
  .settings-modal .settings-user-form input[type="text"]:focus,
  .settings-modal .settings-user-form input[type="password"]:focus,
  .settings-modal .settings-user-department-field select:focus,
  .settings-modal .settings-user-column-field select:focus,
  .settings-modal .settings-brand-landing-row input[type="url"]:focus {
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
  }

  .settings-modal input::placeholder,
  .settings-modal textarea::placeholder,
  .settings-modal .settings-brand-landing-title::placeholder {
    color: rgba(255, 255, 255, 0.45);
  }

  .settings-modal .button,
  .settings-modal .settings-logout-button,
  .settings-modal .settings-user-actions .button-primary,
  .settings-modal .settings-user-avatar-upload,
  .settings-modal .settings-user-avatar-remove {
    border-color: rgba(255, 255, 255, 0.68);
    background: transparent;
    color: #fff;
    box-shadow: none;
  }

  .settings-modal .button:hover,
  .settings-modal .button:focus-visible,
  .settings-modal .settings-logout-button:hover,
  .settings-modal .settings-logout-button:focus-visible,
  .settings-modal .settings-user-actions .button-primary:hover,
  .settings-modal .settings-user-actions .button-primary:focus-visible,
  .settings-modal .settings-user-avatar-upload:hover,
  .settings-modal .settings-user-avatar-upload:focus-visible,
  .settings-modal .settings-user-avatar-remove:hover,
  .settings-modal .settings-user-avatar-remove:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
  }

  .settings-modal .settings-users-panel {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 230px);
    align-items: start;
    gap: 28px;
  }

  .settings-modal .settings-users-card {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .settings-modal .settings-user-avatar-card {
    grid-column: 2;
    grid-row: 1;
  }

  .settings-modal .settings-users-list--main {
    display: none;
  }

  .settings-modal .settings-users-card,
  .settings-modal .settings-user-avatar-card,
  .settings-modal .settings-user-column-card {
    position: relative;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .settings-modal .settings-main-panel:has(.settings-category-panel:not(.is-hidden) .settings-users-panel)::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    /* Main panel padding + avatar column + half of the column gap. */
    right: calc(24px + 230px + 14px);
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
  }

  .settings-modal .settings-user-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-modal .settings-user-form .settings-user-role {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
  }

  .settings-modal .settings-user-form .settings-user-role > span {
    color: #fff;
  }

  .settings-modal .settings-user-row {
    border-color: rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #fff;
  }

  .settings-modal .settings-user-row:hover,
  .settings-modal .settings-user-row.active {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
  }

  .settings-modal .settings-user-role-pill {
    background: rgba(110, 67, 210, 0.22);
    color: #cdbdff;
  }

  .settings-modal .settings-user-column-pill,
  .settings-modal .settings-user-password-pill {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
  }

  .settings-modal .settings-user-avatar-preview {
    width: 104px;
    height: 104px;
    border-color: rgba(255, 255, 255, 0.14);
    background: #1c1c1c;
    color: rgba(255, 255, 255, 0.58);
  }

  .settings-modal .settings-user-avatar-card,
  .settings-modal .settings-user-column-card {
    gap: 10px;
  }

  .settings-modal .settings-kanban-color-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 900px) {
  .kanban-card-modal-backdrop {
    padding: 12px;
  }

  .kanban-card-modal {
    width: calc(100vw - 24px);
    height: min(86vh, 820px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .kanban-card-modal-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .kanban-card-modal-members {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-rich-text-toolbar {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    overflow-x: auto;
  }

  .kanban-card-modal-head-column {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  .kanban-card-modal-top {
    grid-template-columns: 1fr;
  }

  .kanban-card-modal-images {
    grid-column: auto;
  }

  .kanban-card-modal-field textarea {
    min-height: 260px;
  }
}

@media (min-width: 901px) {

  .panel.kanban-column {
    padding-left: 6px;
    padding-right: 6px;
  }
}

.kanban-card-modal-files {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.kanban-card-modal-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #333;
  color: #f7f3ff;
  text-decoration: none;
}

.kanban-card-modal-file:hover,
.kanban-card-modal-file:focus-visible {
  border-color: rgba(168, 85, 247, 0.62);
  outline: none;
}

.kanban-card-modal-file-name {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kanban-card-modal-file-size {
  color: rgba(247, 243, 255, 0.58);
  font-size: 12px;
  white-space: nowrap;
}

.catalog-head {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) auto;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.catalog-head-title {
  align-self: end;
  min-width: 0;
}

.content-layer-title {
  align-self: start;
  align-content: start;
}

.content-layer-title .eyebrow {
  margin-bottom: 0;
}

.catalog-head-actions {
  display: grid;
  grid-column: 3;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  align-items: stretch;
  justify-content: flex-end;
  justify-self: end;
  gap: 8px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(1, minmax(120px, 1fr));
  gap: 10px;
}

.catalog-head-actions .metric-strip {
  display: contents;
}

@media (min-width: 1241px) {
  .catalog-head {
    grid-template-columns: minmax(250px, 300px) repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }

  .catalog-head .sync-panel,
  .catalog-head-actions,
  .catalog-head-actions .metric-strip {
    display: contents;
  }

  .catalog-head .sync-panel > :first-child {
    grid-column: 2;
  }

  .catalog-head .sync-panel > *,
  .catalog-head-actions .metric-card,
  .catalog-head-actions .sync-filter-card {
    min-width: 0;
    min-height: 110px;
  }
}

.metric-card {
  min-width: 126px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--soft-shadow);
  padding: 14px 15px;
  backdrop-filter: blur(16px);
}

.metric-card span {
  display: block;
  font-size: 30px;
  font-weight: 760;
  line-height: 1;
}

.metric-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.metric-filter-card {
  appearance: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.metric-filter-card:hover,
.metric-filter-card:focus-visible,
.metric-filter-card:active,
.metric-filter-card.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(9, 8, 17, 0.18), var(--soft-shadow);
  outline: none;
}

.metric-filter-card:hover p,
.metric-filter-card:focus-visible p,
.metric-filter-card:active p,
.metric-filter-card.is-active p {
  color: rgba(255, 255, 255, 0.74);
}

.metric-filter-card:hover span,
.metric-filter-card:focus-visible span,
.metric-filter-card:active span,
.metric-filter-card.is-active span {
  color: #fff;
}

.archive-filter-card {
  display: none;
}

@media (min-width: 1241px) {
  .archive-filter-card {
    display: block;
  }
}

.topbar-metrics {
  flex: 0 0 auto;
  grid-template-columns: repeat(3, minmax(82px, 94px));
  gap: 8px;
}

.topbar-metrics .metric-card {
  min-width: 0;
  padding: 8px 10px;
}

.topbar-metrics .metric-card span {
  font-size: 21px;
}

.topbar-metrics .metric-card p {
  margin-top: 4px;
  font-size: 11px;
}

.topbar-sync-card {
  flex: 0 0 220px;
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: rgba(255, 255, 249, 0.72);
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.topbar-sync-card span,
.topbar-sync-card strong {
  display: block;
}

.topbar-sync-card span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-sync-card strong {
  overflow: hidden;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

.catalog-head .sync-panel {
  grid-column: 2;
  align-self: stretch;
  min-width: 0;
}

.sync-panel > div,
.sync-panel > button,
.sync-filter-card {
  display: grid;
  align-content: start;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--soft-shadow);
  padding: 12px 14px;
  backdrop-filter: blur(16px);
}

.sync-panel > button,
.sync-filter-card {
  appearance: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.sync-panel > button:hover,
.sync-panel > button:focus-visible,
.sync-panel > button:active,
.sync-panel > button.is-active,
.sync-filter-card:hover,
.sync-filter-card:focus-visible,
.sync-filter-card:active,
.sync-filter-card.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(9, 8, 17, 0.18), var(--soft-shadow);
  outline: none;
}

.sync-panel > button:hover span,
.sync-panel > button:focus-visible span,
.sync-panel > button:active span,
.sync-panel > button.is-active span,
.sync-filter-card:hover span,
.sync-filter-card:focus-visible span,
.sync-filter-card:active span,
.sync-filter-card.is-active span {
  color: rgba(255, 255, 255, 0.74);
}

.sync-panel > button:hover strong,
.sync-panel > button:focus-visible strong,
.sync-panel > button:active strong,
.sync-panel > button.is-active strong,
.sync-filter-card:hover strong,
.sync-filter-card:focus-visible strong,
.sync-filter-card:active strong,
.sync-filter-card.is-active strong {
  color: #fff;
}

.sync-panel span,
.sync-panel strong,
.sync-filter-card span,
.sync-filter-card strong {
  display: block;
}

.sync-panel span,
.sync-filter-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.sync-panel strong,
.sync-filter-card strong {
  overflow: hidden;
  font-size: 30px;
  font-weight: 760;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-filter-card span {
  margin-top: 6px;
}

.catalog-head .sync-filter-card,
.catalog-head .metric-card,
.catalog-head-actions .metric-card {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.catalog-sidebar {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.catalog-sidebar-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catalog-sidebar-metrics .metric-card {
  display: grid;
  min-width: 0;
  min-height: 110px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.category-menu {
  display: grid;
  position: sticky;
  top: 112px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: var(--soft-shadow);
  padding: 16px;
  backdrop-filter: blur(18px);
}

@media (min-width: 901px) {
  .catalog-sidebar {
    --catalog-sidebar-sticky-top: 179px;
    --catalog-sidebar-bottom-gap: 8px;
    position: sticky;
    top: var(--catalog-sidebar-sticky-top);
    align-self: start;
    height: calc(100vh - var(--catalog-sidebar-sticky-top) - var(--catalog-sidebar-bottom-gap));
    max-height: calc(100vh - var(--catalog-sidebar-sticky-top) - var(--catalog-sidebar-bottom-gap));
    min-height: 0;
    align-content: space-between;
  }

  .catalog-sidebar .category-menu {
    position: static;
    max-height: calc(100vh - var(--catalog-sidebar-sticky-top) - 130px);
    overflow: hidden;
  }

  .catalog-sidebar .category-menu-list {
    max-height: calc(100vh - var(--catalog-sidebar-sticky-top) - 164px);
  }

  .catalog-sidebar-metrics {
    align-self: end;
  }
}

@media (min-width: 1741px) {
  .catalog-sidebar {
    --catalog-sidebar-sticky-top: 107px;
  }
}

.category-menu-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  margin-right: -20px;
  padding-right: 20px;
  scrollbar-color: #111111 rgba(0, 0, 0, 0.08);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.category-menu-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.category-menu-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}

.category-menu-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #111111;
}

.category-menu-list::-webkit-scrollbar-thumb:hover {
  background: #000000;
}

.settings-category-menu {
  position: static;
}

.settings-catalog-category-menu {
  position: static;
}

.settings-category-menu .category-menu-list {
  min-height: 400px;
  max-height: 400px;
  align-content: start;
  overflow: hidden;
  margin-right: 0;
  padding-right: 0;
}

.settings-catalog-category-menu .category-menu-list {
  min-height: 400px;
  align-content: start;
}

.settings-values-menu {
  width: 100%;
  position: static;
}

.settings-values-menu .category-menu-list {
  min-height: 400px;
  max-height: calc(100vh - 220px);
  align-content: start;
}

.settings-main-panel {
  min-height: 400px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.settings-main-panel > .panel-title {
  min-height: 48px;
}

.settings-logout-button {
  appearance: none;
  min-height: 38px;
  border: 1px solid rgba(9, 8, 17, 0.16);
  border-radius: 8px;
  background: #090811;
  color: #fff;
  padding: 9px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.settings-user-delete {
  display: none;
}

.settings-logout-button[hidden] {
  display: none;
}

.settings-logout-button:hover,
.settings-logout-button:focus-visible {
  background: #1b1825;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 22px rgba(51, 33, 84, 0.12);
  transform: translateY(-1px);
}

.settings-logout-button:focus-visible {
  outline: 2px solid rgba(117, 66, 217, 0.18);
  outline-offset: 2px;
}

.settings-logout-button:active {
  transform: translateY(0);
}

@media (max-width: 1500px) and (min-width: 1101px) {
  .settings-view.settings-view-has-category-menu .settings-layout {
    grid-template-columns: minmax(180px, 220px) minmax(220px, 260px) minmax(0, 1fr);
  }

  .settings-modal-view.settings-view-has-category-choice .settings-layout {
    grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
  }
}

.settings-main-empty {
  border: 1px dashed rgba(89, 71, 132, 0.24);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
}

.settings-brand-panel {
  --settings-brand-logo-size: 176px;
  display: grid;
  grid-template-columns: var(--settings-brand-logo-size) minmax(280px, 420px) minmax(200px, 240px);
  align-items: start;
  gap: 14px;
}

.settings-category-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 0;
}

.settings-category-delete-row {
  display: flex;
  min-height: 38px;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: auto;
}

.settings-category-delete-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(89, 71, 132, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  color: rgba(69, 55, 104, 0.68);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.settings-category-delete-button svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-category-delete-button:hover,
.settings-category-delete-button:focus-visible {
  border-color: rgba(190, 65, 65, 0.46);
  background: rgba(190, 65, 65, 0.1);
  color: #be4141;
  outline: none;
}

.settings-category-delete-button:disabled {
  opacity: 0.54;
  cursor: progress;
}

.settings-category-spec-groups {
  border: 1px solid rgba(89, 71, 132, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  padding: 14px;
}

.settings-category-description {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(89, 71, 132, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  padding: 12px;
}

.settings-category-description summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.settings-category-description textarea {
  min-height: 160px;
}

.settings-category-woo-field {
  display: grid;
  gap: 8px;
}

.settings-category-woo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.settings-category-woo-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-category-woo-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-category-woo-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.settings-category-woo-button,
.settings-category-woo-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(89, 71, 132, 0.28);
  border-radius: 8px;
  background: transparent;
  padding: 0 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.settings-category-woo-open {
  cursor: pointer;
}

.settings-category-woo-button:hover,
.settings-category-woo-button:focus-visible,
.settings-category-woo-open:hover,
.settings-category-woo-open:focus-visible {
  border-color: rgba(111, 66, 193, 0.55);
  color: var(--purple);
}

.settings-category-woo-open.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.settings-category-woo-clear {
  color: var(--muted);
}

.settings-category-woo-meta {
  min-height: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-category-spec-groups summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  list-style: none;
}

.settings-category-spec-groups summary::-webkit-details-marker {
  display: none;
}

.settings-category-spec-summary {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-category-spec-summary-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.settings-category-spec-summary-title::before {
  content: "▸";
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
}

.settings-category-spec-groups[open] .settings-category-spec-summary-title::before {
  content: "▾";
}

.settings-category-spec-settings-button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  border: 1px solid rgba(89, 71, 132, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}

.settings-category-spec-settings-button svg {
  width: 15px;
  height: 15px;
}

.settings-category-spec-settings-button:hover,
.settings-category-spec-settings-button:focus-visible {
  border-color: rgba(111, 66, 193, 0.48);
  color: var(--purple);
  outline: none;
}

.settings-category-spec-group-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.settings-category-spec-group {
  display: grid;
  gap: 8px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(89, 71, 132, 0.12);
}

.settings-category-spec-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.settings-category-spec-group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}

.settings-category-spec-group-row span {
  color: var(--muted);
}

.settings-category-spec-group-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.settings-category-spec-field-list {
  display: grid;
  gap: 0;
  padding-left: 0;
}

.settings-category-spec-field-row {
  min-height: 30px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(89, 71, 132, 0.1);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.settings-category-spec-group:not(.is-selected) .settings-category-spec-field-row {
  opacity: 0.54;
}

.settings-category-specs-modal-backdrop {
  z-index: 134;
  background: rgba(9, 8, 18, 0.58);
}

.settings-category-specs-modal-head {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

/* codex-settings-category-woo-selector-desktop-20260629 */
@media (min-width: 768px) {
  .settings-category-woo-selector-backdrop {
    z-index: 135;
    background: rgba(9, 8, 18, 0.58);
  }

  .settings-category-woo-selector-modal {
    width: min(960px, calc(100vw - 96px));
    height: min(760px, calc(100vh - 96px));
  }

  .settings-category-woo-selector-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .settings-category-woo-selector-tabs {
    width: min(100%, 360px);
  }

  .site-exchange-filter-modal-body.settings-category-woo-selector-body {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
  }

  .settings-category-woo-selector-current {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 10px;
  }

  .settings-category-woo-selector-current span,
  .settings-category-woo-selector-current small {
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    font-weight: 700;
  }

  .settings-category-woo-selector-current strong,
  .settings-category-woo-selector-current small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .settings-category-woo-selector-current strong {
    color: #fff;
    font-size: 14px;
    font-weight: 850;
  }

  .settings-category-woo-selector-search input {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 0 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    outline: none;
  }

  .settings-category-woo-selector-search input:focus {
    border-color: rgba(111, 66, 193, 0.68);
  }

  .settings-category-woo-selector-results {
    min-height: 0;
    overflow: auto;
    padding-right: 6px;
  }

  .settings-category-woo-selector-section {
    display: grid;
    gap: 8px;
  }

  .settings-category-woo-selector-section + .settings-category-woo-selector-section {
    margin-top: 18px;
  }

  .settings-category-woo-selector-section h3 {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .settings-category-woo-selector-list {
    display: grid;
    gap: 6px;
  }

  .settings-category-woo-option {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
  }

  .settings-category-woo-option:hover,
  .settings-category-woo-option:focus-visible {
    border-color: rgba(111, 66, 193, 0.62);
    background: rgba(111, 66, 193, 0.16);
    outline: none;
  }

  .settings-category-woo-option.is-selected {
    border-color: rgba(111, 66, 193, 0.84);
    background: rgba(111, 66, 193, 0.22);
  }

  .settings-category-woo-option-main,
  .settings-category-woo-option-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .settings-category-woo-option-main strong,
  .settings-category-woo-option-main small,
  .settings-category-woo-option-meta span,
  .settings-category-woo-option-meta em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .settings-category-woo-option-main strong {
    color: #fff;
    font-size: 14px;
    font-weight: 850;
  }

  .settings-category-woo-option-main small,
  .settings-category-woo-option-meta span {
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    font-style: normal;
    font-weight: 650;
  }

  .settings-category-woo-option-meta em {
    color: #d8b46c;
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
  }

  .settings-category-woo-option-action {
    min-width: 82px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-align: center;
  }

  .settings-category-woo-selector-status {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
  }

  .settings-category-woo-selector-status.is-error {
    color: #ffb2b2;
  }
}

.settings-category-spec-add-button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.settings-category-spec-add-button:hover,
.settings-category-spec-add-button:focus-visible {
  border-color: rgba(111, 66, 193, 0.62);
  background: rgba(111, 66, 193, 0.24);
  color: #fff;
  outline: none;
}

.settings-category-specs-modal-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.settings-category-specs-modal-heading {
  display: grid;
  gap: 4px;
}

.settings-category-specs-modal-list-wrap {
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}

.settings-category-specs-modal-list {
  margin-top: 0;
}

.settings-category-specs-modal .settings-category-spec-group {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.settings-category-specs-modal .settings-category-spec-group-row {
  color: #fff;
}

.settings-category-specs-modal .settings-category-spec-group-row span,
.settings-category-specs-modal .settings-category-spec-field-row {
  color: rgba(255, 255, 255, 0.62);
}

.settings-category-specs-modal .settings-category-spec-field-row {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.settings-category-custom-spec-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-category-custom-spec-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  outline: none;
}

.settings-category-custom-spec-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.settings-category-custom-spec-input:focus {
  border-color: rgba(111, 66, 193, 0.68);
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.18);
}

.settings-category-custom-spec-remove {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.66);
  padding: 0;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.settings-category-custom-spec-remove:hover,
.settings-category-custom-spec-remove:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  outline: none;
}

@media (max-width: 720px) {
  .settings-category-specs-modal-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .settings-category-spec-add-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.settings-users-panel {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.settings-users-card,
.settings-user-avatar-card,
.settings-user-column-card,
.settings-users-list {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(89, 71, 132, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 249, 0.72);
  padding: 16px;
}

.settings-users-head {
  display: grid;
  gap: 4px;
}

.settings-users-title {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
}

.settings-users-note,
.settings-user-status,
.settings-users-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.settings-user-form {
  display: grid;
  gap: 12px;
}

.settings-user-form label {
  display: grid;
  gap: 8px;
}

.settings-user-form label > span,
.settings-user-roles legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.settings-user-form input[type="text"],
.settings-user-form input[type="password"],
.settings-user-department-field select,
.settings-user-column-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(89, 71, 132, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.settings-user-form input[type="text"]:focus,
.settings-user-form input[type="password"]:focus,
.settings-user-department-field select:focus,
.settings-user-column-field select:focus {
  border-color: rgba(117, 66, 217, 0.42);
  outline: 2px solid rgba(117, 66, 217, 0.14);
  outline-offset: 0;
}

.settings-user-column-card {
  gap: 12px;
}

.settings-user-form .settings-user-column-card {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.settings-user-column-field {
  display: grid;
  gap: 8px;
  max-width: 520px;
}

.settings-user-column-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.settings-user-department-field select,
.settings-user-column-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(89, 71, 132, 0.72) 50%),
    linear-gradient(135deg, rgba(89, 71, 132, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.settings-user-roles {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.settings-user-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.settings-user-form .settings-user-role {
  display: flex;
  min-height: 36px;
  border: 1px solid rgba(89, 71, 132, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 8px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  gap: 8px;
}

.settings-user-form .settings-user-role > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.settings-user-form .settings-user-role input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  accent-color: var(--purple);
}

.settings-user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-user-status.is-error {
  color: var(--coral);
}

.settings-user-status.is-success {
  color: var(--green-dark);
}

.settings-users-list-items {
  display: grid;
  gap: 8px;
}

.settings-user-avatar-card {
  display: none;
}

.settings-user-avatar-preview {
  padding: 0;
  cursor: pointer;
  display: grid;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(89, 71, 132, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 34px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.settings-user-avatar-preview:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
}

.settings-user-avatar-preview img,
.settings-user-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.settings-user-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.settings-user-avatar-upload,
.settings-user-avatar-remove {
  min-height: 36px;
  padding-left: 14px;
  padding-right: 14px;
  white-space: nowrap;
}

.settings-user-avatar {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(117, 66, 217, 0.1);
  color: var(--purple);
  font-size: 13px;
  font-weight: 750;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.settings-users-values-wrap,
.settings-users-list--values {
  display: none;
}

.settings-user-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(89, 71, 132, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
  margin: 0;
  padding: 10px 12px;
  color: inherit;
  font: inherit;
  text-align: left;
  appearance: none;
  cursor: pointer;
}

.settings-user-row:hover,
.settings-user-row.active {
  border-color: rgba(117, 66, 217, 0.28);
  background: rgba(117, 66, 217, 0.08);
}

.settings-user-row:focus-visible {
  outline: 2px solid rgba(117, 66, 217, 0.18);
  outline-offset: 2px;
}

.settings-user-login {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.settings-user-roles-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.settings-user-role-pill,
.settings-user-column-pill,
.settings-user-password-pill {
  display: inline-flex;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(117, 66, 217, 0.1);
  color: var(--purple);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 750;
  align-items: center;
}

.settings-user-password-pill {
  background: rgba(83, 112, 7, 0.11);
  color: var(--green-dark);
  white-space: nowrap;
}

.settings-user-column-pill {
  background: rgba(9, 8, 17, 0.08);
  color: var(--ink);
  white-space: nowrap;
}

/* codex-desktop-users-list-in-values-menu-20260522 */
@media (min-width: 901px) {
  .settings-user-contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .settings-user-contact-row label {
    min-width: 0;
  }

  .settings-users-panel {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    max-width: none;
  }

  .settings-users-card {
    min-width: 0;
  }

  .settings-user-avatar-card {
    display: grid;
    justify-items: center;
    align-content: start;
    min-height: 232px;
  }

  .settings-user-avatar {
    display: inline-grid;
  }

  .settings-users-panel .settings-users-list--main {
    display: none;
  }

  .settings-users-values-wrap {
    display: grid;
    margin-top: 10px;
  }

  .settings-users-list--values {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .settings-modal .settings-users-list--values,
  .settings-modal .settings-users-list--values .settings-user-row {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .settings-modal .settings-users-list--values .settings-user-row:focus-visible {
    outline: none;
  }

  .settings-users-list--values .settings-user-row:focus-visible .settings-user-login {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .settings-users-list--values .settings-user-row {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px;
  }

  .settings-users-list--values .settings-user-roles-list,
  .settings-users-list--values .settings-user-column-pill,
  .settings-users-list--values .settings-user-password-pill {
    display: none;
  }

  .settings-users-list--values .settings-user-login {
    font-size: 13px;
  }

  .settings-users-list--values .settings-user-roles-list {
    gap: 5px;
  }

  .settings-users-list--values .settings-user-password-pill {
    justify-self: start;
  }

  .settings-users-list--values .settings-user-column-pill {
    justify-self: start;
  }
}

/* codex-settings-size-filter-select-20260520 */
.settings-kanban-column-grid label,
.settings-size-filter-grid label {
  display: grid;
  gap: 8px;
  max-width: 520px;
}

.settings-kanban-color-field {
  display: grid;
  gap: 8px;
  max-width: 520px;
}

.settings-kanban-order-field {
  width: min(100%, 350px);
}

.settings-kanban-width-field {
  display: grid;
  gap: 8px;
  width: min(100%, 350px);
}

.settings-kanban-width-field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.settings-kanban-width-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.settings-kanban-width-option {
  position: relative;
  display: grid;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(89, 71, 132, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.settings-kanban-width-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.settings-kanban-width-option span {
  position: relative;
  z-index: 1;
  color: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  pointer-events: none;
}

.settings-kanban-width-option:has(input:checked) {
  border-color: rgba(110, 67, 210, 0.88);
  background: #7044d5;
  color: #fff;
}

.settings-kanban-width-option:hover,
.settings-kanban-width-option:focus-within {
  border-color: var(--purple);
  outline: none;
}

.settings-kanban-order-field input[type="number"] {
  appearance: textfield;
}

.settings-kanban-order-field input[type="number"]::-webkit-outer-spin-button,
.settings-kanban-order-field input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.settings-kanban-color-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 1220px);
  max-width: 1220px;
}

.settings-kanban-column-grid label > span,
.settings-kanban-color-field > span,
.settings-size-filter-grid label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.settings-kanban-column-grid .settings-kanban-width-option > span {
  color: inherit;
  font-size: 13px;
  font-weight: 850;
}

/* codex-brand-logo-compact-row-20260520 */
.settings-brand-logo-preview {
  grid-column: 1;
  grid-row: 1;
  width: var(--settings-brand-logo-size);
  height: var(--settings-brand-logo-size);
  min-height: 0;
  align-self: start;
  display: grid;
  place-items: center;
  border: 1px solid rgba(89, 71, 132, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  padding: 12px;
}

.settings-brand-logo-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.settings-brand-logo-placeholder {
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}

.settings-brand-logo-actions {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-self: start;
  gap: 10px;
  min-width: 0;
}

/* codex-brand-logo-actions-align-20260520 */
.settings-brand-logo-actions .button {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

/* codex-brand-logo-meta-side-20260520 */
.settings-brand-logo-meta {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: var(--settings-brand-logo-size);
  min-width: 0;
  max-width: none;
  margin: 0;
  align-self: start;
  align-content: center;
  border: 1px solid rgba(89, 71, 132, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.settings-brand-logo-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.settings-brand-logo-meta-row span {
  color: var(--muted);
}

.settings-brand-logo-meta-row strong {
  color: var(--ink);
  font-weight: 700;
}

.settings-upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-brand-logo-hint,
.settings-category-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.settings-brand-logo-hint {
  grid-column: 1 / -1;
  grid-row: 2;
}

.settings-brand-logo-hint.is-error {
  color: var(--coral);
}

.settings-brand-logo-hint.is-success {
  color: #1d6f34;
}

.integrations-panel {
  min-height: 400px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.integration-panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.integration-card {
  border: 1px solid rgba(89, 71, 132, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  padding: 14px;
  display: grid;
  gap: 14px;
}

.integration-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.integration-card-head-copy {
  display: grid;
  gap: 6px;
}

.integration-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.integration-card-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.integration-card-subtitle code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.integration-state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(89, 71, 132, 0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.integration-state-badge.is-success {
  background: var(--green-soft);
  color: #1d6f34;
}

.integration-state-badge.is-error {
  background: var(--coral-soft);
  color: var(--coral);
}

.integration-meta {
  margin: 0;
  display: grid;
  gap: 8px;
}

.integration-meta-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.integration-meta dt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.integration-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.integration-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.integration-run-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.integration-run-status.is-error {
  color: var(--coral);
}

.integration-run-status.is-success {
  color: #1d6f34;
}

@media (max-width: 900px) {
  .integration-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .integration-meta-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* codex-brand-favorite-separate-block-20260520 */
.settings-brand-favorite-block {
  border: 1px solid rgba(89, 71, 132, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.settings-brand-favorite-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.settings-brand-favorite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}

.settings-brand-favorite-row span {
  color: var(--muted);
}

.settings-brand-favorite-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.settings-brand-landing-block {
  grid-column: 1 / -1;
  grid-row: 3;
  border: 1px solid rgba(89, 71, 132, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.settings-brand-landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-brand-landing-header .settings-brand-favorite-title {
  margin: 0;
}

.settings-brand-landing-add {
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  font-size: 28px;
  line-height: 1;
}

.settings-brand-landing-list {
  display: grid;
  gap: 10px;
}

.settings-brand-landing-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.settings-brand-landing-title {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  cursor: text;
}

.settings-brand-landing-title:focus {
  outline: none;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.settings-brand-landing-title::placeholder {
  color: var(--ink);
  opacity: 1;
}

.settings-brand-landing-row input[type="url"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(89, 71, 132, 0.2);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.settings-brand-landing-row input[type="url"]:focus {
  outline: none;
  border-color: rgba(9, 8, 17, 0.44);
  box-shadow: 0 0 0 2px rgba(9, 8, 17, 0.08);
}

.settings-brand-landing-remove {
  min-width: 90px;
}

@media (min-width: 1700px) {
  .settings-brand-panel {
    grid-template-columns: var(--settings-brand-logo-size) minmax(280px, 420px) minmax(200px, 240px);
  }

  .settings-brand-logo-hint {
    grid-row: 2;
  }

  .settings-brand-landing-block {
    grid-row: 3;
  }
}

@media (max-width: 1600px) {
  .settings-brand-panel {
    grid-template-columns: var(--settings-brand-logo-size) minmax(0, 1fr);
  }

  .settings-brand-logo-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .settings-brand-logo-hint {
    grid-row: 3;
  }

  .settings-brand-landing-block {
    grid-row: 4;
  }
}

@media (max-width: 900px) {
  .settings-brand-logo-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .settings-brand-panel {
    grid-template-columns: 1fr;
  }

  .settings-brand-logo-preview,
  .settings-brand-logo-meta,
  .settings-brand-logo-actions,
  .settings-brand-logo-hint,
  .settings-brand-favorite-block,
  .settings-brand-landing-block {
    grid-column: 1;
    grid-row: auto;
  }

  .settings-brand-logo-preview {
    width: min(176px, 100%);
    height: min(176px, calc(100vw - 88px));
  }

  .settings-brand-logo-meta {
    height: auto;
    min-height: var(--settings-brand-logo-size);
  }
}

.settings-values-list.is-category-tree .category-menu-group-toggle,
.settings-values-list.is-category-tree .category-menu-item,
.settings-values-list.is-category-tree .category-menu-count-action {
  cursor: pointer;
  pointer-events: auto;
}


.settings-values-list:not(.is-category-tree) .settings-value-item {
  cursor: pointer;
}

.settings-values-list:not(.is-category-tree) .settings-value-item:hover {
  background: rgba(255, 255, 255, 0.58);
}

.settings-values-list:not(.is-category-tree) .settings-value-item.active {
  border-left-color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(9, 8, 17, 0.08);
}

/* codex-size-filter-green-20260520 */
.settings-values-list:not(.is-category-tree) .settings-value-item.has-size-filter {
  color: #15803d;
}

.settings-values-list:not(.is-category-tree) .settings-value-item.has-size-filter .category-menu-count {
  color: #15803d;
}

.category-menu-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 6px;
  padding: 8px 10px 8px 11px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.category-menu-item:hover {
  background: rgba(255, 255, 255, 0.58);
}

.category-menu-item.active {
  border-left-color: transparent;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(9, 8, 17, 0.08);
}

.category-menu-item.is-child {
  padding-left: 28px;
}

.category-menu-item.is-branch {
  padding-left: 28px;
}

.category-menu-item.is-grandchild {
  min-height: 34px;
  padding-left: 44px;
}

.category-menu-item.is-fourth-level {
  min-height: 32px;
  padding-left: 60px;
}

.category-menu-nested {
  display: grid;
  gap: 1px;
}

.category-menu-nested.has-active > .category-menu-item.is-branch {
  background: rgba(255, 255, 255, 0.48);
}

.category-menu-grandchildren {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    grid-template-rows 320ms cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: grid-template-rows, opacity, transform;
}

.category-menu-grandchildren.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.category-menu-grandchildren.is-opening {
  animation: category-menu-grandchildren-open 320ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

.category-menu-grandchildren.is-closing {
  pointer-events: none;
  animation: category-menu-grandchildren-close 320ms cubic-bezier(0.45, 0, 0.55, 1) both;
}

.category-menu-grandchildren-inner {
  display: grid;
  gap: 1px;
  min-height: 0;
  overflow: hidden;
}

@keyframes category-menu-grandchildren-open {
  from {
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes category-menu-grandchildren-close {
  from {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
  }

  to {
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-menu-grandchildren {
    transition: none;
    transform: none;
  }

  .category-menu-grandchildren.is-opening,
  .category-menu-grandchildren.is-closing {
    animation: none;
  }
}

.category-menu-item.dragging {
  cursor: grabbing;
  opacity: 0.52;
}

.category-menu-group.drag-over > .category-menu-group-toggle {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(9, 8, 17, 0.16);
}

.category-menu-item.parent-drag-over {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(9, 8, 17, 0.16);
}

.category-menu-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-menu-name.is-editing,
.category-menu-group-name.is-editing {
  min-width: 0;
  margin: -2px -4px;
  border-radius: 5px;
  padding: 2px 4px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(9, 8, 17, 0.22);
  cursor: text;
  outline: none;
  text-overflow: clip;
}

.category-menu-count {
  min-width: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.category-menu-count-action {
  cursor: pointer;
}

.category-menu-count-action:hover,
.category-menu-count-action:focus-visible {
  color: var(--ink);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.category-menu-item.settings-active,
.category-menu-group-toggle.settings-active {
  border-left-color: transparent;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(9, 8, 17, 0.08);
}

.category-menu-group {
  display: grid;
  gap: 2px;
}

.category-menu-group-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.category-menu-group-toggle:hover {
  background: rgba(255, 255, 255, 0.58);
}

.category-menu-root-add {
  position: absolute;
  top: 50%;
  left: -8px;
  z-index: 1;
  flex: none;
  display: inline-grid;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}

.category-menu-root-add:hover,
.category-menu-root-add:focus-visible {
  color: var(--ink);
  outline: none;
}

.category-menu-group.has-active > .category-menu-group-toggle {
  color: var(--ink);
}

.category-menu-group-name {
  flex: 1;
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* codex-settings-category-root-headings-white-20260620 */
.settings-modal .settings-values-list.is-category-tree .category-menu-group-toggle {
  color: #fff;
}

/* codex-desktop-catalog-category-menu-regular-plus-1px-20260526 */
@media (min-width: 901px) {
  .catalog-view .category-menu-name,
  .catalog-view .category-menu-count{
    font-size: var(--crm-navigation-font-size, 14px);
    font-weight: var(--crm-navigation-font-weight, 400);
  }

  .catalog-view .category-menu-group-name{
    font-size: var(--crm-navigation-font-size, 15px);
    font-weight: var(--crm-navigation-font-weight, 700);
  }

  .catalog-view .category-menu-group-toggle > .category-menu-count{
    display: none;
  }
}

.category-menu-children {
  display: grid;
  gap: 1px;
  padding-bottom: 4px;
}

.category-menu-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
}

.catalog-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.catalog-panel > * {
  min-width: 0;
}

.catalog-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: end;
}

.catalog-hidden-controls {
  display: none;
}

.bulk-bar,
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.bulk-bar {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
}

.bulk-actions select {
  min-width: 150px;
}

.catalog-product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-left: 132px;
}

.catalog-product-head > span {
  flex: 0 0 auto;
}

.table-delete-selected,
.table-process-first-photo {
  min-height: 32px;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.catalog-table-wrap {
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #f9f9f9;
}

.catalog-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.catalog-table th,
.catalog-table td {
  border-bottom: 1px solid #f9f9f9;
  padding: 12px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.catalog-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.catalog-filter-head {
  width: 152px;
  min-width: 152px;
}

.catalog-filter-head--readiness {
  width: 172px;
  min-width: 172px;
}

.catalog-filter-head:not(.catalog-filter-head--readiness) .catalog-head-filter-button {
  margin-left: 10px;
}

.catalog-head-filter-button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  min-width: 0;
}

.catalog-head-filter-button:hover,
.catalog-head-filter-button:focus-visible {
  color: #4c4862;
}

.catalog-head-filter-button:focus-visible {
  outline: 2px solid rgba(117, 66, 217, 0.24);
  outline-offset: 2px;
  border-radius: 4px;
}

.catalog-table tbody td {
  border-bottom-color: #f1f1f1;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* codex-catalog-table-row-bg-f9f9f9-20260526 */
.catalog-table tbody tr {
  background: #f9f9f9;
}

.catalog-table tr:last-child td {
  border-bottom: 0;
}

.catalog-table tr.clickable-row {
  cursor: pointer;
}

.catalog-table tr.clickable-row:hover {
  background: #faf9fd;
}

.catalog-table tr.clickable-row:focus-visible {
  outline: 3px solid rgba(45, 106, 79, 0.2);
  outline-offset: -3px;
}

.catalog-price-cell {
  white-space: nowrap;
}

.catalog-price-value,
.catalog-price-base,
.catalog-price-current {
  color: var(--ink);
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  text-decoration: none;
}

.catalog-price-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.15;
}

.catalog-price-base {
  text-decoration-line: none;
  text-decoration-color: currentColor;
  text-decoration-thickness: auto;
  text-decoration-skip-ink: auto;
}

.catalog-price-current {
  text-decoration: none;
}

.catalog-select-cell {
  width: 72px;
  min-width: 72px;
  cursor: pointer;
}

.catalog-table thead th:first-child input {
  margin-left: 16px;
}

.catalog-select-hitbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 52px;
  margin: -10px 0;
  border-radius: 8px;
}

.catalog-select-hitbox:hover {
  background: rgba(9, 8, 17, 0.06);
}

.table-product {
  display: grid;
  grid-template-columns: 118px minmax(210px, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 78px;
}

.table-product strong,
.table-product span {
  display: block;
}

.table-product-title-link {
  display: block;
  max-width: 360px;
  color: inherit;
  text-decoration: none;
}

.table-product-title-link:hover strong,
.table-product-title-link:focus-visible strong {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table-product strong {
  max-width: 360px;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-product span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.table-product .product-variants-line {
  max-width: 360px;
  overflow: hidden;
  color: var(--accent);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-thumb {
  width: 118px;
  height: 76px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.table-readiness {
  display: grid;
  min-width: 130px;
  --progress-track: rgba(117, 66, 217, 0.14);
  gap: 6px;
}

.table-readiness span {
  color: var(--ink);
  font-weight: 800;
}

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

.table-action {
  min-height: 34px;
  padding: 7px 11px;
}

.empty-cell {
  height: 140px;
  color: var(--muted);
  text-align: center !important;
}

.catalog-initial-load {
  width: min(460px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
  justify-items: stretch;
  color: var(--muted);
  text-align: left;
}

.catalog-initial-load strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.catalog-initial-load span {
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.catalog-initial-load progress {
  height: 8px;
}

.catalog-initial-load--error {
  justify-items: center;
}

.catalog-initial-load--error span {
  max-width: 360px;
}

.catalog-initial-load--error .button {
  min-height: 32px;
  padding: 7px 14px;
}

.pagination {
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
}

/* codex-catalog-infinite-load-20260609 */
.catalog-load-more {
  min-height: 48px;
  padding: 0 0 6px;
}

.catalog-load-more #catalogPageInfo {
  font-weight: 600;
}

.catalog-load-more #catalogNext {
  min-width: 150px;
}

.catalog-load-more #catalogNext:disabled {
  cursor: default;
  opacity: 0.45;
}

.brands-view {
  padding: 24px;
}

.brands-page {
  display: grid;
  gap: 16px;
}

.brands-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.brands-head h2 {
  margin: 2px 0 4px;
  font-size: 28px;
  line-height: 1.1;
}

.brands-head p {
  margin: 0;
  color: #6b647a;
}

.brands-head p.is-error {
  color: #b42318;
}

.brands-eyebrow {
  color: #7a718c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.brands-head-actions,
.brands-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brands-layout {
  display: grid;
  grid-template-columns: 240px minmax(420px, 1fr) minmax(360px, 460px);
  gap: 16px;
  align-items: start;
}

.brands-sidebar,
.brands-list-panel,
.brands-detail {
  padding: 14px;
}

.brands-search,
.brands-detail-form,
.brands-detail-form label {
  display: grid;
  gap: 6px;
}

.brands-search span,
.brands-detail-form label span {
  color: #6b647a;
  font-size: 12px;
  font-weight: 700;
}

.brands-search input,
.brands-detail-form input,
.brands-detail-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ded9ea;
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
}

.brands-upload input {
  min-height: 42px;
  padding: 9px;
  background: #fff;
}

.brands-upload-status {
  min-height: 18px;
  color: #756d86;
  font-size: 12px;
  line-height: 1.35;
}

.brands-filter-list {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.brands-filter-list button {
  display: flex;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 9px 10px;
  color: #312b3d;
  text-align: left;
}

.brands-filter-list button:hover,
.brands-filter-list button:focus-visible,
.brands-filter-list button.is-active {
  border-color: #d9cef4;
  background: #f6f2ff;
}

.brands-table-head,
.brands-row {
  display: grid;
  grid-template-columns: 64px minmax(180px, 1fr) 70px 90px;
  gap: 10px;
  align-items: center;
}

.brands-table-head {
  padding: 0 calc(10px + var(--brands-list-scrollbar-width, 0px)) 8px 10px;
  color: #756d86;
  font-size: 12px;
  font-weight: 700;
}

.brands-table-head > :first-child,
.brands-row-image,
.brands-table-head > :nth-child(3),
.brands-row-products,
.brands-table-head > :nth-child(4),
.brands-row-status {
  justify-self: center;
}

.brands-table-head button {
  display: inline-flex;
  width: max-content;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.brands-table-head button:hover,
.brands-table-head button:focus-visible,
.brands-table-head button.is-active {
  color: #292334;
  outline: none;
}

.brands-table-head button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brands-table-head button::after {
  content: "";
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  opacity: 0;
}

.brands-table-head button.is-active::after {
  opacity: 1;
}

.brands-table-head button.is-active[data-sort-direction="asc"]::after {
  border-bottom: 5px solid currentColor;
}

.brands-table-head button.is-active[data-sort-direction="desc"]::after {
  border-top: 5px solid currentColor;
}

.brands-list {
  display: grid;
  gap: 4px;
  max-height: calc(100vh - 230px);
  overflow: auto;
}

.brands-row {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: #292334;
  text-align: left;
}

.brands-row:hover,
.brands-row:focus-visible,
.brands-row.is-active {
  border-color: #d9cef4;
  background: #faf8ff;
}

.brands-row-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brands-row-title strong,
.brands-row-title small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brands-row-title small {
  color: #756d86;
}

.brands-row-products {
  width: max-content;
  color: #292334;
  font-weight: 700;
  text-decoration: none;
}

.brands-row-products:hover,
.brands-row-products:focus-visible {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.brands-row-status {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
}

.brands-row-status span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #22a447;
  box-shadow: 0 0 0 3px rgba(34, 164, 71, 0.14);
}

.brands-row-status.is-dirty span {
  background: #d99000;
  box-shadow: 0 0 0 3px rgba(217, 144, 0, 0.16);
}

.brands-row-status.is-error span {
  background: #d93030;
  box-shadow: 0 0 0 3px rgba(217, 48, 48, 0.16);
}

.brands-row-image {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ded9ea;
  border-radius: 6px;
  background: #fff;
  color: #9b94a8;
  font-size: 13px;
  overflow: hidden;
}

.brands-row-image img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

.brands-row-image.is-empty {
  border-color: transparent;
  background: transparent;
}

.brands-empty,
.brands-detail-empty {
  padding: 22px;
  color: #756d86;
  text-align: center;
}

.brands-detail-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brands-detail-title h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.brands-detail-title a {
  color: #6f3fd6;
  font-size: 13px;
  text-decoration: none;
}

.brands-logo-preview {
  width: 82px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ded9ea;
  border-radius: 8px;
  background: #fff;
  color: #90889f;
  font-size: 12px;
  overflow: hidden;
}

.brands-logo-preview img {
  max-width: 76px;
  max-height: 58px;
  object-fit: contain;
}

.brands-detail-form textarea {
  resize: vertical;
}

.brands-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.brands-detail-meta span {
  border-radius: 999px;
  background: #f3f0f8;
  padding: 6px 9px;
  color: #5e566d;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .brands-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .brands-detail {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .brands-view {
    padding: 14px;
  }

  .brands-head,
  .brands-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .brands-table-head,
  .brands-row {
    grid-template-columns: minmax(0, 1fr) 54px 70px 78px;
  }
}

.workspace {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 12px;
  min-height: calc(100vh - 124px);
  padding: 0 24px;
}

.product-sidebar {
  border-right: 0;
  padding: 18px 0;
}

.product-sidebar-categories {
  padding: 22px 0 18px;
}

.toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.field-stack {
  display: grid;
  gap: 7px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.field-label-row > span {
  min-width: 0;
}

.field-action-button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.description-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.description-format-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(88, 66, 139, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.description-format-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
}

.description-format-button:hover,
.description-format-button:focus-visible {
  background: rgba(9, 8, 17, 0.08);
  outline: none;
}

.description-format-button:disabled {
  color: rgba(112, 106, 135, 0.62);
  cursor: not-allowed;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(88, 66, 139, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--ink);
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

#description {
  min-height: 390px;
  overflow-y: hidden;
  resize: vertical;
  line-height: 1.4;
}

#gptPromptInstructions {
  min-height: 156px;
}

#gptPromptTask {
  min-height: 210px;
  font-family: inherit;
}

.gpt-prompt-grid {
  align-items: start;
}

.gpt-prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gpt-prompt-status {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.description-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid rgba(88, 66, 139, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.description-mode-tab {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.description-mode-tab.active {
  background: #090811;
  color: #fff;
}

.description-editor-panels {
  min-width: 0;
}

.description-editor-panel {
  min-width: 0;
}

.description-preview {
  min-height: 390px;
  border: 1px solid rgba(88, 66, 139, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  padding: 18px 20px;
  box-shadow: none;
  cursor: text;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.description-preview.is-empty {
  color: var(--muted);
}

.description-preview[contenteditable="true"].is-empty::before {
  content: attr(data-placeholder);
  pointer-events: none;
}

.description-preview:focus {
  border-color: rgba(9, 8, 17, 0.42);
  outline: none;
}

.description-preview > :first-child {
  margin-top: 0;
}

.description-preview > :last-child {
  margin-bottom: 0;
}

.description-preview p,
.description-preview ul,
.description-preview ol {
  margin: 0 0 14px;
}

.description-preview ul,
.description-preview ol {
  padding-left: 22px;
}

.description-preview li + li {
  margin-top: 6px;
}

.description-preview h2,
.description-preview h3,
.description-preview h4 {
  margin: 20px 0 10px;
  color: var(--ink);
  line-height: 1.18;
}

.description-preview a {
  color: #3f2f8f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(9, 8, 17, 0.42);
  box-shadow: 0 0 0 3px rgba(9, 8, 17, 0.08);
}

input:disabled {
  color: #4d5450;
  background: rgba(255, 255, 255, 0.38);
}

.product-list {
  display: grid;
  gap: 10px;
}

.product-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.52);
  text-align: left;
}

.product-item.active {
  border-color: rgba(9, 8, 17, 0.24);
  box-shadow: var(--shadow);
}

.product-thumb {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(246, 245, 253, 0.95), rgba(218, 211, 240, 0.7));
}

.product-meta {
  min-width: 0;
}

.product-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-subline {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
}

.status-dot.ready,
.status-dot.published {
  background: var(--green-dark);
}

.status-dot.review {
  background: var(--amber);
}

.status-dot.error {
  background: var(--coral);
}

.status-pill,
.owner-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-pill.ready,
.status-pill.published {
  background: var(--green-soft);
  color: var(--green-dark);
}

.status-pill.status-pill-link {
  cursor: pointer;
  text-decoration: none;
}

.status-pill.status-pill-link:hover {
  box-shadow: inset 0 0 0 1px rgba(117, 140, 57, 0.24);
}

.status-pill.status-pill-link:focus-visible {
  outline: 2px solid rgba(117, 140, 57, 0.38);
  outline-offset: 2px;
}

.status-pill.review {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.error {
  background: var(--coral-soft);
  color: var(--coral);
}

.category-settings-panel {
  grid-column: 1;
}

.category-settings-grid {
  grid-template-columns: minmax(0, 1fr);
}

#categorySettingsDescription {
  min-height: 260px;
}

.panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(18px);
}

.product-overview-panel {
  display: grid;
  gap: 28px;
}

.product-overview-panel .accounting-heading {
  margin-bottom: 0;
}

@media (min-width: 901px) {
  .product-overview-panel .accounting-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-flag-spec-table {
    margin-bottom: 0;
  }

  .product-flag-spec-row {
    align-items: center;
  }

  .product-flag-spec-value {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
  }

  .product-flag-switch {
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    gap: 0;
    color: #090811;
    cursor: pointer;
    line-height: 1;
    user-select: none;
  }

  .product-flag-switch-control {
    position: relative;
    display: inline-flex;
    width: 37px;
    height: 20px;
    flex: 0 0 auto;
  }

  .product-flag-switch-control input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
  }

  .product-flag-switch-track {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(9, 8, 17, 0.1);
    border-radius: 999px;
    background: #f1f1f1;
    box-shadow: inset 0 1px 2px rgba(9, 8, 17, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  }

  .product-flag-switch-thumb {
    position: absolute;
    top: 1px;
    left: 2px;
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(9, 8, 17, 0.18);
    transition: transform 0.18s ease;
  }

  .product-flag-switch-control input:checked + .product-flag-switch-track {
    border-color: #2f3036;
    background: #2f3036;
  }

  .product-flag-switch-control input:checked + .product-flag-switch-track .product-flag-switch-thumb {
    transform: translateX(16px);
  }

  .product-flag-switch-control input:focus-visible + .product-flag-switch-track {
    outline: 2px solid rgba(184, 250, 24, 0.7);
    outline-offset: 3px;
  }

  .product-flag-switch-control input:disabled {
    cursor: not-allowed;
  }

  .product-flag-switch-control input:disabled + .product-flag-switch-track {
    opacity: 0.52;
  }
}

.product-overview-sizes {
  display: grid;
  min-width: 0;
  gap: 14px;
}
.spec-summary-panel,
.spec-details-panel,
.content-panel,
.media-panel,
.competitor-price-panel {
  grid-column: 1;
}

.spec-summary-panel {
  position: relative;
  z-index: 2;
}

.spec-summary-panel:has(.primary-color-picker.is-open) {
  z-index: 90;
}

.competitor-price-panel {
  min-height: 82px;
}

.competitor-price-panel .panel-title {
  margin-bottom: 0;
}

.validation-stack {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 112px;
  display: grid;
  gap: 12px;
  align-self: start;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.spec-details-category {
  display: none;
}

@media (min-width: 921px) {
  .spec-details-category:not([hidden]) {
    display: block;
    flex: 0 0 auto;
    width: max-content;
    max-width: min(44vw, 520px);
    margin-left: auto;
    overflow: hidden;
    color: #090811;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.settings-main-panel.settings-main-panel--kanban,
.settings-modal .settings-main-panel.settings-main-panel--kanban {
  display: flex;
  flex-direction: column;
}

.settings-main-panel--kanban > * {
  flex-shrink: 0;
}

.settings-kanban-column-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 20px;
  margin-top: auto;
  padding-top: 24px;
}

.settings-kanban-column-actions[hidden],
.settings-kanban-column-delete[hidden] {
  display: none;
}

.settings-kanban-column-delete-hint {
  flex: 1 1 240px;
  margin: 0;
  color: #777;
  font-size: 14px;
  line-height: 1.5;
}

.settings-modal .settings-kanban-column-delete-hint {
  color: #aaa;
}

.settings-kanban-column-delete {
  appearance: none;
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #b42332;
  border-radius: 8px;
  background: #b42332;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.settings-kanban-column-delete:hover:not(:disabled) {
  background: #971d2a;
  border-color: #971d2a;
}

.settings-kanban-column-delete:focus-visible {
  outline: 2px solid #e9727e;
  outline-offset: 3px;
  box-shadow: none;
}

.settings-kanban-column-delete:disabled {
  cursor: not-allowed;
  background: transparent;
  border-color: #a45059;
  color: #b65b65;
}

.settings-modal .settings-kanban-column-delete:disabled {
  color: #ed9aa3;
}

.settings-kanban-column-delete svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.owner-content {
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

.owner-check {
  background: var(--green-soft);
  color: var(--green-dark);
}

.spec-gpt-button {
  flex: 0 0 auto;
  max-width: 100%;
}

.content-tabs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.content-left-controls {
  display: flex;
  align-items: center;
  flex: 1 1 430px;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.content-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid rgba(88, 66, 139, 0.13);
  border-radius: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.42);
}

.content-tab,
.content-tabs .description-mode-tab {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 7px 11px;
  background: transparent;
  color: var(--muted);
  font-size: inherit;
  font-weight: 800;
  line-height: 1.2;
}

.content-tab.active,
.content-tabs .description-mode-tab.active {
  background: #090811;
  color: #fff;
}

.content-tab-panel {
  min-width: 0;
}

.content-description-actions {
  flex: 0 1 auto;
  margin-left: auto;
}

#contentFeatureTable > .spec-row {
  grid-template-columns: 1ch minmax(0, 1fr);
}

#contentFeatureTable > .spec-row > span:first-child {
  display: none;
}

#contentFeatureTable > .spec-row::before {
  content: "•" / "";
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.wide {
  grid-column: 1 / -1;
}

.description-field-stack {
  gap: 10px;
}

.description-editor-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.description-editor-head > span {
  min-width: 0;
}

@media (min-width: 901px) {
  .product-overview-sizes .button {
    color: #222;
    font-weight: 400;
  }
}

.spec-table {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.spec-table-primary,
.spec-table-details,
.spec-table-content {
  gap: 0;
  margin-top: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(88, 66, 139, 0.13);
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.spec-subheading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  min-height: 0;
  margin: 8px 0 0;
  padding: 2px 0 2px;
  color: #080816;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.spec-table-details .spec-subheading:not(:first-child) {
  margin-top: 28px;
}

.spec-details-empty {
  border-top: 1px solid rgba(88, 66, 139, 0.13);
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

@media (max-width: 1360px) {
  .spec-subheading {
    min-height: 0;
    font-size: 14px;
  }
}

@media (max-width: 920px) {
  .spec-subheading {
    min-height: 0;
    font-size: 14px;
  }
}

.spec-row strong {
  color: var(--ink);
  font-weight: 700;
}

.spec-value-editable,
.spec-value-static {
  min-width: 0;
  overflow-wrap: anywhere;
}

.spec-value-editable {
  margin: -2px -4px;
  padding: 2px 4px;
  border-radius: 6px;
  cursor: text;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.spec-value-editable.is-empty {
  display: block;
  width: min(100%, 520px);
  min-height: 28px;
  background: rgba(9, 8, 17, 0.035);
  box-shadow: inset 0 0 0 1px rgba(88, 66, 139, 0.13);
}

.spec-value-editable:hover,
.spec-value-editable:focus-visible {
  background: rgba(9, 8, 17, 0.05);
  box-shadow: 0 0 0 2px rgba(9, 8, 17, 0.08);
  outline: none;
}

.spec-value-input {
  min-height: 34px;
  padding: 5px 8px;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  resize: none;
  overflow: hidden;
}

.spec-value-select {
  width: fit-content;
  min-width: 180px;
  max-width: 100%;
  min-height: 0;
  margin: -2px -4px;
  padding: 2px 26px 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.spec-value-select:focus-visible {
  outline: 2px solid rgba(9, 8, 17, 0.14);
  outline-offset: 1px;
}

.spec-row-color-picker {
  align-items: center;
  overflow: visible;
}

.spec-original-color-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.spec-original-color-controls .primary-color-dropdown-button:has(.primary-color-selected-swatches) {
  padding-inline: 4px;
}

.spec-original-color-controls .primary-color-dropdown-button:has(.primary-color-selected-swatches)
  :is(.primary-color-dropdown-label, .primary-color-dropdown-arrow) {
  display: none;
}

.spec-original-color-controls .primary-color-dropdown-button:focus-visible {
  outline: 1px solid var(--crm-palette-secondary);
  outline-offset: 2px;
}

.spec-original-color-controls > .primary-color-picker {
  flex: 0 1 auto;
  width: auto;
  max-width: 55%;
  margin-inline-start: auto;
}

.primary-color-picker {
  position: relative;
  display: inline-flex;
  width: min(100%, 370px);
  min-width: 0;
  align-items: stretch;
}

.primary-color-picker.is-open {
  z-index: 91;
}

.primary-color-dropdown-button {
  display: inline-flex;
  width: 100%;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  padding: 2px 30px 2px 0;
  text-align: left;
  transition: color 0.16s ease, opacity 0.16s ease;
}

.primary-color-dropdown-button:hover,
.primary-color-dropdown-button:focus-visible,
.primary-color-picker.is-open .primary-color-dropdown-button {
  background: transparent;
  box-shadow: none;
  outline: none;
}

.primary-color-dropdown-button:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.primary-color-selected-swatches {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 18px;
}

.primary-color-selected-swatches .primary-color-swatch {
  margin-left: -5px;
}

.primary-color-selected-swatches .primary-color-swatch:first-child {
  margin-left: 0;
}

.primary-color-dropdown-label {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-color-dropdown-arrow {
  position: absolute;
  right: 13px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.58;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}

.primary-color-picker.is-open .primary-color-dropdown-arrow {
  transform: translateY(2px) rotate(225deg);
}

.primary-color-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 92;
  width: min(340px, calc(100vw - 48px));
  border: 1px solid rgba(88, 66, 139, 0.16);
  border-radius: 8px;
  background: rgba(252, 251, 255, 0.98);
  box-shadow: 0 18px 42px rgba(30, 24, 56, 0.18);
  padding: 8px;
}

.primary-color-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}

.primary-color-option,
.primary-color-clear {
  min-height: 32px;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  line-height: 1;
}

.primary-color-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(88, 66, 139, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  padding: 6px 8px 6px 7px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.primary-color-option:hover,
.primary-color-option:focus-visible {
  border-color: rgba(9, 8, 17, 0.28);
  background: rgba(255, 255, 255, 0.94);
  outline: none;
}

.primary-color-option.is-selected {
  border-color: rgba(132, 241, 32, 0.78);
  background: rgba(240, 255, 214, 0.9);
  box-shadow: 0 0 0 2px rgba(132, 241, 32, 0.18);
}

.primary-color-swatch {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1px solid rgba(9, 8, 17, 0.2);
  border-radius: 999px;
  background: var(--chip-color);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.primary-color-option span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-color-option-mark {
  width: 7px;
  height: 7px;
  margin-left: auto;
  flex: 0 0 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
}

.primary-color-option.is-selected .primary-color-option-mark {
  opacity: 0.76;
}

.primary-color-clear {
  margin-top: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 5px 8px;
  font-weight: 600;
  cursor: pointer;
}

.primary-color-clear:hover,
.primary-color-clear:focus-visible {
  border-color: rgba(88, 66, 139, 0.14);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  outline: none;
}

@media (max-width: 640px) {
  .primary-color-picker,
  .primary-color-dropdown {
    width: 100%;
  }

  .primary-color-options {
    grid-template-columns: 1fr;
  }
}

.spec-table-primary .spec-row:first-child,
.spec-table-details .spec-row:first-child,
.spec-table-content .spec-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.spec-summary-panel .product-flag-spec-table .spec-row:first-child,
.spec-summary-panel .product-flag-spec-table + .spec-table-primary .spec-row:first-child {
  border-top: 1px solid rgba(88, 66, 139, 0.13);
  padding-top: 8px;
}

.media-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: stretch;
}

.upload-zone {
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(9, 8, 17, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  text-align: center;
  padding: 16px;
}

.upload-zone input {
  display: none;
}

.upload-zone.dragging {
  background: rgba(255, 255, 255, 0.72);
}

.optimizer-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.optimizer-controls .quality-control {
  grid-column: 1 / -1;
}

.optimizer-controls label {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.optimizer-controls strong {
  justify-self: end;
  min-width: 48px;
  color: var(--ink);
  text-align: right;
}

.optimizer-controls input,
.optimizer-controls select {
  grid-column: 1 / -1;
}

.optimizer-controls .quality-control {
  grid-template-columns: max-content minmax(120px, 1fr) auto;
  gap: 12px;
}

.optimizer-controls .quality-control span {
  grid-column: 1;
  white-space: nowrap;
}

.optimizer-controls .quality-control input {
  grid-column: 2;
  grid-row: 1;
}

.optimizer-controls .quality-control strong {
  grid-column: 3;
  grid-row: 1;
}

.media-panel .panel-title .optimize-all-button {
  flex: 0 0 auto;
  width: fit-content;
  min-width: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

.media-panel .panel-title .optimize-all-button:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.catalog-selection-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: 40px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.catalog-selection-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.catalog-selection-toolbar input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
}
.catalog-selection-toolbar .button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(88, 66, 139, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}
@keyframes photo-color-spin { to { transform: rotate(360deg); } }

.icon-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.readiness-score {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.readiness-score span {
  display: block;
  font-size: 42px;
  font-weight: 760;
  line-height: 1;
}

.readiness-score p {
  margin-bottom: 0;
  color: var(--muted);
}

progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--progress-track);
  accent-color: var(--purple);
  box-shadow: inset 0 0 0 1px rgba(117, 66, 217, 0.08);
}

progress::-webkit-progress-bar {
  border-radius: inherit;
  background: var(--progress-track);
}

progress::-webkit-progress-value {
  border-radius: inherit;
  background: var(--progress-fill);
}

progress::-moz-progress-bar {
  border-radius: inherit;
  background: var(--progress-fill);
}

.check-list {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.check-item::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  border: 1px solid rgba(88, 66, 139, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.62);
}

.check-item.ok {
  color: var(--ink);
}

.check-item.ok::before {
  border-color: var(--green);
  background: var(--green);
}

.danger-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.event-log {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.event-log:empty {
  display: none;
}

.event-log-detached {
  margin-top: 2px;
  padding: 2px 4px 0;
}

.event-log p {
  margin-bottom: 0;
  border-left: 3px solid rgba(9, 8, 17, 0.14);
  padding-left: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.accounting-panel {
  background: rgba(255, 255, 255, 0.62);
}

.accounting-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.accounting-heading h2 {
  overflow-wrap: anywhere;
  font-size: 32px;
  line-height: 1.08;
}

/* codex-product-archive-title-badge-20260526 */
.accounting-heading h2 .product-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.accounting-heading h2 .product-title-main,
.accounting-heading h2 .product-title-meta {
  display: block;
  overflow-wrap: anywhere;
}

.accounting-heading h2 .product-title-line .product-title-main {
  min-width: 0;
}

.accounting-heading h2 .product-title-link {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.14em;
}

.accounting-heading h2 .product-title-link:hover,
.accounting-heading h2 .product-title-link:focus-visible {
  text-decoration: underline;
}

.accounting-heading h2 .product-site-link-button {
  display: none;
}

@media (min-width: 901px) {
  .accounting-heading h2 .product-site-link-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: 8px;
    background: #fff;
    color: #090811;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease;
  }

  .accounting-heading h2 .product-site-link-button:hover,
  .accounting-heading h2 .product-site-link-button:focus-visible {
    background: #090811;
    color: #fff;
    outline: none;
  }

  .accounting-heading h2 .product-site-link-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(184, 250, 24, 0.7);
  }

  .accounting-heading h2 .product-site-link-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }
}

.accounting-heading h2 .product-title-meta {
  margin-top: 2px;
}

.product-title-archive-badge {
  display: inline-flex;
  min-height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #090811;
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.validation-panel {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(111, 58, 214, 0.96), rgba(93, 45, 199, 0.98)),
    var(--purple);
  color: #fff;
  padding-bottom: 32px;
  box-shadow: 0 22px 54px rgba(65, 32, 151, 0.32);
}

.validation-panel .panel-title h3,
.validation-panel .readiness-score span,
.validation-panel .readiness-score p,
.validation-panel .check-item,
.validation-panel .check-item.ok,
.validation-panel .event-log p {
  color: #fff;
}

.validation-panel .owner-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.validation-panel progress,
.validation-panel progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.2);
}

.validation-panel progress::-webkit-progress-value {
  background: var(--green);
}

.validation-panel .check-item::before {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}

.validation-panel .check-item.ok::before {
  border-color: var(--green);
  background: var(--green);
}

.validation-panel .button-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--purple-dark);
}

.validation-panel .publish-actions {
  margin-top: 18px;
}

.validation-panel .button-primary {
  border-color: rgba(184, 250, 24, 0.42);
  background: var(--green);
  color: #142000;
}










@media (min-width: 768px) {
  .validation-panel .publish-actions {
    justify-content: center;
  }

  .validation-panel #publishProduct {
    width: min(100%, 292px);
    border-radius: 999px;
  }

}

@media (max-width: 1740px) and (min-width: 1101px) {
  .topbar {
    align-items: center;
  }

  .topbar-search {
    flex: 1 1 280px;
    width: auto;
    margin-left: 0;
  }

  .topbar-actions {
    flex: 0 0 auto;
  }
}

@media (max-width: 1240px) and (min-width: 1101px) {
  .catalog-head {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  }

  .catalog-head .sync-panel {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-head-actions {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
  }
}

@media (max-width: 1100px) {
  body {
    padding: 18px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-period-filter {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .dashboard-period-filter button {
    padding-left: 8px;
    padding-right: 8px;
  }

  .dashboard-card-value {
    font-size: 38px;
  }

  .app-shell {
    min-height: calc(100vh - 36px);
  }

  .topbar {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topbar-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-left: 0;
    max-width: none;
    justify-self: stretch;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .view-tabs {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .catalog-head {
    align-items: stretch;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }

  .catalog-head .sync-panel {
    grid-column: 2;
  }

  .catalog-head-actions {
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: flex-start;
    justify-self: stretch;
  }

  .catalog-head-actions .metric-card {
    min-width: 0;
  }

  .catalog-head-actions .sync-filter-card {
    min-width: 0;
  }

  .catalog-layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }

  .settings-layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  }

  .settings-view.settings-view-has-category-menu .settings-layout {
    grid-template-columns: minmax(180px, 220px) minmax(220px, 260px) minmax(0, 1fr);
  }

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

  .sync-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .workspace {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .product-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
    padding: 16px;
  }

  .product-sidebar-categories {
    padding: 12px 16px 0;
  }

  .product-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .validation-stack,
  .spec-summary-panel,
  .spec-details-panel,
  .content-panel,
  .media-panel,
  .competitor-price-panel {
    grid-column: auto;
    grid-row: auto;
    position: static;
  }
}

/* codex-trello-hide-topbar-controls-desktop-20260522 */
@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .topbar {
    grid-template-columns: minmax(250px, 1fr) auto;
    align-items: center;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-search {
    display: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-actions {
    grid-column: 2;
    grid-row: 1;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-sync-card {
    display: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-actions #createProduct,
  body:has(#kanbanView:not(.is-hidden)) .topbar-actions #siteExchange,
  body:has(#kanbanView:not(.is-hidden)) .topbar-actions #siteExchangeFilterButton,
  body:has(#kanbanView:not(.is-hidden)) .site-exchange-progress {
    display: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-actions.has-site-exchange-progress {
    padding-bottom: 0;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-automation-button {
    display: inline-flex;
    min-width: clamp(190px, 18vw, 350px);
    height: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    transition: color 0.18s ease, opacity 0.18s ease;
    white-space: nowrap;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-automation-button:hover,
  body:has(#kanbanView:not(.is-hidden)) .topbar-automation-button:focus-visible {
    color: var(--green);
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-automation-button:focus-visible {
    outline: 2px solid rgba(184, 250, 24, 0.7);
    outline-offset: 2px;
  }

  body:has(#kanbanView:not(.is-hidden)) .automation-modal {
    width: min(91vw, calc(100vw - 96px));
    height: min(91vh, calc(100vh - 96px));
    box-shadow: none;
  }

  .automation-modal-layout {
    display: grid;
    grid-template-columns: clamp(210px, 20vw, 300px) minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
  }
  .automation-modal-body { display: block; min-width: 0; overflow-y: auto; }
  .automation-section-title { margin: 0 0 16px; color: #f4f5f7; font-size: 22px; font-weight: 500; }
  .automation-sections {
    display: flex; flex-direction: column; gap: 8px;
    min-height: 0; overflow-y: auto; padding: 20px 16px;
    border-right: 1px solid #404040;
  }
  .automation-section-button {
    flex-shrink: 0; width: 100%; padding: 14px 16px;
    border: 1px solid transparent; border-radius: 8px;
    background: transparent; color: #ccc; box-shadow: none;
    font: inherit; text-align: left; cursor: pointer;
  }
  .automation-section-button:hover { background: #303030; color: #fff; }
  .automation-section-button[aria-pressed="true"] { background: #38303f; border-color: #76569c; color: #fff; }
  .automation-section-button:focus-visible { outline: 2px solid #b8fa18; outline-offset: 2px; }
  .automation-list-caption { margin: 0 0 16px; color: #bbb; }
  .automation-rule-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
  .automation-rule { border: 1px solid #505050; border-radius: 12px; padding: 18px; }
  .automation-rule-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
  .automation-rule-copy { min-width: 0; overflow-wrap: anywhere; }
  .automation-rule h3 { color: #f4f5f7; margin: 0 0 8px; font-size: 17px; font-weight: 500; }
  .automation-rule p { margin: 5px 0; color: #ccc; line-height: 1.5; }
  .automation-rule-state { display: block; margin-top: 8px; color: #bbb; font-size: 13px; }
  .automation-rule-edit, .automation-rule-delete{
    border: 1px solid #606060; border-radius: 8px; background: #303030;
    color: #f4f5f7; box-shadow: none; padding: 10px 16px; cursor: pointer;
  }
  .automation-rule-actions { display: grid; gap: 8px; flex: 0 0 auto; }
  .automation-rule-delete { color: #ffb4b4; }
  .automation-rule button:hover { background: #414141; }
  .automation-rule button:focus-visible { outline: 2px solid #b8fa18; outline-offset: 2px; }
  .automation-empty { color: #ccc; line-height: 1.6; }
  .automation-save-status { margin: 16px 0 0; color: #bbb; font-size: 13px; }
  @media (max-width: 1100px) {
    .automation-rule-summary { flex-direction: column; }
    .automation-rule-actions { display: flex; flex-wrap: wrap; }
  }


  body:has(#kanbanView:not(.is-hidden)) .automation-modal-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-login-button {
    display: inline-flex;
    height: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    transition: color 0.18s ease, opacity 0.18s ease;
    white-space: nowrap;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-login-button:hover,
  body:has(#kanbanView:not(.is-hidden)) .topbar-login-button:focus-visible {
    color: var(--green);
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-login-button:focus-visible {
    outline: 2px solid rgba(184, 250, 24, 0.7);
    outline-offset: 2px;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-login-button.is-authenticated {
    width: 44px;
    height: 44px;
    padding: 0 7px;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-user-avatar {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 17px;
    font-weight: 760;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(8, 7, 16, 0.18);
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-user-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-settings {
    margin-left: 0;
  }
}

/* codex-settings-panel-full-height-controls-desktop-20260522 */
@media (min-width: 901px) {
  body:has(#settingsMenu:not([hidden]))::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(6, 5, 9, 0.56);
    backdrop-filter: blur(2px);
  }

  body:has(#settingsMenu:not([hidden])) .topbar {
    background:
      linear-gradient(90deg, transparent 0 calc(100% - 400px), #333 calc(100% - 400px) 100%),
      rgba(235, 232, 247, 0.54);
  }

  body:has(#kanbanView:not(.is-hidden)):has(#settingsMenu:not([hidden])) .topbar {
    background:
      linear-gradient(90deg, transparent 0 calc(100% - 400px), #333 calc(100% - 400px) 100%),
      linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  }

  .settings-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: grid;
    width: min(400px, 100vw);
    min-width: 0;
    align-content: start;
    gap: 8px;
    border: 1px solid rgba(249, 249, 249, 0.16);
    border-left-color: rgba(249, 249, 249, 0.1);
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    background: #333;
    color: #f9f9f9;
    box-shadow: -24px 0 58px rgba(0, 0, 0, 0.28);
    overflow-y: auto;
    padding: 104px 30px 32px;
  }

  .settings-menu[hidden] {
    display: none;
  }

  .settings-menu-controls {
    position: absolute;
    top: 26px;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
  }

  .settings-menu-control {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #f9f9f9;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: color 0.18s ease, background 0.18s ease;
  }

  .settings-menu-control:hover,
  .settings-menu-control:focus-visible {
    background: rgba(249, 249, 249, 0.1);
    color: #ccc;
    outline: none;
  }

  .settings-menu-control:focus-visible {
    outline: 2px solid rgba(204, 204, 204, 0.72);
    outline-offset: 2px;
  }

  .settings-menu-close {
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
  }

  .settings-menu-gear svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .settings-menu-separator {
    height: 1px;
    margin: 4px 0;
    background: rgba(249, 249, 249, 0.22);
  }

  .settings-menu-item {
    min-height: 46px;
    border-radius: 8px;
    color: #f9f9f9;
    padding: 12px 18px;
    font-weight: 750;
  }

  .settings-menu-item:hover,
  .settings-menu-item:focus-visible {
    background: rgba(249, 249, 249, 0.12);
    color: #f9f9f9;
  }
}

/* codex-kanban-board-design-system-222-333-desktop-20260522 */
@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .app-shell {
    border-color: rgba(255, 255, 255, 0.12);
    background: #151515;
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.48);
  }

  body:has(#kanbanView:not(.is-hidden)) .app-main,
  body:has(#kanbanView:not(.is-hidden)) .kanban-view {
    background: #151515;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar {
    border-bottom-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 46px rgba(79, 39, 186, 0.28);
  }

  body:has(#kanbanView:not(.is-hidden)) .panel.kanban-column {
    border-color: transparent;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .panel.kanban-column.has-custom-background {
    background: var(--kanban-column-bg);
    border-color: rgba(255, 255, 255, 0.12);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-column.is-over {
    border-color: rgba(117, 66, 217, 0.74);
    box-shadow: 0 26px 76px rgba(117, 66, 217, 0.24);
  }
}

/* Inline input follows the column background and the ordinary card border. */
@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .kanban-column.has-custom-card-background {
    --kanban-quick-input-border: rgba(255, 255, 255, 0.12);
  }
}

/* codex-kanban-quick-add-voice-input-desktop-20260523 */
@media (min-width: 901px) {

  body:has(#kanbanView:not(.is-hidden)) .kanban-column:has([data-kanban-quick-form]) {
    min-height: 0;
    padding-bottom: 15px;
  }
}

/* codex-kanban-column-bottom-gap-shorter-desktop-20260523 */
@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .panel.kanban-column {
    min-height: auto;
  }
}

/* codex-kanban-column-filter-modal-20260523 */
@media (min-width: 901px) {

  body:has(#kanbanView:not(.is-hidden)) .topbar-kanban-add-column-button,
  body:has(#kanbanView:not(.is-hidden)) .topbar-column-filter-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-kanban-add-column-button {
    margin-right: 4px;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-column-filter-button {
    margin-right: 2px;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-kanban-add-column-button:hover,
  body:has(#kanbanView:not(.is-hidden)) .topbar-kanban-add-column-button:focus-visible {
    color: var(--green);
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-column-filter-button:hover,
  body:has(#kanbanView:not(.is-hidden)) .topbar-column-filter-button:focus-visible,
  body:has(#kanbanView:not(.is-hidden)) .topbar-column-filter-button.is-active {
    color: #fff;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-kanban-add-column-button:focus-visible,
  body:has(#kanbanView:not(.is-hidden)) .topbar-column-filter-button:focus-visible {
    outline: 2px solid rgba(184, 250, 24, 0.7);
    outline-offset: 2px;
  }

  .topbar-kanban-add-column-button svg,
  .topbar-column-filter-button svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }
}

/* codex-kanban-column-scroll-desktop-20260611 */
@media (min-width: 901px) {
  html:has(#kanbanView:not(.is-hidden)),
  body:has(#kanbanView:not(.is-hidden)) {
    height: 100%;
    overflow: hidden;
  }

  body:has(#kanbanView:not(.is-hidden)) {
    min-height: 100vh;
  }

  body:has(#kanbanView:not(.is-hidden)) .app-shell {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 14px);
    min-height: 0;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar {
    flex: 0 0 auto;
  }

  body:has(#kanbanView:not(.is-hidden)) .app-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-view{
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body:has(#kanbanView:not(.is-hidden)) .panel.kanban-column {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }

  body:has(#kanbanView:not(.is-hidden)) .panel.kanban-column.has-open-card-menu {
    z-index: 120;
  }

  /* Keep the archive in the board DOM for card actions and drag/drop, while
     anchoring it to the view outside the horizontal column scroller. */
  body:has(#kanbanView:not(.is-hidden)) .kanban-view:has(.kanban-archive-panel) {
    position: relative;
    --kanban-archive-width: clamp(552px, 30.705vw, 627.9px);
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-view:has(.kanban-archive-panel[data-kanban-width="2"]) {
    --kanban-archive-width: min(65vw, calc(clamp(552px, 30.705vw, 627.9px) * 2 + 14px));
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-view:has(.kanban-archive-panel[data-kanban-width="3"]) {
    --kanban-archive-width: min(65vw, calc(clamp(552px, 30.705vw, 627.9px) * 3 + 28px));
  }

  body:has(#kanbanView:not(.is-hidden)) .panel.kanban-column.kanban-archive-panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: var(--kanban-archive-width);
    height: 100%;
    max-height: none;
    border-radius: 0;
    z-index: 2;
  }

  body:has(#kanbanView:not(.is-hidden)) .app-main:has(.kanban-archive-panel) {
    padding-bottom: 0;
  }

  body:has(#kanbanView:not(.is-hidden)) .app-shell:has(.kanban-archive-panel) {
    border-bottom-right-radius: 0;
  }
}

/* codex-milio-travel-ordinary-column-height-desktop-20260703 */
@media (min-width: 901px) {

  body.is-kanban-board-travel:has(#kanbanView:not(.is-hidden)) .panel.kanban-column {
    height: 100%;
  }
}

/* codex-site-exchange-filter-modal-20260526 */
@media (min-width: 901px) {
  .site-exchange-filter-modal {
    width: min(91vw, calc(100vw - 96px));
    height: min(91vh, calc(100vh - 96px));
    max-height: calc(100vh - 96px);
    grid-template-rows: auto minmax(0, 1fr);
    border-color: rgba(255, 255, 255, 0.12);
    background: #222;
  }

  .site-exchange-filter-modal-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .site-exchange-filter-tabs {
    display: inline-flex;
    width: min(100%, 900px);
    align-items: center;
    gap: 2px;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px;
  }

  .marketing-modal .site-exchange-filter-tabs {
    width: min(100%, 1180px);
  }

  .site-exchange-filter-tab {
    display: inline-flex;
    flex: 1 1 0;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    padding: 0 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
  }

  .site-exchange-filter-tab:hover,
  .site-exchange-filter-tab:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
  }

  .site-exchange-filter-tab.is-active {
    background: rgba(110, 67, 210, 0.9);
    color: #fff;
  }

  .site-exchange-filter-modal-close {
    background: rgba(255, 255, 255, 0.08);
    color: #eee;
  }

  .site-exchange-filter-modal-close:hover,
  .site-exchange-filter-modal-close:focus-visible {
    background: rgba(255, 255, 255, 0.14);
  }

  .site-exchange-filter-modal-body {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
    padding: 18px 20px 20px;
    background: #222;
  }

  .site-exchange-filter-layout {
    display: grid;
    height: 100%;
    min-height: 100%;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
  }

  .site-exchange-filter-section.is-hidden,
  .site-exchange-filter-logs-wrap.is-hidden {
    display: none;
  }

  .site-exchange-filter-logs-wrap {
    min-height: 0;
    overflow: hidden;
  }

  .site-exchange-filter-section {
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 20px 24px;
    overflow: hidden;
  }

  .site-exchange-filter-section h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
  }

  .site-exchange-filter-section--point {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px;
    height: 100%;
    padding-top: 18px;
    padding-bottom: 18px;
    overflow: hidden;
  }

  .site-exchange-filter-point-grid {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(200px, 0.72fr) minmax(260px, 0.95fr) minmax(300px, 1.08fr) minmax(300px, 1.1fr);
    gap: 24px;
    align-items: stretch;
  }

  .site-exchange-filter-column--point-names {
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    align-content: stretch;
    overflow: hidden;
  }

  .site-exchange-quick-filter {
    display: grid;
    min-height: 0;
    align-content: start;
    gap: 16px;
    overflow: auto;
    padding-right: 4px;
  }

  .site-exchange-quick-filter-group {
    display: grid;
    min-width: 0;
    gap: 8px;
    margin: 0;
    border: 0;
    padding: 0;
  }

  .site-exchange-quick-filter-group legend {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
  }

  .site-exchange-quick-filter-switches {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .site-exchange-filter-switch--quick-filter {
    min-width: 0;
  }

  .site-exchange-filter-switch--quick-filter span:first-child {
    min-width: 0;
    overflow: visible;
    overflow-wrap: break-word;
    word-break: normal;
    text-overflow: clip;
    white-space: normal;
  }

  .site-exchange-quick-filter-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
  }

  .site-exchange-filter-column--point-filter {
    gap: 14px;
    position: relative;
    overflow: visible;
  }

  .site-exchange-filter-column--point-brands,
  .site-exchange-filter-column--point-category {
    gap: 16px;
    position: relative;
    overflow: visible;
  }

  .site-exchange-filter-point-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    overflow: visible;
  }

  .site-exchange-filter-point-fields .site-exchange-filter-selected-badges {
    min-height: 34px;
    padding-top: 10px;
  }

  .site-exchange-filter-column--point-logs {
    min-height: 0;
    position: relative;
    overflow: hidden;
  }

  .site-exchange-filter-column--point-brands::before,
  .site-exchange-filter-column--point-category::before,
  .site-exchange-filter-column--point-logs::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -12px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
  }

  .site-exchange-filter-names-head {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .site-exchange-filter-names-head h3 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-exchange-filter-name-add {
    display: inline-flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  }

  .site-exchange-filter-name-add:hover,
  .site-exchange-filter-name-add:focus-visible {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(110, 67, 210, 0.9);
    outline: none;
  }

  .site-exchange-filter-name-add:active {
    transform: translateY(1px);
  }

  .site-exchange-filter-name-add svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
  }

  .site-exchange-filter-name-list {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .site-exchange-filter-name-item {
    display: block;
    min-width: 0;
  }

  .site-exchange-filter-name-item input {
    width: 100%;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #1c1c1c;
    color: #fff;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    outline: none;
  }

  .site-exchange-filter-name-item input:focus {
    border-color: rgba(255, 255, 255, 0.36);
    background: #242424;
    box-shadow: 0 0 0 3px rgba(110, 67, 210, 0.18);
  }

  .site-exchange-filter-name-empty {
    margin: 0;
    color: rgba(255, 255, 255, 0.46);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
  }

  .site-exchange-filter-actions,
  .site-exchange-filter-point-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .site-exchange-filter-actions {
    justify-content: flex-end;
  }

  .site-exchange-filter-point-actions {
    justify-content: space-between;
  }

  .site-exchange-filter-actions.has-site-exchange-progress {
    justify-content: flex-end;
  }

  .site-exchange-filter-point-actions.has-site-exchange-progress {
    display: grid;
    grid-template-columns: minmax(clamp(560px, 45vw, 830px), 0.95fr) minmax(0, 1fr) auto;
    gap: 16px 28px;
  }

  .site-exchange-filter-point-actions.has-site-exchange-progress .site-exchange-filter-point-count {
    display: none;
  }

  .site-exchange-filter-point-actions.has-site-exchange-progress .site-exchange-filter-progress.site-exchange-progress {
    grid-column: 2;
  }

  .site-exchange-filter-point-actions.has-site-exchange-progress .site-exchange-filter-run-button {
    grid-column: 3;
  }

  .site-exchange-filter-point-count {
    min-width: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
  }

  .site-exchange-filter-columns {
    display: grid;
    min-height: 100%;
    grid-template-columns: minmax(220px, 0.95fr) minmax(220px, 0.95fr) minmax(320px, 1.1fr);
    gap: 20px 28px;
    align-items: start;
  }

  .site-exchange-filter-column {
    display: grid;
    min-width: 0;
    gap: 12px;
    align-content: start;
    overflow: visible;
  }

  .site-exchange-filter-column.site-exchange-filter-column--point-filter {
    gap: 14px;
  }

  .site-exchange-filter-columns--point {
    overflow: visible;
  }

  .site-exchange-filter-columns--point .site-exchange-filter-column--middle,
  .site-exchange-filter-columns--point .site-exchange-filter-column--switches {
    padding-top: 0;
  }

  .site-exchange-filter-columns--auto .site-exchange-filter-column--switches {
    padding-top: 0;
  }

  .site-exchange-filter-switches--point {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
  }

  .site-exchange-filter-switches--point legend {
    grid-column: 1 / -1;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
  }

  .site-exchange-filter-run-button {
    display: inline-flex;
    min-height: 38px;
    justify-self: end;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 999px;
    background: transparent;
    color: #eee;
    padding: 0 22px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }

  .site-exchange-filter-run-button:hover,
  .site-exchange-filter-run-button:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
  }

  .site-exchange-filter-run-button:active {
    transform: translateY(1px);
  }

  .site-exchange-filter-progress.site-exchange-progress {
    position: static;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    min-height: 46px;
    margin-left: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.72);
    backdrop-filter: none;
  }

  .site-exchange-filter-progress .site-exchange-progress-head span,
  .site-exchange-filter-progress .site-exchange-progress-meta span,
  .site-exchange-filter-progress .site-exchange-progress-head strong {
    font-weight: 400;
  }

  .site-exchange-filter-progress .site-exchange-progress-head span,
  .site-exchange-filter-progress .site-exchange-progress-meta span {
    color: rgba(255, 255, 255, 0.58);
  }

  .site-exchange-filter-progress .site-exchange-progress-head strong {
    color: rgba(255, 255, 255, 0.88);
  }

  .site-exchange-filter-progress .site-exchange-progress-track {
    background: rgba(255, 255, 255, 0.16);
  }

  .site-exchange-filter-section--auto {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px;
    border-top: 0;
    padding: 20px 21px 16.8px;
  }

  .site-exchange-filter-section--channel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-content: stretch;
  }

  .site-exchange-filter-section--onec {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px;
    border-top: 0;
    padding: 20px 21px 16.8px;
  }

  /* codex-marketing-discounts-tab-20260530 */
  .marketing-modal .marketing-discounts-panel {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    align-content: stretch;
    padding: 20px 24px;
  }

  .marketing-discounts-panel-mount {
    display: grid;
    min-width: 0;
    min-height: 0;
    height: 100%;
  }

  .marketing-discounts-panel .discounts-modal-grid {
    height: 100%;
  }

  .marketing-modal .marketing-promocodes-panel {
    display: grid;
    min-height: 0;
    grid-template-columns: 304px minmax(0, 1fr);
    column-gap: 58px;
    align-content: stretch;
    padding: 44px 36px 20px 24px;
  }

  .marketing-channel-menu {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 10px;
  }

  .marketing-channel-menu-button {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 44px;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.78);
    padding: 0 18px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
  }

  .marketing-channel-menu-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .marketing-channel-menu-button:hover,
  .marketing-channel-menu-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
  }

  .marketing-channel-menu-button.is-active {
    border-color: #6e43d2;
    background: #6e43d2;
    color: #fff;
  }

  .marketing-channel-body {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-columns: 324px minmax(0, 1fr);
    gap: 36px;
  }

  .marketing-promocode-list-block,
  .marketing-promocode-settings-block {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
  }

  .marketing-promocode-block-head {
    display: flex;
    min-width: 0;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .marketing-promocode-block-head h4 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .marketing-promocode-add-button {
    display: inline-flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0;
    cursor: pointer;
  }

  .marketing-promocode-add-button:hover,
  .marketing-promocode-add-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(110, 67, 210, 0.9);
    outline: none;
  }

  .marketing-promocode-add-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
  }

  .marketing-promocode-name-list {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 8px;
    overflow: auto;
    padding-top: 16px;
    padding-right: 4px;
  }

  .marketing-promocode-name-list::-webkit-scrollbar {
    width: 8px;
  }

  .marketing-promocode-name-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
  }

  .marketing-promocode-name-button {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #1c1c1c;
    color: rgba(255, 255, 255, 0.82);
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
  }

  .marketing-promocode-name-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .marketing-promocode-name-button:hover,
  .marketing-promocode-name-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    outline: none;
  }

  .marketing-promocode-name-button.is-active {
    border-color: #6e43d2;
    background: rgba(110, 67, 210, 0.92);
    color: #fff;
  }

  .marketing-promocode-empty,
  .marketing-promocode-settings-empty {
    min-width: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
  }

  .marketing-promocode-empty {
    padding-top: 16px;
  }

  .marketing-promocode-settings-empty {
    display: flex;
    align-items: flex-start;
    padding-top: 18px;
  }

  .marketing-promocode-active-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
  }

  .marketing-promocode-active-toggle input {
    width: 16px;
    height: 16px;
    accent-color: #6e43d2;
  }

  .marketing-promocode-settings-grid {
    display: grid;
    min-width: 0;
    align-content: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    overflow: auto;
    padding-top: 16px;
    padding-right: 4px;
  }

  .marketing-promocode-settings-grid::-webkit-scrollbar {
    width: 8px;
  }

  .marketing-promocode-settings-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
  }

  .marketing-promocode-field {
    display: grid;
    min-width: 0;
    gap: 6px;
  }

  .marketing-promocode-field--wide {
    grid-column: 1 / -1;
  }

  .marketing-promocode-field > span {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .marketing-promocode-field input,
  .marketing-promocode-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #1c1c1c;
    color: #fff;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    outline: none;
    color-scheme: dark;
  }

  .marketing-promocode-field input {
    min-height: 36px;
  }

  .marketing-promocode-field textarea {
    min-height: 74px;
    resize: vertical;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .marketing-promocode-field input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.72;
    filter: invert(1);
  }

  .marketing-promocode-field input::placeholder,
  .marketing-promocode-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.34);
  }

  .marketing-promocode-field input:focus,
  .marketing-promocode-field textarea:focus {
    border-color: rgba(110, 67, 210, 0.78);
  }

  .marketing-promocode-discount-mode {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .marketing-promocode-discount-mode button {
    min-width: 0;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #1c1c1c;
    color: rgba(255, 255, 255, 0.76);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }

  .marketing-promocode-discount-mode button:hover,
  .marketing-promocode-discount-mode button:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    outline: none;
  }

  .marketing-promocode-discount-mode button.is-active {
    border-color: #6e43d2;
    background: #6e43d2;
    color: #fff;
  }

  .site-exchange-filter-channel-spacer {
    min-height: 0;
  }

  .site-exchange-filter-columns--auto {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
  }

  .site-exchange-filter-columns--onec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    height: 100%;
    min-height: 0;
  }

  .site-exchange-filter-columns--auto > .site-exchange-filter-column,
  .site-exchange-filter-columns--onec > .site-exchange-filter-column {
    height: 100%;
    min-height: 0;
    padding: 0 28px;
  }

  .site-exchange-filter-columns--auto > .site-exchange-filter-column:first-child,
  .site-exchange-filter-columns--onec > .site-exchange-filter-column:first-child {
    padding-left: 0;
  }

  .site-exchange-filter-columns--auto > .site-exchange-filter-column:last-child,
  .site-exchange-filter-columns--onec > .site-exchange-filter-column:last-child {
    padding-right: 0;
  }

  .site-exchange-filter-columns--auto > .site-exchange-filter-column + .site-exchange-filter-column,
  .site-exchange-filter-columns--onec > .site-exchange-filter-column + .site-exchange-filter-column {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-exchange-filter-auto-controls,
  .site-exchange-filter-auto-targets {
    display: grid;
    gap: 12px;
    min-width: 0;
  }

  .site-exchange-filter-auto-targets {
    gap: 30px;
  }

  .site-exchange-filter-period {
    display: grid;
    gap: 10px;
  }

  .site-exchange-filter-switch--auto-enabled {
    width: 100%;
    max-width: 360px;
    min-height: 36px;
    margin: 2px 0 2px;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 12px;
  }

  .site-exchange-filter-auto-status {
    display: grid;
    gap: 4px;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
  }

  .site-exchange-filter-column--filters {
    gap: 30px;
  }

  .site-exchange-filter-column--auto-logs,
  .site-exchange-filter-column--onec-logs {
    height: 100%;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    align-content: stretch;
    overflow: hidden;
  }

  .site-exchange-filter-columns--auto > .site-exchange-filter-column--auto-logs,
  .site-exchange-filter-columns--onec > .site-exchange-filter-column--onec-logs {
    min-height: 0;
  }

  .site-exchange-filter-column--auto-logs .site-exchange-logs-panel,
  .site-exchange-filter-column--onec-logs .site-exchange-logs-panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .site-exchange-filter-column--auto-logs .site-exchange-logs-list,
  .site-exchange-filter-column--onec-logs .site-exchange-logs-list {
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-exchange-filter-column--filters .site-exchange-filter-switches--auto {
    margin-top: 0;
  }

  .site-exchange-logs-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 30px;
    min-height: 100%;
    color: #fff;
    padding: 18px 24px 22px;
  }

  .site-exchange-logs-panel--compact {
    gap: 30px;
    padding: 0;
  }

  .site-exchange-logs-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
  }

  .site-exchange-logs-head h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
  }

  .site-exchange-logs-panel--compact .site-exchange-logs-head h3 {
    font-size: 20px;
  }

  .site-exchange-logs-head p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
  }

  .site-exchange-logs-refresh {
    display: inline-flex;
    width: 40px;
    height: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    padding: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
  }

  .site-exchange-logs-refresh-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .site-exchange-logs-refresh:hover,
  .site-exchange-logs-refresh:focus-visible {
    border-color: transparent;
    background: transparent;
    outline: none;
  }

  .site-exchange-logs-refresh:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.28);
    outline-offset: 3px;
  }

  .site-exchange-logs-refresh:disabled {
    cursor: default;
    opacity: 0.58;
  }

  .site-exchange-logs-state {
    margin: 0;
    align-self: start;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.62);
    padding: 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
  }

  .site-exchange-logs-state--error {
    border-color: rgba(255, 118, 118, 0.3);
    color: #ffb1b1;
  }

  .site-exchange-logs-list {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
  }

  .site-exchange-filter-column--point-logs .site-exchange-logs-list {
    padding-right: 0;
  }

  .site-exchange-logs-list::-webkit-scrollbar {
    width: 8px;
  }

  .site-exchange-logs-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
  }

  .site-exchange-log-card {
    display: grid;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left-color: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    padding: 12px 14px 13px;
  }

  .site-exchange-log-card:hover,
  .site-exchange-log-card:focus-visible {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.03);
    outline: none;
  }

  .site-exchange-log-card--success {
    border-left-color: rgba(255, 255, 255, 0.12);
  }

  .site-exchange-log-card--queued,
  .site-exchange-log-card--running {
    border-left-color: #8f6dff;
  }

  .site-exchange-log-card--warning {
    border-left-color: #f0c96a;
  }

  .site-exchange-log-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .site-exchange-log-card-head--with-price-list {
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto;
  }

  .site-exchange-log-card-badges {
    display: inline-flex;
    max-width: 190px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .site-exchange-log-card h4 {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-exchange-log-price-list-date {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-exchange-log-status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  .site-exchange-log-source {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    padding: 0 9px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
  }

  .site-exchange-log-source--automatic {
    background: rgba(143, 109, 255, 0.2);
    color: #d6caff;
  }

  .site-exchange-log-source--manual {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
  }

  .site-exchange-log-source--incoming {
    background: rgba(88, 196, 255, 0.16);
    color: #a7ddff;
  }

  .site-exchange-log-source--manual-edit {
    background: rgba(240, 201, 106, 0.14);
    color: #ffe0a0;
  }

  .site-exchange-log-status-button {
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
  }

  .site-exchange-log-status-button:hover,
  .site-exchange-log-status-button:focus-visible {
    filter: brightness(1.16);
    outline: none;
  }

  .site-exchange-log-status-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 177, 177, 0.22);
  }

  .site-exchange-log-status-button:disabled {
    cursor: default;
    opacity: 0.72;
  }

  .site-exchange-log-card--success .site-exchange-log-status {
    background: #b8fa18;
    color: #222;
  }

  .site-exchange-log-card--queued .site-exchange-log-status,
  .site-exchange-log-card--running .site-exchange-log-status {
    background: rgba(143, 109, 255, 0.18);
    color: #d6caff;
  }

  .site-exchange-log-card--warning .site-exchange-log-status {
    background: rgba(240, 201, 106, 0.16);
    color: #ffe0a0;
  }

  .site-exchange-log-card--error .site-exchange-log-status {
    background: rgba(255, 107, 107, 0.16);
    color: #ffb1b1;
  }

  .site-exchange-log-summary {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
  }

  .site-exchange-log-metrics,
  .site-exchange-log-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .site-exchange-log-metrics span {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    padding: 0 8px;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
  }

  .site-exchange-log-meta span {
    color: rgba(255, 255, 255, 0.46);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
  }

  .site-exchange-log-meta .site-exchange-log-duration {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 650;
  }

  .site-exchange-log-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
    color: rgba(255, 255, 255, 0.28);
  }

  .site-exchange-log-errors {
    display: grid;
    gap: 5px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
  }

  .site-exchange-log-errors li {
    display: grid;
    grid-template-columns: minmax(160px, 0.45fr) minmax(80px, 0.18fr) minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    border-radius: 7px;
    background: rgba(255, 107, 107, 0.08);
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    line-height: 1.3;
  }

  .site-exchange-log-errors li.site-exchange-log-errors-onec {
    grid-template-columns: minmax(80px, 0.2fr) minmax(0, 1fr);
  }

  .site-exchange-log-errors strong,
  .site-exchange-log-errors span,
  .site-exchange-log-errors em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-exchange-log-errors strong {
    color: #fff;
    font-weight: 700;
  }

  .site-exchange-log-errors span {
    color: rgba(255, 255, 255, 0.52);
  }

  .site-exchange-log-errors em {
    color: #ffb1b1;
    font-style: normal;
  }

  .site-exchange-log-errors .site-exchange-log-errors-more {
    display: block;
    color: rgba(255, 255, 255, 0.56);
  }

  .site-exchange-log-detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 34, 34, 0.96);
    padding: 48px;
  }

  .site-exchange-log-detail-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(91vw, calc(100vw - 96px));
    height: min(91vh, calc(100vh - 96px));
    max-height: calc(100vh - 96px);
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #222;
  }

  .site-exchange-log-detail-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 24px 18px;
  }

  .site-exchange-log-detail-head h2 {
    margin: 8px 0 0;
    color: #fff;
    font-size: 26px;
    font-weight: 750;
    line-height: 1.12;
  }

  .site-exchange-log-detail-status {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
    padding: 0 11px;
    font-size: 12px;
    font-weight: 750;
  }

  .site-exchange-log-detail-status--success {
    background: #b8fa18;
    color: #222;
  }

  .site-exchange-log-detail-status--error {
    background: rgba(255, 107, 107, 0.16);
    color: #ffb1b1;
  }

  .site-exchange-log-detail-status--warning {
    background: rgba(240, 201, 106, 0.16);
    color: #ffe0a0;
  }

  .site-exchange-log-milio-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 2px;
  }

  .site-exchange-log-milio-avatar {
    appearance: none;
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: #303134;
    color: #fff;
    padding: 0;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
  }

  .site-exchange-log-milio-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .site-exchange-log-milio-avatar:hover,
  .site-exchange-log-milio-avatar:focus-visible {
    border-color: rgba(255, 255, 255, 0.34);
    background: #3a3b3e;
    outline: none;
  }

  .site-exchange-log-milio-avatar:focus-visible {
    outline: 2px solid rgba(184, 250, 24, 0.56);
    outline-offset: 2px;
  }

  .site-exchange-log-milio-avatar.is-loading {
    opacity: 0.72;
    cursor: progress;
  }

  .site-exchange-log-milio-avatar:disabled {
    opacity: 0.62;
    cursor: default;
  }

  .site-exchange-log-detail-close {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 28px;
    line-height: 1;
  }

  .site-exchange-log-detail-close:hover,
  .site-exchange-log-detail-close:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    outline: none;
  }

  .site-exchange-log-detail-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow: hidden;
    padding: 18px 20px 20px;
  }

  .site-exchange-log-detail-section {
    display: grid;
    gap: 10px;
    min-width: 0;
  }

  .site-exchange-log-detail-section h3,
  .site-exchange-log-detail-section-head h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.25;
  }

  .site-exchange-log-detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .site-exchange-log-detail-section-head span {
    color: rgba(255, 255, 255, 0.54);
    font-size: 13px;
    font-weight: 650;
  }

  .site-exchange-log-detail-summary,
  .site-exchange-log-detail-job-error,
  .site-exchange-log-detail-note,
  .site-exchange-log-detail-empty {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
  }

  .site-exchange-log-detail-job-error,
  .site-exchange-log-detail-note {
    color: #ffb1b1;
  }

  .site-exchange-log-detail-metrics,
  .site-exchange-log-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .site-exchange-log-detail-metrics span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    padding: 0 9px;
    font-size: 12px;
    font-weight: 700;
  }

  .site-exchange-log-detail-meta span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
  }

  .site-exchange-log-detail-section--errors {
    min-height: 0;
    flex: 1 1 0;
  }

  .site-exchange-log-detail-section--skipped {
    min-height: 0;
    flex: 1 1 0;
  }

  .site-exchange-log-detail-section--compact {
    flex: 0 0 auto;
  }

  .site-exchange-log-detail-errors {
    display: grid;
    gap: 6px;
    min-height: 0;
    overflow: auto;
    margin: 0;
    padding: 0 6px 0 0;
    list-style: none;
  }

  .site-exchange-log-detail-error-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    border: 1px solid rgba(255, 107, 107, 0.12);
    border-radius: 6px;
    background: rgba(255, 107, 107, 0.045);
    padding: 10px 12px;
  }

  .site-exchange-log-detail-skipped-item {
    border-color: rgba(240, 201, 106, 0.18);
    background: rgba(240, 201, 106, 0.045);
  }

  .site-exchange-log-detail-skipped-item .site-exchange-log-detail-error-main p {
    color: rgba(255, 224, 160, 0.88);
  }

  .site-exchange-log-detail-error-index {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 750;
  }

  .site-exchange-log-detail-error-main {
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  .site-exchange-log-detail-error-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
  }

  .site-exchange-log-detail-error-head strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-exchange-log-detail-error-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .site-exchange-log-detail-error-meta span,
  .site-exchange-log-detail-product-missing {
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    font-weight: 500;
  }

  .site-exchange-log-detail-error-main p {
    margin: 0;
    color: #ffb1b1;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
  }

  .site-exchange-log-detail-product-link {
    color: #b8fa18;
    font-size: 12px;
    font-weight: 750;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    white-space: nowrap;
  }

  .site-health-sync-detail-backdrop {
    position: fixed;
    z-index: 140;
  }

  .site-health-sync-detail-modal .site-exchange-log-detail-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-health-sync-detail-list {
    padding-right: 8px;
  }

  .site-health-sync-detail-error-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-health-sync-detail-links {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
  }

  .site-health-sync-detail-site-link {
    color: #f4d35e;
  }

  .site-health-sync-detail-summary {
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
  }

  .site-health-sync-detail-diagnostic {
    display: block;
    margin: -2px 0 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
  }

  .site-exchange-filter-field {
    display: grid;
    gap: 6px;
  }

  .site-exchange-filter-field span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
  }

  .site-exchange-filter-field input,
  .site-exchange-filter-field select {
    appearance: none;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #1c1c1c;
    color: #fff;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    outline: none;
  }

  .site-exchange-filter-field select {
    background-image:
      linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.72) 50%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.72) 50%, transparent 50%);
    background-position:
      calc(100% - 17px) 15px,
      calc(100% - 11px) 15px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    padding-right: 34px;
  }

  .site-exchange-filter-field input:focus,
  .site-exchange-filter-field select:focus {
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  }

  .site-exchange-filter-combobox {
    position: relative;
    z-index: 1;
  }

  .site-exchange-filter-combobox.is-open {
    z-index: 40;
  }

  .site-exchange-filter-select-button {
    display: flex;
    width: 100%;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #1c1c1c;
    color: #fff;
    padding: 0 10px 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  }

  .site-exchange-filter-select-button:hover,
  .site-exchange-filter-select-button:focus-visible,
  .site-exchange-filter-combobox.is-open .site-exchange-filter-select-button {
    border-color: rgba(255, 255, 255, 0.34);
    background: #242424;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
    outline: none;
  }

  .site-exchange-filter-select-button span {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-exchange-filter-select-button svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.78);
    stroke-width: 2;
    fill: none;
    transition: transform 0.18s ease;
  }

  .site-exchange-filter-combobox.is-open .site-exchange-filter-select-button svg {
    transform: rotate(180deg);
  }

  .site-exchange-filter-select-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    max-height: min(340px, 44vh);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #181818;
    padding: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
    overflow: hidden;
    transform-origin: top;
    animation: site-exchange-filter-dropdown-in 0.14s ease-out;
  }

  .site-exchange-filter-select-search {
    display: block;
  }

  .site-exchange-filter-select-search input {
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #222;
    color: #fff;
    padding: 0 10px;
    font: inherit;
    font-size: 13px;
    outline: none;
  }

  .site-exchange-filter-select-search input::placeholder {
    color: rgba(255, 255, 255, 0.42);
  }

  .site-exchange-filter-select-search input:focus {
    border-color: rgba(255, 255, 255, 0.36);
    box-shadow: 0 0 0 3px rgba(110, 67, 210, 0.18);
  }

  .site-exchange-filter-select-options {
    display: grid;
    gap: 2px;
    max-height: 252px;
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
  }

  .site-exchange-filter-select-options::-webkit-scrollbar {
    width: 8px;
  }

  .site-exchange-filter-select-options::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
  }

  .site-exchange-filter-select-option {
    display: flex;
    min-height: 34px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    padding: 0 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
  }

  .site-exchange-filter-select-option[hidden],
  .site-exchange-filter-select-empty[hidden] {
    display: none;
  }

  .site-exchange-filter-select-option:hover,
  .site-exchange-filter-select-option:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
  }

  .site-exchange-filter-select-option.is-selected {
    background: rgba(110, 67, 210, 0.86);
    color: #fff;
  }

  .site-exchange-filter-select-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-exchange-filter-select-empty {
    margin: 0;
    padding: 11px 10px 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
  }

  .site-exchange-filter-selected-badges {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    min-height: 126px;
    padding-top: 14px;
  }

  .site-exchange-filter-selected-badge {
    display: inline-flex;
    max-width: 100%;
    min-height: 30px;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--purple);
    color: #fff;
    padding: 0 8px 0 11px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.18s ease, opacity 0.18s ease;
  }

  .site-exchange-filter-selected-badge:hover,
  .site-exchange-filter-selected-badge:focus-visible {
    background: var(--purple);
    opacity: 0.9;
    outline: none;
  }

  .site-exchange-filter-selected-badge span:first-child {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-exchange-filter-selected-badge .site-exchange-filter-selected-badge-close {
    display: inline-grid;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
  }

  .site-exchange-brand-filter-badges {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px 12px;
    min-height: 132px;
    padding-top: 4px;
  }

  .site-exchange-brand-filter-badge {
    appearance: none;
    display: inline-flex;
    max-width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: #303030;
    color: rgba(255, 255, 255, 0.78);
    padding: 0 18px;
    font: inherit;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  }

  .site-exchange-brand-filter-badge:hover,
  .site-exchange-brand-filter-badge:focus-visible {
    border-color: rgba(255, 255, 255, 0.22);
    background: #3a3a3a;
    color: #fff;
    outline: none;
  }

  .site-exchange-brand-filter-badge:focus-visible {
    box-shadow: 0 0 0 3px rgba(110, 67, 210, 0.24);
  }

  .site-exchange-brand-filter-badge.is-active {
    border-color: transparent;
    background: #5b448e;
    color: #fff;
  }

  .site-exchange-brand-filter-badge.is-active:hover,
  .site-exchange-brand-filter-badge.is-active:focus-visible {
    background: #644ba0;
  }

  .site-exchange-brand-filter-badge:disabled {
    cursor: default;
    opacity: 0.64;
  }

  .site-exchange-brand-filter-badge span {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  @keyframes site-exchange-filter-dropdown-in {
    from {
      opacity: 0;
      transform: translateY(-4px) scaleY(0.98);
    }

    to {
      opacity: 1;
      transform: translateY(0) scaleY(1);
    }
  }

  .site-exchange-filter-switches {
    display: grid;
    gap: 4px;
  }

  .site-exchange-filter-switch {
    display: grid;
    min-height: 30px;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 12px;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    cursor: pointer;
  }

  .site-exchange-filter-switch--point {
    min-width: 230px;
  }

  .site-exchange-filter-switch--point-mode {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 12px;
  }

  .site-exchange-filter-switch.site-exchange-filter-switch--quick-filter {
    gap: 12px;
  }

  .site-exchange-filter-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .site-exchange-filter-switch-track {
    position: relative;
    display: block;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
    transition: background 0.18s ease, box-shadow 0.18s ease;
  }

  .site-exchange-filter-switch-track::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
    content: "";
    transition: transform 0.18s ease;
  }

  .site-exchange-filter-switch input:checked + .site-exchange-filter-switch-track {
    background: rgba(110, 67, 210, 0.84);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16);
  }

  .site-exchange-filter-switch input:checked + .site-exchange-filter-switch-track::before {
    transform: translateX(18px);
  }

  .site-exchange-filter-switch input:focus-visible + .site-exchange-filter-switch-track {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  }

  /* codex-dark-modal-flat-fields-20260529 */
  .discounts-name-button,
  .discounts-name-input,
  .discounts-field select,
  .discounts-rule-row input,
  .discounts-modal-add-name,
  .site-exchange-filter-name-item input,
  .site-exchange-filter-name-add,
  .site-exchange-filter-field input,
  .site-exchange-filter-field select,
  .site-exchange-filter-select-button,
  .site-exchange-filter-select-search input {
    border-width: 1px;
    box-shadow: none;
    background-clip: padding-box;
  }

  .discounts-name-button:hover,
  .discounts-name-button:focus-visible,
  .discounts-name-input:focus,
  .discounts-field select:focus,
  .discounts-rule-row input:focus,
  .discounts-modal-add-name:focus-visible,
  .site-exchange-filter-name-item input:focus,
  .site-exchange-filter-name-add:focus-visible,
  .site-exchange-filter-field input:focus,
  .site-exchange-filter-field select:focus,
  .site-exchange-filter-select-button:hover,
  .site-exchange-filter-select-button:focus-visible,
  .site-exchange-filter-combobox.is-open .site-exchange-filter-select-button,
  .site-exchange-filter-select-search input:focus {
    border-width: 1px;
    box-shadow: none;
  }

  @media (max-width: 1200px) {
    .site-exchange-filter-tabs {
      width: min(100%, 760px);
    }

    .site-exchange-filter-tab {
      padding: 0 8px;
      font-size: 12px;
    }

    .site-exchange-filter-columns {
      grid-template-columns: 1fr;
    }

    .site-exchange-filter-columns--auto,
    .site-exchange-filter-columns--onec {
      height: auto;
      max-height: none;
      align-items: start;
      overflow: visible;
    }

    .site-exchange-filter-point-grid {
      grid-template-columns: 1fr;
    }

    .site-exchange-filter-column--point-brands::before,
    .site-exchange-filter-column--point-category::before,
    .site-exchange-filter-column--point-logs::before {
      top: -9px;
      bottom: auto;
      left: 0;
      width: 100%;
      height: 1px;
    }

    .site-exchange-filter-columns--point .site-exchange-filter-column--middle,
    .site-exchange-filter-columns--point .site-exchange-filter-column--switches,
    .site-exchange-filter-columns--auto .site-exchange-filter-column--switches {
      padding-top: 0;
    }

    .site-exchange-filter-section {
      overflow: auto;
    }

    .site-exchange-filter-columns--auto > .site-exchange-filter-column,
    .site-exchange-filter-columns--onec > .site-exchange-filter-column {
      height: auto;
      min-height: 0;
      padding: 0;
    }

    .site-exchange-filter-columns--auto > .site-exchange-filter-column + .site-exchange-filter-column,
    .site-exchange-filter-columns--onec > .site-exchange-filter-column + .site-exchange-filter-column {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      border-left: 0;
      padding-top: 18px;
    }

    .site-exchange-log-errors li {
      grid-template-columns: 1fr;
    }

    .site-exchange-log-errors strong,
    .site-exchange-log-errors span,
    .site-exchange-log-errors em {
      white-space: normal;
    }

    .site-exchange-log-detail-backdrop {
      padding: 18px;
    }

    .site-exchange-log-detail-head {
      padding: 18px 20px;
    }

    .site-exchange-log-detail-head h2 {
      font-size: 22px;
    }

    .site-exchange-log-detail-body {
      padding: 18px 20px 20px;
    }

    .site-exchange-log-detail-error-head {
      grid-template-columns: 1fr;
      gap: 8px;
    }

    .site-exchange-log-detail-error-head strong {
      white-space: normal;
    }
  }

  @media (max-height: 800px) {
    .site-exchange-filter-layout {
      grid-template-rows: minmax(0, 1fr);
      gap: 0;
    }

    .site-exchange-filter-columns--auto .site-exchange-filter-column--switches {
      padding-top: 0;
    }

    .site-exchange-filter-switches {
      gap: 4px;
    }

    .site-exchange-filter-switches--point {
      grid-template-columns: 1fr;
      gap: 4px 8px;
    }

    .site-exchange-filter-switch {
      min-height: 28px;
    }

    .site-exchange-filter-switch--point-mode {
      gap: 8px;
      font-size: 13px;
    }
  }
}

/* codex-content-loader-receipt-import-20260604 */
.loader-receipt-layout {
  display: grid;
  min-height: 0;
  color: #fff;
}

.loader-receipt-panel {
  min-width: 0;
  min-height: 0;
}

.loader-receipt-upload {
  display: grid;
  gap: 10px;
}

.loader-receipt-file-input {
  display: none;
}

.loader-receipt-file {
  display: grid;
  gap: 5px;
  min-height: 60px;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #1c1c1c;
  padding: 14px;
}

.loader-receipt-file strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loader-receipt-file span,
.loader-receipt-status,
.loader-receipt-empty span,
.loader-receipt-table-empty span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.loader-receipt-actions,
.loader-receipt-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loader-receipt-actions {
  flex-wrap: wrap;
}

.loader-receipt-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #eee;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.1;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.loader-receipt-button:hover,
.loader-receipt-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}

.loader-receipt-button.is-primary {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(110, 67, 210, 0.9);
  color: #fff;
}

.loader-receipt-button.is-primary:hover,
.loader-receipt-button.is-primary:focus-visible {
  background: rgba(124, 78, 224, 0.95);
}

.loader-receipt-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.loader-receipt-status {
  min-height: 20px;
  margin: 0;
}

.loader-receipt-status.is-error {
  color: #ffb1b1;
}

.loader-receipt-status.is-success {
  color: #8ce7b6;
}

.loader-receipt-status.is-busy {
  color: #f4d58a;
}

.loader-receipt-fields {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.loader-receipt-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.loader-receipt-switch {
  margin-top: 2px;
}

.loader-receipt-empty,
.loader-receipt-table-empty {
  display: grid;
  gap: 6px;
  min-height: 76px;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #1c1c1c;
  padding: 14px;
}

.loader-receipt-empty strong {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.loader-receipt-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.loader-receipt-summary > div {
  display: grid;
  gap: 5px;
  min-height: 66px;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #1c1c1c;
  padding: 10px 12px;
}

.loader-receipt-summary span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loader-receipt-summary strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loader-receipt-summary-state.is-ready strong {
  color: #8ce7b6;
}

.loader-receipt-summary-state.is-warning strong {
  color: #f4d58a;
}

.loader-receipt-messages {
  display: grid;
  gap: 6px;
  margin: 0;
  border: 1px solid rgba(244, 213, 138, 0.22);
  border-radius: 8px;
  background: rgba(244, 213, 138, 0.08);
  padding: 10px 12px 10px 28px;
  color: #f4d58a;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
}

.loader-receipt-table-wrap {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #1c1c1c;
  overflow: auto;
}

.loader-receipt-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  color: #fff;
  font-size: 13px;
}

.loader-receipt-table th,
.loader-receipt-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.loader-receipt-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #242424;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.loader-receipt-table td:first-child,
.loader-receipt-table th:first-child {
  width: 48px;
  text-align: right;
}

.loader-receipt-table td:nth-child(4),
.loader-receipt-table td:nth-child(5),
.loader-receipt-table td:nth-child(6),
.loader-receipt-table th:nth-child(4),
.loader-receipt-table th:nth-child(5),
.loader-receipt-table th:nth-child(6) {
  text-align: right;
  white-space: nowrap;
}

.loader-receipt-table tr:last-child td {
  border-bottom: 0;
}

.loader-receipt-table strong,
.loader-receipt-table span {
  display: block;
  max-width: 100%;
}

.loader-receipt-table strong {
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.loader-receipt-table span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.loader-receipt-table tr.is-warning td:last-child strong,
.loader-receipt-table tr.is-warning td:first-child {
  color: #f4d58a;
}

.loader-receipt-table tr.is-matched td:last-child strong {
  color: #8ce7b6;
}

.loader-receipt-footer {
  justify-content: flex-end;
}

@media (min-width: 901px) {
  .loader-modal .site-exchange-filter-tabs {
    width: min(100%, 360px);
  }

  .loader-modal-body {
    padding: 0;
  }

  .loader-bfi-layout {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    overflow: hidden;
    padding: 16px 20px 20px;
    color: #fff;
  }

  .loader-modal .loader-bfi-panel {
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr);
    border: 0;
    background: transparent;
    padding: 0;
    overflow: hidden;
  }

  .loader-modal .bfi-panel-head h3,
  .loader-modal .bfi-table td,
  .loader-modal .bfi-table code,
  .loader-modal .bfi-stock-value {
    color: #fff;
  }

  .loader-modal .bfi-panel-head p,
  .loader-modal .bfi-status,
  .loader-modal .bfi-updated,
  .loader-modal .bfi-table th,
  .loader-modal .bfi-raw-value {
    color: rgba(255, 255, 255, 0.58);
  }

  .loader-bfi-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
  }

  .loader-modal .bfi-refresh-button {
    min-width: 112px;
    min-height: 36px;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #eee;
  }

  .loader-modal .bfi-refresh-button:hover,
  .loader-modal .bfi-refresh-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .loader-modal .bfi-refresh-button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
  }

  .loader-modal .bfi-table-wrap {
    min-height: 0;
    border-color: rgba(255, 255, 255, 0.12);
    background: #1c1c1c;
  }

  .loader-modal .bfi-table {
    min-width: 900px;
  }

  .loader-modal .bfi-table th,
  .loader-modal .bfi-table td {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    padding: 10px 12px;
  }

  .loader-modal .bfi-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #242424;
  }

  .loader-receipt-layout {
    height: 100%;
    min-height: 100%;
    grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
  }

  .loader-receipt-panel {
    overflow: auto;
    padding: 16px 20px;
  }

  .loader-receipt-panel--setup {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .loader-receipt-panel--result {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 14px;
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  .loader-modal-backdrop {
    padding: 12px;
  }

  .loader-modal {
    width: min(100%, calc(100vw - 24px));
    height: min(92vh, calc(100vh - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    grid-template-rows: auto minmax(0, 1fr);
    border-color: rgba(255, 255, 255, 0.12);
    background: #222;
    color: #fff;
  }

  .loader-modal-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: #222;
    padding: 14px 16px 12px;
  }

  .loader-modal .site-exchange-filter-tabs {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 2px;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px;
  }

  .loader-modal .site-exchange-filter-tab {
    display: inline-flex;
    min-height: 32px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    padding: 0 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
  }

  .loader-modal .site-exchange-filter-tab.is-active {
    background: rgba(110, 67, 210, 0.9);
    color: #fff;
  }

  .loader-modal-close {
    background: rgba(255, 255, 255, 0.08);
    color: #eee;
  }

  .loader-modal-body {
    display: block;
    min-height: 0;
    overflow: auto;
    background: #222;
    padding: 16px 20px 20px;
  }

  .loader-receipt-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    height: auto;
    min-height: 0;
    align-content: start;
    overflow: visible;
  }

  .loader-receipt-panel {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
  }

  .loader-receipt-panel--result {
    display: grid;
    gap: 12px;
  }

  .loader-receipt-field-row,
  .loader-receipt-summary {
    grid-template-columns: 1fr;
  }

  .loader-receipt-actions,
  .loader-receipt-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .loader-receipt-button {
    width: 100%;
  }

  .loader-modal .site-exchange-filter-field {
    display: grid;
    gap: 6px;
  }

  .loader-modal .site-exchange-filter-field span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
  }

  .loader-modal .site-exchange-filter-field input,
  .loader-modal .site-exchange-filter-field select {
    appearance: none;
    min-height: 36px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #1c1c1c;
    color: #fff;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    outline: none;
  }

  .loader-modal .site-exchange-filter-field select {
    background-image:
      linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.72) 50%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.72) 50%, transparent 50%);
    background-position:
      calc(100% - 17px) 15px,
      calc(100% - 11px) 15px;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    padding-right: 34px;
  }

  .loader-modal .site-exchange-filter-field input:focus,
  .loader-modal .site-exchange-filter-field select:focus {
    border-color: rgba(255, 255, 255, 0.34);
  }

  .loader-receipt-switch {
    display: grid;
    min-height: 30px;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 12px;
    align-items: center;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
  }

  .loader-receipt-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .loader-receipt-switch .site-exchange-filter-switch-track {
    position: relative;
    display: block;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
  }

  .loader-receipt-switch .site-exchange-filter-switch-track::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transition: transform 0.18s ease;
  }

  .loader-receipt-switch input:checked + .site-exchange-filter-switch-track {
    background: rgba(110, 67, 210, 0.84);
  }

  .loader-receipt-switch input:checked + .site-exchange-filter-switch-track::before {
    transform: translateX(18px);
  }
}

/* codex-contentds-menu-modal-dark-shell-20260602 */
.menu-settings-modal--site-shell:not([open]) {
  display: none;
}

@media (min-width: 901px) {
  .menu-settings-modal--site-shell {
    position: fixed;
    inset: 0;
    width: min(91vw, calc(100vw - 96px));
    height: min(91vh, calc(100vh - 96px));
    max-width: calc(100vw - 96px);
    max-height: calc(100vh - 96px);
    margin: auto;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #222;
    color: #fff;
    overflow: hidden;
    padding: 0;
  }

  .menu-settings-modal--site-shell::backdrop {
    background: rgba(9, 8, 18, 0.42);
  }

  .menu-settings-modal--site-shell .menu-settings-modal-head {
    display: grid;
    grid-template-columns: minmax(190px, 360px) auto auto auto minmax(0, 1fr) auto;
    min-height: 0;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 20px 16px;
  }

  .menu-settings-modal--site-shell .menu-settings-title-tabs {
    width: min(100%, 360px);
  }

  .menu-settings-modal--site-shell .menu-settings-head-device-tabs {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .menu-settings-modal--site-shell .menu-settings-modal-head-actions {
    margin-left: 0;
  }

  .menu-settings-modal--site-shell .menu-settings-modal-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #eee;
  }

  .menu-settings-modal--site-shell .menu-settings-modal-close:hover,
  .menu-settings-modal--site-shell .menu-settings-modal-close:focus-visible {
    background: rgba(255, 255, 255, 0.14);
  }

  .menu-settings-modal--site-shell .menu-settings-modal-body {
    min-height: 0;
    padding: 18px 20px 20px;
    background: #222;
  }

  .menu-settings-modal--site-shell :is(
    .menu-builder-source-list,
    .menu-builder-structure,
    .menu-builder-properties,
    .menu-builder-version-list,
    .menu-builder-desktop-preview,
    .menu-builder-mobile-preview
  )::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  .menu-settings-modal--site-shell :is(
    .menu-builder-source-list,
    .menu-builder-structure,
    .menu-builder-properties,
    .menu-builder-version-list,
    .menu-builder-desktop-preview,
    .menu-builder-mobile-preview
  )::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.24);
  }
}

@media (max-width: 900px) {
  body {
    padding: 0;
  }

  .app-shell {
    min-height: 100vh;
    border-radius: 0;
  }

  .topbar,
  .media-controls,
  .optimizer-controls,
  .bulk-bar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar,
  .product-sidebar,
  .catalog-view,
  .dashboard-view,
  .bfi-view,
  .kanban-view {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    padding-top: 16px;
  }

  .metric-strip,
  .catalog-head,
  .catalog-layout,
  .settings-layout,
  .catalog-filters{
    grid-template-columns: 1fr;
  }

  .kanban-column {
    min-height: 0;
    grid-column: auto;
  }

  .settings-view.settings-view-has-category-menu .settings-layout {
    grid-template-columns: 1fr;
  }

  .catalog-head .sync-panel {
    grid-column: auto;
  }

  .sync-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-head-actions {
    display: grid;
    grid-column: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .metric-card,
  .sync-filter-card {
    min-width: 0;
    padding: 13px 14px;
  }

  .topbar-actions {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
    margin-right: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    column-gap: 12px;
    row-gap: 0;
    width: 100%;
    align-items: stretch;
  }

  .topbar-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .topbar-sync-card {
    flex-basis: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.68);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    width: 100%;
  }

  .topbar-actions .topbar-action-button {
    border-radius: 0;
    width: 100%;
  }

  .topbar-actions #createProduct,
  .topbar-sync-card {
    grid-column: 1 / -1;
  }

  .topbar-actions #siteExchange {
    grid-column: 1;
    border-radius: 0 0 8px 8px;
  }

  .topbar-actions #siteExchangeFilterButton {
    display: none;
  }

  .topbar-actions .topbar-action-button + .topbar-action-button {
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.16);
  }

  .topbar-settings {
    grid-column: 2;
    justify-self: end;
    margin-left: 0;
    min-height: 56px;
    width: 44px;
  }

  .topbar-settings-button {
    width: 44px;
    height: 100%;
  }

  .settings-menu {
    width: min(270px, calc(100vw - 32px));
    min-width: 0;
  }

  .logo-menu {
    top: calc(100% + 10px);
    left: 0;
    width: min(270px, calc(100vw - 32px));
  }

  .category-menu {
    position: static;
  }

  .category-menu-list {
    grid-template-columns: 1fr;
    max-height: 360px;
  }

  .accounting-heading h2 {
    font-size: 27px;
  }

  .bulk-actions {
    align-items: stretch;
    display: grid;
  }

  .field-grid,
  .field-grid.compact{
    grid-template-columns: 1fr;
  }

  .media-panel .panel-title {
    align-items: stretch;
    flex-direction: column;
  }

  .media-panel .panel-title .optimize-all-button {
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
  }
  .spec-details-panel .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .spec-gpt-button {
    width: fit-content;
  }

  .field-label-row {
    align-items: stretch;
    flex-direction: column;
  }

  .content-tabs-row,
  .content-left-controls,
  .description-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .content-tabs,
  .content-left-controls {
    width: 100%;
  }

  .content-left-controls {
    flex: 0 1 auto;
  }

  .content-description-actions {
    margin-left: 0;
  }

  .description-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .description-format-toolbar,
  .description-mode-tabs {
    width: 100%;
  }

  .description-format-button,
  .description-mode-tab {
    flex: 1;
  }

  .description-preview {
    padding: 14px 15px;
    font-size: 15px;
  }

  .field-action-button {
    width: 100%;
  }

  .gpt-prompt-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gpt-prompt-status {
    text-align: left;
  }

  .wide {
    grid-column: auto;
  }
}

/* codex-catalog-menu-align-top-20260525 */
@media (min-width: 1241px) {
  body:has(#catalogView:not(.is-hidden)) .catalog-layout {
    margin-top: -122px;
  }

  body:has(#catalogView:not(.is-hidden)) .catalog-panel {
    margin-top: 122px;
  }
}

/* codex-catalog-panel-flat-container-20260526 */
@media (min-width: 901px) {
  body:has(#catalogView:not(.is-hidden)) .catalog-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
  }
}

/* codex-shared-catalog-editor-topbar-20260526 */
@media (min-width: 901px) {
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar {
    display: flex;
    flex-wrap: nowrap;
    border-bottom-color: rgba(9, 8, 17, 0.12);
    background: #fff;
    box-shadow: 0 14px 34px rgba(9, 8, 17, 0.08);
    align-items: center;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-brand {
    flex: 0 0 clamp(170px, 18vw, 250px);
    min-width: 170px;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-search {
    flex: 0 1 420px;
    width: 100%;
    min-width: 260px;
    max-width: 420px;
    margin-left: 0;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-health-widget {
    flex: 0 1 360px;
    width: auto;
    max-width: 360px;
    min-width: 230px;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-actions {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    align-items: center;
    flex-wrap: nowrap;
    margin-left: auto;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-logo-wordmark {
    color: #090811;
  }

  /* codex-contentds-light-topbar-icons-black-20260531 */
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) :is(
    .topbar-catalog-button,
    .topbar-kanban-add-column-button,
    .topbar-column-filter-button,
    .topbar-settings-button,
    .topbar-icon-button
  ),
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) :is(
    .topbar-catalog-button,
    .topbar-kanban-add-column-button,
    .topbar-column-filter-button,
    .topbar-settings-button,
    .topbar-icon-button
  ):is(:hover, :focus-visible, .is-active, [aria-expanded="true"]) {
    color: #090811;
  }

  /* codex-contentds-light-topbar-auth-avatar-desktop-20260531 */
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-login-button {
    display: inline-flex;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #090811;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    transition: color 0.18s ease, opacity 0.18s ease;
    white-space: nowrap;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-login-button:hover,
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-login-button:focus-visible {
    color: rgba(9, 8, 17, 0.72);
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-login-button:focus-visible {
    outline: 2px solid rgba(9, 8, 17, 0.42);
    outline-offset: 2px;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-login-button.is-authenticated {
    width: 56px;
    padding: 0 7px;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-user-avatar {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(9, 8, 17, 0.42);
    border-radius: 50%;
    background: rgba(9, 8, 17, 0.06);
    color: #090811;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 17px;
    font-weight: 760;
    line-height: 1;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-user-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* codex-topbar-search-white-normal-desktop-20260530 */
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-search input {
    /* codex-topbar-search-border-ccc-desktop-20260530 */
    border-color: #ccc;
    background: #fff;
    font-weight: 400;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-search input:focus {
    border-color: #ccc;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-search input::placeholder {
    font-weight: 400;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-health-widget {
    display: grid;
    border-color: #e2e2e7;
    background: #f6f6f7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    color: #090811;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-health-widget:hover,
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-health-widget:focus-visible {
    border-color: #d6d6dc;
    background: #f1f1f4;
    color: #090811;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-health-widget:focus-visible {
    outline: 2px solid rgba(9, 8, 17, 0.42);
    outline-offset: 2px;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-health-widget-copy span {
    color: rgba(9, 8, 17, 0.58);
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-health-widget-pill {
    background: #ececef;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-sync-card {
    border-color: #e2e2e7;
    border-right: 0;
    background: #f6f6f7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-actions #createProduct {
    border-color: #dedee4;
    background: #ececef;
    color: #090811;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-actions #createProduct:hover,
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-actions #createProduct:focus-visible {
    background: #f4f4f6;
    color: #090811;
    transform: none;
    box-shadow: none;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-actions #createProduct:focus-visible {
    outline: 2px solid rgba(9, 8, 17, 0.24);
    outline-offset: 2px;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-actions #siteExchange,
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-actions #siteExchangeFilterButton {
    border-color: #090811;
    background: #090811;
    color: #fff;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-actions #siteExchange:hover,
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-actions #siteExchange:focus-visible,
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-actions #siteExchangeFilterButton:hover,
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-actions #siteExchangeFilterButton:focus-visible {
    background: #12101d;
    color: #fff;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-actions #siteExchange:focus-visible,
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-actions #siteExchangeFilterButton:focus-visible {
    outline: 2px solid rgba(9, 8, 17, 0.24);
    outline-offset: 2px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  body:has(#kanbanView:not(.is-hidden)) .topbar-kanban-search {
    min-width: 120px;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar {
    grid-template-columns: minmax(180px, 230px) minmax(260px, 1fr) minmax(168px, 220px) auto;
    gap: 10px;
    padding-right: 18px;
    padding-left: 18px;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-kanban-search input,
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-search input {
    min-height: 48px;
    padding-left: 58px;
  }

  body:has(#kanbanView:not(.is-hidden)) .topbar-kanban-search .topbar-search-icon,
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-search-icon {
    left: 8px;
    width: 38px;
    height: 38px;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-health-widget {
    flex-basis: 290px;
    max-width: 290px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    min-height: 48px;
    padding: 7px 8px;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-health-widget-score {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-health-widget-copy strong {
    font-size: 12px;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-health-widget-copy span {
    font-size: 10px;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-health-widget-pill {
    display: none;
  }

  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar-actions {
    gap: 0;
    min-width: max-content;
  }
}

@media (min-width: 1101px) and (max-width: 1500px) {
  body:has(#brandsView:not(.is-hidden)) .topbar {
    align-items: center;
    gap: 10px;
    padding-right: 18px;
    padding-left: 18px;
  }

  body:has(#brandsView:not(.is-hidden)) .topbar-brand {
    min-width: 0;
  }

  body:has(#brandsView:not(.is-hidden)) .topbar-logo {
    min-width: 0;
  }

  body:has(#brandsView:not(.is-hidden)) .topbar-search {
    flex-basis: 280px;
    width: 100%;
    max-width: none;
    margin-left: 0;
    justify-self: stretch;
  }

  body:has(#brandsView:not(.is-hidden)) .topbar-search input {
    min-height: 48px;
    padding-left: 58px;
  }

  body:has(#brandsView:not(.is-hidden)) .topbar-search-icon {
    left: 8px;
    width: 38px;
    height: 38px;
  }

  body:has(#brandsView:not(.is-hidden)) .topbar-actions {
    gap: 0;
    min-width: max-content;
  }

  body.is-brands-view-active:has(#brandsView:not(.is-hidden)) .topbar {
    gap: 10px;
    padding-right: 14px;
    padding-left: 14px;
  }

  body.is-brands-view-active:has(#brandsView:not(.is-hidden)) .topbar-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 44px;
  }

  body.is-brands-view-active:has(#brandsView:not(.is-hidden)) .topbar-logo {
    max-width: 72px;
  }

  body.is-brands-view-active:has(#brandsView:not(.is-hidden)) .topbar-logo-wordmark {
    font-size: 16px;
  }

  body.is-brands-view-active:has(#brandsView:not(.is-hidden)) .topbar-catalog-button {
    position: static;
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    transform: none;
  }
}

/* codex-content-blocks-white-20260526 */
@media (min-width: 901px) {
  body:has(#catalogView:not(.is-hidden)) .category-menu,
  body:has(#catalogView:not(.is-hidden)) .metric-card,
  body:has(#catalogView:not(.is-hidden)) .sync-panel > div,
  body:has(#catalogView:not(.is-hidden)) .sync-panel > button,
  body:has(#catalogView:not(.is-hidden)) .sync-filter-card {
    background: #fff;
  }

  body:has(#catalogView:not(.is-hidden)) .catalog-table tbody tr {
    background: #fff;
  }

  body:has(#editorView:not(.is-hidden)) .panel:not(.geometry-panel):not(.validation-panel) {
    background: #fff;
  }
}

/* codex-content-underlay-eee-20260526 */
@media (min-width: 901px) {
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .app-main {
    background: #eee;
  }

  body:has(#catalogView:not(.is-hidden)) .catalog-table-wrap,
  body:has(#catalogView:not(.is-hidden)) .catalog-table,
  body:has(#catalogView:not(.is-hidden)) .catalog-table tbody,
  body:has(#catalogView:not(.is-hidden)) .catalog-table tbody tr {
    background: #f9f9f9;
  }

  body:has(#catalogView:not(.is-hidden)) .sync-filter-card:hover,
  body:has(#catalogView:not(.is-hidden)) .sync-filter-card:focus-visible,
  body:has(#catalogView:not(.is-hidden)) .sync-filter-card:active,
  body:has(#catalogView:not(.is-hidden)) .sync-filter-card.is-active,
  body:has(#catalogView:not(.is-hidden)) .metric-filter-card:hover,
  body:has(#catalogView:not(.is-hidden)) .metric-filter-card:focus-visible,
  body:has(#catalogView:not(.is-hidden)) .metric-filter-card:active,
  body:has(#catalogView:not(.is-hidden)) .metric-filter-card.is-active {
    background: #090811;
    border-color: #090811;
    color: #fff;
  }

  body:has(#catalogView:not(.is-hidden)) .sync-filter-card:hover span,
  body:has(#catalogView:not(.is-hidden)) .sync-filter-card:focus-visible span,
  body:has(#catalogView:not(.is-hidden)) .sync-filter-card:active span,
  body:has(#catalogView:not(.is-hidden)) .sync-filter-card.is-active span,
  body:has(#catalogView:not(.is-hidden)) .metric-filter-card:hover p,
  body:has(#catalogView:not(.is-hidden)) .metric-filter-card:focus-visible p,
  body:has(#catalogView:not(.is-hidden)) .metric-filter-card:active p,
  body:has(#catalogView:not(.is-hidden)) .metric-filter-card.is-active p {
    color: rgba(255, 255, 255, 0.74);
  }

  body:has(#catalogView:not(.is-hidden)) .sync-filter-card:hover strong,
  body:has(#catalogView:not(.is-hidden)) .sync-filter-card:focus-visible strong,
  body:has(#catalogView:not(.is-hidden)) .sync-filter-card:active strong,
  body:has(#catalogView:not(.is-hidden)) .sync-filter-card.is-active strong,
  body:has(#catalogView:not(.is-hidden)) .metric-filter-card:hover span,
  body:has(#catalogView:not(.is-hidden)) .metric-filter-card:focus-visible span,
  body:has(#catalogView:not(.is-hidden)) .metric-filter-card:active span,
  body:has(#catalogView:not(.is-hidden)) .metric-filter-card.is-active span {
    color: #fff;
  }
}

/* codex-product-validation-purple-20260526 */
@media (min-width: 901px) {
  body:has(#editorView:not(.is-hidden)) .validation-panel {
    border-color: rgba(255, 255, 255, 0.2);
    background:
      linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%),
      var(--purple);
    color: #fff;
    box-shadow: 0 22px 54px rgba(65, 32, 151, 0.32);
  }
}

/* codex-contentds-no-shadows-20260526 */
@media (min-width: 901px) {
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .app-main,
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .app-main *,
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar,
  body:has(:is(#catalogView, #editorView):not(.is-hidden)) .topbar * {
    box-shadow: none !important;
  }
}

@media (min-width: 901px) {
  /* codex-contentds-dsd-room-admin-desktop-20260530 */
  body:has(#roomView:not(.is-hidden)) .app-main {
    background: #eeeeee;
    padding: 0;
  }

  body:has(#roomView:not(.is-hidden)) .app-shell {
    border: 0;
  }

  .room-view {
    min-height: calc(100vh - 88px);
  }

  .room-page {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: calc(100vh - 88px);
    color: #202124;
  }

  /* codex-contentds-crm-contained-scroll-desktop-20260617 */
  body.is-crm-view-active:has(#roomView:not(.is-hidden)) {
    --contentds-room-topbar-height: 95px;
    overflow: hidden;
  }

  @media (max-width: 1740px) {
    body.is-crm-view-active:has(#roomView:not(.is-hidden)) {
      --contentds-room-topbar-height: 167px;
    }
  }

  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .app-shell {
    height: calc(100vh - 56px);
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
  }

  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .app-main {
    height: calc(100% - var(--contentds-room-topbar-height, 95px));
    min-height: 0;
    overflow: hidden;
  }

  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .room-view,
  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .room-page,
  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .room-main {
    height: 100%;
    min-height: 0;
  }

  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .room-page,
  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .room-main {
    overflow: hidden;
  }

  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .room-sidebar {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
  }

  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .room-main-page {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
  }

  body.is-crm-view-active {
    --crm-menu-background: var(--crm-palette-panel, #1c1d20);
    --crm-menu-ink: #fff;
  }

  .room-sidebar {
    position: sticky;
    top: 28px;
    align-self: start;
    min-height: calc(100vh - 88px);
    padding: 24px 18px;
    background: var(--crm-menu-background, #1c1d20);
    color: var(--crm-menu-ink, #fff);
  }

  .room-sidebar-brand {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 0 2px 28px;
    text-transform: lowercase;
  }

  .room-sidebar-brand span {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
  }

  .room-sidebar-brand strong {
    color: #ff5a00;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
  }

  .room-nav {
    display: grid;
    gap: 0;
  }

  .room-nav button,
  .room-site-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.76);
    font: inherit;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .room-nav button + button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
  }

  .room-nav button.is-active {
    background: transparent;
    color: #ffffff;
  }

  .room-nav button:hover:not(.is-active),
  .room-nav button:focus-visible:not(.is-active),
  .room-site-link:hover,
  .room-site-link:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    outline: none;
  }

  /* CRM navigation spans the column, with subdued dividers and a graphite selection. */
  @media (min-width: 768px) {
    body.is-crm-view-active .room-sidebar {
      border-right: 1px solid rgba(255, 255, 255, 0.06);
      padding-top: 0;
      padding-inline: 0;
    }

    body.is-crm-view-active .room-nav button {
      padding-inline: 30px;
    }

    body.is-crm-view-active .room-nav button + button::before {
      left: 0;
      right: 0;
      background: var(--crm-divider-color);
    }

    body.is-crm-view-active .room-nav button.is-active {
      background: var(--crm-selected-row-background);
      color: var(--crm-palette-text, #ffffff);
    }

    body.is-crm-view-active .room-nav button:hover:not(.is-active),
    body.is-crm-view-active .room-nav button:focus-visible:not(.is-active) {
      background: var(--crm-palette-selection, linear-gradient(135deg, #303236 0%, #26282b 100%));
    }
  }

  .room-site-link {
    margin-top: 12px;
  }

  .room-main {
    min-width: 0;
    padding: 26px 28px 36px;
    background: #202124;
    color: #f4f5f7;
  }

  .room-main-page {
    min-width: 0;
    background: #202124;
    color: #f4f5f7;
  }

  .room-main-page--empty {
    min-height: calc(100vh - 150px);
  }

  /* codex-contentds-crm-schedule-old-ui-desktop-20260617 */
  body:has(#roomView:not(.is-hidden) .room-main-page[data-room-page="schedule"]:not(.is-hidden)) .room-main {
    padding: 0;
    background: #202124;
  }

  .crm-schedule-page {
    min-height: calc(100vh - 88px);
  }

  .crm-schedule-shell {
    min-height: calc(100vh - 88px);
    padding: 24px 26px 30px;
    background: var(--crm-palette-workspace, #202124);
    color: var(--crm-palette-text, #f4f5f7);
  }

  .crm-schedule-toolbar,
  .crm-schedule-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .crm-schedule-toolbar {
    margin-bottom: 16px;
  }

  .crm-schedule-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #ff5a00;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .crm-schedule-toolbar h2 {
    margin: 0;
    color: var(--crm-palette-text, #ffffff);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
  }

  .crm-schedule-month-controls,
  .crm-schedule-mode-group {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: var(--crm-palette-workspace, #272727);
  }

  .crm-schedule-nav-button,
  .crm-schedule-mode-button {
    min-height: 36px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: var(--crm-palette-text, #f4f5f7);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }

  .crm-schedule-nav-button {
    min-width: 42px;
    padding: 0 12px;
    font-size: 20px;
    line-height: 1;
  }

  .crm-schedule-nav-button[data-crm-schedule-nav="today"] {
    min-width: 88px;
    font-size: 13px;
  }

  .crm-schedule-mode-button {
    padding: 0 14px;
  }

  .crm-schedule-nav-button:last-child,
  .crm-schedule-mode-button:last-child {
    border-right: 0;
  }

  .crm-schedule-nav-button:hover,
  .crm-schedule-nav-button:focus-visible,
  .crm-schedule-mode-button:hover,
  .crm-schedule-mode-button:focus-visible,
  .crm-schedule-mode-button.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--crm-palette-text, #ffffff);
    outline: none;
  }

  .crm-schedule-mode-button.is-active {
    box-shadow: inset 0 -2px 0 #ff5a00;
  }

  .crm-schedule-controls {
    margin-bottom: 14px;
  }

  .crm-schedule-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(244, 245, 247, 0.72);
    font-size: 13px;
    font-weight: 700;
  }

  .crm-schedule-filter select {
    width: 220px;
    min-height: 36px;
    padding: 0 34px 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: var(--crm-palette-workspace, #272727);
    color: var(--crm-palette-text, #ffffff);
    font: inherit;
    font-weight: 600;
  }

  .crm-schedule-filter-note {
    min-width: 260px;
    color: rgba(244, 245, 247, 0.6);
    font-size: 13px;
    text-align: right;
  }

  .crm-schedule-legend {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
    color: rgba(244, 245, 247, 0.72);
    font-size: 12px;
    font-weight: 700;
  }

  .crm-schedule-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  .crm-schedule-legend i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: #ffffff;
  }

  .crm-schedule-legend i.is-work {
    color: #84bb01;
  }

  .crm-schedule-legend i.is-off {
    color: #eb5757;
  }

  .crm-schedule-legend i.is-vacation {
    color: #2f80ed;
  }

  .crm-schedule-legend i.is-sickday {
    color: #f2c94c;
  }

  .crm-schedule-legend i.is-home {
    color: #84bb01;
    background: #84bb01;
  }

  .crm-schedule-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--crm-palette-workspace, #272727);
  }

  .crm-schedule-weekday {
    min-height: 34px;
    padding: 10px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(244, 245, 247, 0.68);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .crm-schedule-weekday:nth-child(7n) {
    border-right: 0;
  }

  .crm-schedule-day {
    position: relative;
    min-height: 136px;
    padding: 10px 10px 9px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--crm-palette-workspace, #202124);
  }

  .crm-schedule-day:nth-child(7n) {
    border-right: 0;
  }

  .crm-schedule-day--empty {
    background: var(--crm-palette-workspace, #242528);
  }

  .crm-schedule-day.is-today {
    background: var(--crm-palette-workspace, #242a24);
  }

  .crm-schedule-day.is-work {
    background: rgba(132, 187, 1, 0.14);
  }

  .crm-schedule-day.is-off {
    background: rgba(235, 87, 87, 0.12);
  }

  .crm-schedule-day.is-vacation {
    background: rgba(47, 128, 237, 0.14);
  }

  .crm-schedule-day.is-sickday {
    background: rgba(242, 201, 76, 0.14);
  }

  .crm-schedule-day.is-home {
    background: rgba(132, 187, 1, 0.18);
  }

  .crm-schedule-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
  }

  .crm-schedule-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: rgba(244, 245, 247, 0.92);
    font-size: 13px;
    font-weight: 800;
  }

  .crm-schedule-day.is-today .crm-schedule-day-number {
    background: #84bb01;
    color: #101214;
  }

  .crm-schedule-workers {
    display: grid;
    gap: 7px;
  }

  .crm-schedule-worker {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-height: 35px;
  }

  .crm-schedule-worker-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 2px solid #eb5757;
    border-radius: 50%;
    background-color: var(--crm-schedule-worker-color, #ffffff);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #111111;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
  }

  .crm-schedule-worker.is-work .crm-schedule-worker-avatar {
    border-color: #84bb01;
  }

  .crm-schedule-worker.is-home .crm-schedule-worker-avatar {
    border-color: #84bb01;
  }

  .crm-schedule-worker.is-home .crm-schedule-worker-avatar::after {
    content: "⌂";
    position: absolute;
    right: -5px;
    bottom: -7px;
    color: #84bb01;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
  }

  .crm-schedule-worker.is-off .crm-schedule-worker-avatar {
    border-color: #eb5757;
  }

  .crm-schedule-worker.is-vacation .crm-schedule-worker-avatar {
    border-color: #2f80ed;
  }

  .crm-schedule-worker.is-sickday .crm-schedule-worker-avatar {
    border-color: #f2c94c;
  }

  .crm-schedule-worker-avatar:hover,
  .crm-schedule-worker-avatar:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.42);
    outline-offset: 2px;
  }

  .crm-schedule-worker-meta {
    display: grid;
    min-width: 0;
    gap: 1px;
  }

  .crm-schedule-worker-name,
  .crm-schedule-worker-time,
  .crm-schedule-worker-label,
  .crm-schedule-worker-extra {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .crm-schedule-worker-name {
    color: var(--crm-palette-text, #f4f5f7);
    font-size: 12px;
    font-weight: 700;
  }

  .crm-schedule-worker-time {
    color: rgba(244, 245, 247, 0.64);
    font-size: 11px;
    font-weight: 700;
  }

  .crm-schedule-worker-label {
    color: rgba(244, 245, 247, 0.5);
    font-size: 11px;
    font-weight: 700;
  }

  .crm-schedule-worker.is-work .crm-schedule-worker-time,
  .crm-schedule-worker.is-home .crm-schedule-worker-time {
    color: #84bb01;
  }

  .crm-schedule-worker.is-vacation .crm-schedule-worker-label {
    color: #80b5ff;
  }

  .crm-schedule-worker.is-sickday .crm-schedule-worker-label {
    color: #f2c94c;
  }

  .crm-schedule-worker-extra {
    color: rgba(244, 245, 247, 0.44);
    font-size: 10px;
    font-weight: 700;
  }

  .room-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
  }

  .room-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #ff5a00;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .room-header h2 {
    margin: 0;
    color: #f4f5f7;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.05;
  }

  .room-header p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
  }

  .room-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
  }

  .room-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #2b2d31;
    color: #f4f5f7;
    cursor: pointer;
  }

  .room-icon-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .room-icon-button:hover,
  .room-icon-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    outline: none;
  }

  .room-action-primary {
    min-height: 42px;
    border-radius: 8px;
    background: #ff5a00;
    color: #ffffff;
  }

  .room-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
  }

  .room-kpi-card,
  .room-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #1c1d20;
  }

  .room-kpi-card {
    min-height: 138px;
    padding: 18px;
  }

  .room-kpi-card span,
  .room-panel-head span,
  .room-status-grid span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .room-kpi-card strong {
    display: block;
    margin-top: 18px;
    color: #f4f5f7;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
  }

  .room-kpi-card p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
  }

  .room-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 12px;
  }

  .room-panel {
    min-width: 0;
    padding: 18px;
  }

  .room-panel--wide {
    grid-column: 1 / -1;
  }

  .room-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
  }

  .room-panel-head h3 {
    margin: 6px 0 0;
    color: #f4f5f7;
    font-size: 18px;
    line-height: 1.2;
  }

  .room-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: #2b2d31;
    color: #f4f5f7;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  .room-status-badge.is-success {
    background: #e5f5eb;
    color: #166534;
  }

  .room-status-badge.is-error {
    background: #fff0ed;
    color: #b42318;
  }

  .room-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .room-status-grid div {
    min-height: 96px;
    padding: 14px;
    border-radius: 8px;
    background: #2b2d31;
  }

  .room-status-grid strong {
    display: block;
    margin-top: 12px;
    color: #f4f5f7;
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .room-brand-list,
  .room-log-list {
    display: grid;
    gap: 8px;
  }

  .room-brand-row,
  .room-log-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #2b2d31;
  }

  .room-brand-row {
    width: 100%;
    color: #f4f5f7;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .room-brand-row:hover,
  .room-brand-row:focus-visible {
    border-color: #ff5a00;
    outline: none;
  }

  .room-brand-row span {
    min-width: 0;
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-brand-row strong {
    font-size: 16px;
  }

  .room-brand-row em {
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    font-style: normal;
  }

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

  .room-control-grid button {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #2b2d31;
    color: #f4f5f7;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }

  .room-control-grid button:hover,
  .room-control-grid button:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    background: #313338;
    outline: none;
  }

  .room-log-item {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
  }

  .room-log-item strong,
  .room-log-item p {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-log-item strong {
    display: block;
    color: #f4f5f7;
    font-size: 14px;
  }

  .room-log-item p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
  }

  .room-log-item > span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    white-space: nowrap;
  }

  .room-empty {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
  }

  /* codex-contentds-room-orders-main-container-desktop-20260601 */
  body:has(#roomView:not(.is-hidden) .room-main-page[data-room-page="orders"]:not(.is-hidden)) .room-main {
    padding: 0;
    background: #202124;
  }

  /* codex-contentds-room-orders-sticky-header-desktop-20260601 */
  body:has(#roomView:not(.is-hidden) .room-main-page[data-room-page="orders"]:not(.is-hidden)) {
    --contentds-room-topbar-height: 95px;
  }

  @media (max-width: 1740px) {
    body:has(#roomView:not(.is-hidden) .room-main-page[data-room-page="orders"]:not(.is-hidden)) {
      --contentds-room-topbar-height: 167px;
    }
  }

  .room-main-page--orders,
  .room-main-page[data-room-page="orders"] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: calc(100vh - 150px);
    overflow: hidden;
    padding: 0 32px 36px;
    background: #202124;
    color: #f4f5f7;
  }

  .room-orders-shell {
    display: contents;
  }

  .room-orders-status {
    min-height: 20px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
  }

  .room-orders-status:empty {
    display: none;
  }

  .room-orders-status.is-error {
    color: #ffb4a8;
  }

  .room-orders-list {
    display: grid;
    gap: 0;
    min-height: 0;
    margin-right: -32px;
    margin-left: -32px;
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
    --contentds-room-orders-column-count: 13;
    --contentds-room-orders-column-width: 7.6923076923%;
    --contentds-room-orders-number-width: 5.3846153846%;
    --contentds-room-orders-organization-width: 11.5384615385%;
    --contentds-room-orders-status-width: 10%;
    --contentds-room-orders-products-width: 3.8461538462%;
    --contentds-room-orders-min-width: 1274px;
    --contentds-room-orders-grid:
      minmax(0, var(--contentds-room-orders-number-width))
      minmax(0, var(--contentds-room-orders-column-width))
      minmax(0, var(--contentds-room-orders-organization-width))
      minmax(0, var(--contentds-room-orders-column-width))
      minmax(0, var(--contentds-room-orders-column-width))
      minmax(0, var(--contentds-room-orders-column-width))
      minmax(0, var(--contentds-room-orders-column-width))
      minmax(0, var(--contentds-room-orders-column-width))
      minmax(0, var(--contentds-room-orders-status-width))
      minmax(0, var(--contentds-room-orders-products-width))
      minmax(0, var(--contentds-room-orders-column-width))
      minmax(0, var(--contentds-room-orders-column-width))
      minmax(0, var(--contentds-room-orders-column-width));
  }

  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .room-orders-list {
    align-content: start;
    --contentds-room-orders-min-width: 920px;
    --contentds-room-orders-grid:
      minmax(82px, 0.7fr)
      minmax(150px, 1.45fr)
      minmax(134px, 1.2fr)
      minmax(78px, 0.65fr)
      minmax(86px, 0.72fr)
      minmax(132px, 1.15fr)
      minmax(124px, 1fr);
  }

  body.is-crm-view-active .room-orders-table-head {
    box-sizing: border-box;
    height: 34px;
    max-height: 34px;
  }

  /* codex-contentds-room-orders-wide-tail-full-lines-desktop-20260602 */
  /* codex-contentds-room-orders-no-top-gap-full-lines-desktop-20260602 */
  /* codex-contentds-room-orders-center-align-font-desktop-20260602 */
  .room-orders-table-head {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: var(--contentds-room-orders-grid);
    align-items: center;
    gap: 0;
    min-width: calc(var(--contentds-room-orders-min-width) + 23px);
    min-height: 34px;
    padding: 0 23px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: #202124;
    box-shadow: none;
  }

  .room-orders-table-head::before,
  .room-order-card-row::before {
    content: none;
    position: absolute;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12));
    background-repeat: no-repeat;
    background-size:
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%;
    background-position:
      5.3846153846% 0,
      13.0769230769% 0,
      24.6153846154% 0,
      32.3076923077% 0,
      40% 0,
      47.6923076923% 0,
      55.3846153846% 0,
      63.0769230769% 0,
      73.0769230769% 0,
      76.9230769231% 0,
      84.6153846154% 0,
      92.3076923077% 0;
  }

  .room-orders-table-head::before {
    top: 0;
    right: 23px;
    bottom: 0;
    left: 0;
  }

  .room-orders-table-head > span {
    position: relative;
    display: flex;
    align-self: stretch;
    align-items: center;
    min-width: 0;
    padding: 0 4px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 1;
  }

  .room-orders-table-head > span:first-child {
    padding-left: 0;
  }

  .room-orders-table-head > span:nth-child(1),
  .room-orders-table-head > span:nth-child(2),
  .room-orders-table-head > span:nth-child(3),
  .room-orders-table-head > span:nth-child(4),
  .room-orders-table-head > span:nth-child(5),
  .room-orders-table-head > span:nth-child(6),
  .room-orders-table-head > span:nth-child(7),
  .room-orders-table-head > span:nth-child(8),
  .room-orders-table-head > span:nth-child(9),
  .room-orders-table-head > span:nth-child(10),
  .room-orders-table-head > span:nth-child(11),
  .room-orders-table-head > span:nth-child(12),
  .room-orders-table-head > span:nth-child(13) {
    justify-content: center;
    text-align: center;
  }

  .room-orders-table-head > span:nth-child(13) {
    justify-content: flex-end;
    padding-right: 0;
    text-align: right;
  }

  .room-orders-table-head > span:nth-child(10) {
    padding-right: 1px;
    padding-left: 1px;
  }

  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .room-orders-table-head > span:nth-child(7) {
    justify-content: center;
    text-align: center;
  }

  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .room-orders-table-head > span:nth-child(4) {
    padding-right: 1px;
    padding-left: 1px;
  }

  .room-orders-table-head > span:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
  }

  .room-orders-empty {
    display: grid;
    min-height: 220px;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #202124;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 700;
  }

  .room-orders-empty[hidden] {
    display: none;
  }

  /* codex-contentds-room-dealers-table-desktop-20260603 */
  body:has(#roomView:not(.is-hidden) .room-main-page[data-room-page="dealers"]:not(.is-hidden)) .room-main {
    padding: 0;
    background: #202124;
  }

  body:has(#roomView:not(.is-hidden) .room-main-page[data-room-page="dealers"]:not(.is-hidden)) {
    --contentds-room-topbar-height: 95px;
  }

  @media (max-width: 1740px) {
    body:has(#roomView:not(.is-hidden) .room-main-page[data-room-page="dealers"]:not(.is-hidden)) {
      --contentds-room-topbar-height: 167px;
    }
  }

  .room-main-page--dealers,
  .room-main-page[data-room-page="dealers"] {
    min-height: calc(100vh - 150px);
    padding: 0 32px 36px;
    background: #202124;
    color: #f4f5f7;
  }

  .room-dealers-status {
    min-height: 20px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
  }

  .room-dealers-status:empty {
    display: none;
  }

  .room-dealers-status.is-error {
    color: #ffb4a8;
  }

  .room-dealers-list {
    display: grid;
    gap: 0;
    margin-right: -32px;
    margin-left: -32px;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  }

  .room-dealers-table-head {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid;
    grid-template-columns:
      72px
      minmax(150px, 1.05fr)
      minmax(130px, 0.9fr)
      minmax(72px, 90px)
      minmax(132px, 0.9fr)
      minmax(118px, 126px)
      minmax(150px, 1fr)
      minmax(148px, 1fr);
    align-items: center;
    gap: 0;
    min-width: 0;
    min-height: 34px;
    padding: 0 23px 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: #202124;
    box-shadow: none;
  }

  .room-dealers-table-head > span {
    position: relative;
    display: flex;
    align-self: stretch;
    align-items: center;
    min-width: 0;
    padding: 0 6px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 800;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 1;
  }

  .room-dealers-table-head > span:first-child {
    justify-content: center;
    padding-left: 0;
    text-align: center;
  }

  .room-dealers-table-head > span:nth-child(2),
  .room-dealers-table-head > span:nth-child(3),
  .room-dealers-table-head > span:nth-child(5),
  .room-dealers-table-head > span:nth-child(7),
  .room-dealers-table-head > span:nth-child(8) {
    padding-left: 18px;
  }

  .room-dealers-table-head > span:nth-child(4),
  .room-dealers-table-head > span:nth-child(6) {
    justify-content: center;
    text-align: center;
  }

  .room-dealers-empty {
    display: grid;
    min-height: 220px;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #202124;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 700;
  }

  .room-dealers-empty[hidden] {
    display: none;
  }

  .room-dealer-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 14px 23px 14px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
  }

  .room-dealer-card:hover,
  .room-dealer-card:focus-visible {
    background: rgba(255, 255, 255, 0.03);
    outline: none;
  }

  .room-dealer-card:active {
    transform: translateY(1px);
  }

  .room-dealer-card:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .room-dealer-card + .room-dealer-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
  }

  .room-dealer-card-row {
    position: relative;
    display: grid;
    grid-template-columns:
      72px
      minmax(150px, 1.05fr)
      minmax(130px, 0.9fr)
      minmax(72px, 90px)
      minmax(132px, 0.9fr)
      minmax(118px, 126px)
      minmax(150px, 1fr)
      minmax(148px, 1fr);
    align-items: stretch;
    gap: 0;
    min-width: 0;
  }

  .room-dealers-table-head > span:not(:first-child)::before,
  .room-dealer-card-row > :not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
  }

  .room-dealer-card-row > * {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 20px;
    padding: 0 6px;
    overflow: hidden;
    color: #f4f5f7;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 1;
  }

  .room-dealer-card-row > :first-child {
    padding-left: 0;
  }

  .room-dealer-card-cell--logo {
    justify-content: center;
    min-height: 44px;
    padding-right: 12px;
  }

  .room-dealer-card-logo {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #f4f5f7;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    overflow: hidden;
  }

  .room-dealer-card-logo.has-image {
    background: #000;
  }

  .room-dealer-card-logo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }

  .room-dealer-card-cell--company,
  .room-dealer-card-cell--store,
  .room-dealer-card-cell--contact,
  .room-dealer-card-cell--email,
  .room-dealer-card-cell--website {
    padding-left: 18px;
    text-align: left;
  }

  .room-dealer-card-cell--city,
  .room-dealer-card-cell--phone {
    justify-content: center;
    text-align: center;
  }

  /* codex-contentds-room-dealer-modal-desktop-20260603 */
  .room-dealer-modal .site-exchange-filter-tabs {
    width: min(100%, 760px);
  }

  .room-dealer-modal-body {
    background: #222;
  }

  .room-dealer-modal-section {
    display: grid;
    height: 100%;
    min-height: 0;
    align-content: start;
    gap: 18px;
    padding: 20px 24px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  }

  .room-dealer-modal-section::-webkit-scrollbar {
    width: 8px;
  }

  .room-dealer-modal-section::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
  }

  .room-dealer-modal-section--card {
    align-content: stretch;
    overflow: hidden;
    padding: 16px 24px 20px;
  }

  .room-dealer-modal-card-form {
    display: grid;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px;
    overflow: auto;
    padding-right: 4px;
    scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
  }

  .room-dealer-modal-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(230px, 280px);
    gap: 14px 20px;
    align-items: start;
    min-height: 0;
  }

  .room-dealer-modal .dealer-card-fields {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .room-dealer-modal .site-exchange-filter-field {
    display: grid;
    gap: 4px;
  }

  .room-dealer-modal .site-exchange-filter-field span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
  }

  .room-dealer-modal-panel,
  .room-dealer-modal-condition-column {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #1c1c1c;
    color: #fff;
    padding: 16px;
  }

  .room-dealer-modal-panel h4,
  .room-dealer-modal-condition-column h4 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
  }

  .room-dealer-modal-detail-list,
  .room-dealer-modal-condition-list {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .room-dealer-modal-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-dealer-modal-detail-row,
  .room-dealer-modal-condition-row {
    display: grid;
    min-width: 0;
    gap: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
  }

  .room-dealer-modal-detail-row span,
  .room-dealer-modal-condition-row span,
  .room-dealer-modal-status-stack span,
  .room-dealer-modal-status-stack em,
  .room-dealer-modal-metric span,
  .room-dealer-modal-note {
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
  }

  .room-dealer-modal-detail-row strong,
  .room-dealer-modal-condition-row strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-dealer-modal-status-stack {
    display: grid;
    gap: 10px;
  }

  .room-dealer-modal-status-stack span {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    padding: 0 11px;
    font-weight: 800;
  }

  .room-dealer-modal-status-stack strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-dealer-modal-status-stack em {
    min-width: 0;
    overflow: hidden;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-dealer-modal-field-value {
    display: flex;
    width: 100%;
    min-height: 32px;
    min-width: 0;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #1c1c1c;
    color: #fff;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* codex-contentds-room-dealer-card-editable-livebase-v50-desktop-20260604 */
  .room-dealer-modal-field-control {
    display: block;
    width: 100%;
    min-height: 32px;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #1c1c1c;
    color: #fff;
    padding: 0 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    outline: none;
  }

  .room-dealer-modal-field-control:focus-visible {
    border-color: rgba(255, 255, 255, 0.42);
  }

  .room-dealer-modal-field-control::placeholder {
    color: rgba(255, 255, 255, 0.34);
  }

  .room-dealer-modal .dealer-card-logo-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 14px;
  }

  .room-dealer-modal .dealer-card-logo-preview {
    display: flex;
    aspect-ratio: 1;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #1c1c1c;
    color: rgba(255, 255, 255, 0.46);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
  }

  .room-dealer-modal .dealer-card-logo-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
  }

  .room-dealer-modal .dealer-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
  }

  .room-dealer-modal-card-status {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    gap: 4px;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
  }

  .room-dealer-modal-card-status strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-dealer-modal-card-status span {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-dealer-modal-card-status.is-success strong {
    color: #9be7b1;
  }

  .room-dealer-modal-card-status.is-error strong {
    color: #ffb4a8;
  }

  .room-dealer-modal-save {
    min-height: 36px;
    border-radius: 8px;
    padding: 0 18px;
    white-space: nowrap;
  }

  .room-dealer-modal-conditions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    min-height: 0;
  }

  .room-dealer-modal-analytics {
    display: grid;
    gap: 16px;
  }

  .room-dealer-modal-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .room-dealer-modal-metric {
    display: grid;
    min-width: 0;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #1c1c1c;
    padding: 16px;
  }

  .room-dealer-modal-metric strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-dealer-modal-note {
    margin: 0;
  }

  .room-dealer-modal-note--error {
    color: #ffb4a8;
  }

  @media (min-width: 901px) and (max-width: 1200px) {
    .room-dealer-modal-card-grid {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .room-dealer-modal .dealer-card-logo-card {
      grid-column: 1 / -1;
      grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
      align-items: center;
    }
  }

  .room-order-card {
    position: relative;
    display: grid;
    gap: 0;
    min-width: var(--contentds-room-orders-min-width);
    padding: 14px 23px 14px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: transform 0.16s ease;
  }

  .room-order-card::after {
    content: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: max(calc(100% - 23px), var(--contentds-room-orders-min-width));
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12));
    background-position:
      5.3846153846% 0,
      13.0769230769% 0,
      24.6153846154% 0,
      32.3076923077% 0,
      40% 0,
      47.6923076923% 0,
      55.3846153846% 0,
      63.0769230769% 0,
      73.0769230769% 0,
      76.9230769231% 0,
      84.6153846154% 0,
      92.3076923077% 0;
    background-repeat: no-repeat;
    background-size:
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%,
      1px 100%;
    pointer-events: none;
  }

  .room-order-card:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .room-order-card + .room-order-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
  }

  .room-order-card:last-child::after {
    content: none;
  }

  .room-order-card:hover,
  .room-order-card:focus-visible {
    outline: none;
  }

  .room-order-card:active {
    transform: translateY(1px);
  }

  .room-order-card:has(.room-order-items-accordion.is-open) {
    gap: 0;
    padding-bottom: 0;
  }

  /* codex-contentds-room-order-row-separators-font-13-desktop-20260601 */
  .room-order-card-row {
    position: relative;
    display: grid;
    grid-template-columns: var(--contentds-room-orders-grid);
    align-items: stretch;
    gap: 0;
    min-width: var(--contentds-room-orders-min-width);
  }

  .room-order-card-row::before {
    top: -14px;
    right: 0;
    bottom: -26px;
    left: 0;
  }

  .room-order-card-row > * {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
    min-height: 20px;
    padding: 0 6px;
    color: #f4f5f7;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    z-index: 1;
  }

  .room-order-card-row > :first-child {
    padding-left: 0;
  }

  .room-order-card-row > :not(:first-child)::before {
    content: none;
    position: absolute;
    top: -14px;
    bottom: -26px;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
  }

  .room-order-card-cell,
  .room-order-card-status {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-order-field-cell {
    justify-content: stretch;
  }

  .room-order-text-field-cell {
    justify-content: stretch;
  }

  .room-order-field-dropdown-cell:has(.room-order-field-dropdown-control.is-open) {
    overflow: visible;
    z-index: 24;
  }

  .room-order-field-dropdown-control {
    position: relative;
    display: grid;
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  .room-order-field-dropdown-control.is-open {
    z-index: 25;
  }

  .room-order-field-dropdown-trigger {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f4f5f7;
    padding: 0 7px;
    font: inherit;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
  }

  .room-order-field-dropdown-trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-order-field-dropdown-trigger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.2);
    outline-offset: 1px;
  }

  .room-order-field-dropdown-control.is-saving .room-order-field-dropdown-trigger {
    opacity: 0.65;
    cursor: progress;
  }

  .room-order-field-dropdown-menu {
    text-align: left;
  }

  .room-order-field-select,
  .room-order-text-input {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 32px;
    border: 0;
    border-radius: 0;
    background: transparent;
    background-image: none;
    box-shadow: none;
    color: #f4f5f7;
    font: inherit;
    font-size: 12px;
    line-height: 18px;
  }

  .room-order-field-select {
    padding: 0 7px;
    text-align: center;
    text-align-last: center;
  }

  .room-order-field-select::-ms-expand {
    display: none;
  }

  .room-order-text-input {
    padding: 0 7px;
    text-align: center;
  }

  .room-order-text-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }

  .room-order-field-select:focus,
  .room-order-text-input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.2);
    outline-offset: 1px;
    border-color: transparent;
    box-shadow: none;
  }

  .room-order-field-cell.is-saving .room-order-field-select,
  .room-order-text-field-cell.is-saving .room-order-text-input,
  .room-order-date-trigger.is-saving {
    opacity: 0.65;
  }

  .room-order-card-cell--amount {
    justify-content: center;
    text-align: center;
  }

  .room-order-card-cell--number,
  .room-order-card-cell--onec,
  .room-order-card-cell--realization,
  .room-order-card-cell--payment-date,
  .room-order-card-cell--edo,
  .room-order-card-cell--invoice,
  .room-order-card-cell--paid,
  .room-order-card-status,
  .room-order-card-cell--items,
  .room-order-card-cell--amount,
  .room-order-card-cell--date {
    justify-content: center;
    text-align: center;
  }

  .room-order-card-cell--shipping-place {
    padding-left: 18px;
    text-align: left;
  }

  .room-order-card-cell--shipping-place.room-order-field-cell {
    padding-left: 6px;
    text-align: center;
  }

  .room-order-card-cell--items,
  .room-order-card-cell--amount,
  .room-order-card-cell--paid,
  .room-order-card-cell--payment-date,
  .room-order-card-cell--date {
    box-sizing: border-box;
    width: 100%;
  }

  .room-order-card-cell--items {
    justify-content: center;
  }

  .room-order-card-cell--date {
    display: grid;
    justify-self: stretch;
    align-content: center;
    justify-content: end;
    justify-items: end;
    gap: 0;
    min-height: 34px;
    padding-right: 0;
    text-align: right;
    white-space: normal;
  }

  .room-order-card-cell--payment-date.room-order-date-trigger {
    display: grid;
    justify-self: stretch;
    align-content: center;
    justify-content: center;
    justify-items: center;
    min-height: 34px;
    text-align: center;
  }

  .room-order-card-cell--date span {
    display: block;
    min-width: 0;
    overflow: hidden;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-order-card-cell--payment-date.room-order-date-trigger span {
    display: block;
    min-width: 0;
    overflow: hidden;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-order-date-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    color: #f4f5f7;
    cursor: pointer;
    font: inherit;
  }

  .room-order-date-trigger:hover,
  .room-order-date-trigger:focus-visible {
    color: var(--crm-text-hover, #ff5a00);
    outline: none;
  }

  .room-order-date-trigger:disabled {
    cursor: default;
  }

  .room-order-card-status {
    justify-self: stretch;
    max-width: 100%;
    border-radius: 0;
    background: transparent;
  }

  .room-order-card-head,
  .room-order-card-meta,
  .room-order-item {
    display: grid;
    align-items: center;
    gap: 12px;
  }

  .room-order-card-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .room-order-card-head span,
  .room-order-card-meta em,
  .room-order-item span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-style: normal;
  }

  .room-order-card-head h4 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
  }

  .room-order-card-head strong {
    color: #fff;
    font-size: 20px;
    white-space: nowrap;
  }

  .room-order-card-meta {
    grid-template-columns: auto minmax(0, 0.7fr) minmax(0, 1fr);
  }

  .room-order-card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 90, 0, 0.16);
    color: #ffb47f;
    font-size: 12px;
    font-weight: 800;
  }

  .room-order-card-meta b,
  .room-order-card-meta em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-order-items {
    display: grid;
    gap: 6px;
  }

  /* codex-contentds-room-order-items-accordion-desktop-20260601 */
  .room-order-items-accordion {
    display: grid;
  }

  .room-order-items-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 6px 0 0;
    border: 0;
    border-top: 1px solid #eceef1;
    background: transparent;
    color: #202124;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
  }

  .room-order-card-row .room-order-items-toggle {
    grid-template-columns: auto;
    justify-content: center;
    gap: 0;
    width: 100%;
    min-height: 20px;
    padding: 0 6px;
    border-top: 0;
    line-height: 20px;
    text-align: center;
  }

  .room-order-card-row .room-order-items-toggle span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-order-items-toggle:hover span,
  .room-order-items-toggle:focus-visible span {
    color: var(--crm-text-hover, #ff5a00);
  }

  .room-order-items-toggle:focus-visible {
    outline: 2px solid rgba(255, 90, 0, 0.35);
    outline-offset: 3px;
  }

  .room-order-items-toggle-icon {
    position: relative;
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: #68706b;
  }

  .room-order-card-row .room-order-items-toggle-icon {
    display: none;
  }

  .room-order-items-toggle-icon::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform 0.2s ease;
  }

  .room-order-items-accordion.is-open .room-order-items-toggle-icon::before {
    transform: rotate(-135deg) translate(-1px, -1px);
  }

  .room-order-items-panel {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: grid-template-rows 0.22s ease, opacity 0.18s ease, transform 0.22s ease;
  }

  .room-order-items-panel[aria-hidden="true"] {
    pointer-events: none;
  }

  .room-order-items-accordion.is-open .room-order-items-panel {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
  }

  .room-order-items-list {
    display: grid;
    gap: 0;
    min-height: 0;
    overflow: hidden;
    padding-top: 0;
    transition: padding-top 0.22s ease;
  }

  .room-order-items-accordion.is-open .room-order-items-list {
    padding-top: 0;
  }

  .room-order-item {
    grid-template-columns: var(--contentds-room-orders-grid);
    gap: 0;
    min-width: var(--contentds-room-orders-min-width);
    min-height: 48px;
    padding: 8px 0;
    border-top: 1px solid #3c3d40;
    background: #202124;
  }

  .room-order-item-thumb {
    display: block;
    grid-column: 1;
    justify-self: center;
    align-self: center;
    width: 36px;
    height: 36px;
    border: 1px solid #eceef1;
    border-radius: 25%;
    background: #fff;
    object-fit: contain;
  }

  .room-order-item-thumb--empty {
    background: #f7f7f7;
  }

  .room-order-item-main {
    display: grid;
    grid-column: 2 / 10;
    min-width: 0;
    gap: 3px;
    padding: 0 6px;
  }

  .room-order-item-line {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 8px;
  }

  .room-order-item-title,
  .room-order-item-note {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-order-item-title {
    flex: 0 1 auto;
  }

  .room-order-item-category,
  .room-order-item-detail,
  .room-order-item-quantity {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .room-order-item > .room-order-item-quantity {
    grid-column: 10;
    justify-self: center;
    font-style: normal;
    text-align: center;
  }

  .room-order-item b {
    grid-column: 12 / 14;
    justify-self: end;
    font-style: normal;
    text-align: right;
    white-space: nowrap;
  }

  .room-order-more,
  .room-order-items-empty {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
  }

  .room-order-card :is(button, span, strong, b, em, p) {
    color: #f4f5f7;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
  }

  .room-order-card .room-order-card-cell--date span {
    font-size: 13px;
    line-height: 16.25px;
  }

  .room-order-card :is(b, em) {
    font-style: normal;
  }

  .room-order-card .room-order-items-toggle {
    color: #f4f5f7;
    font-weight: 400;
  }

  .room-order-card .room-order-items-toggle:hover span,
  .room-order-card .room-order-items-toggle:focus-visible span {
    color: var(--crm-text-hover, #ff5a00);
  }

  /* codex-contentds-room-order-field-hover-orange-desktop-20260604 */
  .room-order-card-row > :is(.room-order-card-cell, .room-order-card-status-cell):hover,
  .room-order-card-row > :is(.room-order-card-cell, .room-order-card-status-cell):focus-within {
    color: var(--crm-text-hover, #ff5a00);
  }

  .room-order-card-row > :is(.room-order-card-cell, .room-order-card-status-cell):hover :is(span, strong, b, em, p, button, input, select),
  .room-order-card-row > :is(.room-order-card-cell, .room-order-card-status-cell):focus-within :is(span, strong, b, em, p, button, input, select) {
    color: var(--crm-text-hover, #ff5a00);
  }

  .room-order-card-row > :is(.room-order-card-cell, .room-order-card-status-cell):hover input::placeholder,
  .room-order-card-row > :is(.room-order-card-cell, .room-order-card-status-cell):focus-within input::placeholder {
    color: var(--crm-text-hover-muted, rgba(255, 90, 0, 0.62));
  }

  .room-order-card-row .room-order-date-trigger:hover,
  .room-order-card-row .room-order-date-trigger:focus-visible,
  .room-order-card-row .room-order-status-trigger:hover,
  .room-order-card-row .room-order-status-trigger:focus-visible,
  .room-order-card-row .room-order-status-control.is-open .room-order-status-trigger,
  .room-order-card-row .room-order-field-dropdown-trigger:hover,
  .room-order-card-row .room-order-field-dropdown-trigger:focus-visible,
  .room-order-card-row .room-order-field-dropdown-control.is-open .room-order-field-dropdown-trigger {
    border-color: transparent;
    color: var(--crm-text-hover, #ff5a00);
    outline: none;
  }

  .room-order-card-row .room-order-status-trigger:hover span,
  .room-order-card-row .room-order-status-trigger:focus-visible span,
  .room-order-card-row .room-order-status-control.is-open .room-order-status-trigger span,
  .room-order-card-row .room-order-field-dropdown-trigger:hover span,
  .room-order-card-row .room-order-field-dropdown-trigger:focus-visible span,
  .room-order-card-row .room-order-field-dropdown-control.is-open .room-order-field-dropdown-trigger span {
    color: var(--crm-text-hover, #ff5a00);
  }

  .room-order-item > :is(.room-order-item-main, .room-order-item-quantity, b):hover,
  .room-order-item > :is(.room-order-item-main, .room-order-item-quantity, b):focus-within {
    color: var(--crm-text-hover, #ff5a00);
  }

  .room-order-item > :is(.room-order-item-main, .room-order-item-quantity, b):hover :is(strong, span, b, em),
  .room-order-item > :is(.room-order-item-main, .room-order-item-quantity, b):focus-within :is(strong, span, b, em) {
    color: var(--crm-text-hover, #ff5a00);
  }

  .room-order-card .room-order-item :is(strong, span, b, em) {
    color: #f4f5f7;
    font-size: 13px;
    line-height: 1.25;
  }

  .room-order-card .room-order-item :is(strong, b) {
    font-weight: 700;
  }

  /* codex-contentds-room-order-modal-date-head-desktop-20260601 */
  .room-order-modal-head {
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    column-gap: 18px;
  }

  .room-order-modal-heading {
    display: grid;
    min-width: 0;
    color: #fff;
  }

  .room-order-modal-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  /* codex-contentds-room-order-send-invoice-button-desktop-20260603 */
  .room-order-modal-invoice-button {
    display: inline-flex;
    min-width: 176px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    justify-self: center;
    border: 1px solid #ff5a00;
    border-radius: 8px;
    background: #ff5a00;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    padding: 0 18px;
    cursor: pointer;
  }

  .room-order-modal-invoice-button:hover,
  .room-order-modal-invoice-button:focus-visible {
    border-color: #ff6b1a;
    background: #ff6b1a;
    color: #fff;
    outline: none;
  }

  .room-order-modal-cdek-button {
    background: transparent;
    color: #fff;
  }

  .room-order-modal-cdek-button:hover,
  .room-order-modal-cdek-button:focus-visible {
    border-color: #ff6b1a;
    background: transparent;
    color: var(--crm-text-hover, #ff6b1a);
  }

  body.is-crm-view-active .room-order-modal-cdek-button {
    border-color: var(--crm-palette-lime, #d8f66b);
  }

  body.is-crm-view-active .room-order-modal-cdek-button:hover,
  body.is-crm-view-active .room-order-modal-cdek-button:focus-visible {
    border-color: var(--crm-palette-lime, #d8f66b);
    color: var(--crm-palette-lime, #d8f66b);
  }

  .room-order-modal-invoice-button:disabled,
  .room-order-modal-invoice-button[aria-disabled="true"] {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.44);
    cursor: not-allowed;
  }

  .room-order-modal-head-date {
    margin-right: 30px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .room-order-modal-body {
    background: #222;
  }

  .room-order-date-modal {
    width: min(440px, calc(100vw - 48px));
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 80px);
    grid-template-rows: auto auto;
    box-shadow: none;
  }

  .room-order-date-modal-head h2 {
    margin: 0;
    color: #f4f5f7;
    font-size: 18px;
    line-height: 24px;
  }

  .room-order-date-modal-body {
    display: grid;
    gap: 16px;
    padding: 24px;
  }

  .room-order-date-calendar {
    display: grid;
    gap: 10px;
  }

  .room-order-date-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 24px;
    color: #f4f5f7;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
  }

  .room-order-date-calendar-weekdays,
  .room-order-date-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
  }

  .room-order-date-calendar-weekdays span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 18px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 11px;
    font-weight: 800;
    line-height: 14px;
  }

  .room-order-date-calendar-empty,
  .room-order-date-calendar-day {
    min-width: 0;
    aspect-ratio: 1;
  }

  .room-order-date-calendar-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: #202124;
    color: rgba(255, 255, 255, 0.82);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
  }

  .room-order-date-calendar-day:hover,
  .room-order-date-calendar-day:focus-visible {
    border-color: rgba(255, 255, 255, 0.36);
    background: #2b2c30;
    outline: none;
  }

  .room-order-date-calendar-day.is-today {
    border-color: rgba(255, 255, 255, 0.52);
    color: #fff;
  }

  .room-order-date-calendar-day.is-selected {
    border-color: #f4f5f7;
    background: #f4f5f7;
    color: #202124;
  }

  .room-order-date-calendar-day:disabled {
    cursor: not-allowed;
    opacity: 0.58;
  }

  .room-order-date-field {
    display: grid;
    gap: 8px;
  }

  .room-order-date-field span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    font-weight: 800;
    line-height: 16px;
  }

  .room-order-date-field input {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    background: #202124;
    color: #f4f5f7;
    font: inherit;
    font-size: 14px;
  }

  .room-order-date-field input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.2);
    outline-offset: 1px;
    border-color: rgba(255, 255, 255, 0.35);
  }

  .room-order-date-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0;
  }

  .room-order-date-status {
    min-height: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    line-height: 18px;
  }

  .room-order-date-status.is-error {
    color: #ffb4a8;
  }

  .room-order-modal-section {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    padding: 20px 24px 24px;
    overflow: hidden;
  }

  .room-order-modal-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .room-order-modal-title {
    min-width: 0;
  }

  .room-order-modal-total span,
  .room-order-modal-total em {
    color: rgba(255, 255, 255, 0.54);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
  }

  .room-order-modal-total {
    display: grid;
    justify-items: end;
    gap: 5px;
    text-align: right;
  }

  .room-order-modal-total span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    padding: 0 11px;
    font-weight: 800;
  }

  .room-order-modal-total strong {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }

  .room-order-modal-total em {
    font-style: normal;
  }

  .room-order-modal-grid {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(220px, 0.36fr) minmax(340px, 0.72fr) minmax(270px, 0.42fr);
    gap: 28px;
  }

  .room-order-modal-panel {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 0;
    align-content: start;
    gap: 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    padding: 16px;
    overflow: visible;
  }

  .room-order-modal-panel + .room-order-modal-panel::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -14px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
  }

  .room-order-modal-panel h4,
  .room-order-modal-items-head h4 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
  }

  .room-order-modal-details {
    display: grid;
    gap: 0;
  }

  .room-order-modal-detail-row {
    display: grid;
    gap: 4px;
    border-radius: 0;
    background: transparent;
    padding: 11px 0;
  }

  .room-order-modal-detail-row + .room-order-modal-detail-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .room-order-modal-detail-row span,
  .room-order-modal-item-main span,
  .room-order-modal-items-head span,
  .room-order-modal-empty {
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
  }

  .room-order-modal-detail-row strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-order-modal-source {
    display: inline-flex;
    min-height: 36px;
    width: fit-content;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #eee;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
  }

  .room-order-modal-source:hover,
  .room-order-modal-source:focus-visible {
    border-color: rgba(255, 255, 255, 0.34);
    color: #fff;
    outline: none;
  }

  .room-order-modal-panel--items {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .room-order-modal-items-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .room-order-modal-items {
    display: grid;
    align-content: start;
    gap: 0;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  }

  .room-order-modal-items::-webkit-scrollbar {
    width: 8px;
  }

  .room-order-modal-items::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
  }

  .room-order-modal-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px 112px 130px;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 12px 0;
  }

  .room-order-modal-item + .room-order-modal-item {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .room-order-modal-item-main {
    min-width: 0;
  }

  .room-order-modal-item-main strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-order-modal-item-main span {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-order-modal-item-main .room-order-modal-item-onec {
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
  }

  .room-order-modal-item > em,
  .room-order-modal-item > span,
  .room-order-modal-item > b {
    min-width: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-style: normal;
    font-weight: 650;
    text-align: right;
    white-space: nowrap;
  }

  .room-order-modal-item b {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
  }

  .room-order-modal-empty {
    margin: 0;
  }

  /* codex-contentds-room-order-status-onec-workflow-desktop-20260603 */
  .room-order-card-status-cell {
    justify-self: stretch;
    align-self: stretch;
    min-width: 0;
    padding: 0 6px;
  }

  .room-order-card:has(.room-order-status-control.is-open) {
    z-index: 6;
  }

  .room-order-card:has(.room-order-field-dropdown-control.is-open) {
    z-index: 6;
  }

  .room-order-card-status-cell:has(.room-order-status-control.is-open) {
    z-index: 24;
  }

  .room-order-status-control {
    position: relative;
    display: grid;
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  .room-order-status-trigger {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #f4f5f7;
    padding: 0 8px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
  }

  .room-order-status-trigger span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-order-status-trigger:hover,
  .room-order-status-trigger:focus-visible,
  .room-order-status-control.is-open .room-order-status-trigger {
    border-color: transparent;
    color: #fff;
    outline: none;
  }

  .room-order-status-control.is-saving .room-order-status-trigger {
    opacity: 0.64;
    cursor: progress;
  }

  .room-order-status-control.is-open {
    z-index: 25;
  }

  .room-order-status-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    z-index: 20;
    display: grid;
    width: max-content;
    min-width: min(220px, calc(100vw - 48px));
    max-width: 280px;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #2b2d31;
    padding: 5px;
    transform: translateX(-50%);
  }

  .room-order-status-menu[hidden] {
    display: none;
  }

  .room-orders-list:has(.room-order-status-control.is-open) {
    padding-bottom: 340px;
  }

  .room-orders-list:has(.room-order-field-dropdown-control.is-open) {
    padding-bottom: 340px;
  }

  .room-order-status-option {
    display: flex;
    min-height: 30px;
    align-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    padding: 0 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
  }

  .room-order-status-option:hover,
  .room-order-status-option:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
  }

  .room-order-status-option.is-selected {
    background: rgba(255, 90, 0, 0.18);
    color: #fff;
  }

  .room-order-status-menu-separator {
    height: 1px;
    margin: 4px 2px;
    background: rgba(255, 255, 255, 0.12);
  }

  .room-order-modal-panel--workflow {
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .room-order-workflow-head {
    display: grid;
    grid-template-columns: minmax(0, 64px) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .room-order-workflow-head > span {
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
  }

  .room-order-modal .room-order-status-trigger {
    min-height: 34px;
    justify-content: flex-start;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 0 10px;
    text-align: left;
  }

  .room-order-modal .room-order-status-trigger:hover,
  .room-order-modal .room-order-status-trigger:focus-visible,
  .room-order-modal .room-order-status-control.is-open .room-order-status-trigger {
    border-color: #ff5a00;
    color: #fff;
  }

  .room-order-modal .room-order-status-menu {
    left: 0;
    min-width: 100%;
    max-width: min(280px, 100%);
    border-color: rgba(255, 255, 255, 0.14);
    background: #262626;
    transform: none;
  }

  .room-order-modal .room-order-status-option {
    color: rgba(255, 255, 255, 0.82);
  }

  .room-order-modal .room-order-status-option:hover,
  .room-order-modal .room-order-status-option:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .room-order-modal .room-order-status-option.is-selected {
    background: rgba(255, 90, 0, 0.18);
    color: #fff;
  }

  .room-order-modal .room-order-status-menu-separator {
    background: rgba(255, 255, 255, 0.12);
  }

  .room-order-workflow-status {
    display: grid;
    gap: 0;
    min-width: 0;
  }

  .room-order-workflow-status-row,
  .room-order-workflow-log-row {
    display: grid;
    min-width: 0;
    gap: 4px;
    border-radius: 0;
    background: transparent;
    padding: 10px 0;
  }

  .room-order-workflow-status-row + .room-order-workflow-status-row,
  .room-order-workflow-log-row + .room-order-workflow-log-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .room-order-workflow-status-row span,
  .room-order-workflow-log-row span,
  .room-order-workflow-log-row em {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-order-workflow-status-row strong,
  .room-order-workflow-log-row strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-order-workflow-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .room-order-workflow-actions--modal-footer {
    width: 100%;
    align-self: end;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
  }

  .room-order-workflow-action {
    display: inline-flex;
    min-width: 0;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 0 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
  }

  .room-order-workflow-actions--modal-footer .room-order-workflow-action {
    min-height: 44px;
  }

  .room-order-workflow-action span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .room-order-workflow-action:hover,
  .room-order-workflow-action:focus-visible {
    border-color: #ff5a00;
    background: rgba(255, 90, 0, 0.12);
    outline: none;
  }

  .room-order-workflow-action.is-done {
    border-color: rgba(93, 214, 148, 0.34);
    background: rgba(93, 214, 148, 0.12);
    color: #d8f7e4;
  }

  .room-order-workflow-action:disabled {
    opacity: 0.54;
    cursor: not-allowed;
  }

  .room-order-workflow-log {
    display: grid;
    align-content: start;
    gap: 0;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  }

  .room-order-workflow-log::-webkit-scrollbar {
    width: 8px;
  }

  .room-order-workflow-log::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
  }

  .catalog-modal-card--admin {
    background: #202124;
    color: #ffffff;
  }

  .catalog-modal-card--admin:hover,
  .catalog-modal-card--admin:focus-visible {
    background: #ff5a00;
    color: #ffffff;
  }
}

/* codex-contentds-search-page-menu-card-20260531 */
.catalog-modal-card--search {
  border-color: rgba(50, 129, 255, 0.36);
  background: #1f67d9;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 22px 56px rgba(31, 103, 217, 0.28);
}

.catalog-modal-card--search:hover,
.catalog-modal-card--search:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 24px 62px rgba(31, 103, 217, 0.36);
}

/* codex-contentds-catalog-modal-flat-borders-desktop-20260601 */
.catalog-modal {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.catalog-modal-card,
.catalog-modal-card:hover,
.catalog-modal-card:focus-visible,
.catalog-modal-card--trello,
.catalog-modal-card--b2b,
.catalog-modal-card--b2b:hover,
.catalog-modal-card--b2b:focus-visible,
.catalog-modal-card--search,
.catalog-modal-card--search:hover,
.catalog-modal-card--search:focus-visible,
.catalog-modal-card--admin,
.catalog-modal-card--admin:hover,
.catalog-modal-card--admin:focus-visible {
  box-shadow: none;
}

.catalog-modal-card {
  border-color: rgba(255, 255, 255, 0.16);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.catalog-modal-card:hover,
.catalog-modal-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  transform: none;
}

.catalog-modal-card--content,
.catalog-modal-card--content:hover,
.catalog-modal-card--content:focus-visible {
  border-color: #fff;
  box-shadow: none;
}

.catalog-modal-card--loader {
  border-color: rgba(183, 220, 191, 0.32);
  background: #123c2c;
  color: #ffffff;
}

.catalog-modal-card--loader:hover,
.catalog-modal-card--loader:focus-visible {
  border-color: rgba(218, 244, 224, 0.52);
  background: #174a38;
  color: #ffffff;
}

.search-view {
  color: #202124;
}

.search-page {
  min-height: calc(100vh - 88px);
  padding: 26px 28px 36px;
}

.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.search-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #1f67d9;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-header h2 {
  margin: 0;
  color: #202124;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
}

.search-section-tabs {
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid #dfe1e4;
  border-radius: 8px;
  background: #ffffff;
}

.search-section-tab-list {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
}

.search-section-tab {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #68706b;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 0 14px;
  white-space: nowrap;
}

.search-section-tab:hover,
.search-section-tab:focus-visible {
  border-color: #dfe1e4;
  background: #f7f8f9;
  color: #202124;
  outline: none;
}

.search-section-tab.is-active {
  border-color: #1f67d9;
  background: #1f67d9;
  color: #ffffff;
}

.search-tab-panels,
.search-tab-panel {
  min-width: 0;
}

.search-tab-panel[hidden] {
  display: none !important;
}

.search-status-pill,
.search-panel-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  white-space: nowrap;
}

.search-status-pill {
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #dfe1e4;
  background: #ffffff;
}

.search-status-pill span,
.search-kpi-card span,
.search-panel-head span,
.search-field span,
.search-alias-toggle span,
.search-rule-list span {
  color: #68706b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-status-pill strong {
  color: #b42318;
  font-size: 13px;
}

.search-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.search-kpi-card,
.search-panel {
  border: 1px solid #dfe1e4;
  border-radius: 8px;
  background: #ffffff;
}

.search-kpi-card {
  min-height: 138px;
  padding: 18px;
}

.search-kpi-card strong {
  display: block;
  margin-top: 18px;
  color: #202124;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.search-kpi-card p {
  margin: 12px 0 0;
  color: #68706b;
  font-size: 13px;
}

.search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 12px;
}

.search-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.search-panel {
  min-width: 0;
  padding: 18px;
}

.search-panel--wide {
  grid-column: 1 / -1;
}

.search-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.search-panel-head h3 {
  margin: 6px 0 0;
  color: #202124;
  font-size: 18px;
  line-height: 1.2;
}

.search-panel-badge {
  padding: 0 10px;
  background: #edf4ff;
  color: #1f67d9;
  font-size: 13px;
  font-weight: 800;
}

.search-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.search-field {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.search-field input,
.search-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dfe1e4;
  border-radius: 8px;
  background: #f7f8f9;
  color: #202124;
  font: inherit;
  font-weight: 700;
  padding: 0 12px;
}

.search-action-list,
.search-alias-list,
.search-rule-list,
.search-log-list {
  display: grid;
  gap: 8px;
}

.search-action-list button {
  min-height: 44px;
  border: 1px solid #dfe1e4;
  border-radius: 8px;
  background: #f7f8f9;
  color: #68706b;
  font: inherit;
  font-weight: 800;
}

.search-alias-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.search-alias-status {
  min-height: 20px;
  margin: -4px 0 12px;
  color: #68706b;
  font-size: 13px;
  font-weight: 600;
}

.search-alias-status.is-error {
  color: #b42318;
}

.search-alias-status.is-dirty {
  color: #9a5b00;
}

.search-secondary-button,
.search-icon-button {
  border: 1px solid #dfe1e4;
  border-radius: 8px;
  background: #f7f8f9;
  color: #202124;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.search-secondary-button {
  min-height: 34px;
  padding: 0 14px;
}

.search-icon-button {
  width: 38px;
  min-width: 38px;
  height: 42px;
  padding: 0;
}

.search-secondary-button:disabled,
.search-icon-button:disabled {
  cursor: default;
  opacity: 0.58;
}

.search-alias-row {
  display: grid;
  grid-template-columns: 74px minmax(220px, 1fr) minmax(180px, 0.75fr) 120px 132px 38px;
  align-items: end;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  background: #ffffff;
}

.search-alias-toggle {
  display: grid;
  align-content: end;
  gap: 8px;
  min-height: 66px;
}

.search-alias-toggle input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #1f67d9;
}

.search-weight-summary {
  margin-bottom: 16px;
  color: #68706b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.search-weight-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.search-weight-group {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.search-weight-group h4 {
  margin: 0;
  color: #202124;
  font-size: 15px;
  font-weight: 800;
}

.search-weight-list {
  display: grid;
  gap: 8px;
}

.search-weight-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.55fr) 86px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  background: #ffffff;
}

.search-weight-row > span {
  display: grid;
  min-width: 0;
  gap: 3px;
  color: #202124;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.search-weight-row small {
  min-width: 0;
  overflow: hidden;
  color: #68706b;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-weight-range {
  width: 100%;
  min-height: 36px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  accent-color: #1f67d9;
}

.search-weight-range:focus {
  box-shadow: none;
  outline: none;
}

.search-weight-number {
  width: 100%;
  min-height: 36px;
  border: 1px solid #dfe1e4;
  border-radius: 8px;
  background: #f7f8f9;
  color: #202124;
  font: inherit;
  font-weight: 800;
  padding: 0 8px;
}

.search-weight-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.search-weight-actions .search-query-meta {
  margin-top: 0;
}

.search-rule-list div,
.search-log-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  background: #ffffff;
}

.search-rule-list strong,
.search-log-list strong {
  min-width: 0;
  color: #202124;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-log-list span {
  color: #68706b;
  font-size: 12px;
  white-space: nowrap;
}

body:has(#searchView:not(.is-hidden)) .app-main {
  background: #eeeeee;
  padding: 0;
}

body:has(#searchView:not(.is-hidden)) .app-shell {
  border: 0;
}

/* codex-contentds-search-page-blue-site-exchange-style-20260531 */
body:has(#searchView:not(.is-hidden)) {
  background: #222;
}

body:has(#searchView:not(.is-hidden)) .app-shell {
  background: #222;
  box-shadow: none;
}

body:has(#searchView:not(.is-hidden)) .app-main {
  background: #222;
  padding: 0;
}

body:has(#searchView:not(.is-hidden)) .topbar {
  border-bottom-color: rgba(255, 255, 255, 0.18);
  background: #1f67d9;
  backdrop-filter: none;
}

body:has(#searchView:not(.is-hidden)) .topbar-search-icon {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #1f67d9;
  color: #fff;
  box-shadow: none;
}

body:has(#searchView:not(.is-hidden)) .topbar-search input {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-weight: 400;
}

body:has(#searchView:not(.is-hidden)) .topbar-search input:focus {
  border-color: rgba(255, 255, 255, 0.72);
  outline: none;
}

body:has(#searchView:not(.is-hidden)) .topbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  opacity: 1;
}

/* codex-contentds-search-page-white-input-desktop-20260531 */
@media (min-width: 901px) {
  body:has(#searchView:not(.is-hidden)) .topbar-search input {
    border-color: #fff;
    background: #fff;
    box-shadow: none;
    color: #202124;
  }

  body:has(#searchView:not(.is-hidden)) .topbar-search input:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
  }

  body:has(#searchView:not(.is-hidden)) .topbar-search input::placeholder {
    color: #68706b;
  }
}

body:has(#searchView:not(.is-hidden)) .topbar-settings-button,
body:has(#searchView:not(.is-hidden)) .topbar-settings-button:hover,
body:has(#searchView:not(.is-hidden)) .topbar-settings-button:focus-visible,
body:has(#searchView:not(.is-hidden)) .topbar-settings-button[aria-expanded="true"] {
  color: #fff;
}

/* codex-contentds-panel-icons-no-active-ring-20260608 */
:is(
  .topbar-catalog-button,
  .topbar-boards-button,
  .topbar-kanban-add-column-button,
  .topbar-column-filter-button,
  .topbar-settings-button,
  .topbar-icon-button,
  .catalog-modal-admin-link
):is(:focus-visible, .is-active, [aria-expanded="true"]) {
  outline: none !important;
  box-shadow: none !important;
}

body:has(#searchView:not(.is-hidden)) .search-view {
  min-height: calc(100vh - 88px);
  background: #222;
  color: #fff;
}

body:has(#searchView:not(.is-hidden)) .search-page {
  min-height: calc(100vh - 88px);
  background: #222;
  color: #fff;
  padding: 18px 24px 24px;
}

body:has(#searchView:not(.is-hidden)) .search-header {
  min-height: 58px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px 8px 16px;
}

body:has(#searchView:not(.is-hidden)) .search-section-tabs {
  margin-bottom: 18px;
  padding: 6px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

body:has(#searchView:not(.is-hidden)) .search-section-tab-list {
  gap: 4px;
}

body:has(#searchView:not(.is-hidden)) .search-section-tab {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 600;
}

body:has(#searchView:not(.is-hidden)) .search-section-tab:hover,
body:has(#searchView:not(.is-hidden)) .search-section-tab:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body:has(#searchView:not(.is-hidden)) .search-section-tab.is-active {
  border-color: #fff;
  background: #fff;
  color: #202124;
}

body:has(#searchView:not(.is-hidden)) .search-eyebrow {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 500;
  letter-spacing: 0;
}

body:has(#searchView:not(.is-hidden)) .search-header h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
}

body:has(#searchView:not(.is-hidden)) .search-status-pill {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

body:has(#searchView:not(.is-hidden)) .search-status-pill span,
body:has(#searchView:not(.is-hidden)) .search-kpi-card span,
body:has(#searchView:not(.is-hidden)) .search-panel-head span,
body:has(#searchView:not(.is-hidden)) .search-field span,
body:has(#searchView:not(.is-hidden)) .search-alias-toggle span,
body:has(#searchView:not(.is-hidden)) .search-rule-list span {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 500;
}

body:has(#searchView:not(.is-hidden)) .search-status-pill strong {
  color: #ffb1b1;
  font-weight: 650;
}

body:has(#searchView:not(.is-hidden)) .search-kpi-grid {
  gap: 0;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

body:has(#searchView:not(.is-hidden)) .search-kpi-card,
body:has(#searchView:not(.is-hidden)) .search-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background: transparent;
}

body:has(#searchView:not(.is-hidden)) .search-kpi-card {
  border: 0;
  border-radius: 0;
  padding: 18px 20px;
}

body:has(#searchView:not(.is-hidden)) .search-kpi-card + .search-kpi-card {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

body:has(#searchView:not(.is-hidden)) .search-kpi-card strong {
  color: #fff;
  font-weight: 600;
}

body:has(#searchView:not(.is-hidden)) .search-kpi-card p {
  color: rgba(255, 255, 255, 0.52);
  font-weight: 500;
}

body:has(#searchView:not(.is-hidden)) .search-grid {
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

body:has(#searchView:not(.is-hidden)) .search-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

body:has(#searchView:not(.is-hidden)) .search-panel {
  border-width: 0;
  border-radius: 0;
  padding: 20px 24px;
}

body:has(#searchView:not(.is-hidden)) .search-panel--wide,
body:has(#searchView:not(.is-hidden)) .search-grid--single .search-panel--wide:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:has(#searchView:not(.is-hidden)) .search-grid--single .search-panel--wide:last-child {
  border-bottom: 0;
}

body:has(#searchView:not(.is-hidden)) .search-panel:not(.search-panel--wide) + .search-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

body:has(#searchView:not(.is-hidden)) .search-panel-head h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

body:has(#searchView:not(.is-hidden)) .search-panel-badge {
  background: rgba(31, 103, 217, 0.16);
  color: #9bc2ff;
  font-weight: 650;
}

body:has(#searchView:not(.is-hidden)) .search-field input,
body:has(#searchView:not(.is-hidden)) .search-field select {
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-weight: 500;
}

body:has(#searchView:not(.is-hidden)) .search-field input:focus,
body:has(#searchView:not(.is-hidden)) .search-field select:focus {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
  outline: none;
}

body:has(#searchView:not(.is-hidden)) .search-action-list button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

body:has(#searchView:not(.is-hidden)) .search-alias-status {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 500;
}

body:has(#searchView:not(.is-hidden)) .search-alias-status.is-error {
  color: #ffb1b1;
}

body:has(#searchView:not(.is-hidden)) .search-alias-status.is-dirty {
  color: #ffd48a;
}

body:has(#searchView:not(.is-hidden)) .search-secondary-button,
body:has(#searchView:not(.is-hidden)) .search-icon-button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 650;
}

body:has(#searchView:not(.is-hidden)) .search-secondary-button:hover,
body:has(#searchView:not(.is-hidden)) .search-secondary-button:focus-visible,
body:has(#searchView:not(.is-hidden)) .search-icon-button:hover,
body:has(#searchView:not(.is-hidden)) .search-icon-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

body:has(#searchView:not(.is-hidden)) .search-alias-row {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

body:has(#searchView:not(.is-hidden)) .search-weight-summary {
  color: rgba(255, 255, 255, 0.58);
}

body:has(#searchView:not(.is-hidden)) .search-weight-group h4 {
  color: #ffffff;
  font-weight: 650;
}

body:has(#searchView:not(.is-hidden)) .search-weight-row {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

body:has(#searchView:not(.is-hidden)) .search-weight-row > span {
  color: #ffffff;
  font-weight: 650;
}

body:has(#searchView:not(.is-hidden)) .search-weight-row small {
  color: rgba(255, 255, 255, 0.46);
}

body:has(#searchView:not(.is-hidden)) .search-weight-number {
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  font-weight: 650;
}

body:has(#searchView:not(.is-hidden)) .search-weight-number:focus {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
  outline: none;
}

body:has(#searchView:not(.is-hidden)) .search-weight-range {
  background: transparent;
  box-shadow: none;
  accent-color: #9bc2ff;
}

body:has(#searchView:not(.is-hidden)) .search-rule-list div,
body:has(#searchView:not(.is-hidden)) .search-log-list div {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
}

body:has(#searchView:not(.is-hidden)) .search-rule-list strong,
body:has(#searchView:not(.is-hidden)) .search-log-list strong {
  color: #fff;
  font-weight: 650;
}

body:has(#searchView:not(.is-hidden)) .search-log-list span {
  color: rgba(255, 255, 255, 0.52);
}

@media (min-width: 901px) {
  /* codex-contentds-search-admin-backend-ui-desktop-20260531 */
  body:has(#searchView:not(.is-hidden)) .search-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  body:has(#searchView:not(.is-hidden)) .search-refresh-button,
  body:has(#searchView:not(.is-hidden)) .search-run-button {
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    padding: 0 14px;
    cursor: pointer;
  }

  body:has(#searchView:not(.is-hidden)) .search-refresh-button:hover,
  body:has(#searchView:not(.is-hidden)) .search-refresh-button:focus-visible,
  body:has(#searchView:not(.is-hidden)) .search-run-button:hover,
  body:has(#searchView:not(.is-hidden)) .search-run-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
    outline: none;
  }

  body:has(#searchView:not(.is-hidden)) .search-refresh-button:disabled,
  body:has(#searchView:not(.is-hidden)) .search-run-button:disabled {
    cursor: default;
    opacity: 0.58;
  }

  body:has(#searchView:not(.is-hidden)) .search-status-pill.is-ready strong {
    color: #9fe2b0;
  }

  body:has(#searchView:not(.is-hidden)) .search-status-pill.is-error strong {
    color: #ffb1b1;
  }

  body:has(#searchView:not(.is-hidden)) .search-field--wide {
    grid-column: span 2;
  }

  body:has(#searchView:not(.is-hidden)) .search-query-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
  }

  body:has(#searchView:not(.is-hidden)) .search-query-row .search-field {
    gap: 8px;
  }

  body:has(#searchView:not(.is-hidden)) .search-run-button {
    min-height: 42px;
    min-width: 120px;
    background: #1f67d9;
    border-color: #1f67d9;
  }

  body:has(#searchView:not(.is-hidden)) .search-query-meta {
    min-height: 20px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    font-weight: 500;
  }

  body:has(#searchView:not(.is-hidden)) .search-result-list,
  body:has(#searchView:not(.is-hidden)) .search-preview-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
  }

  body:has(#searchView:not(.is-hidden)) .search-preview-list {
    margin-top: 0;
  }

  body:has(#searchView:not(.is-hidden)) .search-product-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) minmax(150px, auto);
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
  }

  body:has(#searchView:not(.is-hidden)) .search-product-thumb {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    object-fit: contain;
  }

  body:has(#searchView:not(.is-hidden)) .search-product-thumb--empty {
    display: block;
  }

  body:has(#searchView:not(.is-hidden)) .search-product-main,
  body:has(#searchView:not(.is-hidden)) .search-product-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  body:has(#searchView:not(.is-hidden)) .search-product-main strong,
  body:has(#searchView:not(.is-hidden)) .search-product-meta strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(#searchView:not(.is-hidden)) .search-product-main span,
  body:has(#searchView:not(.is-hidden)) .search-product-meta span,
  body:has(#searchView:not(.is-hidden)) .search-product-meta a {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:has(#searchView:not(.is-hidden)) .search-product-meta {
    justify-items: end;
    text-align: right;
  }

  body:has(#searchView:not(.is-hidden)) .search-product-meta a {
    color: #9bc2ff;
    text-decoration: none;
  }

  body:has(#searchView:not(.is-hidden)) .search-empty {
    margin: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .search-page {
    padding: 20px 16px 28px;
  }

  .search-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-kpi-grid,
  .search-grid,
  .search-settings-grid,
  .search-alias-row {
    grid-template-columns: 1fr;
  }

  .search-panel--wide {
    grid-column: auto;
  }

  body:has(#searchView:not(.is-hidden)) .search-kpi-card + .search-kpi-card,
  body:has(#searchView:not(.is-hidden)) .search-panel:not(.search-panel--wide) + .search-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }
}

/* codex-contentds-banners-library-modal-20260617 */
@media (min-width: 901px) {
  .menu-settings-modal--site-shell.banners-modal .banners-modal-head {
    grid-template-columns: minmax(220px, 420px) minmax(0, 1fr) auto;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-modal-tabs {
    width: min(100%, 420px);
  }

  .menu-settings-modal--site-shell.banners-modal .banners-modal-status {
    justify-self: end;
    min-width: 0;
    max-width: 520px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    font-weight: 600 !important;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-modal-status[data-tone="success"] {
    color: #8fd9a8;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-modal-status[data-tone="error"] {
    color: #ff9a8f;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-modal-body {
    overflow: auto;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-modal-root,
  .menu-settings-modal--site-shell.banners-modal .banners-panel {
    min-height: 0;
    height: 100%;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-toolbar,
  .menu-settings-modal--site-shell.banners-modal .banners-library-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-toolbar strong,
  .menu-settings-modal--site-shell.banners-modal .banners-library-toolbar strong,
  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot-copy strong,
  .menu-settings-modal--site-shell.banners-modal .banners-library-card-title strong {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-weight: 700 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-toolbar strong,
  .menu-settings-modal--site-shell.banners-modal .banners-library-toolbar strong {
    display: block;
    font-size: 18px;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot-copy strong,
  .menu-settings-modal--site-shell.banners-modal .banners-library-card-title strong {
    font-size: 14px;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-toolbar span,
  .menu-settings-modal--site-shell.banners-modal .banners-library-toolbar span,
  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot-copy span,
  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot-copy small,
  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot-copy em,
  .menu-settings-modal--site-shell.banners-modal .banners-library-card-title span,
  .menu-settings-modal--site-shell.banners-modal .banners-library-card-meta span,
  .menu-settings-modal--site-shell.banners-modal .banners-library-card-refs {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    font-style: normal;
    font-weight: 600 !important;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-toolbar span,
  .menu-settings-modal--site-shell.banners-modal .banners-library-toolbar span {
    display: block;
    margin-top: 3px;
    font-size: 13px;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-slots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: start;
    min-height: 0;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #1c1c1c;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-width: 0;
    min-height: 132px;
    padding: 14px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot:nth-child(4n+1) {
    border-left: 0;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot:nth-child(n+5) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot:hover,
  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot:focus-visible,
  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot.is-selected {
    background: #242424;
    outline: none;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot.is-selected {
    box-shadow: inset 0 0 0 2px rgba(110, 67, 210, 0.88);
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot-thumb,
  .menu-settings-modal--site-shell.banners-modal .banners-library-card-media {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #111;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot-thumb {
    aspect-ratio: 4 / 3;
    width: 94px;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot-thumb img,
  .menu-settings-modal--site-shell.banners-modal .banners-library-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot-thumb span,
  .menu-settings-modal--site-shell.banners-modal .banners-library-card-media span {
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    font-weight: 700 !important;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-menu-slot-copy,
  .menu-settings-modal--site-shell.banners-modal .banners-library-card-title,
  .menu-settings-modal--site-shell.banners-modal .banners-library-card-meta {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: max-content;
    align-content: start;
    align-items: start;
    gap: 12px;
    min-height: 0;
    overflow: auto;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card {
    display: grid;
    grid-template-rows: auto auto;
    align-self: start;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #1c1c1c;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card.is-used {
    border-color: rgba(143, 217, 168, 0.32);
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card-media {
    aspect-ratio: 3 / 2;
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card-body {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: start;
    gap: 8px;
    min-width: 0;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-delete-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-delete-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-delete-button:not(:disabled):hover,
  .menu-settings-modal--site-shell.banners-modal .banners-library-delete-button:not(:disabled):focus-visible {
    border-color: rgba(255, 119, 105, 0.62);
    color: #ff8f84;
    outline: none;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-delete-button:disabled {
    cursor: default;
    opacity: 0.38;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 700 !important;
    line-height: 1.3;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.34);
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card-status.is-used {
    color: #8fd9a8;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card-status.is-used span {
    background: #8fd9a8;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card-status.is-free {
    color: rgba(255, 255, 255, 0.68);
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card-badges,
  .menu-settings-modal--site-shell.banners-modal .banners-library-card-actions {
    display: flex;
    gap: 6px;
    min-width: 0;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card-badges {
    flex-wrap: wrap;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card-badges span {
    min-height: 22px;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    font-weight: 700 !important;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-card-badges .is-used {
    border-color: rgba(143, 217, 168, 0.34);
    color: #8fd9a8;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-modal-button {
    min-height: 38px;
    min-width: 0;
    padding: 0 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #242424;
    color: #fff;
    font-size: 14px;
    font-weight: 700 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-modal-button.is-primary {
    border-color: rgba(110, 67, 210, 0.65);
    background: rgba(110, 67, 210, 0.9);
  }

  .menu-settings-modal--site-shell.banners-modal .banners-modal-button.is-danger {
    color: #ffb0a8;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-modal-button:not(:disabled):hover,
  .menu-settings-modal--site-shell.banners-modal .banners-modal-button:not(:disabled):focus-visible {
    border-color: rgba(255, 255, 255, 0.34);
    outline: none;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-modal-button:disabled {
    opacity: 0.45;
    cursor: default;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-empty,
  .menu-settings-modal--site-shell.banners-modal .banners-library-error {
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #1c1c1c;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    font-weight: 600 !important;
  }

  .menu-settings-modal--site-shell.banners-modal .banners-library-error {
    color: #ff9a8f;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .menu-settings-modal--site-shell .menu-settings-modal-head {
    grid-template-columns: minmax(130px, 1fr) auto auto auto auto auto;
    gap: 8px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .menu-settings-modal--site-shell .menu-settings-title-tabs {
    width: 100%;
    min-width: 0;
  }

  .menu-settings-modal--site-shell .menu-settings-modal-head-actions {
    gap: 6px;
  }
}

/* codex-category-create-modal-compact-20260619 */
.category-create-modal-backdrop.category-create-modal-backdrop {
  align-items: center;
  padding: 24px;
}

.category-create-modal.category-create-modal {
  grid-template-rows: auto auto;
  width: min(460px, calc(100vw - 40px));
  height: auto;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 48px);
  border-radius: 8px;
}

@media (max-width: 900px) {
  .category-create-modal-backdrop.category-create-modal-backdrop {
    padding: 16px;
  }

  .category-create-modal.category-create-modal {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
  }
}

/* codex-milio-comments-toggle-20260810 */
@media (min-width: 901px) {
  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-actions {
    grid-column: 6;
    align-self: center;
    justify-self: end;
  }

  .kanban-card-detail-modal > .kanban-card-modal-body.has-side:not(.is-side-open) {
    grid-template-columns: minmax(0, 1fr);
  }

  .kanban-card-detail-modal > .kanban-card-modal-body.has-side:not(.is-side-open) .kanban-card-modal-side {
    display: none;
  }

  .kanban-card-detail-modal > .kanban-card-modal-body.has-side.is-side-open {
    grid-template-rows: minmax(0, 1fr);
  }

  .kanban-card-detail-modal > .kanban-card-modal-body.has-side > .kanban-card-modal-main {
    grid-column: 1;
    grid-row: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .kanban-card-detail-modal > .kanban-card-modal-body.has-side.is-side-open > .kanban-card-modal-side {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    overflow-x: hidden;
    overflow-y: hidden;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .kanban-card-detail-modal > .kanban-card-modal-body.has-side.is-side-open:has(.kanban-card-modal-images-inline):has(.kanban-card-comments-panel) {
    grid-template-columns: minmax(0, 1fr) clamp(460px, 52%, 740px);
  }

  .kanban-card-detail-modal > .kanban-card-modal-body.has-side.is-side-open > .kanban-card-modal-side:has(.kanban-card-modal-images-inline):has(.kanban-card-comments-panel) {
    grid-template-rows: minmax(0, auto) minmax(0, 1fr);
  }

  .kanban-card-modal-side > .kanban-card-modal-images-inline,
  .kanban-card-modal-side > .kanban-card-comments-panel {
    min-width: 0;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    background: #333;
    padding: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .kanban-card-detail-modal > .kanban-card-modal-body.has-side.is-side-open > .kanban-card-modal-side > .kanban-card-modal-images-inline {
    grid-column: 1;
    grid-row: 1;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
  }

  .kanban-card-modal-side:has(.kanban-card-comments-panel) .kanban-card-modal-photo-list,
  .kanban-card-modal-side:has(.kanban-card-comments-panel) .kanban-card-modal-file-list {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .kanban-card-modal-side .kanban-card-modal-photo-list .kanban-card-modal-image {
    flex: 0 0 132px;
    width: 132px;
  }

  .kanban-card-modal-side:has(.kanban-card-comments-panel) .kanban-card-modal-photo-list .kanban-card-modal-image {
    flex-basis: calc((100% - 16px) / 3);
    width: calc((100% - 16px) / 3);
  }

  .kanban-card-modal-side .kanban-card-modal-photo-list .kanban-card-modal-image-button,
  .kanban-card-modal-side .kanban-card-modal-photo-list .kanban-card-modal-image img {
    width: 100%;
    max-width: 100%;
  }

  .kanban-card-modal-side .kanban-card-modal-photo-list .kanban-card-modal-image img {
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 900px) {
  .kanban-card-modal-actions {
    grid-column: 1;
    grid-row: 6;
    justify-self: start;
  }

  .kanban-card-detail-modal .kanban-card-modal-body.is-comments-open > .kanban-card-modal-main {
    grid-row: 1;
  }

  .kanban-card-detail-modal .kanban-card-modal-body.is-comments-open > .kanban-card-modal-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-row: 2;
    min-width: 0;
  }

  .kanban-card-detail-modal .kanban-card-modal-side > .kanban-card-comments-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
  }
}

/* codex-milio-card-modal-title-under-toolbar-20260830 */
@media (min-width: 901px) {
  .kanban-card-detail-modal > .kanban-card-modal-head {
    grid-template-columns: minmax(250px, 1fr) auto auto minmax(160px, 240px) auto auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 12px 14px;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-rich-text-toolbar.kanban-rich-text-templates {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    max-width: 100%;
    overflow-x: auto;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-members {
    grid-column: 2;
    grid-row: 1;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-checklist-button {
    grid-column: 3;
    grid-row: 1;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-head-column {
    grid-column: 4;
    grid-row: 1;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-actions,
  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-delete {
    grid-column: 5;
    grid-row: 1;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-close {
    grid-column: 6;
    grid-row: 1;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-heading {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head .kanban-card-modal-title {
    display: block;
    width: 100%;
  }
}

/* codex-milio-bottom-inner-space-5px-20260810 */
@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .app-main {
    padding-bottom: 4px;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-view {
    padding-bottom: 0;
  }
}

/* codex-milio-half-radius-20260902 */
body:has(#kanbanView:not(.is-hidden)) .app-shell {
  border-radius: 14px;
}

body:has(#kanbanView:not(.is-hidden)) .topbar {
  border-radius: 14px 14px 0 0;
}

body:has(#kanbanView:not(.is-hidden)) .settings-menu,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-modal-side,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-modal-title,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-modal-field input,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-modal-field select,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-modal-field textarea,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-modal-image,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-modal-image-delete,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-modal-image-cover,
body:has(#kanbanView:not(.is-hidden)) .kanban-card-modal-file-tile {
  border-radius: 4px;
}

body:has(#kanbanView:not(.is-hidden)) .kanban-card-modal {
  border-radius: 11px;
}

body:has(#kanbanView:not(.is-hidden)) .panel.kanban-column {
  border-radius: 9px;
}

@media (min-width: 901px) {
  body:has(#dashboardView:not(.is-hidden)) .topbar,
  body:has(#integrationsView:not(.is-hidden)) .topbar,
  body:has(#searchView:not(.is-hidden)) .topbar,
  body:has(#roomView:not(.is-hidden)) .topbar,
  body.is-menu-view-active .topbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    position: sticky;
  }

  body:has(#dashboardView:not(.is-hidden)) .topbar-search,
  body:has(#integrationsView:not(.is-hidden)) .topbar-search,
  body:has(#searchView:not(.is-hidden)) .topbar-search,
  body:has(#roomView:not(.is-hidden)) .topbar-search,
  body.is-menu-view-active .topbar-search {
    position: absolute;
    left: 50%;
    flex: 0 1 auto;
    width: min(640px, 42vw);
    min-width: 300px;
    max-width: 640px;
    transform: translateX(-50%);
  }

  body:has(#dashboardView:not(.is-hidden)) .topbar-actions,
  body:has(#integrationsView:not(.is-hidden)) .topbar-actions,
  body:has(#searchView:not(.is-hidden)) .topbar-actions,
  body:has(#roomView:not(.is-hidden)) .topbar-actions,
  body.is-menu-view-active .topbar-actions {
    margin-left: auto;
  }

  body:has(#brandsView:not(.is-hidden)) .topbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 14px;
    position: sticky;
  }

  body:has(#brandsView:not(.is-hidden)) .topbar-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 44px;
  }

  body:has(#brandsView:not(.is-hidden)) .topbar-catalog-button {
    position: static;
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    transform: none;
  }

  body:has(#brandsView:not(.is-hidden)) .topbar-search {
    position: absolute;
    left: 50%;
    flex: 0 1 auto;
    width: min(520px, 42vw);
    min-width: 260px;
    max-width: 640px;
    transform: translateX(-50%);
  }

  body:has(#brandsView:not(.is-hidden)) .topbar-search input {
    min-height: 44px;
  }

  body:has(#brandsView:not(.is-hidden)) .topbar-actions,
  body:has(#brandsView:not(.is-hidden)) .topbar-settings {
    height: 44px;
    min-height: 44px;
    align-items: center;
  }

  body:has(#brandsView:not(.is-hidden)) .topbar-actions {
    margin-left: auto;
  }

  body:has(#brandsView:not(.is-hidden)) .topbar-settings-button,
  body:has(#brandsView:not(.is-hidden)) .topbar-icon-button {
    min-height: 42px;
  }
}

@media (max-width: 900px) {
  .kanban-card-detail-modal > .kanban-card-modal-head {
    grid-template-columns: 40px 40px minmax(0, 1fr) 40px 40px;
    grid-template-rows: auto auto auto;
    gap: 8px;
    padding: 12px;
  }

  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-rich-text-toolbar {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }

  .kanban-card-detail-modal .kanban-card-modal-heading {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
  }

  .kanban-card-detail-modal .kanban-card-modal-members {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }

  .kanban-card-detail-modal .kanban-card-modal-head-column {
    grid-column: 3;
    grid-row: 2;
    min-width: 0;
    margin: 0;
  }

  .kanban-card-detail-modal .kanban-card-modal-actions {
    grid-column: 4;
    grid-row: 2;
  }

  .kanban-card-detail-modal .kanban-card-modal-close {
    position: relative;
    inset: auto;
    grid-column: 5;
    grid-row: 2;
    width: 40px;
    height: 40px;
    margin: 0;
    transform: none;
  }

  .kanban-card-detail-modal .kanban-card-modal-close::before,
  .kanban-card-detail-modal .kanban-card-modal-close::after {
    background: var(--ink);
  }

  .kanban-card-detail-modal > .kanban-card-modal-body.has-side {
    display: block;
    overflow: auto;
    padding: 12px;
  }

  .kanban-card-detail-modal .kanban-card-modal-main {
    height: auto;
    min-height: auto;
  }

  .kanban-card-detail-modal .kanban-card-modal-main .kanban-rich-text-editor {
    min-height: 120px;
    color: var(--ink);
  }

  .kanban-card-detail-modal .kanban-card-modal-body.has-side.is-side-open > .kanban-card-modal-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    overflow: visible;
  }
}

/* Individual catalog discount editor. */
.catalog-discount-edit { font: inherit; font-weight: 700; color: inherit; border: 0; background: transparent; padding: 8px 0; min-width: 72px; text-align: left; cursor: pointer; }
.catalog-discount-edit:hover { text-decoration: underline; }
.catalog-discount-edit:focus-visible { outline: 2px solid #7841da; outline-offset: 3px; }
.catalog-discount-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid #ddd; border-radius: 16px; background: #fff; color: #16161b; box-shadow: none; }
.catalog-discount-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.catalog-discount-dialog header, .catalog-discount-dialog footer, .catalog-discount-presets { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.catalog-discount-dialog header { justify-content: space-between; }
.catalog-discount-dialog h2 { font-size: 22px; margin: 0; }
.catalog-discount-dialog fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.catalog-discount-dialog label { display: grid; gap: 6px; margin: 16px 0; }
.catalog-discount-dialog input, .catalog-discount-dialog button { font: inherit; border: 1px solid #d5d5dc; border-radius: 8px; padding: 10px; box-shadow: none; }
.catalog-discount-dialog input { width: 100%; box-sizing: border-box; background: #fff; color: #16161b; }
.catalog-discount-dialog button { background: #f5f5f7; color: #16161b; cursor: pointer; }
.catalog-discount-dialog button[type=submit] { background: #7841da; color: white; }
.catalog-discount-dialog [data-error] { color: #b42318; }
.catalog-discount-dialog p { line-height: 1.45; }

/* Catalog badge switches: flat controls, independent from opening the row. */
.catalog-badges { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.catalog-badge { border: 1px solid #d6d3dd; border-radius: 6px; padding: 6px 8px; background: transparent; color: #827d8d; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; box-shadow: none; }
.catalog-badge-isHit.is-active { border-color: #ed8b26; background: #fff0dc; color: #9a4d00; }
.catalog-badge-isDiscount.is-active { border-color: #9fdc35; background: #e9ffb7; color: #416600; }
.catalog-badge:focus-visible { outline: 2px solid #7841da; outline-offset: 2px; }
.catalog-badge:disabled { opacity: .55; cursor: wait; }

.catalog-table .catalog-badges-cell { position: sticky; right: 0; min-width: 104px; background: #f9f9f9; z-index: 1; }
.catalog-table th.catalog-badges-cell { background: #fff; z-index: 3; }

/* Milio desktop card: omit the column dropdown and reclaim its header space. */
@media (min-width: 901px) {
  body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal > .kanban-card-modal-head {
    grid-template-columns: minmax(260px, 1fr) minmax(250px, auto) auto auto auto auto;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-head-column {
    display: none;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-actions,
  body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-delete {
    grid-column: 5;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-close {
    grid-column: 6;
  }
}

@media (min-width: 901px) and (max-width: 1780px) {
  body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal > .kanban-card-modal-head {
    grid-template-columns: minmax(250px, 1fr) auto auto auto auto;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-actions,
  body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-delete {
    grid-column: 4;
  }

  body:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-modal-close {
    grid-column: 5;
  }
}

/* Product review attribution in the readiness panel. */
.validation-panel .panel-title { position: relative; justify-content: space-between; }
.quality-review { position: relative; margin-left: auto; }
.quality-review-badge { position: relative; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #ffffff80; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.quality-review-badge svg { width: 36px; height: 36px; }
.quality-review-badge:hover { background: #ffffff18; }
.quality-review-badge.is-reviewed { border-color: #bdff00; }
.quality-review-badge img, .quality-review-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.quality-review-badge > span { font-size: 20px; font-weight: 700; }
.quality-review-badge i { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #bdff00; color: #202124; font-size: 13px; font-style: normal; }
.quality-review-picker { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: min(300px, calc(100vw - 64px)); padding: 16px; border: 1px solid #ddd9e7; border-radius: 14px; background: #fff; color: #202124; font-size: 14px; }
.quality-review-picker[hidden] { display: none; }
.quality-review-picker strong { display: block; margin-bottom: 12px; }
.quality-review-picker input { box-shadow: none; width: 100%; min-width: 0; padding: 10px; border: 1px solid #ddd9e7; border-radius: 8px; background: #fff; color: #202124; }
.quality-review-users { max-height: 250px; overflow-y: auto; margin-top: 8px; }
.quality-review-user { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 6px; border: 0; border-radius: 8px; background: transparent; color: #202124; text-align: left; cursor: pointer; }
.quality-review-user:hover, .quality-review-user[aria-pressed="true"] { background: #f0eafb; }
.quality-review-user > span:nth-child(2) { flex: 1; overflow-wrap: anywhere; }
.quality-review-avatar { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; background: #eee8fc; color: #6635c5; font-weight: 700; }
.quality-review-clear { margin-top: 10px; padding: 8px 0; border: 0; background: transparent; color: #6b5b84; cursor: pointer; }
#qualityReviewStatus { margin: 8px 0 0; font-size: 13px; color: #6b5b84; }
#qualityReviewStatus:empty { display: none; }
.quality-review button:focus-visible { outline: 2px solid #bdff00; outline-offset: 3px; }
.quality-review button:disabled { opacity: .55; cursor: wait; }

/* Review status stays visible alongside the catalog badge controls. */
.catalog-quality-review { display: inline-grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid #d6d3dd; border-radius: 50%; color: #827d8d; background: transparent; }
.catalog-quality-review svg { width: 24px; height: 24px; }
.catalog-quality-review.is-reviewed { border-color: #9fdc35; background: #e9ffb7; color: #416600; }
.catalog-discount-dialog button.is-saving { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: wait; opacity: 1; }
.catalog-discount-dialog button.is-saving::before { content: ""; width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: catalog-discount-saving .75s linear infinite; }
@keyframes catalog-discount-saving { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .catalog-discount-dialog button.is-saving::before { animation: none; } }

/* Color-group editor only. */
.product-colors-panel summary { cursor: pointer; font-weight: 600; }
.product-colors-panel p { color: var(--muted, #aaa); }
.product-colors-panel form { display: flex; gap: 8px; align-items: end; margin: 12px 0; }
.product-colors-panel label { flex: 1; }
.product-colors-panel input { display: block; width: 100%; margin-top: 6px; }
.product-color-row { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #555; }
.product-color-row span { flex: 1; overflow-wrap: anywhere; }
.product-color-row button { flex-shrink: 0; }

.product-colors-panel button { appearance: none; border: 1px solid #dddde5; border-radius: 6px; background: #fff; color: #191922; padding: 7px 10px; font: inherit; font-size: 12px; cursor: pointer; box-shadow: none; }
.product-colors-panel button:hover { background: #f5f5f8; }
.product-colors-panel button:disabled { opacity: .5; cursor: wait; }
.product-colors-panel button:focus-visible { outline: 2px solid #7044cc; outline-offset: 2px; }
.product-color-row { flex-wrap: wrap; border-color: #e8e8ef; }
.product-color-row span { flex-basis: 190px; }

/* Trello navigation: a simple list sliding in from the left. */
#catalogOpenButton .catalog-menu-icon,
#catalogOpenButton.is-navigation-button .catalog-grid-icon { display: none; }
#catalogOpenButton.is-navigation-button .catalog-menu-icon { display: block; }

/* Align the visible icons with the wordmark's ink, not its line box.
   Descenders in Трелло/Бренды and the lowercase crm need a lower center. */
@media (min-width: 901px) {
  .topbar-brand {
    --topbar-logo-icon-offset: 1px;
  }
  .topbar-brand.is-kanban-logo-mode,
  body:has(#brandsView:not(.is-hidden)) .topbar-brand,
  body.is-crm-view-active .topbar-brand {
    --topbar-logo-icon-offset: 4px;
  }
  body.is-milio-schedule-active .topbar-brand.is-kanban-logo-mode {
    --topbar-logo-icon-offset: 1px;
  }
  .topbar-brand :is(#catalogOpenButton, #boardsOpenButton) > svg {
    transform: translateY(var(--topbar-logo-icon-offset));
  }
}

#catalogModal.is-navigation-drawer {
  position: fixed;
  inset: var(--catalog-container-top, 80px) auto auto var(--catalog-container-left, 0px);
  width: min(310px, var(--catalog-container-width, 100vw));
  height: var(--catalog-container-height, calc(100dvh - 80px));
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 12px;
  border: 1px solid #414146;
  border-radius: 0 0 0 12px;
  background: #202124;
  box-shadow: none;
  overflow: auto;
  overscroll-behavior: contain;
}
#catalogModal.is-navigation-drawer[open] { animation: milio-menu-slide 180ms ease-out; }
#catalogModal.is-navigation-drawer::backdrop { background: rgb(0 0 0 / 30%); }
@keyframes milio-menu-slide { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
#catalogModal .catalog-menu-header:not([hidden]) { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px 12px; }
#catalogModal .catalog-menu-header h2 { margin: 0; font-size: 18px; font-weight: 600; }
#catalogMenuCloseButton { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #ddd; font: 28px/1 sans-serif; cursor: pointer; }
#catalogModal.is-navigation-drawer .catalog-modal-grid { display: flex; flex-direction: column; gap: 2px; min-height: 0; }
#catalogModal.is-navigation-drawer .catalog-modal-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  height: auto;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f1f1f3;
  box-shadow: none;
  text-align: left;
  transform: none;
  cursor: pointer;
}
#catalogModal.is-navigation-drawer .catalog-modal-card-title { font-family: inherit; font-size: 16px; font-weight: 400; line-height: 22px; text-align: left; }
#catalogModal.is-navigation-drawer .catalog-modal-card:hover:not(:disabled),
#catalogModal.is-navigation-drawer .catalog-modal-card:focus-visible,
#catalogMenuCloseButton:hover { background: #333338; }
#catalogModal.is-navigation-drawer .catalog-modal-card:focus-visible,
#catalogMenuCloseButton:focus-visible { outline: 2px solid #b8fa18; outline-offset: -2px; }
@media (min-width: 901px) {
  #catalogModal.is-navigation-drawer {
    width: min(372px, var(--catalog-container-width, 100vw));
  }
  #catalogModal.is-navigation-drawer .catalog-menu-header:not([hidden]) {
    justify-content: flex-end;
  }
  #catalogModal.is-navigation-drawer .catalog-menu-header h2 {
    display: none;
  }
  #catalogMenuCloseButton:focus-visible {
    outline: none;
    background: #333338;
  }
}
#catalogModal.is-navigation-drawer .catalog-modal-card:disabled { cursor: default; opacity: .4; }
#catalogModal.is-navigation-drawer .catalog-modal-card-main { position: static; display: flex; flex: 1; align-items: center; justify-content: flex-start; padding: 0; min-height: 22px; text-align: left; }
#catalogModal.is-navigation-drawer .catalog-modal-admin-link { position: static; width: 28px; height: 28px; flex: 0 0 28px; margin: -3px 0; padding: 4px; border: 0; box-shadow: none; background: transparent; }

/* Schedule display controls use the same filter icon and switches as Milio. */
body #milioScheduleVisibilityButton { display: none !important; }
#milioScheduleVisibilityDialog:not([open]) { display: none; }
@media (min-width: 901px) {
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) #milioScheduleVisibilityButton { display: inline-flex !important; }
  #milioScheduleVisibilityDialog[open] {
    display: grid;
    position: fixed;
    inset: 0;
    width: min(91vw, calc(100vw - 96px));
    height: min(91vh, calc(100vh - 96px));
    max-width: calc(100vw - 96px);
    max-height: calc(100vh - 96px);
    margin: auto;
    padding: 0;
    color: #f4f5f7;
    border: 1px solid #55565b;
    border-radius: 16px;
    box-shadow: none;
    overflow: hidden;
  }
  #milioScheduleVisibilityDialog::backdrop { background: rgb(0 0 0 / 55%); }
}

/* The schedule belongs to Trello; CRM keeps its existing state and styles. */
@media (min-width: 901px) {
  body.is-milio-schedule-active {
    --milio-schedule-surface: #0b1426;
    --milio-schedule-header: #1b324d;
  }
  body.is-milio-schedule-active #catalogModal.is-navigation-drawer,
  body.is-milio-schedule-active #settingsMenu,
  body.is-milio-schedule-active #milioScheduleVisibilityDialog{
    background: var(--milio-schedule-surface);
  }
  body.is-milio-schedule-active .settings-modal,
  body.is-milio-schedule-active .settings-modal .settings-modal-body {
    background: #141c2c;
  }
  body.is-milio-schedule-active .settings-modal .settings-user-form input[type="text"],
  body.is-milio-schedule-active .settings-modal .settings-user-form input[type="password"],
  body.is-milio-schedule-active .settings-modal .settings-user-department-field select,
  body.is-milio-schedule-active .settings-modal .settings-user-column-field select {
    background-color: #182337;
    box-shadow: none;
  }
  body.is-milio-schedule-active .settings-modal .settings-user-form input[type="text"]:focus,
  body.is-milio-schedule-active .settings-modal .settings-user-form input[type="password"]:focus,
  body.is-milio-schedule-active .settings-modal .settings-user-department-field select:focus,
  body.is-milio-schedule-active .settings-modal .settings-user-column-field select:focus {
    border-color: #7387a8;
    outline: none;
    box-shadow: none;
  }
  body.is-milio-schedule-active .settings-section-tabs,
  body.is-milio-schedule-active[data-page-overlay-tone] .settings-modal :is(.settings-section-tab[data-settings-section="users"], .settings-payroll-tab) {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
  body.is-milio-schedule-active[data-page-overlay-tone] .settings-modal :is(.settings-section-tab[data-settings-section="users"], .settings-payroll-tab) {
    color: #f4f5f7;
  }
  body.is-milio-schedule-active[data-page-overlay-tone] .settings-modal :is(.settings-section-tab[data-settings-section="users"], .settings-payroll-tab)[aria-selected="true"] {
    color: #b8fa18;
  }
  body.is-milio-schedule-active[data-page-overlay-tone] .settings-modal :is(.settings-section-tab[data-settings-section="users"], .settings-payroll-tab):focus-visible {
    outline: none;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) .topbar {
    background: var(--milio-schedule-header);
    box-shadow: none;
  }
  .is-milio-schedule-active .topbar-brand.is-kanban-logo-mode .topbar-logo--text {
    max-width: none;
  }
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) .topbar-brand.is-kanban-logo-mode {
    min-height: 54px;
  }
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) .app-main {
    padding: 0;
    background: var(--milio-schedule-surface);
  }
  .is-milio-schedule-active #milioSchedulePage{
    background: var(--milio-schedule-surface);
  }
  .is-milio-schedule-active #catalogOpenButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0;
  }
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) #boardsOpenButton,
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) #boardsCurrentLabel,
  .is-milio-schedule-active [data-milio-schedule-nav="today"] {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) .topbar-brand.is-kanban-logo-mode {
    min-height: 48px;
  }
}
.is-milio-schedule-active .topbar-kanban-search,
.is-milio-schedule-active .topbar-search,
.is-milio-schedule-active #automationOpenButton { display: none !important; }
#milioSchedulePage[hidden] { display: none; }
#milioSchedulePage { width: 100%; min-width: 0; height: 100%; overflow: auto; background: #252626; color: #f4f5f7; }
@media (max-width: 900px) {
  .is-milio-schedule-active .topbar-brand.is-kanban-logo-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .is-milio-schedule-active .topbar-logo--image { display: none; }
  .is-milio-schedule-active .topbar-logo--text { display: block; color: #fff; }
}
@media (prefers-reduced-motion: reduce) { #catalogModal.is-navigation-drawer[open] { animation: none; } }

#catalogModal.is-navigation-drawer .catalog-modal-card[aria-current="page"] { background: #3c304e; color: #fff; }
#milioScheduleWorkerOptions { max-height: min(320px, 50vh); overflow-y: auto; overscroll-behavior: contain; margin-top: 6px; scrollbar-width: thin; scrollbar-color: #61746a transparent; }
@media (min-width: 901px) {
  #milioScheduleWorkerOptions { scrollbar-color: #61718a transparent; }
}
@media (min-width: 901px) {
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) .topbar { position: relative; }
  body.is-milio-schedule-active .topbar-brand.is-kanban-logo-mode { position: static; }
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) #milioScheduleVisibilityButton { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 320px; height: 44px; min-width: 0; margin: 0; padding: 10px 16px; gap: 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: transparent; color: #f4f5f7; font: inherit; font-size: 14px; font-weight: 400; box-shadow: none; }
  #milioScheduleVisibilityButton [data-schedule-visibility-label] { flex: 1; text-align: left; white-space: nowrap; }
  #milioScheduleVisibilityButton svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
  #milioScheduleVisibilityButton > svg:first-child { color: #fff; }
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) #milioScheduleVisibilityButton:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.65); }
  #milioScheduleYear { width: 96px; padding: 8px; border: 1px solid #4d5b70; border-radius: 6px; background: transparent; color: inherit; font: inherit; box-shadow: none; } #milioScheduleYear:focus-visible { outline: 2px solid #a5bbd4; outline-offset: 1px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) .topbar { padding-bottom: 64px; }
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) #milioScheduleVisibilityButton { top: auto; bottom: 10px; transform: translateX(-50%); }
}

/* Very dark header-purple background for the desktop task board. */
@media (min-width: 901px) {
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .app-shell,
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .app-main,
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .kanban-view {
    background: var(--trello-board-background);
  }
}

/* Align schedule controls with the center of the icon logo. */
@media (min-width: 901px) {
  body.is-milio-schedule-active .topbar {
    --milio-schedule-header-center: 0px;
    --milio-schedule-icon-size: 24px;
  }
  body.is-milio-schedule-active #catalogOpenButton .catalog-menu-icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
  }
  body.is-milio-schedule-active #milioScheduleVisibilityButton > svg:first-child {
    width: var(--milio-schedule-icon-size);
    height: var(--milio-schedule-icon-size);
    flex: 0 0 auto;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body.is-milio-schedule-active #settingsMenuButton > svg {
    width: var(--milio-schedule-icon-size);
    height: var(--milio-schedule-icon-size);
    stroke-width: 2;
  }
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) .topbar-user-avatar {
    box-sizing: border-box;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    font-size: 19px;
    box-shadow: none;
  }
  body.is-milio-schedule-active .topbar-brand.is-kanban-logo-mode {
    --topbar-logo-icon-offset: var(--milio-schedule-header-center);
  }
  body.is-milio-schedule-active .topbar-user-avatar,
  body.is-milio-schedule-active #settingsMenuButton > svg {
    transform: translateY(var(--milio-schedule-header-center));
  }
}
@media (min-width: 1181px) {
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) #milioScheduleVisibilityButton {
    top: calc(50% + var(--milio-schedule-header-center));
  }
  body.is-milio-schedule-active #milioScheduleVisibilityButton > svg:first-child {
    transform: none;
  }
}

/* Desktop overlays inherit the current page surface, with tonal interaction states. */
@media (min-width: 901px) {
  body.is-crm-view-active #settingsMenu {
    --page-overlay-background: var(--crm-menu-background);
    --page-overlay-ink: var(--crm-menu-ink);
    --page-overlay-hover: var(--crm-control-hover);
    --page-overlay-border: rgb(255 255 255 / 20%);
  }

  /* Preserve the published muted user window while following the page hue. */
  body[data-page-overlay-tone].is-milio-schedule-active .settings-modal {
    --page-overlay-background: hsl(var(--page-overlay-hue, 220) 37.5% 12.549%);
    --page-overlay-hover: hsl(calc(var(--page-overlay-hue, 220) - 1.29) 39.241% 15.49%);
  }

  /* Explicit surfaces only: do not recolor backdrops, user cards or color swatches. */
  body[data-page-overlay-tone] :is(
    #catalogModal, #boardsModal, #settingsMenu, dialog:not(.auth-modal), .auth-modal-card,
    .kanban-card-modal, .settings-modal-body, .site-exchange-filter-modal-body,
    .kanban-card-modal-main, .kanban-card-modal-side, .menu-settings-modal-surface,
    .category-create-modal, .variant-id-modal-card, .site-exchange-log-detail-modal,
    .kanban-column-action-menu, .kanban-card-action-menu, .kanban-card-modal-member-picker,
    [role="menu"]:not(.crm-delivery-menu), .menu-builder-choice-card,
    .milio-schedule-month-panel, .milio-schedule-mark-options, .milio-schedule-picker-panel
  ) {
    background: var(--page-overlay-background) !important;
    color: var(--page-overlay-ink);
    border-color: var(--page-overlay-border);
  }

  body[data-page-overlay-tone] :is(#catalogModal, #boardsModal) .catalog-modal-card,
  body[data-page-overlay-tone] :is(#catalogModal, #boardsModal) .catalog-modal-card-main,
  body[data-page-overlay-tone] :is(#settingsMenu, .settings-modal) :is(.settings-menu-item, .settings-value-item, .settings-user-row, .category-menu-item),
  body[data-page-overlay-tone] :is(#catalogMenuCloseButton, .settings-menu-control) {
    background: transparent;
    color: var(--page-overlay-ink);
    border-color: var(--page-overlay-border);
    box-shadow: none;
  }

  body[data-page-overlay-tone] :is(#catalogModal, #boardsModal) .catalog-modal-card:is(:hover, :focus-visible):not(:disabled),
  body[data-page-overlay-tone] :is(#settingsMenu, .settings-modal) :is(.settings-menu-item, .settings-value-item, .settings-user-row, .category-menu-item):is(:hover, :focus-visible),
  body[data-page-overlay-tone] :is(#catalogMenuCloseButton, .settings-menu-control):is(:hover, :focus-visible),
  body[data-page-overlay-tone] :is(.milio-schedule-month-options button, .milio-schedule-mark-options button, .milio-schedule-picker-option):is(:hover, :focus-visible) {
    background: var(--page-overlay-hover);
    color: var(--page-overlay-ink);
    outline-color: var(--page-overlay-border);
  }

  body[data-page-overlay-tone] :is(#catalogModal, #boardsModal) .catalog-modal-card:is([aria-current="page"], [aria-pressed="true"]),
  body[data-page-overlay-tone] :is(#settingsMenu, .settings-modal) :is(.settings-value-item, .settings-user-row, .category-menu-item).active,
  body[data-page-overlay-tone] :is(.milio-schedule-month-options button[aria-pressed="true"], .milio-schedule-mark-options button[aria-checked="true"], .milio-schedule-picker-option[aria-selected="true"]) {
    background: var(--page-overlay-active);
    color: var(--page-overlay-ink);
    border-color: var(--page-overlay-border);
  }

  body[data-page-overlay-tone] :is(#catalogModal, #boardsModal) .catalog-modal-admin-link {
    background: transparent;
    color: var(--page-overlay-ink);
  }
  body[data-page-overlay-tone] .settings-menu-separator { background: var(--page-overlay-border); }

  body[data-page-overlay-tone] :is(dialog, [role="dialog"], [role="menu"]) {
    --ink: var(--page-overlay-ink);
  }
  body[data-page-overlay-tone] :is(dialog, [role="dialog"]) :is(
    h2, h3, h4, legend, label > span, .settings-user-login, .settings-users-title,
    .settings-user-roles-list, .settings-user-role, .settings-user-column-title,
    .settings-users-note, .settings-user-status, .settings-main-empty,
    .settings-user-list-name, .settings-user-column-field > span, .category-menu-name, .site-exchange-filter-tab,
    .settings-logout-button, .kanban-card-modal-close, .settings-user-actions .button
  ) {
    color: var(--page-overlay-ink);
    border-color: var(--page-overlay-border);
  }
  body[data-page-overlay-tone] :is(dialog, [role="dialog"], [role="menu"]) :is(
    .site-exchange-filter-tab, .kanban-card-action-menu button,
    .settings-logout-button, .kanban-card-modal-close
  ):is(:hover, :focus-visible) {
    background: var(--page-overlay-hover);
    color: var(--page-overlay-ink);
    outline-color: var(--page-overlay-border);
  }
  body[data-page-overlay-tone] :is(dialog, [role="dialog"]) .site-exchange-filter-tab.is-active {
    background: var(--page-overlay-active);
    color: var(--page-overlay-ink);
  }
  body[data-page-overlay-tone] .settings-modal :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea) {
    background-color: var(--page-overlay-hover);
    color: var(--page-overlay-ink);
    border-color: var(--page-overlay-border);
  }
  body[data-page-overlay-tone] .settings-modal :is(input, textarea)::placeholder {
    color: color-mix(in srgb, var(--page-overlay-ink) 60%, transparent);
  }
}

/* Compact multiple-role picker in user creation and editing forms. */
.settings-user-roles-dropdown { position: relative; min-width: 0; }
.settings-user-roles-dropdown > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--page-overlay-border, rgba(89, 71, 132, .3));
  border-radius: 8px;
  background: var(--page-overlay-background, #fff);
  color: var(--page-overlay-ink, var(--ink));
  cursor: pointer;
  list-style: none;
}
.settings-user-roles-dropdown > summary::-webkit-details-marker { display: none; }
.settings-user-roles-summary { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-user-roles-dropdown > summary::after {
  content: ""; width: 7px; height: 7px; flex: 0 0 auto;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg); margin: -4px 3px 0;
}
.settings-user-roles-dropdown[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.settings-user-roles-dropdown > summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.settings-user-roles-dropdown > .settings-user-role-grid {
  position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0;
  display: grid; grid-template-columns: 1fr; gap: 2px;
  max-height: 280px; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border: 1px solid var(--page-overlay-border, rgba(89, 71, 132, .3));
  border-radius: 8px; background: var(--page-overlay-background, #fff);
}
.settings-user-form .settings-user-roles-dropdown .settings-user-role {
  border: 0; background: transparent; cursor: pointer;
  color: var(--page-overlay-ink, var(--ink));
}
.settings-user-form .settings-user-roles-dropdown .settings-user-role:hover {
  background: var(--page-overlay-hover, rgba(89, 71, 132, .08));
}
/* Keep the settings form mounted while the future payroll tab is open. */
.settings-payroll-active .settings-modal-body { display: none; }
#settingsPayrollPanel { flex: 1; min-height: 240px; }
.settings-payroll-tab[hidden], #settingsPayrollPanel[hidden] { display: none; }
.settings-payroll-tab { flex-shrink: 0; white-space: nowrap; }

/* Navigation follows the current page on every viewport and in every section. */
body[data-page-overlay-tone] #catalogModal.is-navigation-drawer { background: var(--page-overlay-background) !important; color: var(--page-overlay-ink); border-color: var(--page-overlay-border); }
body[data-page-overlay-tone] #catalogModal.is-navigation-drawer :is(.catalog-modal-card,.catalog-modal-card-main,.catalog-modal-admin-link,#catalogMenuCloseButton) { background: transparent; color: var(--page-overlay-ink); }
body[data-page-overlay-tone] #catalogModal.is-navigation-drawer :is(.catalog-modal-card,#catalogMenuCloseButton):hover:not(:disabled),
body[data-page-overlay-tone] #catalogModal.is-navigation-drawer :is(.catalog-modal-card,#catalogMenuCloseButton):focus-visible { background: var(--page-overlay-hover); }

@media (max-width: 900px) {
  .settings-user-department-field { display: none !important; }
}

/* Bound order-list DOM size on CRM while preserving access to every order. */
/* Pagination shares the fixed-height CRM footer with the view tabs. */
.crm-orders-pagination { display:flex; align-items:center; gap:4px; color:var(--crm-palette-text, #f4f5f7); font-size:12px; line-height:1; }
/* Keep the page range at the midpoint, independently of the view tabs. */
body.is-crm-view-active #roomView .crm-orders-pagination {
  position:absolute; left:50%; right:auto; top:0; height:100%;
  transform:translateX(-50%); gap:8px;
}
body.is-crm-view-active #roomView .crm-orders-pagination button {
  position:static; transform:none; flex:0 0 25px;
}
html[data-trello-native] body.is-crm-view-active #roomView .crm-orders-pagination {
  position:absolute; left:50%; right:auto; transform:translateX(-50%);
}
html[data-trello-native] body.is-crm-view-active #roomView .crm-orders-pagination button:first-child:disabled { visibility:visible; }
.crm-orders-pagination > span { white-space:nowrap; }
.crm-orders-pagination button { display:flex; align-items:center; justify-content:center; width:25px; height:25px; min-height:0; padding:0; color:var(--crm-palette-text, #f4f5f7); background:transparent; border:0; border-radius:0; cursor:pointer; }
.crm-orders-pagination button svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.crm-orders-pagination button:hover:not(:disabled) { background:rgba(255,255,255,.08); }
.crm-orders-pagination button:focus-visible { outline:1px solid #a5bbd4; outline-offset:-2px; }
.crm-orders-pagination button:disabled { opacity:.3; cursor:default; }
@media (min-width: 901px) {
  body.is-crm-view-active .room-order-items-panel { transition: none; }
}

/* CRM order details occupy the normal content area, with no dialog overlay. */
body.is-crm-view-active .room-main-page--orders.has-order-detail > :not(#roomOrderModalRoot) { display: none !important; }
.crm-order-page-root { min-width: 0; width: 100%; color: var(--crm-palette-text, #f4f5f7); background: var(--crm-palette-workspace, #202124); }
.crm-order-page-wrap { padding: 24px; }
.crm-order-back { display: inline-block; margin-bottom: 24px; color: var(--crm-palette-text, #f4f5f7); text-decoration: none; }
.crm-order-back:hover { color: var(--crm-text-hover, #ff5a00); }
.crm-order-page { min-width: 0; color: var(--crm-palette-text, #f4f5f7); background: var(--crm-palette-workspace, #202124); }
.crm-order-page .room-order-modal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 0 0 24px; background: transparent; }
.crm-order-page .room-order-modal-heading { flex: 0 0 auto; }
.crm-order-page .crm-order-header-status { width: 190px; margin-left: 72px; margin-right: auto; }
.crm-order-page .room-order-modal-head-date { margin-left: auto; margin-right: 0; }
.crm-order-page .crm-order-header-status .room-order-status-menu {
  width: 280px; min-width: 280px; max-width: calc(100vw - 48px);
  max-height: min(620px, calc(100vh - 260px)); overflow-y: auto;
  border-color: rgba(255, 255, 255, 0.16); background: var(--crm-palette-panel, #2b2d31);
}
@media (min-width: 901px) {
  .crm-order-page .crm-order-header-status .room-order-status-menu {
    top: 0; left: calc(100% + 20px); transform: none;
  }
}
@media (max-width: 1100px) {
  .crm-order-page .crm-order-header-status { margin-left: 24px; }
}
.crm-order-page .room-order-modal-heading h2 { color: var(--crm-palette-text, #f4f5f7); }
.crm-order-page .room-order-modal-body { overflow: visible; max-height: none; padding: 0; background: transparent; }
.crm-order-page .room-order-modal-section { padding: 0; background: transparent; }
@media (max-width: 1100px) {
  .crm-order-page .room-order-modal-grid { grid-template-columns: minmax(0, 1fr); }
  .crm-order-page .room-order-modal-panel + .room-order-modal-panel::before { display: none; }
}
@media (max-width: 600px) { .crm-order-page-wrap { padding: 16px; } }

#roomOrderModalRoot.crm-order-page-root .crm-order-page .room-order-modal-body { background: var(--crm-palette-workspace, #202124) !important; }
.crm-order-page .room-order-modal-item-main strong { white-space: normal; overflow-wrap: anywhere; }
.crm-order-page .room-order-modal-item-main .crm-order-item-size { display:block; font-size:inherit; margin-top:4px; white-space:normal; overflow-wrap:anywhere; }
@media (min-width:901px) { .crm-order-page .room-order-modal-item-main .crm-order-item-size { font-size:15px; } }

/* Shared CRM search appearance for browsers and the native Mac wrapper. */
body.is-crm-view-active:has(#roomView:not(.is-hidden)) .topbar-search input {
  background: #1b324d;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--crm-palette-text, #f4f5f7);
  box-shadow: none;
}

body.is-crm-view-active:has(#roomView:not(.is-hidden)) .topbar-search input::placeholder {
  color: var(--crm-palette-muted, #bbb);
  opacity: 1;
}

body.is-crm-view-active:has(#roomView:not(.is-hidden)) .topbar-search input:focus {
  background: var(--crm-palette-selection, #292a2e);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
  box-shadow: none;
}

/* The Mac header uses an important charcoal fill; keep focus equally subtle. */
html[data-trello-native] body.is-crm-view-active:has(#roomView:not(.is-hidden)) .topbar-search input:focus {
  background: var(--crm-palette-selection, #1a1b1e) !important;
}

/* CRM order controls stay in place throughout a press and release. */
body.is-crm-view-active .room-order-card,
body.is-crm-view-active .room-order-card:active {
  transform: none;
  transition: none;
}

body.is-crm-view-active:has(#roomView:not(.is-hidden)) .topbar-search-icon {
  background: transparent;
  color: var(--crm-palette-text, #f4f5f7);
}

body.is-crm-view-active:has(#roomView:not(.is-hidden)) .topbar-search-icon svg {
  width: var(--crm-search-icon-size);
  height: var(--crm-search-icon-size);
}

@media (min-width: 768px) {

  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .topbar-search input {
    background: #273658;
  }

  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .topbar-search-icon {
    background: #273658;
    border: 0;
    color: var(--crm-palette-text, #ffffff);
  }
}

/* CRM order groups use the corresponding Travel Folk status colors. */
body.is-crm-view-active .crm-orders-tabs { display:flex; gap:12px; padding:16px 24px; }
body.is-crm-view-active .crm-orders-tabs button { border:1px solid #58606b; border-radius:6px; background:transparent; color:var(--crm-palette-text, #f4f5f7); padding:10px 16px; font:inherit; cursor:pointer; }
body.is-crm-view-active .crm-orders-tabs button[aria-pressed="true"] { background:#f4f5f7; color:#202124; border-color:#f4f5f7; }
body.is-crm-view-active .crm-orders-tabs button span { margin-left:8px; font-size:12px; }
body.is-crm-view-active .crm-orders-tabs button:focus-visible { outline:2px solid #a5bbd4; outline-offset:-3px; }
/* Color belongs to the status control, not to the order row. */
body.is-crm-view-active .crm-order-group .room-order-card { background:var(--crm-palette-workspace, #202124); color:var(--crm-palette-text, #f4f5f7); }
:is(body.is-crm-view-active, html.crm-wholesale-embedded body) .room-order-status-control:is([data-room-order-status-context="table"], [data-room-order-status-context="header"]) .room-order-status-trigger {
  position:relative; display:flex; align-items:center; justify-content:center;
  width:100%; min-height:32px; box-sizing:border-box; padding:6px 24px;
  border:0; border-radius:999px; background:var(--crm-status-color, #BBC8D5);
  color:var(--crm-status-ink, #21182C); font:inherit; text-align:center; box-shadow:none; opacity:1;
}
:is(body.is-crm-view-active, html.crm-wholesale-embedded body) .room-order-status-control:is([data-room-order-status-context="table"], [data-room-order-status-context="header"]) .room-order-status-trigger span { color:var(--crm-status-ink, #21182C); text-align:center; }
:is(body.is-crm-view-active, html.crm-wholesale-embedded body) .room-order-status-control:is([data-room-order-status-context="table"], [data-room-order-status-context="header"]) .room-order-status-trigger::after {
  content:""; position:absolute; right:12px; top:50%; width:5px; height:5px;
  border-right:1.5px solid var(--crm-status-ink, #21182C); border-bottom:1.5px solid var(--crm-status-ink, #21182C); transform:translateY(-70%) rotate(45deg);
}
body.is-crm-view-active .room-order-status-control[data-room-order-status-context="table"] .room-order-status-trigger::after {
  opacity: 0.5;
}
:is(body.is-crm-view-active, html.crm-wholesale-embedded body) .room-order-status-control:is([data-room-order-status-context="table"], [data-room-order-status-context="header"]) .room-order-status-trigger:focus-visible { outline:2px solid #f4f5f7; outline-offset:2px; }


/* Keep CRM view switches in the lower panel, outside the scrolling orders. */
body.is-crm-view-active { --crm-footer-background: var(--crm-palette-header, #242528); --crm-control-hover: var(--crm-palette-hover, #262626); }
html[data-trello-native] body.is-crm-view-active { --crm-footer-background: var(--crm-palette-header, #242528); }
body.is-crm-view-active .crm-orders-footer { position:relative; display:flex; align-items:center; justify-content:center; gap:16px; box-sizing:border-box; padding:0 25px; background:var(--crm-footer-background); border:0; }
body.is-crm-view-active .crm-orders-footer .crm-orders-tabs { margin-inline-end:auto; justify-content:flex-start; gap:6px; padding:0; }
body.is-crm-view-active .crm-orders-footer .crm-orders-tabs button { padding:2px 8px; height:21px; min-height:0; font-size:12px; line-height:15px; }

/* The Mac footer still contains the filter groups when they are collapsed. */
@media (min-width: 901px) {
  html[data-trello-native] body.is-crm-view-active .crm-orders-footer:has(> [data-crm-paid-filter][aria-expanded="false"]) {
    justify-content: flex-start;
  }
  html[data-trello-native] body.is-crm-view-active .crm-orders-footer:has(.crm-orders-payment-filters)
    > [data-crm-paid-filter][aria-expanded="false"] {
    margin-inline-start: auto;
  }
}
body.is-crm-view-active .crm-order-group .room-order-card + .room-order-card { border-top:1px solid var(--crm-divider-color); }
body.is-crm-view-active { --crm-panel-divider: 1px solid var(--crm-palette-divider, rgba(255, 255, 255, 0.2)); }
body.is-crm-view-active #roomView .crm-orders-footer {
  border-top: var(--crm-panel-divider);
  height: var(--crm-menu-row-height, 27.5px);
  min-height: var(--crm-menu-row-height, 27.5px);
  max-height: var(--crm-menu-row-height, 27.5px);
}
@media (min-width:901px) {
  body.is-crm-view-active .room-main-page--orders { padding-bottom:0; }
  body.is-crm-view-active .room-main-page--orders > .room-orders-status { grid-row:1; }
  body.is-crm-view-active .room-main-page--orders > .room-orders-list { grid-row:2; }
  body.is-crm-view-active .room-main-page--orders > .crm-orders-footer { grid-row:3; margin:0 -32px; }
}
@media (max-width:900px) {
  body.is-crm-view-active .room-main-page--orders > .crm-orders-footer { position:sticky; bottom:0; z-index:5; }
}

/* The order action strip fills the bottom edge; only the details scroll. */
body.is-crm-view-active .room-main-page--orders.has-order-detail {
  display: flex;
  height: var(--crm-order-page-height, 100%) !important;
  padding: 0;
  min-height: 0;
  overflow: hidden;
}
body.is-crm-view-active #roomOrderModalRoot.crm-order-page-root {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.crm-order-page-root > .crm-order-page-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px 56px;
}
@media (min-width: 901px) {
  .crm-order-page-root > .crm-order-page-wrap { padding-right: 0; }
}
.crm-order-page-root > .room-order-workflow-actions--modal-footer {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 56px;
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  background: var(--crm-footer-background, var(--crm-palette-panel, #202124));
}
.crm-order-page-root > .room-order-workflow-actions--modal-footer .room-order-workflow-action {
  min-width: 0;
  min-height: 55px;
  margin: 0;
  border-radius: 0;
  border-width: 0 1px 0 0;
}
.crm-order-page-root > .room-order-workflow-actions--modal-footer .room-order-workflow-action:last-child { border-right: 0; }
@media (max-width: 900px) {
  .crm-order-page-root > .crm-order-page-wrap { padding: 16px; }
  .crm-order-page-root > .room-order-workflow-actions--modal-footer .room-order-workflow-action { padding: 4px; font-size: 10px; }
  .crm-order-page-root > .room-order-workflow-actions--modal-footer .room-order-workflow-action span { white-space: normal; }
}

body.is-crm-view-active:has(.has-order-detail) :is(.app-shell, .app-main, .room-view, .room-page, .room-main) { overflow: visible !important; }

/* Travel Folk order comments: right-hand quarter, independent of order details. */
.crm-order-page { display:grid; grid-template-columns:minmax(0,2.85fr) minmax(345px,1.15fr); gap:24px; }
.crm-order-main-column { min-width:0; }
.crm-order-page-root { --crm-order-content-inset:16px; }
@media (min-width: 901px) {
  .crm-order-page-root { --crm-order-content-inset:56px; }
}
.crm-order-comments-column { min-width:0; padding:16px; border-left:1px solid var(--crm-palette-divider, #383a3c); color:var(--crm-palette-text, #f4f5f7); font-size:14px; }
.crm-order-comments-column h3 { margin:0 0 16px; font-size:18px; }
.crm-comment-author,.crm-comment-meta { display:flex; align-items:center; gap:8px; }
.crm-comment-avatar { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; flex:0 0 30px; border-radius:4px; object-fit:cover; background:var(--crm-palette-workspace, #45484b); }
.crm-comment-author { margin-bottom:8px; }
.crm-order-comments-column textarea { display:block; width:100%; box-sizing:border-box; resize:vertical; min-height:100px; border:1px solid var(--crm-palette-divider, #4a4c4f); border-radius:4px; background:var(--crm-palette-workspace, #292b2e); color:var(--crm-palette-text, #fff); padding:10px; font:inherit; }
.crm-comment-actions { display:flex; gap:8px; align-items:center; justify-content:space-between; margin-top:10px; }
.crm-comment-actions button { background:#20a8d8; color:white; padding:8px 14px; border:0; border-radius:4px; cursor:pointer; font:inherit; }
.crm-comment-attach { position:relative; width:32px; height:32px; display:grid; place-items:center; border:1px solid var(--crm-palette-divider, #555); border-radius:4px; cursor:pointer; }
.crm-comment-attach input { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }
.crm-comment-error { color:#ffb4a8; margin:8px 0; }
.crm-comments-list { list-style:none; padding:0; margin:16px 0 0; }
.crm-comment { margin-bottom:10px; padding:12px; border:1px solid var(--crm-palette-divider, #45474a); border-radius:4px; overflow-wrap:anywhere; }
.crm-comment-meta { flex-wrap:wrap; gap:5px; margin-bottom:10px; }
.crm-comment-meta b { font-size:13px; }
.crm-comment-meta a { margin-left:auto; color:var(--crm-palette-muted, #a6a8ab); font-size:11px; text-decoration:none; }
.crm-comment-meta button { border:0; background:none; color:var(--crm-palette-muted, #a9acb0); cursor:pointer; }
.crm-comment-text { white-space:pre-wrap; line-height:1.5; }
.crm-comment-picture { width:100%; border:0; padding:0; margin-top:10px; background:none; cursor:zoom-in; }
.crm-comment-picture img,.crm-comment-preview img { display:block; max-width:100%; max-height:250px; object-fit:contain; }
.crm-comment-preview { margin-top:10px; position:relative; }
.crm-comment-preview button { position:absolute; right:4px; top:4px; border:0; border-radius:50%; background:var(--crm-palette-workspace, #222); color:white; cursor:pointer; }
.crm-comment-lightbox { max-width:95vw; max-height:95vh; padding:24px; background:var(--crm-palette-workspace, #202124); border:1px solid var(--crm-palette-divider, #555); }
.crm-comment-lightbox::backdrop { background:#000b; }
.crm-comment-lightbox img { display:block; max-width:85vw; max-height:85vh; object-fit:contain; }
.crm-comment-lightbox button { position:absolute; right:3px; top:3px; border:0; background:none; color:white; font-size:22px; cursor:pointer; }
@media(max-width:1100px) { .crm-order-page { grid-template-columns:minmax(0,1.85fr) minmax(322px,1.15fr); } .crm-order-page .room-order-modal-grid { grid-template-columns:1fr; } }
@media(max-width:700px) { .crm-order-page { grid-template-columns:1fr; } .crm-order-comments-column { border-left:0; border-top:1px solid var(--crm-palette-divider, #383a3c); padding:16px 0; } }
.crm-order-page .room-order-modal-body,.crm-order-page .room-order-modal-layout,.crm-order-page .room-order-modal-section { min-width:0; height:auto; min-height:0; }
.crm-order-page .room-order-modal-section { display:block; overflow:visible; --crm-order-section-spacing:28px; }
.crm-order-page .room-order-modal-summary {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0, 14ch) auto;
  column-gap:4px;
  row-gap:8px;
  margin-bottom:0;
  padding-block:var(--crm-order-section-spacing);
}
@media (min-width: 901px) {
  .crm-order-page .room-order-modal-summary {
    box-sizing:border-box;
    min-height:calc(2 * var(--crm-list-row-height));
    align-content:center;
    padding-block:8px;
  }
}
.crm-order-page .room-order-modal-total { display:grid; grid-column:2 / -1; grid-template-columns:subgrid; }
.crm-order-page .room-order-modal-total > strong { grid-column:1 / -1; }
.crm-order-summary-quantity { grid-column:1; align-self:baseline; color:rgba(255,255,255,.54); font-size:13px; line-height:1.4; font-weight:500; }
.crm-order-page .room-order-modal-summary > .crm-order-paid { grid-column:2 / -1; align-self:baseline; }
.crm-order-page .room-order-modal-total,
.crm-order-payment-method,
.crm-order-total-label,.crm-order-paid { color:rgba(255,255,255,.54); font-size:13px; line-height:1.4; font-weight:500; }
.crm-order-page .crm-order-total-label { display:none; }
/* The payment detail is shown in the desktop CRM order summary. */
.crm-order-payment-method { display:none; }
@media (min-width:768px) {
  .crm-order-page .room-order-modal-total { align-self:start; }
  .crm-order-payment-method { display:grid; align-self:start; min-width:0; }
  .crm-order-payment-method strong { color:var(--crm-palette-text, #fff); font-size:16px; line-height:1.4; font-weight:600; overflow-wrap:anywhere; }
}
.crm-order-method-label { color:rgba(255,255,255,.54); }
.crm-order-shipping-cost { color:var(--crm-palette-text, #fff); font-size:13px; line-height:1.4; font-weight:500; }
.crm-order-page :is(.crm-order-paid, .crm-order-shipping-cost) { display:grid; grid-column:1 / -1; grid-template-columns:subgrid; align-items:baseline; column-gap:4px; white-space:nowrap; }
.crm-order-page .crm-order-shipping-cost > span { display:block; min-height:0; padding:0; background:none; font:inherit; color:inherit; }
.crm-order-page :is(.crm-order-paid, .crm-order-shipping-cost) > span:first-child { text-align:right; }
.crm-order-page :is(.crm-order-paid, .crm-order-shipping-cost) input { justify-self:end; box-sizing:border-box; width:100%; min-width:0; field-sizing:fixed; appearance:none; border:0; box-shadow:none; border-radius:0; padding:0 2px; background:transparent; color:inherit; font-family:inherit; font-weight:700; text-align:right; }
.crm-order-page .room-order-modal-total > strong,
.crm-order-page :is(.crm-order-paid, .crm-order-shipping-cost) input { font-size:16px; }
.crm-order-page :is(.crm-order-paid, .crm-order-shipping-cost) input::placeholder { color:inherit; opacity:1; }
.crm-order-page :is(.crm-order-paid, .crm-order-shipping-cost) input:focus { outline:1px solid currentColor; outline-offset:2px; }
.crm-order-page :is(.crm-order-paid, .crm-order-shipping-cost) input:focus::placeholder { color:transparent; }
.crm-order-page .room-order-modal-grid { grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:20px; }
/* Align customer details with the summary and delivery section. */
.crm-order-page .room-order-modal-panel--details { padding-left:0; }
.crm-order-page .room-order-modal-panel--workflow { grid-column:1/-1; border-top:1px solid var(--crm-palette-divider, #383a3c); }
.crm-order-page .room-order-modal-panel--workflow::before { display:none; }
/* An empty accounting panel must not leave a spacer above delivery. */
.crm-order-page .room-order-modal-panel--workflow:not(:has(*)) { display:none; }
.crm-order-page .room-order-modal-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.crm-order-page .room-order-modal-item > em { grid-column:2; grid-row:1; text-align:right; align-self:start; }
.crm-order-page .room-order-modal-item > b { grid-column:2; grid-row:2; align-self:start; }
.crm-order-page .room-order-modal-item-main { grid-column:1; grid-row:1 / span 2; display:grid; grid-template-rows:subgrid; min-width:0; }
.crm-order-page .room-order-modal-item-main > strong { grid-row:1; }
.crm-order-page .room-order-modal-item-main .crm-order-item-meta { grid-row:2; display:block; margin:0; }
.crm-order-page .room-order-modal-item-main > strong,
.crm-order-page .room-order-modal-item-main .crm-order-item-meta,
.crm-order-page .room-order-modal-item > b,
.crm-order-page .crm-item-menu summary > b { font-size:15px; line-height:21px; color:var(--crm-palette-text, #fff); font-style:normal; }
.crm-order-page .room-order-modal-item-main > strong,
.crm-order-page .room-order-modal-item-main .crm-order-item-meta { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.crm-order-page { --crm-item-marker-pink:#ff1493; }
.crm-order-product-thumbnail, .crm-item-marker { display:none; }
@media (min-width:768px) {
  .crm-order-page .room-order-modal-item-main { --crm-item-thumbnail-size:50.4px; }
  .crm-order-page .crm-order-product-thumbnail:not([hidden]) {
    display:block;
    grid-column:1;
    grid-row:1 / span 2;
    width:var(--crm-item-thumbnail-size);
    height:var(--crm-item-thumbnail-size);
    margin:0;
    border-radius:6px;
    background:#f9f9f9;
    object-fit:contain;
  }
  .crm-order-page .room-order-modal-item-main:has(.crm-order-product-thumbnail:not([hidden])) { grid-template-columns:var(--crm-item-thumbnail-size) minmax(0,1fr); column-gap:28px; }
  .crm-order-page .room-order-modal-item-main:has(.crm-order-product-thumbnail:not([hidden])) > :not(img, .crm-item-marker) { grid-column:2; }
  .crm-order-page .crm-order-product-thumbnail:not([hidden]) + .crm-item-marker {
    display:grid;
    place-items:center;
    grid-column:1;
    grid-row:1 / span 2;
    align-self:start;
    justify-self:start;
    box-sizing:border-box;
    width:var(--crm-order-content-inset);
    height:var(--crm-item-thumbnail-size);
    margin-inline-start:calc(-1 * var(--crm-order-content-inset));
    padding:0;
    border:0;
    background:transparent;
    cursor:pointer;
  }
  .crm-item-marker::before {
    content:"";
    width:3px;
    height:100%;
    background:var(--crm-item-marker-color, transparent);
    pointer-events:none;
  }
  .crm-item-marker[data-crm-item-marker="1"] { --crm-item-marker-color:#d7ff4f; }
  .crm-item-marker[data-crm-item-marker="2"] { --crm-item-marker-color:var(--crm-item-marker-pink); }
}
.crm-order-page .room-order-workflow-actions--modal-footer { display:flex; flex-wrap:wrap; margin-top:20px; }
.crm-order-page .room-order-workflow-actions--modal-footer > button { flex:1 1 130px; }
.crm-order-page .room-order-modal-items { overflow:visible; padding-right:0; }
@media(max-width:1100px) { .crm-order-page .room-order-modal-grid { grid-template-columns:minmax(0,1fr); } }
.crm-comment-lightbox nav { display:flex; justify-content:space-between; margin-top:12px; }
.crm-comment-lightbox nav button { position:static; padding:8px 20px; }
.crm-order-method-label,
.crm-order-comments-column .crm-customer-comment-label { font-size:13px; line-height:1.4; font-weight:500; }
.crm-order-comments-column .crm-customer-comment-label { margin:0 0 4px; color:#f0e9ff; letter-spacing:inherit; }
.crm-customer-comment { padding:12px; margin-bottom:16px; background:var(--purple); color:var(--crm-palette-text, #fff); border-radius:4px; white-space:pre-wrap; }

/* CRM comments: graphite surfaces, consistent spacing and rounded controls. */
.crm-order-comments-column {
  --comment-surface:var(--crm-palette-panel, #2b2d30);
  --comment-line:var(--crm-palette-divider, #45484d);
  --comment-muted:var(--crm-palette-muted, #aeb2ba);
  --comment-accent:var(--crm-palette-lime, #d8f66b);
  padding:16px 20px;
}
.crm-order-comments-column h3 { margin-bottom:20px; font-size:19px; letter-spacing:-.3px; }
.crm-comments-heading { position:relative; display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:20px; }
.crm-order-comments-column .crm-comments-heading h3 { margin:0; }
.crm-comment-phrases-toggle {
  flex:none; width:34px; height:34px; border:0; border-radius:8px;
  background:transparent; color:var(--crm-palette-secondary, #d8dbe1); font:inherit; font-size:24px; line-height:1; cursor:pointer;
}
.crm-comment-phrases-toggle:hover, .crm-comment-phrases-toggle[aria-expanded="true"] { background:var(--crm-palette-selection, #393c41); }
.crm-comment-phrases-menu {
  position:absolute; top:0; right:42px; z-index:5;
  box-sizing:border-box; width:240px; max-width:calc(100% - 42px);
  padding:4px; border:1px solid var(--comment-line); border-radius:8px;
  background:var(--crm-palette-panel, #292b2e); box-shadow:0 4px 16px #0005;
}
.crm-comment-phrases-menu button {
  display:block; width:100%; padding:8px; border:0; border-radius:4px;
  background:transparent; color:var(--crm-palette-text, #f4f5f7); font:inherit; font-size:13px; text-align:left; cursor:pointer;
}
.crm-comment-phrases-menu button:hover, .crm-comment-phrases-menu button:focus-visible { background:var(--crm-palette-hover, #393c41); }
.crm-customer-comment { padding:16px; margin-bottom:28px; border-radius:14px; line-height:1.5; }
.crm-comment-composer { padding:16px; border:1px solid var(--comment-line); border-radius:20px; background:linear-gradient(145deg,var(--crm-palette-workspace, #36383c) 0%,var(--crm-palette-workspace, #292b2f) 100%); transition:border-color .15s; }
.crm-comment-composer:focus-within { border-color:var(--crm-palette-lime, #a6b873); }
.crm-comment-author { gap:10px; margin:0 0 12px; color:var(--crm-palette-secondary, #e4e6eb); font-size:13px; font-weight:600; }
.crm-comment-avatar { width:34px; height:34px; flex-basis:34px; border-radius:50%; background:var(--crm-palette-workspace, #50545b); color:var(--crm-palette-text, #f4f5f7); }
.crm-order-comments-column .crm-comment-composer textarea { min-height:45px; padding:0; border:0; border-radius:0; outline:none; background:transparent; box-shadow:none; color:var(--crm-palette-text, #f4f5f7); font:inherit; font-size:14px; line-height:1.6; resize:none; overflow:hidden; transition:height .18s ease; }
.crm-comment-composer textarea::placeholder { color:var(--comment-muted); opacity:1; }
.crm-comment-actions { gap:12px; margin-top:16px; }
.crm-comment-actions button { min-height:38px; padding:9px 17px; border:1px solid transparent; border-radius:19px; background:var(--comment-accent); color:#242820; font-size:13px; line-height:18px; font-weight:600; }
.crm-comment-actions button:hover { background:var(--crm-palette-lime, #e5ff8c); }
.crm-comment-actions button:disabled { opacity:.5; cursor:wait; }
.crm-comment-attach { width:38px; height:38px; box-sizing:border-box; border:1px solid var(--crm-palette-divider, #54585f); border-radius:50%; background:var(--crm-palette-workspace, #34373c); color:var(--crm-palette-secondary, #e2e5eb); font-size:20px; }
.crm-comment-attach:hover { background:var(--crm-palette-hover, #454950); }
.crm-order-comments-column button:focus-visible,.crm-comment-attach:focus-within { outline:2px solid var(--comment-accent); outline-offset:3px; }
.crm-comment-error { margin:12px 0 0; font-size:12px; line-height:1.5; }
.crm-comment-error:empty { display:none; }
.crm-comments-list { margin-top:24px; }
.crm-comment { padding:16px; margin-bottom:14px; border:1px solid var(--crm-palette-divider, #3e4147); border-radius:16px; background:var(--crm-palette-workspace, #282a2e); box-shadow:none; }
.crm-comment-meta { gap:8px; margin-bottom:14px; }
.crm-comment-meta a { color:var(--comment-muted); font-size:11px; font-style:normal; }
.crm-comment-meta button { min-width:28px; min-height:28px; border-radius:14px; background:var(--crm-palette-workspace, #35383e); color:var(--crm-palette-secondary, #dce0e7); }
.crm-comment-date-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; margin-left:auto; }
.crm-comment-date-actions [data-comment-delete] { display:grid; place-items:center; padding:0; background:none; }
.crm-comment-date-actions svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }
@media (hover:hover) and (pointer:fine) {
  .crm-comment-date-actions { display:grid; justify-items:end; }
  .crm-comment-date-actions > * { grid-area:1 / 1; }
  .crm-comment-date-actions [data-comment-delete] { opacity:0; pointer-events:none; }
  .crm-comment:is(:hover, :focus-within) .crm-comment-date-actions:not(:has(a:focus-visible)) [data-comment-delete] { opacity:1; pointer-events:auto; }
  .crm-comment:is(:hover, :focus-within) .crm-comment-date-actions:has([data-comment-delete]) a:not(:focus-visible) { opacity:0; pointer-events:none; }
}
.crm-comment-text { font-size:14px; line-height:1.6; }
.crm-comment-status-change { font-size:13px; overflow-wrap:anywhere; }
@media (min-width: 768px) {
  .crm-comment-changes { display:grid; gap:12px; white-space:normal; }
  .crm-comment-change { overflow-wrap:anywhere; }
  .crm-comment-change-label { display:block; color:var(--comment-muted, var(--crm-palette-muted, #a6a8ab)); font-size:12px; margin-bottom:3px; }
  .crm-comment-change-before { color:var(--comment-muted, var(--crm-palette-muted, #a6a8ab)); white-space:pre-wrap; }
  .crm-comment-change-arrow { color:#d6f569; padding:0 3px; }
  .crm-comment-change strong { font-weight:500; white-space:pre-wrap; }
}

.crm-comment-picture img,.crm-comment-preview img { border-radius:12px; }
.crm-comment-preview button { width:28px; height:28px; }
.crm-comment-lightbox { border-radius:20px; }
@media(max-width:700px) { .crm-order-comments-column { padding:24px 0; } }
body.is-crm-view-active .room-view:has(.has-order-detail) { height: var(--crm-order-page-height, 100%) !important; }

/* CRM action buttons share the comment Send button's capsule shape. */
body.is-crm-view-active :is(
  .room-order-modal-invoice-button,
  .room-order-workflow-action,
  .crm-orders-tabs button,
  .crm-comment-actions button,
  .crm-comment-meta button
) {
  border-radius: 999px;
}
/* The fixed status strip shares the list footer colour and has square cells. */
body.is-crm-view-active .crm-order-page-root > .room-order-workflow-actions--modal-footer .room-order-workflow-action {
  border-radius: 0;
}
body.is-crm-view-active .crm-order-page-root > .room-order-workflow-actions--modal-footer .room-order-workflow-action:not(:hover):not(:focus-visible):not(.is-done) {
  background: transparent;
}

/* Schedule: luminous glass surfaces inspired by the installed CleanMyMac.
   Scoped to desktop schedule; state colours and calendar geometry stay intact. */
@media (min-width: 901px) {
  body.is-milio-schedule-active {
    --milio-schedule-surface: #0b1426;
    --milio-schedule-header: #1b324d;
    --schedule-glass-edge: rgb(170 211 255 / 18%);
    --schedule-glow: #78baff;
  }
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) .app-main,
  body.is-milio-schedule-active #milioSchedulePage {
    background: radial-gradient(ellipse at 10% 0%, #153e6b 0%, transparent 52%),
      radial-gradient(ellipse at 95% 15%, #153452 0%, transparent 50%), #0b1426;
  }
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) .topbar {
    background: linear-gradient(115deg, #154b80, #176da2 52%, #183451);
    box-shadow: inset 0 -1px rgb(205 233 255 / 15%), 0 8px 30px rgb(2 10 24 / 18%);
  }
  body.is-milio-schedule-active :is(.milio-schedule-picker-toggle, .milio-schedule-nav-button, .milio-schedule-mode-button) {
    background: linear-gradient(135deg, rgb(255 255 255 / 13%), rgb(255 255 255 / 5%));
    border: 1px solid var(--schedule-glass-edge);
    border-radius: 10px;
    color: #f4f9ff;
    box-shadow: inset 0 1px rgb(255 255 255 / 8%);
    transition: background-color 180ms ease, border-color 180ms ease;
  }
  body.is-milio-schedule-active :is(.milio-schedule-picker-toggle, .milio-schedule-nav-button, .milio-schedule-mode-button):hover {
    background-color: rgb(120 186 255 / 16%);
    border-color: #80b6e5;
  }
  body.is-milio-schedule-active[data-page-overlay-tone] :is(
    .milio-schedule-month-panel, .milio-schedule-mark-options, .milio-schedule-picker-panel,
    #milioScheduleVisibilityDialog, #settingsMenu, #catalogModal.is-navigation-drawer
  ) {
    background: linear-gradient(145deg, rgb(25 54 86 / 96%), rgb(11 25 43 / 97%));
    border-color: var(--schedule-glass-edge);
    box-shadow: inset 0 1px rgb(255 255 255 / 10%), 0 20px 50px rgb(2 9 20 / 45%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  body.is-milio-schedule-active[data-page-overlay-tone] :is(
    .milio-schedule-month-options button[aria-pressed="true"],
    .milio-schedule-mark-options button[aria-checked="true"],
    .milio-schedule-picker-option[aria-selected="true"], .milio-schedule-mode-button.is-active
  ) {
    background: linear-gradient(115deg, #246fb5, #168ba8);
    color: #fff;
    box-shadow: inset 0 1px rgb(255 255 255 / 15%);
  }
  body.is-milio-schedule-active :is(.milio-schedule-picker-toggle, .milio-schedule-nav-button,
    .milio-schedule-mode-button, .milio-schedule-worker-avatar):focus-visible {
    outline: 2px solid #b7e0ff;
    outline-offset: 3px;
  }
  @keyframes schedule-soft-glow {
    0%, 100% { box-shadow: 0 0 8px rgb(108 191 255 / 20%); }
    50% { box-shadow: 0 0 18px rgb(108 191 255 / 48%); }
  }
}
@media (prefers-reduced-motion: reduce) {
  body.is-milio-schedule-active :is(.milio-schedule-day, .milio-schedule-picker-toggle,
    .milio-schedule-nav-button, .milio-schedule-mode-button) { transition: none; }
}
body.is-milio-schedule-active .topbar-brand.is-kanban-logo-mode .topbar-logo--text {
  display: flex; align-items: center; font-size: 0; line-height: 1; transform: none;
}
@media (min-width: 901px) {
  body.is-milio-schedule-active .topbar-logo--text { margin-right: 12px; }
  body.is-milio-schedule-active:has(#kanbanView:not(.is-hidden)) #milioScheduleVisibilityButton {
    background: linear-gradient(135deg, rgb(255 255 255 / 13%), rgb(255 255 255 / 5%));
    border-color: rgb(170 211 255 / 25%);
    box-shadow: inset 0 1px rgb(255 255 255 / 10%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

/* Trello: gradients only; existing geometry, controls and branding are preserved. */
@media (min-width: 901px) {
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .topbar {
    background-image: linear-gradient(115deg, rgb(255 255 255 / 9%), transparent 55%, rgb(0 0 0 / 10%));
  }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .panel.kanban-column {
    background-image: linear-gradient(145deg, rgb(255 255 255 / 5%), transparent 55%, rgb(0 0 0 / 5%));
  }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .topbar :is(#boardsOpenButton, #kanbanAddColumnButton,
    #kanbanColumnFilterButton, #kanbanArchiveToggleButton, #settingsMenuButton, #catalogOpenButton) {
    background: transparent;
    border: 0;
    box-shadow: none;
    width: 44px;
    height: 44px;
    padding: 0;
  }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden))[data-page-overlay-tone] :is(#boardsModal:not(.is-crm-tasks-board *), #settingsMenu,
    #catalogModal.is-navigation-drawer, .kanban-column-action-menu, .kanban-card-action-menu,
    .kanban-column-filter-modal:not(.is-crm-tasks-board *), .kanban-card-detail-modal:not(.is-crm-tasks-board *)) {
    background-image: linear-gradient(145deg, rgb(149 80 215 / 13%), rgb(34 15 58 / 10%)) !important;
  }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden))[data-page-overlay-tone] :is(#catalogModal, #boardsModal) .catalog-modal-card[aria-current="page"] {
    background-image: linear-gradient(115deg, #7041a7, #9756bf);
  }
}

/* Trello header follows the schedule control scale. Board content is unchanged. */
@media (min-width: 901px) {
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .topbar { position: relative; }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .topbar-actions { position: static; }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .topbar-automation-button { min-width: 0; padding-inline: 12px; }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .topbar-brand { position: static; min-height: 54px; }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .topbar-kanban-search {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%); width: 320px; min-width: 0; max-width: 320px;
    height: 44px; margin: 0;
  }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .topbar-kanban-search input {
    height: 44px; min-height: 44px; padding: 10px 16px 10px 56px;
    border: 1px solid rgb(214 181 255 / 25%); border-radius: 999px;
    background: linear-gradient(135deg, rgb(255 255 255 / 13%), rgb(255 255 255 / 5%));
    font-size: 14px; font-weight: 400; box-shadow: none;
  }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .topbar-kanban-search .topbar-search-icon {
    left: 16px; width: 24px; height: 24px; padding: 0;
    border: 0; border-radius: 0; background: transparent; box-shadow: none;
  }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .topbar-kanban-search .topbar-search-icon svg { width: 24px; height: 24px; }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) :is(#kanbanAddColumnButton, #kanbanArchiveToggleButton, #boardsOpenButton) > svg {
    width: 24px; height: 24px; stroke-width: 2; transform: none;
  }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) #catalogOpenButton .catalog-menu-icon { width: 24px; height: 24px; stroke-width: 1.8; transform: none; }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) #settingsMenuButton > svg { width: 24px; height: 24px; stroke-width: 2; transform: none; }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .topbar-user-avatar { box-sizing: border-box; width: 38px; height: 38px; flex: 0 0 38px; font-size: 19px; box-shadow: none; transform: none; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .topbar { padding-bottom: 64px; }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .topbar-brand { min-height: 48px; }
  body:not(.is-milio-schedule-active):has(#kanbanView:not(.is-hidden)) .topbar-kanban-search { top: auto; bottom: 10px; transform: translateX(-50%); }
}

/* CRM navigation matches the charcoal application header. */
body.is-crm-view-active #catalogModal.is-navigation-drawer {
  --page-overlay-background: var(--crm-palette-workspace, #121316);
  --page-overlay-ink: #f4f5f7;
  --page-overlay-border: var(--crm-palette-divider, #383a3f);
  --page-overlay-hover: #292b30;
  background: var(--crm-palette-workspace, #121316) !important;
  color: var(--crm-palette-text, #f4f5f7);
  border-color: var(--crm-palette-divider, #383a3f);
}
body.is-crm-view-active #catalogModal.is-navigation-drawer .catalog-menu-header {
  display: none;
}

body.is-crm-view-active {
  --crm-text-hover: var(--crm-palette-lime, #d8f66b);
  --crm-text-hover-muted: rgba(216, 246, 107, .62);
}

/* Travel Folk's compact round staff avatars, at the right edge of CRM orders. */
@media (min-width: 901px) {
  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .room-orders-list {
    --contentds-room-orders-min-width: 1312.72px;
    --contentds-room-orders-grid: minmax(82px,.7fr) minmax(167px,1.46fr) minmax(194px,1.2fr) minmax(78px,.65fr) max(60px, calc((100% - 170.36px) * 0.58 / 9.85)) minmax(92px,.75fr) minmax(132px,1.15fr) minmax(160px,1.15fr) repeat(2, 70.36px);
  }
  body.is-crm-view-active .room-orders-list .room-orders-table-head,
  body.is-crm-view-active .room-orders-list .room-order-card {
    min-width: var(--contentds-room-orders-min-width);
    padding-right: 0;
  }
  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .room-orders-table-head > span:nth-child(5),
  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .room-orders-table-head > span:nth-child(8),
  body.is-crm-view-active .room-order-card-cell--date {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    justify-content: center;
    justify-items: center;
  }
  body.is-crm-view-active:has(#roomView:not(.is-hidden)) .room-order-card-cell--city {
    text-align: left;
    justify-content: start;
    justify-items: start;
  }
  .crm-staff-heading-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}
body.is-crm-view-active .crm-order-assignee-cell { display:flex; align-items:center; justify-content:center; min-width:0; }
body.is-crm-view-active .crm-order-assignee-avatar {
  display:flex; align-items:center; justify-content:center; width:35px; height:35px; min-height:35px; flex:0 0 35px;
  padding:0; border:0; border-radius:50%; background:transparent; color:var(--crm-palette-secondary, #ccc); overflow:hidden; cursor:pointer; box-shadow:none; outline:none;
}
body.is-crm-view-active .crm-order-assignee-avatar:focus-visible { filter:brightness(1.25); }
.crm-order-assignee-avatar img, .crm-assignee-option-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.crm-order-assignee-avatar svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; }
:is(#crm-assignee-picker, #crm-header-staff-filter) { position:fixed; margin:0; width:max-content; max-width:calc(100vw - 16px); max-height:calc(100vh - 16px); box-sizing:border-box; padding:12px; background:var(--crm-palette-header, #202124); color:var(--crm-palette-text, #eee); border:1px solid var(--crm-palette-divider, #555); border-radius:10px; box-shadow:none; overflow:auto; }
:is(#crm-assignee-picker, #crm-header-staff-filter):focus { outline:none; }
:is(#crm-assignee-picker, #crm-header-staff-filter)::backdrop { background:transparent; }
:is(#crm-assignee-picker, #crm-header-staff-filter) .crm-assignee-options { display:grid; grid-template-columns:repeat(4, 45px); gap:4px; }
:is(#crm-assignee-picker, #crm-header-staff-filter) .crm-assignee-options > button { display:flex; align-items:center; justify-content:center; width:45px; height:45px; min-height:45px; padding:5px; border:0; border-radius:50%; background:transparent; color:var(--crm-palette-text, #eee); font-size:14px; cursor:pointer; }
:is(#crm-assignee-picker, #crm-header-staff-filter) .crm-assignee-options > button:hover { background:#ffffff14; }
:is(#crm-assignee-picker, #crm-header-staff-filter) .crm-assignee-options > button[aria-pressed="true"],
:is(#crm-assignee-picker, #crm-header-staff-filter) .crm-assignee-options > button:focus-visible { outline:1px solid var(--crm-palette-lime, #d8f66b); outline-offset:-2px; }
.crm-assignee-options > button:disabled { opacity:.5; }
.crm-assignee-option-avatar { width:35px; height:35px; flex:0 0 35px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--crm-palette-workspace, #36383c); overflow:hidden; }
:is(#crm-assignee-picker, #crm-header-staff-filter) [role="status"] { margin:8px 4px 0; font-size:13px; color:var(--crm-palette-secondary, #ccc); }
:is(#crm-assignee-picker, #crm-header-staff-filter) [role="status"]:empty { display:none; }

/* Keep the comment rail full-height and the workflow strip under order details. */
@media (min-width: 701px) {
  body.is-crm-view-active #roomOrderModalRoot.crm-order-page-root {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max(345px, 28.75%);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .crm-order-page-root > .crm-order-page-wrap,
  .crm-order-page-root .crm-order-page { display: contents; }
  .crm-order-page-root .crm-order-main-column {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    overflow: auto;
    padding: 24px var(--crm-order-content-inset);
  }
  .crm-order-page-root .crm-order-comments-column {
    grid-column: 2;
    grid-row: 1 / -1;
    min-height: 0;
    overflow: auto;
    padding: 20px 21px var(--crm-list-row-height);
    /* Keep the 1px divider opaque independently of the content fade. */
    mask: linear-gradient(#000, #000) left / 1px 100% no-repeat,
          linear-gradient(to bottom,
            #000 calc(100% - var(--crm-list-row-height)),
            rgb(0 0 0 / 25%) calc(100% - var(--crm-list-row-height) / 2),
            transparent);
  }
}
@media (min-width: 701px) and (max-width: 1100px) {
  body.is-crm-view-active #roomOrderModalRoot.crm-order-page-root {
    grid-template-columns: minmax(0, 1fr) max(322px, 38.333333%);
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  .crm-order-page-root .crm-order-main-column { padding-block: 16px; }
  .crm-order-page-root .crm-order-comments-column { padding-top: 20px; }
}

@media (min-width: 768px) {
  .crm-order-page-root .crm-order-main-column { padding-top: 0; }
  .crm-order-page-root .crm-order-page .room-order-modal-head {
    box-sizing: border-box;
    min-height: calc(2 * var(--crm-list-row-height));
    align-content: center;
    row-gap: 8px;
    padding-block: 8px;
    border-bottom: var(--crm-panel-divider);
  }
}

@media (prefers-reduced-motion: reduce) {
  .crm-order-comments-column .crm-comment-composer textarea { transition: none; }
}

/* Customer name is exclusive to the CRM order list. */
body.is-crm-view-active .room-order-card-cell--customer-name {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* Keep the CDEK outline consistent on narrow CRM layouts too. */
body.is-crm-view-active .room-order-modal-cdek-button {
  border: 1px solid var(--crm-palette-lime, #d8f66b);
  background: transparent;
  color: var(--crm-palette-text, #fff);
}
body.is-crm-view-active .room-order-modal-cdek-button:is(:hover, :focus-visible) {
  color: var(--crm-palette-lime, #d8f66b);
}

#crm-assignee-settings { width:min(640px, calc(100vw - 32px)); max-height:calc(100vh - 32px); box-sizing:border-box; overflow:auto; padding:0 20px 20px; color:var(--crm-palette-text, #eee); border:1px solid #ffffff0f; border-radius:10px; box-shadow:none; outline:none; }
#crm-assignee-settings h2 {
  display: flex;
  align-items: center;
  min-height: calc(2 * var(--crm-menu-row-height, 31.625px));
  margin: 0 -20px 8px;
  padding-inline: 20px;
  border-bottom: 1px solid var(--crm-divider-color, #ffffff0f);
  font-size: 20px;
  color: inherit;
}
#crm-assignee-settings p { color:inherit; }
#crm-assignee-settings fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 16px;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
#crm-assignee-settings label { color:var(--crm-palette-text, #eee); font-size:14px; display:flex; align-items:center; gap:8px; padding:6px 0; }
#crm-assignee-settings label > span:last-child { overflow-wrap:anywhere; color:var(--crm-palette-text, #eee) !important; }
#crm-assignee-settings input[type="checkbox"] {
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--crm-palette-divider, #a0a0a0);
  border-radius: 0;
  background: transparent;
}

#crm-assignee-settings input[type="checkbox"]:checked {
  border-color: var(--crm-palette-lime, #d8f66b);
  background: var(--crm-palette-lime, #d8f66b);
}

#crm-assignee-settings input[type="checkbox"]:checked::after {
  content: "";
  width: 4px;
  height: 7px;
  border: solid #171717;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

[id^="crmAssigneeSettings-"][hidden] { display:none !important; }

/* CRM money uses the same lime as the Arrived status. */
:is(body.is-crm-view-active, html.crm-wholesale-embedded body) .room-order-card-cell--amount.is-fully-paid {
  color: var(--crm-palette-lime, #D6FA55);
}

body.is-crm-view-active .crm-orders-footer:has([data-crm-paid-filter][aria-expanded="false"])
  > :is(.crm-orders-delivery-filters, .crm-orders-payment-filters) {
  display: none;
}

body.is-crm-view-active .crm-orders-footer .crm-orders-delivery-filters {
  margin-inline: auto;
  flex-wrap: wrap;
}

@media (min-width: 901px) {
  body.is-crm-view-active .crm-orders-footer .crm-orders-delivery-filters[style] {
    position: absolute;
    left: var(--crm-delivery-filter-offset);
    margin-inline: 0;
  }
}

body.is-crm-view-active :is(.crm-orders-footer .crm-orders-paid-filter, .crm-purchases-footer > [data-purchase-control="open-cart"]) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 6px;
  margin-inline-start: auto;
  min-width: 36px;
  min-height: 36px;
  padding: 4px 6px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--crm-palette-secondary, #cdcdcd);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

:is(.crm-orders-paid-filter, .crm-purchases-footer > [data-purchase-control="open-cart"]) svg { width: 21px; height: 21px; }
.crm-purchases-footer > [data-purchase-control="open-cart"] > span,
.crm-purchases-clear-cart,
.crm-purchases-cart-supplier > summary {
  font-size: 12px;
  color: var(--crm-palette-muted, #bfc1c6);
}
.crm-purchases-footer > [data-purchase-control="open-cart"]:hover { color: var(--crm-palette-text, #fff); }
body.is-crm-view-active .crm-purchases-footer > [data-purchase-control="open-cart"]:focus { outline: none; }
body.is-crm-view-active .crm-purchases-footer > [data-purchase-control="open-cart"]:is(:hover, :focus-visible) { background: transparent; }
body.is-crm-view-active .crm-orders-footer .crm-orders-paid-filter:is(:hover, [aria-expanded="true"]) {
  color: var(--crm-palette-text, #fff);
}

body.is-crm-view-active .crm-orders-footer .crm-orders-paid-filter[aria-expanded="true"] {
  background-color: var(--crm-palette-selection, #383a3d);
}

body.is-crm-view-active .crm-orders-footer .crm-orders-paid-filter:focus {
  outline: none;
}

body.is-crm-view-active .crm-orders-footer .crm-orders-paid-filter:focus-visible svg {
  filter: drop-shadow(0 0 2px currentColor);
}

body.is-crm-view-active .crm-orders-footer .crm-orders-paid-filter span {
  position: absolute;
  inset-inline-end: 100%;
  pointer-events: none;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--crm-palette-lime, #d6fa55);
  color: #000 !important;
  -webkit-text-fill-color: #000;
  font-variant-numeric: tabular-nums;
}

/* Footer view counters, including the Mac shell's injected button styles. */
body.is-crm-view-active .crm-orders-footer .crm-orders-tabs button:is([data-crm-orders-view], [data-crm-order-delivery]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: auto;
  padding: 4px 6px;
  background: transparent !important;
  border-color: transparent !important;
  white-space: nowrap;
  color: var(--crm-palette-secondary, #cccccc);
}
body.is-crm-view-active .crm-orders-footer .crm-orders-tabs button[aria-pressed="true"] {
  color: white;
}
body.is-crm-view-active .crm-orders-footer .crm-orders-tabs button span {
  margin: 0;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--crm-palette-panel, #303237);
  font-variant-numeric: tabular-nums;
}
html body.is-crm-view-active .crm-orders-footer .crm-orders-tabs button:is([data-crm-orders-view], [data-crm-order-delivery])[aria-pressed="true"] span {
  background: var(--crm-palette-lime, #d6fa55);
  color: #141512 !important;
}

/* Show each ordered product on its own line in the CRM table. */
.crm-order-product-panel .room-order-items-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows .2s ease;
}
.crm-order-product-panel.is-open .room-order-items-panel { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: reduce) {
  .crm-order-product-panel .room-order-items-panel { transition: none; }
}
.crm-order-product-list {
  min-height: 0;
  overflow: hidden;
}
body.is-crm-view-active { --crm-selected-row-background: linear-gradient(135deg, var(--crm-palette-workspace, #34363a) 0%, var(--crm-palette-workspace, #292b2e) 100%); }
.crm-order-product-row {
  background: var(--crm-palette-workspace, #26272a);
  box-shadow: inset 0 1px var(--crm-divider-color);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: var(--crm-list-row-height);
  padding-inline: 16px;
  gap: 12px;
}
.crm-order-product-image, .crm-order-product-quantity { display: none; }
.crm-order-product-name { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.crm-order-product-size { grid-column: 1; grid-row: 2; min-width: 0; overflow-wrap: anywhere; text-align: left; }
.crm-order-product-size:empty { display: none; }
.crm-order-product-price { grid-column: 2; grid-row: 1; color: var(--crm-palette-text, #f4f5f7); text-align: center; white-space: nowrap; }
@media (min-width: 901px) {
  .crm-order-product-row {
    grid-template-columns: var(--contentds-room-orders-grid);
    gap: 0;
    padding: 0;
    min-width: var(--contentds-room-orders-min-width);
  }
  .crm-order-product-image { display: block; grid-column: 1; grid-row: 1; justify-self: center; width: 44px; height: 44px; object-fit: contain; border-radius: 4px; }
  .crm-order-product-image--empty { visibility: hidden; }
  .crm-order-product-quantity { display: block; grid-column: 4; grid-row: 1; text-align: center; white-space: nowrap; color: var(--crm-palette-text, #f4f5f7); }
  .crm-order-product-name { grid-column: 2; grid-row: 1; padding-inline: 6px; }
  .crm-order-product-size { grid-column: 3; grid-row: 1; padding-inline: 6px; text-align: center; }
  .crm-order-product-price { grid-column: 7; }
}

#crmSidebarToggle, .crm-nav-icon { display: none; }
.crm-menu-toggle {
  position: absolute;
  z-index: 1;
  right: 2px;
  bottom: 4px;
  width: 32px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--crm-palette-secondary, #ccc);
  cursor: pointer;
}
.crm-menu-toggle:is(:hover, :focus-visible) { color: white; background: var(--crm-palette-hover, #34363a); }
.crm-menu-toggle svg,
.crm-nav-icon,
.crm-accounting-items svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 768px) {
  body.is-crm-view-active #crmSidebarToggle { display: grid; }
  #roomView #crm-native-connection button svg {
    width: 21px;
    height: 21px;
  }
  body.is-crm-view-active #roomView.crm-menu-collapsed .room-page { grid-template-columns: var(--crm-primary-rail-width, 84px) minmax(0, 1fr); }
  body.is-crm-view-active .crm-menu-collapsed .room-nav button { justify-content: center; padding-inline: 0; }
  .crm-menu-collapsed .crm-nav-icon { display: block; }
  .crm-menu-collapsed .room-nav button > span,
  body.is-crm-view-active #roomView.crm-menu-collapsed #crm-native-connection > span { display: none; }
  #roomView.crm-menu-collapsed #crm-native-connection {
    margin: auto 0 var(--crm-sidebar-toggle-height);
    padding: 0;
    justify-content: center;
  }
  body.is-crm-view-active #roomView.crm-menu-collapsed #crmSidebarToggle {
    inset: auto 0 0;
    width: 100%;
    height: var(--crm-sidebar-toggle-height);
    border-top: var(--crm-panel-divider);
    border-radius: 0;
  }
  body.is-crm-view-active .room-nav button:last-child::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: var(--crm-divider-color);
    pointer-events: none;
  }
  #roomView.crm-menu-collapsed #crm-native-connection button {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  #roomView.crm-menu-collapsed #crm-native-connection button:enabled:is(:hover, :focus-visible),
  #roomView.crm-menu-collapsed #crmSidebarToggle:is(:hover, :focus-visible),
  #roomView .crm-retail-menu.is-collapsed #crmRetailToggle:is(:hover, :focus-visible) {
    background: var(--crm-control-hover);
  }
  .crm-menu-collapsed #crmSidebarToggle svg { transform: rotate(180deg); }
}

@media (min-width: 901px) {
  body.is-crm-view-active #roomOrdersList { padding-bottom: 0; }
  #roomView .crm-order-group .room-order-status-menu {
    left: var(--menu-left);
    top: var(--menu-top);
    width: var(--menu-width);
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    transform: none;
    max-height: var(--menu-max-height, none);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

body.is-crm-view-active { --crm-row-base-height: 55px; --crm-sidebar-toggle-height: 60.5px; --crm-divider-color: var(--crm-palette-subtle-divider, rgb(255 255 255 / 6%)); }
html[data-trello-native] body.is-crm-view-active { --crm-row-base-height: 60.5px; }
html[data-trello-native] #roomView #crm-native-connection {
  height: var(--crm-menu-row-height, 27.5px);
  border-top: var(--crm-panel-divider);
}
html.crm-wholesale-embedded,
body.is-crm-settings-active {
  --crm-row-base-height: var(--crm-embedded-row-height, 55px);
}

body.is-crm-view-active,
body.is-crm-view-active #roomView > .room-page,
body.is-crm-settings-active,
body.is-crm-settings-active #settingsView,
html.crm-wholesale-embedded {
  --crm-menu-row-height: calc(var(--crm-row-base-height, 55px) * 0.575);
  --crm-list-row-height: var(--crm-menu-row-height);
}

@media (min-width: 768px) {
  body.is-crm-view-active #roomView .room-nav button {
    box-sizing: border-box;
    height: var(--crm-menu-row-height);
    min-height: var(--crm-menu-row-height);
  }
}

@media (min-width: 901px) {
  body.is-crm-view-active .app-shell > .topbar {
    box-sizing: border-box;
    min-height: 104.5px;
    align-content: center;
    align-items: center;
  }

  body.is-crm-view-active #roomView .room-orders-table-head {
    box-sizing: border-box;
    height: var(--crm-list-row-height);
    min-height: var(--crm-list-row-height);
    max-height: var(--crm-list-row-height);
  }

  body.is-crm-view-active #roomView .room-order-card {
    box-sizing: border-box;
    min-height: var(--crm-list-row-height);
    grid-template-rows: calc(var(--crm-list-row-height) - 1px) auto;
    align-content: start;
    padding-block: 0;
  }

  body.is-crm-view-active #roomView.is-crm-retail-open .room-order-card {
    min-height: var(--crm-menu-row-height);
    grid-template-rows: calc(var(--crm-menu-row-height) - 1px) auto;
  }

  body.is-crm-view-active #roomView.is-crm-retail-open .crm-order-icon {
    height: calc(var(--crm-menu-row-height) - 1px);
  }

  body.is-crm-view-active #roomView .room-order-card .room-order-card-cell--date {
    min-height: 0;
  }

  body.is-crm-view-active #roomView .room-order-card .room-order-status-trigger {
    min-height: min(32px, calc(var(--crm-menu-row-height) - 3px));
    padding-block: 2px;
  }

  body.is-crm-view-active #roomView.is-crm-retail-open .room-orders-table-head {
    height: var(--crm-menu-row-height);
    min-height: var(--crm-menu-row-height);
    max-height: var(--crm-menu-row-height);
  }
}

@media (min-width: 901px) {
  body.is-crm-view-active #roomView .room-orders-table-head {
    border-bottom: var(--crm-panel-divider);
  }

  body.is-crm-view-active #roomView .room-order-card:last-child {
    border-bottom-color: var(--crm-divider-color);
  }

  body.is-crm-view-active .crm-order-group .room-order-card + .room-order-card::before {
    content: none;
  }
}

body.is-crm-view-active #roomView .room-orders-table-head > span:not(:first-child)::before,
html.crm-wholesale-embedded .room-orders-table-head > span:not(:first-child)::before {
  content: none;
}


.crm-schedule-page #milioSchedulePage { height: auto; background: var(--crm-palette-workspace, #202124); }
.crm-calendar-toolbar { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 24px; background: var(--crm-palette-panel, #202124); }
.crm-calendar-toolbar #milioScheduleHeader { margin: 0 auto 0 0; }
.crm-schedule-page :is(.milio-schedule-month-panel, .milio-schedule-picker-panel, .milio-schedule-mark-options),
body:has(.crm-schedule-page:not(.is-hidden)) #milioScheduleVisibilityDialog { background: var(--crm-palette-workspace, #262626); color: var(--crm-palette-text, #f4f5f7); }
.crm-schedule-page :is(.milio-schedule-mark-options button[aria-checked="true"], .milio-schedule-month-options button[aria-pressed="true"]) { background: var(--crm-palette-selection, #393939); }
@media (min-width: 901px) {
  .crm-schedule-page:has(.is-crm-users-page[open]) #milioSchedulePage { display: none; }
  #milioScheduleVisibilityDialog.is-crm-users-page[open] {
    --page-overlay-background: var(--crm-palette-workspace, #202124);
    --page-overlay-ink: #f4f5f7;
    --page-overlay-border: var(--crm-palette-divider, #48494c);
    --page-overlay-hover: #303134;
    --page-overlay-active: #84bb01;
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--crm-palette-workspace, #202124);
    color: var(--crm-palette-text, #f4f5f7);
    color-scheme: dark;
    overflow: visible;
  }
  #milioScheduleVisibilityDialog.is-crm-users-page :is(.kanban-card-modal-close, .milio-schedule-visibility-presets button) { background: var(--crm-palette-workspace, #303134); color: var(--crm-palette-text, #f4f5f7); border: 1px solid var(--crm-palette-divider, #48494c); }
  .crm-calendar-toolbar #milioScheduleVisibilityButton { display: inline-flex !important; align-items: center; gap: 8px; width: auto; padding: 8px 16px; color: var(--crm-palette-text, #f4f5f7); border: 1px solid var(--crm-palette-divider, #48494c); border-radius: 20px; background: var(--crm-palette-panel, #262626); }
}

@media (min-width: 901px) {
  .crm-schedule-page:not(.is-hidden) {
    display: flex;
    flex-direction: column;
  }
  .crm-calendar-toolbar {
    flex-shrink: 0;
  }
  .crm-schedule-page #milioSchedulePage {
    flex: 1;
    min-height: 0;
  }
}

/* CRM profile uses the main content container and a shared dark palette. */
body.is-crm-profile-active {
  --crm-profile-surface: var(--crm-palette-workspace, #202124);
  --crm-profile-field: var(--crm-palette-panel, #292a2d);
  --crm-profile-border: var(--crm-palette-divider, #3b3d40);
  --crm-profile-text: var(--crm-palette-text, #f4f5f7);
  --crm-profile-muted: var(--crm-palette-muted, #b8bbc2);
  --crm-profile-accent: var(--crm-palette-lime, #c6f455);
}
body.is-crm-profile-active .room-main { padding: 0; overflow: hidden !important; }
#settingsView.crm-profile-view {
  position: relative; inset: auto; z-index: auto; width: 100%; height: 100%; padding: 0;
  color-scheme: dark;
  --ink: var(--crm-profile-text);
  --muted: var(--crm-profile-muted);
  --page-overlay-background: var(--crm-profile-surface);
  --page-overlay-hover: var(--crm-profile-field);
  --page-overlay-ink: var(--crm-profile-text);
  --page-overlay-border: var(--crm-profile-border);
}
#settingsView.crm-profile-view .settings-modal-backdrop {
  position: static; inset: auto; display: block; height: 100%; padding: 0; background: transparent;
}
#settingsView.crm-profile-view .settings-modal {
  display: grid; position: static; width: 100%; height: 100%; max-height: none; margin: 0;
  grid-template-rows: auto minmax(0, 1fr); border: 0; border-radius: 0; box-shadow: none;
  background: var(--crm-profile-surface); color: var(--crm-profile-text);
}
#settingsView.crm-profile-view .settings-modal-head {
  padding: 18px 28px; align-items: center; border-bottom: 1px solid var(--crm-profile-border);
  background: var(--crm-profile-surface);
}
#settingsView.crm-profile-view .settings-section-tab:not([data-settings-section="users"]),
#settingsView.crm-profile-view .settings-values-menu,
#settingsView.crm-profile-view .settings-main-panel > .panel-title,
#settingsView.crm-profile-view .settings-users-list--main { display: none; }
#settingsView.crm-profile-view .settings-modal-body {
  padding: 28px; overflow-y: auto; background: var(--crm-profile-surface);
}
#settingsView.crm-profile-view :is(.settings-modal-layout-wrap, .settings-modal-section, .settings-layout, .settings-main-panel) {
  display: block; height: auto; min-height: 0; overflow: visible; padding: 0; border: 0;
  background: transparent; box-shadow: none;
}
#settingsView.crm-profile-view .settings-users-panel {
  display: grid; grid-template-columns: minmax(0, 680px) 160px; gap: 48px; align-items: start;
}
#settingsView.crm-profile-view .settings-users-card { padding: 0; background: transparent; border: 0; }
#settingsView.crm-profile-view .settings-user-avatar-card { display: grid; justify-items: center; padding: 0; background: transparent; border: 0; }
#settingsView.crm-profile-view .settings-user-avatar-preview { background: var(--crm-profile-field); border-color: var(--crm-profile-border); color: var(--crm-profile-muted); }
#settingsView.crm-profile-view :is(input:not([type="checkbox"]):not([type="file"]), select, textarea, .settings-user-roles-dropdown > summary) {
  background-color: var(--crm-profile-field); color: var(--crm-profile-text); border: 1px solid var(--crm-profile-border); border-radius: 8px; min-height: 44px;
}
#settingsView.crm-profile-view :is(label > span, legend, .settings-users-title, .settings-user-column-field > span) { color: var(--crm-profile-muted); }
#settingsView.crm-profile-view :is(input, textarea)::placeholder { color: #9398a2; }
#settingsView.crm-profile-view .settings-user-column-card { background: transparent; border-color: var(--crm-profile-border); }
#settingsView.crm-profile-view .settings-user-role-grid { background: var(--crm-profile-field); border-color: var(--crm-profile-border); }
#settingsView.crm-profile-view .settings-user-role { background: transparent; border-color: var(--crm-profile-border); color: var(--crm-profile-text); }
#settingsView.crm-profile-view .settings-user-role:hover { background: var(--crm-palette-hover, #36383c); }
#settingsView.crm-profile-view .settings-user-role > span { color: var(--crm-profile-text); }
#settingsView.crm-profile-view :is(.settings-section-tab, .settings-payroll-tab, .settings-logout-button, .settings-modal-close, .button-ghost) { background: var(--crm-profile-field); color: var(--crm-profile-text); border-color: var(--crm-profile-border); }
#settingsView.crm-profile-view :is(.settings-section-tab, .settings-payroll-tab, .settings-menu-tab).is-active,
#settingsView.crm-profile-view .button-primary { background: var(--crm-profile-accent); color: #202124; border-color: transparent; }
#settingsView.crm-profile-view :is(button, input, select, summary):focus-visible { outline: 2px solid var(--crm-profile-accent); outline-offset: 3px; }
#settingsView.crm-profile-view .settings-user-status.is-success { color: var(--crm-profile-accent); }
#settingsView.crm-profile-view .settings-user-status.is-error { color: #ff9b9b; }
@media (max-width: 1100px) {
  #settingsView.crm-profile-view .settings-users-panel { grid-template-columns: minmax(0, 1fr) 128px; gap: 24px; }
}
@media (max-width: 600px) {
  #settingsView.crm-profile-view .settings-modal-head { padding: 12px; gap: 8px; }
  #settingsView.crm-profile-view .settings-modal-body { padding: 20px 16px; }
  #settingsView.crm-profile-view .settings-users-panel { display: flex; flex-direction: column-reverse; gap: 24px; }
  #settingsView.crm-profile-view .settings-users-card { width: 100%; }
  #settingsView.crm-profile-view .settings-user-contact-row { grid-template-columns: minmax(0, 1fr); }
}
#settingsView.crm-profile-view .settings-modal-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }
#settingsView.crm-profile-view :is(.settings-section-tab, .settings-payroll-tab, .settings-logout-button) { padding: 8px 12px; border: 1px solid var(--crm-profile-border); border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; }
#settingsView.crm-profile-view .settings-modal-tabs { display: flex; gap: 4px; min-width: 0; }
@media (min-width: 901px) {
  #settingsView.crm-profile-view .settings-modal-tabs { border: 0; padding: 0; background: transparent; box-shadow: none; }
}
@media (max-width: 900px) {
  body.is-crm-profile-active .room-page { display: flex; flex-direction: column; height: 100%; min-height: 0; }
  body.is-crm-profile-active .room-sidebar { flex: 0 0 auto; }
  body.is-crm-profile-active .room-main { flex: 1 1 0; min-height: 0; }
  #settingsView.crm-profile-view .settings-modal { min-height: 0; }
  #settingsView.crm-profile-view .settings-modal-head { grid-template-columns: minmax(0, 1fr) auto; }
  #settingsView.crm-profile-view .settings-modal-tabs { grid-column: 1 / -1; }
  #settingsView.crm-profile-view .settings-logout-button { justify-self: start; }
}
@media (max-width: 900px) {
  body.is-crm-profile-active .app-shell { display: flex; flex-direction: column; height: 100dvh; min-height: 0; }
  body.is-crm-profile-active .topbar { flex: 0 0 auto; }
  body.is-crm-profile-active .app-main { display: block; flex: 1 1 0; min-height: 0; overflow: hidden; }
  body.is-crm-profile-active #roomView { height: 100%; min-height: 0; }
}
body.is-crm-view-active.is-crm-profile-active :is(.app-shell, .app-main, .room-view, .room-page, .room-main) { overflow: hidden !important; }
/* CRM schedule controls share the main header on desktop. */
@media (min-width: 901px) {
  body.is-crm-view-active:has(#roomView:not(.is-hidden) .crm-schedule-page:not(.is-hidden)) {
    .crm-calendar-toolbar { display: none; }
    .topbar-brand { gap: 12px; --topbar-logo-icon-offset: 0px; }
    #milioScheduleHeader { position: absolute; left: 274px; top: 50%; height: 56px; margin: 0; padding: 0; align-items: center; transform: translateY(-50%); }
    #milioScheduleHeader h2 { display: flex; align-items: center; margin: 0; line-height: 1; }
    #milioScheduleTitle { display: flex; align-items: center; min-height: 56px; padding-block: 0; line-height: 1; }
    .topbar-actions { align-items: center; }
    .milio-schedule-month-controls, .milio-schedule-picker { display: none; }
    .topbar-search { left: calc(50% + 40px); width: min(640px, calc(100vw - 850px)); min-width: 160px; }
    #milioScheduleVisibilityButton {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      position: static;
      width: 44px;
      height: 56px;
      min-width: 44px;
      padding: 0;
      margin: 0;
      border: 0;
      background: transparent;
      color: #f4f5f7;
      transform: none;
    }
    #milioScheduleVisibilityButton :is([data-schedule-visibility-label], .milio-schedule-filter-chevron) { display: none; }
    #milioScheduleVisibilityButton > svg:first-child,
    .milio-schedule-mark-toggle > svg { display: block; width: 25.3px; height: 25.3px; flex: 0 0 25.3px; stroke-width: 2; }
    .milio-schedule-mark-toggle { width: 44px; height: 56px; padding: 0; margin: 0; }
    .milio-schedule-mark-menu { display: flex; align-items: center; position: relative; inset: auto; transform: none; }
    :is(.milio-schedule-month-panel, .milio-schedule-picker-panel, .milio-schedule-mark-options) { background: #262626; color: #f4f5f7; }
    :is(.milio-schedule-mark-options button[aria-checked="true"], .milio-schedule-month-options button[aria-pressed="true"]) { background: #393939; }
  }
}

/* Per-order icon cells share the table's row dividers. */
.crm-order-icon { display: none; }
.crm-order-icon svg, .room-order-card-cell--delivery svg, .crm-orders-delivery-filters svg, #crm-order-icon-picker svg, .crm-order-dates-footer .crm-preorder-date-trigger small svg {
  width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
body.is-crm-view-active #crm-order-icon-picker button { display: flex; align-items: center; gap: 12px; }
#crm-order-icon-picker [role="status"]:empty { display: none; }
@media (min-width: 901px) {
  body.is-crm-view-active #roomView .room-page { grid-template-columns: 248px minmax(0, 1fr); }
  body.is-crm-view-active #roomView.crm-menu-collapsed .room-page { grid-template-columns: var(--crm-primary-rail-width, 84px) minmax(0, 1fr); }
  body.is-crm-view-active #roomView .room-orders-table-head,
  body.is-crm-view-active #roomView .room-order-card { padding-left: 52px; min-width: calc(var(--contentds-room-orders-min-width) + 52px); }
  body.is-crm-view-active #roomView .room-order-card { position: relative; }
  body.is-crm-view-active #roomView .room-order-card::after,
  body.is-crm-view-active #roomView .room-orders-table-head::after {
    content: ''; position: absolute; left: 51px; top: 0; bottom: 0;
    width: 1px; background: var(--crm-divider-color); pointer-events: none;
  }
  body.is-crm-view-active #roomView .crm-order-icon {
    display: grid; place-items: center; position: absolute; top: 0; left: 0;
    width: 51px; height: calc(var(--crm-list-row-height) - 1px); padding: 0;
    border: 0; border-radius: 0; background: transparent; color: var(--crm-palette-secondary, #ccc); cursor: pointer;
  }
  .crm-order-icon:hover { color: var(--crm-palette-lime, #d8f66b) !important; }
  .crm-order-icon:focus-visible { outline: 1px solid var(--crm-palette-secondary, #ccc); outline-offset: -4px; }
}
/* Assembly completion belongs to the order, separate from employee selection. */
body.is-crm-view-active .crm-order-assignee-avatar.is-assembled { outline:1px solid var(--crm-palette-lime, #d8f66b) !important; outline-offset:0; }
:is(#crm-assignee-picker, #crm-header-staff-filter) .crm-assembled-control { display:flex; align-items:center; justify-content:center; gap:7px; margin-top:10px; padding-top:8px; border-top:1px solid var(--crm-palette-divider, #555); color:var(--crm-palette-text, #eee); font-size:13px; cursor:pointer; }
:is(#crm-assignee-picker, #crm-header-staff-filter) .crm-assembled-control input { width:15px; height:15px; margin:0; accent-color:var(--crm-palette-lime, #d8f66b); }
/* CRM order header filtering and date ordering. */
body.is-crm-view-active .crm-header-control {
  appearance: none; border: 0; border-radius: 0; background: transparent;
  color: inherit; font: inherit; cursor: pointer; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
body.is-crm-view-active .crm-header-control[aria-pressed="true"] { color: #d5ff59; }
.crm-header-control:focus-visible { outline: 2px solid #d5ff59; outline-offset: -3px; }
body.is-crm-view-active dialog.crm-header-filter {
  position: fixed; margin: 0; padding: 6px; width: 240px; max-width: calc(100vw - 16px);
  max-height: min(420px, 70vh); overflow: auto; border: 1px solid var(--crm-palette-divider, #414246);
  border-radius: 10px; background: var(--crm-palette-header, #202124); color: var(--crm-palette-text, #f4f5f7);
}
:is(body.is-crm-view-active, body.is-crm-settings-active, html.crm-content-embedded body, html.crm-wholesale-embedded body) .room-order-status-menu > .room-order-status-menu-separator {
  display: none;
}

body.is-crm-view-active dialog.crm-header-filter::backdrop { background: transparent; }
body.is-crm-view-active dialog.crm-header-filter button {
  display: block; width: 100%; padding: 10px 12px; text-align: left;
  border: 0; border-radius: 5px; background: transparent; color: inherit; font: inherit; cursor: pointer;
}
body.is-crm-view-active dialog.crm-header-filter button:hover, body.is-crm-view-active dialog.crm-header-filter button[aria-pressed="true"] { background: var(--crm-palette-selection, #383a3e); color: #d5ff59; }

/* Match CRM heading icons to the order wrench and empty staff avatar. */
body.is-crm-view-active .crm-staff-heading-icon {
  width: 22px;
  height: 22px;
  color: var(--crm-palette-secondary, #ccc);
}
body.is-crm-view-active [data-crm-header-filter="managerId"] .crm-staff-heading-icon {
  stroke-width: 1.5;
}
body.is-crm-view-active #crm-order-icon-picker:not(.is-keyboard-navigation) button {
  outline: none !important;
}

/* Order actions share the sidebar/list footer height and divider. */
@media (min-width: 901px) {
  body.is-crm-view-active .crm-order-page-root > .crm-order-dates-footer {
    box-sizing: border-box;
    height: var(--crm-list-row-height);
    min-height: var(--crm-list-row-height);
    max-height: var(--crm-list-row-height);
    border-top: var(--crm-panel-divider);
  }
  body.is-crm-view-active .crm-order-page-root > .room-order-workflow-actions--modal-footer .room-order-workflow-action {
    min-height: 0;
  }
}

/* Preserve the two spaces between date and time in the open CRM order. */
body.is-crm-view-active .room-order-modal-head-date {
  white-space: pre;
}

/* CRM preorder date uses the existing date dialog and CRM controls. */
.crm-preorder-date-trigger { border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.crm-preorder-date-trigger small { color: var(--crm-palette-status-shipped, #f48bcb); font-size: 12px; }
.crm-preorder-date-trigger:focus-visible { outline: 2px solid var(--crm-palette-lime, #d6fa55); outline-offset: 3px; }
.room-order-date-calendar-head button { border: 0; border-radius: 8px; background: #303134; color: #f4f5f7; width: 32px; height: 32px; font-size: 22px; cursor: pointer; }

#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-modal { background: var(--crm-palette-workspace, #202124); color: var(--crm-palette-text, #f4f5f7); border: 1px solid var(--crm-palette-divider, #303134); border-radius: 20px; }
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-modal-head { background: transparent; border-bottom: 1px solid var(--crm-palette-divider, #303134); }
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-modal-head h2,
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-modal-close,
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-field > span { color: var(--crm-palette-text, #f4f5f7); }
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-calendar-day { border: 0; border-radius: 8px; background: var(--crm-palette-workspace, #292a2d); color: var(--crm-palette-text, #f4f5f7); }
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-calendar-day:hover { background: var(--crm-palette-hover, #3c4043); }
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-calendar-day.is-selected { background: var(--crm-palette-lime, #d6fa55); color: #202124; }
#roomOrderDateModalRoot.crm-preorder-calendar input { color-scheme: dark; border: 1px solid var(--crm-palette-divider, #3c4043); border-radius: 8px; background: var(--crm-palette-workspace, #292a2d); color: var(--crm-palette-text, #f4f5f7); padding: 10px; }
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-save { border: 0; border-radius: 8px; background: var(--crm-palette-lime, #d6fa55); color: #202124; padding: 10px 16px; font: inherit; cursor: pointer; }
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: max-content;
  max-width: 100%;
  margin-inline-start: auto;
}
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-tomorrow {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--crm-palette-muted, #afafaf);
  color: var(--crm-palette-text, #f4f5f7);
}
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-modal { background: var(--crm-palette-workspace, #202124) !important; }
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-modal-body { background: var(--crm-palette-workspace, #202124) !important; color: var(--crm-palette-text, #f4f5f7); }

/* Delivery form is scoped to the CRM order page. */
.crm-order-page .crm-delivery { --crm-delivery-row-gap:12px; border-top:1px solid var(--crm-palette-divider, #383a3c); padding:var(--crm-order-section-spacing) 0 24px; color:var(--crm-palette-text, #f4f5f7); }
.crm-delivery h3 { margin:0; font-size:18px; font-weight:700; }
.crm-delivery fieldset { border:0; padding:0; margin:0; min-width:0; }
.crm-delivery-toolbar { display:flex; flex-wrap:wrap; align-items:flex-start; gap:var(--crm-delivery-row-gap) 16px; }
.crm-delivery-toolbar > .crm-delivery-create { margin-block-start:var(--crm-delivery-row-gap); margin-inline-start:auto; min-height:40px; }
.crm-delivery .crm-delivery-field { display:flex; flex-direction:column; gap:8px; min-width:0; font-size:13px; color:var(--crm-palette-muted, #9d9fa1); }
.crm-delivery .crm-delivery-field input,.crm-delivery .crm-delivery-field select { box-sizing:border-box; width:100%; min-width:0; height:40px; border:1px solid var(--crm-palette-divider, #454749); border-radius:7px; padding:0 10px; background:transparent; box-shadow:none; -webkit-appearance:none; appearance:none; color:var(--crm-palette-text, #f4f5f7); font:inherit; font-size:14px; color-scheme:dark; }
.crm-delivery .crm-delivery-field select { padding-right:30px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23bfc1c3' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; }
.crm-delivery input[type="number"] { -moz-appearance:textfield; }
.crm-delivery input[type="number"]::-webkit-inner-spin-button,.crm-delivery input[type="number"]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.crm-delivery input:focus-visible,.crm-delivery select:focus-visible,.crm-delivery button:focus-visible,.crm-delivery summary:focus-visible { outline:2px solid var(--crm-palette-selection, #888); outline-offset:2px; }
.crm-delivery-details { margin-top:12px; }
.crm-delivery-details summary[hidden] { display:none; }
.crm-delivery-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px; margin-top:20px; }
.crm-delivery-column { display:flex; flex-direction:column; gap:16px; min-width:0; }
.crm-delivery-dimensions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.crm-delivery .crm-delivery-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:12px; margin-top:24px; }
.crm-delivery button { border:1px solid var(--crm-palette-divider, #454749); border-radius:22px; padding:9px 16px; background:var(--crm-palette-workspace, #2c2e30); color:var(--crm-palette-text, #f4f5f7); font:inherit; font-size:14px; cursor:pointer; }
.crm-delivery button.crm-delivery-create { background:var(--purple); color:var(--crm-palette-text, #fff); border-color:var(--purple); font-weight:650; }
.crm-delivery button:disabled { opacity:.45; cursor:default; }
.crm-delivery-status,.crm-delivery-hint { font-size:13px; line-height:1.5; margin:14px 0 0; color:var(--crm-palette-muted, #bfc1c3); overflow-wrap:anywhere; }
.crm-delivery-status:empty { display:none; }
.crm-delivery-track { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin:0 0 20px; }
.crm-delivery-track strong { color:var(--crm-palette-lime, #d8f66b); font-size:20px; }
.crm-delivery-track a { color:var(--crm-palette-secondary, #cbd1d5); font-size:13px; text-decoration:underline; }
@media(max-width:1100px) { .crm-delivery-grid { grid-template-columns:minmax(0,1fr); gap:16px; } }
@media(max-width:450px) { .crm-delivery .crm-delivery-actions { flex-direction:column; } }

/* Selected preorder date occupies the title row beside the close button. */
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-modal-head { display: flex; align-items: center; gap: 16px; }
#roomOrderDateModalRoot.crm-preorder-calendar .crm-preorder-heading-date { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; padding: 0; font: inherit; font-size: 20px; font-weight: 700; color: var(--crm-palette-text, #f4f5f7); }
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-modal-close { flex: 0 0 auto; }
#roomOrderDateModalRoot.crm-preorder-calendar .room-order-date-status:empty { display: none; }

/* Inactive CRM footer actions remain muted, including while hovered. */
body.is-crm-view-active .crm-order-page-root > .room-order-workflow-actions--modal-footer .room-order-workflow-action:disabled:not(.is-done) {
  color: var(--crm-palette-muted, #777);
  background: transparent;
  border-color: var(--crm-palette-divider, #343536);
  opacity: 1;
  cursor: default;
  box-shadow: none;
}

/* Keep the editable date visually consistent with the calendar heading. */
#roomOrderDateModalRoot.crm-preorder-calendar .crm-preorder-heading-date,
#roomOrderDateModalRoot.crm-preorder-calendar .crm-preorder-heading-date:focus,
#roomOrderDateModalRoot.crm-preorder-calendar .crm-preorder-heading-date:focus-visible {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  outline: none;
  box-shadow: none;
}

#roomOrderDateModalRoot.crm-preorder-calendar [role="dialog"]:focus { outline: none; }

/* Keep creation and preorder dates together on one line in the order list. */
body.is-crm-view-active .room-order-card .crm-preorder-date-trigger.room-order-card-cell--date {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  white-space: nowrap;
  text-align: left;
}

@media (min-width: 901px) {
  body.is-crm-view-active .room-order-card .room-order-card-cell--customer-name,
  body.is-crm-view-active .room-order-card .room-order-card-cell--city,
  body.is-crm-view-active .room-order-card .crm-preorder-date-trigger.room-order-card-cell--date {
    padding-inline-start: 8px;
  }
}

/* Administrator's user selector in the CRM profile. */
#settingsView.crm-profile-view .settings-main-panel:has(.settings-users-panel)::before { display: none; }
#settingsView.crm-profile-view .settings-users-panel.has-profile-users {
  grid-template-columns: minmax(0, 680px) minmax(128px, 1fr) 220px;
  gap: 28px;
}
#settingsView.crm-profile-view .settings-users-list--profile {
  display: grid; grid-column: 3; grid-row: 1 / span 2; align-content: start;
  min-width: 0; padding: 0 0 0 20px; border: 0;
  border-left: 1px solid var(--crm-profile-border); border-radius: 0; background: transparent;
}
#settingsView.crm-profile-view .settings-users-list--profile .settings-users-list-items {
  max-height: max(240px, calc(100dvh - 280px)); overflow-y: auto; overscroll-behavior: contain;
}
#settingsView.crm-profile-view .settings-users-list--profile .settings-user-row {
  grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 8px;
  border: 1px solid transparent; background: transparent; color: var(--crm-profile-text);
}
#settingsView.crm-profile-view .settings-users-list--profile .settings-user-row:hover {
  background: var(--crm-profile-field);
}
#settingsView.crm-profile-view .settings-users-list--profile .settings-user-row.active {
  background: var(--crm-profile-field); border-color: var(--crm-profile-accent);
}
#settingsView.crm-profile-view .settings-users-list--profile .settings-user-avatar {
  display: inline-grid; width: 36px; height: 36px; place-items: center;
  border-radius: 50%; overflow: hidden; background: var(--crm-profile-field); color: var(--crm-profile-muted);
}
#settingsView.crm-profile-view .settings-users-list--profile .settings-user-login { color: inherit; }
@media (max-width: 1100px) {
  #settingsView.crm-profile-view .settings-users-panel.has-profile-users {
    grid-template-columns: minmax(0, 1fr) 128px 180px; gap: 16px;
  }
  #settingsView.crm-profile-view .settings-users-list--profile { padding-left: 12px; }
}
@media (max-width: 800px) {
  #settingsView.crm-profile-view .settings-users-panel.has-profile-users {
    display: flex; flex-direction: column; gap: 24px;
  }
  #settingsView.crm-profile-view .settings-users-list--profile {
    order: -2; width: 100%; padding: 0 0 20px; border-left: 0;
    border-bottom: 1px solid var(--crm-profile-border);
  }
  #settingsView.crm-profile-view .settings-users-list--profile .settings-users-list-items {
    max-height: 220px; overflow-y: auto;
  }
  #settingsView.crm-profile-view .has-profile-users .settings-user-avatar-card { order: -1; align-self: center; }
}

/* CRM profile: a separate menu preferences tab. */
#settingsCrmMenuPanel[hidden],
.settings-crm-menu-active .settings-modal-body { display: none; }
#settingsView.crm-profile-view .settings-menu-tab { padding: 8px 12px; border: 1px solid var(--crm-profile-border); border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; }
#settingsCrmMenuPanel { min-height: 0; overflow-y: auto; padding: 28px; color: var(--crm-profile-text); }
.settings-crm-menu-form { max-width: 680px; }
.settings-crm-menu-form h3 { margin: 0 0 12px; }
.settings-crm-menu-form p { color: var(--crm-profile-muted); }
.settings-crm-menu-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 24px 0; }
.settings-crm-menu-options label { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--crm-profile-border); border-radius: 8px; background: var(--crm-profile-field); cursor: pointer; }
.settings-crm-menu-options input { width: 18px; height: 18px; margin: 0; accent-color: #c6f653; }
.settings-crm-menu-form button { padding: 12px 16px; border: 0; border-radius: 8px; background: #c6f653; color: #202124; font: inherit; font-weight: 600; cursor: pointer; }
.settings-crm-menu-form button:disabled { opacity: .6; cursor: wait; }
/* CRM uses regular text throughout, including shared dialogs and native shell controls. */
body.is-crm-view-active,
body.is-crm-view-active *,
body.is-crm-view-active *::before,
body.is-crm-view-active *::after,
body.is-crm-view-active *::placeholder {
  font-weight: 400 !important;
}
body.is-crm-view-active .room-nav [data-room-action][hidden] { display: none !important; }
@media (max-width: 900px) {
  #settingsCrmMenuPanel { padding: 16px; }
  .settings-crm-menu-options { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the delivery summary visible; expand parcel and recipient fields on demand. */
.crm-delivery-details { overflow:hidden; min-width:0; max-width:100%; }

/* Keep the carrier heading directly above its tariff selector. */

/* Keep the order dates along the main column footer. */
.crm-order-dates-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 0;
  box-sizing: border-box;
  padding: 5px var(--crm-order-content-inset);
  border-top: var(--crm-panel-divider, 1px solid var(--crm-palette-divider, #383a3c));
  background: var(--crm-footer-background, var(--crm-palette-panel, #202124));
}
.crm-order-dates-footer .crm-preorder-date-trigger {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: right;
  font-size: 14px;
  line-height: 1.3;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  white-space: normal;
  flex-wrap: wrap;
}
.crm-order-dates-footer .crm-preorder-date-trigger small {
  color: #63e9ee;
  margin-right: auto;
  text-align: left;
  display: inline-flex; align-items: center; gap: .35em; font-size: inherit;
}
@media (min-width: 701px) {
  .crm-order-dates-footer {
    grid-column: 1;
    grid-row: 2;
    border-left: 0;
  }
}

.crm-order-page .room-order-modal-heading { flex: 0 1 auto; min-width: 0; }
.crm-order-page .room-order-modal-heading h2 { overflow-wrap: anywhere; font-size: 20px; }
.crm-order-page .crm-order-header-status { flex: 0 0 190px; }
.crm-order-header-number { flex: 1 1 160px; margin-left: auto; min-width: min(160px, 100%); max-width: 100%; overflow-wrap: anywhere; text-align: right; font-size: 20px; }

/* Highlight the paid amount and its label in neon coral. */
.crm-order-page .crm-order-paid { color:var(--crm-palette-paid, var(--crm-item-marker-pink)); }
.crm-order-page .crm-order-paid.is-fully-paid { color:var(--crm-palette-lime, #d8f66b); }

/* Keep the delivery summary and actions together when space permits. */
.crm-delivery [data-delivery-form] { display:grid; gap:var(--crm-delivery-row-gap); align-items:start; }
.crm-delivery-heading { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:8px 16px; }
.crm-delivery button.crm-delivery-heading { grid-template-columns:minmax(0,1fr); width:100%; border:0; border-radius:0; padding:0; background:transparent; text-align:left; }
/* The label and its control share one outlined field. */
.crm-delivery .crm-delivery-toolbar .crm-delivery-field {
  flex-direction:row; align-items:center; gap:6px; height:40px; box-sizing:border-box;
  padding-left:10px; border:1px solid var(--crm-palette-divider, #454749); border-radius:7px;
}
.crm-delivery-toolbar .crm-delivery-field > span { flex:none; }
.crm-delivery .crm-delivery-toolbar .crm-delivery-field :is(input, select) {
  flex:1; height:100%; border:0; text-align:right; text-align-last:right;
}
.crm-delivery .crm-delivery-toolbar .crm-delivery-field select:is([name="tariff"], [data-delivery-package]) {
  appearance:none; background-image:none; padding-right:10px;
}
.crm-delivery .crm-delivery-toolbar .crm-delivery-field:has(:focus-visible) {
  outline:2px solid var(--crm-palette-selection, #888); outline-offset:2px;
}
.crm-delivery .crm-delivery-toolbar .crm-delivery-field :is(input, select):focus-visible { outline:none; }
.crm-delivery-method { display:grid; gap:var(--crm-delivery-row-gap); min-width:0; }
.crm-delivery-summary, .crm-delivery-toolbar > .crm-delivery-recipient-cost { color:var(--crm-palette-text, #f4f5f7); font-size:16px; line-height:1.4; }
.crm-delivery-summary { min-width:0; white-space:pre-wrap; overflow-wrap:anywhere; }

/* Order identity and contact actions share the header; items use the freed space. */
.crm-order-heading-gap { white-space: pre; }
.crm-order-header-contact { font-size:20px; }
.crm-order-header-contact { display:flex; align-items:center; justify-content:flex-end; gap:14px; margin-left:auto; }
.crm-order-header-contact > span { white-space:nowrap; }
.crm-order-mail-button { display:grid; place-items:center; width:34px; height:34px; padding:4px; border:0; background:none; color:inherit; cursor:pointer; }
.crm-order-mail-button svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.6; }
.crm-order-mail-button:disabled { opacity:.4; cursor:default; }
.crm-order-mail-button:focus-visible { outline:2px solid #a88bf0; outline-offset:2px; }
.crm-order-page .room-order-modal-panel--items { grid-column:1/-1; grid-template-rows:minmax(0,1fr); padding:0; }
.crm-order-page .room-order-modal-panel--items::before { display:none; }
@media (min-width:768px) {
  .crm-order-page .room-order-modal-panel--items {
    min-height:calc((var(--crm-item-rows) + 1) * var(--crm-list-row-height));
    grid-template-rows:minmax(min-content,1fr);
  }
  .crm-order-page .room-order-modal-items {
    grid-auto-rows:1fr;
    align-content:stretch;
  }
  .crm-order-page .room-order-modal-item {
    align-content:center;
    min-height:0;
    padding-block:0;
  }
}
.crm-mail-dialog { box-sizing:border-box; width:min(728px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:24px; border:1px solid var(--crm-palette-divider, #44474b); border-radius:16px; background:var(--crm-palette-workspace, #202124); color:var(--crm-palette-text, #f4f5f7); box-shadow:none; }
.crm-mail-dialog::backdrop { background:rgba(0,0,0,.55); }
.crm-mail-dialog form { display:grid; gap:18px; }
.crm-mail-dialog header,.crm-mail-dialog footer { display:flex; align-items:center; gap:12px; }
.crm-mail-dialog header h2 { margin:0; font-size:21px; font-weight:500; }
.crm-mail-dialog header button { margin-left:auto; border:0; background:none; font-size:28px; padding:0 4px; }
.crm-mail-dialog label { display:grid; gap:8px; font-size:14px; }
.crm-mail-dialog input,.crm-mail-dialog textarea { box-sizing:border-box; width:100%; padding:12px; border:1px solid var(--crm-palette-divider, #44474b); border-radius:8px; background:var(--crm-palette-workspace, #202124); color:inherit; font:inherit; }
.crm-mail-dialog textarea { resize:vertical; min-height:150px; }
.crm-mail-dialog button { color:inherit; cursor:pointer; }
.crm-mail-dialog footer { justify-content:flex-end; }
.crm-mail-dialog footer button { padding:10px 18px; border:1px solid var(--crm-palette-divider, #44474b); border-radius:24px; background:transparent; font:inherit; }
.crm-mail-dialog footer button[type=submit] { background:#7540d8; border-color:#7540d8; }
.crm-mail-dialog button:disabled { opacity:.5; cursor:default; }
.crm-mail-recipient,.crm-mail-dialog .crm-mail-subject { color:var(--crm-palette-text, #fff); font-size:16px; line-height:1.4; }
.crm-mail-recipient { margin:0; overflow-wrap:anywhere; }
.crm-mail-dialog .crm-mail-subject { grid-template-columns:auto minmax(0,1fr); align-items:baseline; gap:.25em; }
.crm-mail-dialog .crm-mail-subject input { min-width:0; padding:0; border:0; background:transparent; box-shadow:none; }
.crm-mail-feedback { margin:0; white-space:pre-wrap; color:#ff929b; }
.crm-mail-feedback:empty { display:none; }
.crm-order-page .crm-order-header-status { margin-left:0; }
@media (min-width: 901px) {
  .crm-order-page .crm-order-header-status { margin-left: 18px; }
}
:is(.crm-mail-dialog, .crm-replacement-dialog) { --page-overlay-background:var(--crm-palette-workspace, #202124); --page-overlay-ink:#f4f5f7; --page-overlay-border:var(--crm-palette-divider, #44474b); --ink:var(--crm-palette-text, #f4f5f7); --muted:var(--crm-palette-muted, #bbb); color-scheme:dark; }
.crm-mail-dialog label { color:var(--crm-palette-text, #f4f5f7); }
.crm-mail-dialog :is(input,textarea):focus { border-color:#9d7ee6; outline:none; box-shadow:none; }

/* Courier pickup is global to CRM, independent of the current order. */
.crm-pickup-button { display:none; }
body.is-crm-view-active #crmPickupButton.crm-pickup-button:not([hidden]) { display:inline-flex; width:66px; min-width:66px; align-items:center; justify-content:center; padding:0 5px; color:var(--crm-palette-secondary, #cdcdcd); }
.crm-pickup-button span { font:italic 800 19px/1 Arial,sans-serif; letter-spacing:-1px; }
.crm-pickup-drawer { box-sizing:border-box; position:fixed; inset:0 0 0 auto; margin:0; width:520px; max-width:100vw; height:100dvh; max-height:100dvh; padding:0; border:0; border-left:1px solid var(--crm-palette-divider, #383a3c); border-radius:0; background:var(--crm-palette-workspace, #202124); color:var(--crm-palette-text, #f4f5f7); box-shadow:none; }
.crm-pickup-drawer[open] { display:flex; flex-direction:column; animation:crm-pickup-slide .22s ease-out; }
.crm-pickup-drawer::backdrop { background:#0006; }
@keyframes crm-pickup-slide { from {transform:translateX(100%);} to {transform:translateX(0);} }
.crm-pickup-head { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px; border-bottom:1px solid var(--crm-palette-divider, #383a3c); flex-shrink:0; }
.crm-pickup-head>div { display:flex; align-items:center; gap:16px; }
.crm-pickup-brand { font:italic 800 22px/1 Arial,sans-serif; letter-spacing:-1px; color:#d6f56b; }
.crm-pickup-head h2 { margin:0; font-size:20px; font-weight:500; }
.crm-pickup-drawer button { font:inherit; cursor:pointer; background:transparent; color:inherit; border:1px solid var(--crm-palette-divider, #414448); border-radius:8px; padding:9px 13px; box-shadow:none; }
.crm-pickup-drawer button:hover { background:var(--crm-palette-hover, #303236); }
.crm-pickup-head>button { border:0; padding:6px; width:36px; height:36px; }
.crm-pickup-head svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.7; }
.crm-pickup-body { padding:24px; overflow-y:auto; min-height:0; }
.crm-pickup-intro { margin:0 0 24px; color:var(--crm-palette-muted, #a9abaf); }
.crm-pickup-drawer fieldset { padding:0; margin:0; border:0; display:grid; gap:18px; min-width:0; }
.crm-pickup-drawer label { display:grid; gap:8px; color:var(--crm-palette-muted, #aaacaf); font-size:14px; }
.crm-pickup-drawer :is(input:not([type=checkbox]),select) { box-sizing:border-box; width:100%; min-width:0; height:44px; padding:9px 12px; border:1px solid var(--crm-palette-divider, #414448); border-radius:8px; background:transparent; color:var(--crm-palette-text, #f4f5f7); color-scheme:dark; font:inherit; box-shadow:none; }
.crm-pickup-drawer select option { background:var(--crm-palette-workspace, #202124); }
.crm-pickup-times { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.crm-pickup-drawer .crm-pickup-create { background:#7540df; border-color:#7540df; border-radius:24px; min-height:44px; }
.crm-pickup-drawer .crm-pickup-create:hover { background:#8351e5; }
.crm-pickup-drawer :disabled { opacity:.5; cursor:default; }
.crm-pickup-message { margin:12px 0; color:#e5b580; font-size:14px; line-height:1.5; }
.crm-pickup-list { margin-top:30px; border-top:1px solid var(--crm-palette-divider, #383a3c); padding-top:22px; }
.crm-pickup-list h3 { font-size:17px; font-weight:500; margin:0; }
.crm-pickup-drawer .crm-pickup-history { display:flex; align-items:center; gap:8px; margin:18px 0; font-size:13px; }
.crm-pickup-history input { accent-color:#d6f56b; }
.crm-pickup-record { border:1px solid var(--crm-palette-divider, #383a3c); border-radius:12px; padding:16px; margin:12px 0; font-size:14px; overflow-wrap:anywhere; }
.crm-pickup-record-heading { margin:0 0 12px; font-size:inherit; font-weight:500; overflow-wrap:anywhere; }
.crm-pickup-record-title { display:flex; justify-content:space-between; gap:12px; }
.crm-pickup-record-title strong { font-weight:500; }
.crm-pickup-record p { margin:10px 0; line-height:1.5; }
.crm-pickup-state { color:#d6f56b; }
.crm-pickup-record-actions { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.crm-pickup-record-actions button,.crm-pickup-confirm button { font-size:12px; }
.crm-pickup-record details { color:var(--crm-palette-muted, #a9abaf); font-size:12px; }
.crm-pickup-record summary { cursor:pointer; }
.crm-pickup-error { color:#e5b580; }
.crm-pickup-confirm { padding:12px 0; border-top:1px solid var(--crm-palette-divider, #414448); }
.crm-pickup-empty { color:var(--crm-palette-muted, #a9abaf); margin:88px 0 26px; text-align:center; }
@media(prefers-reduced-motion:reduce) { .crm-pickup-drawer[open] { animation:none; } }
/* Keep the CRM surface when the application recalculates global overlay tones. */
body.is-crm-view-active #crmPickupDrawer { --page-overlay-background:var(--crm-palette-workspace, #202124); --page-overlay-ink:#f4f5f7; --page-overlay-border:var(--crm-palette-divider, #383a3c); --page-overlay-hover:#303236; }

/* The expanded address selector uses one background for both rows. */
.crm-pickup-location { display:grid; gap:8px; min-width:0; }
.crm-pickup-location-control { border:1px solid var(--crm-palette-divider, #414448); border-radius:8px; background:var(--crm-palette-workspace, #202124); }
.crm-pickup-drawer .crm-pickup-location-control > [data-pickup-location] { border:0; border-radius:7px; display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:44px; text-align:left; padding:9px 12px; }
.crm-pickup-location svg { width:20px; height:20px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.7; }
.crm-pickup-location [aria-expanded=true] svg { transform:rotate(180deg); }
#crmPickupLocations { display:grid; }
#crmPickupLocations[hidden] { display:none; }
.crm-pickup-drawer #crmPickupLocations button { border:0; border-radius:7px; min-height:42px; padding:9px 12px; text-align:left; background:transparent; color:inherit; }
#crmPickupDrawer .crm-pickup-location-control:has([aria-expanded="true"]) {
  background:var(--crm-palette-hover, #303236);
}
#crmPickupDrawer .crm-pickup-location-control:has([aria-expanded="true"]) button {
  background:transparent;
  border-radius:0;
}
#crmPickupDrawer .crm-pickup-location-control button:focus {
  outline:none !important;
  box-shadow:none !important;
}
#crmPickupDrawer .crm-pickup-location-control.is-keyboard-navigation button:focus-visible {
  outline:1px solid currentColor !important;
  outline-offset:-2px;
}

/* Use the same text size for every pickup form value and location option. */
#crmPickupDrawer :is(input[type=date],input[type=time],[data-pickup-location],[data-pickup-location-option]) { font-size:14px; font-weight:400; }

/* Shared pickup logo inherits the current request indicator color. */
body.is-crm-view-active #crmPickupButton.crm-pickup-button .crm-pickup-logo { width:44.8px; height:12.8px; flex-shrink:0; fill:currentColor; stroke:none; }
.crm-pickup-brand .crm-pickup-logo { display:block; width:78px; height:auto; fill:currentColor; stroke:none; }
#crmPickupButton.has-active-pickup-cd [data-pickup-logo-part="cd"],
#crmPickupButton.has-active-pickup-ek [data-pickup-logo-part="ek"] {
  fill: var(--crm-palette-lime, #d6f56b);
}
body.is-crm-view-active #crmPickupButton:not([hidden]):is(:hover, :focus-visible) { color: #fff; }

/* A returned focus ring is useful for keyboard navigation, not pointer selection. */
html.crm-pointer-input body.is-crm-view-active :is(button, select, summary, [role="button"]):focus-visible:not(.is-assembled) {
  outline-color: transparent !important;
}

/* Delivery fields can retain focus after a native select closes. */
body.is-crm-view-active :is(.crm-order-page, .crm-delivery, .crm-pickup-drawer, .crm-mail-dialog) :is(input, select, textarea):focus-visible,
body.is-crm-view-active .crm-delivery-field:has(:focus-visible) {
  outline-color:var(--crm-palette-selection, #888);
}
html.crm-pointer-input body.is-crm-view-active :is(input, textarea):focus-visible,
html.crm-pointer-input body.is-crm-view-active .crm-delivery-field:has(:focus-visible) {
  outline:none;
  box-shadow:none;
}

.crm-delivery-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--crm-delivery-row-gap) 16px; align-items:start; }
.crm-delivery-options { display:flex; flex-direction:column; align-items:flex-end; gap:var(--crm-delivery-row-gap); }
.crm-delivery :is(.crm-delivery-overview, .crm-delivery-heading) > .crm-delivery-method:nth-child(2) { text-align:right; }
.crm-delivery-options .crm-delivery-dropdown { min-width:0; }
.crm-delivery-options .crm-delivery-dropdown-trigger {
  display:inline-flex; flex-wrap:wrap; gap:0 0.75em; align-items:baseline;
  border:0; background:transparent; padding:0; color:inherit; font:inherit;
  justify-content:flex-end; text-align:right; cursor:pointer;
}
.crm-delivery-options [data-delivery-menu-trigger="tariff"] { line-height:1.4; }
.crm-delivery-options .crm-delivery-dropdown-trigger:disabled { cursor:default; }
.crm-delivery-price { color:var(--crm-palette-lime, #d8f66b); white-space:nowrap; }
@media (max-width:700px) { .crm-delivery-overview { grid-template-columns:minmax(0,1fr); } }
.crm-delivery .crm-delivery-menu {
  display:flex; flex-direction:column; gap:2px; height:max-content;
  position:fixed; inset:auto; margin:0; transform:none;
  box-sizing:border-box; width:min(380px, calc(100vw - 20px)); min-width:0;
  max-width:calc(100vw - 20px); max-height:calc(100dvh - 20px);
  overflow:auto; padding:5px; border-radius:8px;
  border:1px solid rgba(255,255,255,.16); background:var(--crm-palette-panel, #2b2d31);
}
.crm-delivery .crm-delivery-menu:not(:popover-open) { display:none; }
.crm-delivery .crm-delivery-menu .room-order-status-option {
  flex:none; min-height:30px; height:auto; justify-content:space-between; gap:16px; padding:0 10px;
  border:0; background:transparent; border-radius:6px; white-space:normal;
  font:inherit; font-size:12px; line-height:1.25; text-align:left; outline:none;
}
.crm-delivery .crm-delivery-menu .room-order-status-option:is(:hover,:focus-visible) { background:rgba(255,255,255,.08); }
.crm-delivery .crm-delivery-menu .room-order-status-option.is-selected { color:#61e6ed; }
.crm-delivery .crm-delivery-menu [hidden] { display:none; }
.crm-delivery-menu [data-tariff-empty] { padding:8px 10px; color:var(--crm-palette-text, #f4f5f7); }
.crm-delivery-option-price { color:var(--crm-palette-text, #f4f5f7); flex:none; white-space:nowrap; font-variant-numeric:tabular-nums; }
.crm-order-page .room-order-modal-item { position:relative; grid-template-columns:minmax(0,1fr) auto; column-gap:14px; }
.crm-order-page .crm-item-menu summary > em.crm-order-method-label { font-size:13px; line-height:1.4; font-weight:500; font-style:normal; color:rgba(255,255,255,.54); }
.crm-order-page .crm-item-menu summary > em.crm-item-quantity-multiple { color:var(--crm-palette-lime, #d8f66b); }
.crm-item-menu summary:focus-visible { outline:2px solid #38bc73; outline-offset:3px; }
.crm-item-menu { grid-column:2; grid-row:1 / span 2; align-self:start; }
.crm-item-menu summary { display:grid; justify-items:end; gap:8px; list-style:none; cursor:pointer; }
.crm-item-menu summary::-webkit-details-marker { display:none; }
.crm-item-menu > div { position:fixed; z-index:20; min-width:150px; padding:5px; border:1px solid var(--crm-palette-divider, #45484b); border-radius:6px; background:var(--crm-palette-panel, #252729); }
.crm-item-menu button { display:block; width:100%; border:0; padding:9px 12px; color:var(--crm-palette-text, #fff); background:transparent; text-align:left; cursor:pointer; }
.crm-item-menu button:hover { background:var(--crm-palette-hover, #393c3e); }
.crm-order-page .room-order-modal-item-main :is(.crm-item-size-label, .crm-item-sku) { display:inline; margin:0; font:inherit; color:rgba(255,255,255,.54); }

.crm-comment-product {
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 0;
  padding:6px 8px;
  background:#ffffff08;
  border-radius:10px;
  font-size:13px;
  overflow-wrap:anywhere;
}
.crm-comment-product img { width:32px; height:32px; object-fit:contain; border-radius:4px; background:#fff; }
.crm-comment-product button { margin-left:auto; padding:2px 6px; border:0; background:none; color:inherit; cursor:pointer; }

.crm-delivery-toolbar > .crm-delivery-recipient-cost {
  display:inline-flex; align-items:baseline; gap:.75em; white-space:nowrap;
}
.crm-delivery-recipient-amount {
  display:inline-block;
  padding-inline-end:16px;
  color:var(--crm-palette-lime, #d8f66b);
}
.crm-delivery-recipient-amount:has(input:enabled) { cursor:text; }
.crm-delivery .crm-delivery-recipient-cost input[name="recipientCost"] {
  appearance:none; field-sizing:content; width:auto; min-width:1ch; max-width:16ch; padding:0;
  border:0; border-radius:0; box-shadow:none; background:transparent; color:inherit; font:inherit;
}
.crm-delivery .crm-delivery-recipient-cost input[name="recipientCost"]:focus-visible {
  outline:1px solid currentColor; outline-offset:2px;
}

.crm-replacement-dialog {
  box-sizing: border-box;
  width: min(1320px, calc(100vw - 32px));
  height: min(840px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--page-overlay-border);
  border-radius: 16px;
  background: var(--page-overlay-background);
  color: var(--page-overlay-ink);
}
.crm-replacement-dialog::backdrop { background: rgb(0 0 0 / 60%); }
.crm-replacement-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.crm-replacement-dialog header {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px 24px;
  padding: 23.3px 20px;
  border-bottom: 1px solid var(--crm-palette-divider, #383a3c);
}
.crm-replacement-dialog h2 { margin: 0; font-size: 20px; }
.crm-replacement-dialog p { margin: 4px 0; color: var(--crm-palette-muted, #b9bbc0); font-size: 14px; overflow-wrap: anywhere; }
.crm-replacement-dialog header p { margin-top: 5.2px; }
.crm-replacement-dialog button:where(:not(.crm-replacement-product)) {
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--crm-palette-workspace, #303236);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.crm-replacement-dialog button[hidden] { display: none; }
.crm-replacement-dialog button:disabled { opacity: .45; cursor: default; }
.crm-replacement-dialog [data-close] {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}
.crm-replacement-layout { display: grid; grid-template-columns: minmax(160px, 22%) minmax(0, 1fr); min-height: 0; }
.crm-replacement-layout > :is(nav, section) { overflow: auto; min-width: 0; padding: 12px; }
.crm-replacement-layout > section { padding-block: 0; }
.crm-replacement-layout nav { border-right: 1px solid var(--crm-palette-divider, #383a3c); }
.crm-replacement-layout nav details > div { padding-left: 12px; }
.crm-replacement-layout nav button { font-weight: 400; text-align: left; overflow-wrap: anywhere; }
#crmReplacementDialog nav button { background: transparent; }
.crm-replacement-layout nav > button, .crm-replacement-layout nav details > div > button { display: block; width: 100%; }
#crmReplacementDialog nav button:is(:hover, [aria-pressed="true"]) { text-decoration: underline; }
body.is-crm-view-active #crmReplacementDialog header .crm-replacement-search {
  position: relative;
  inset: auto;
  transform: none;
  grid-area: auto;
  width: 100%;
  min-width: 0;
  margin: 0;
}
/* Override the desktop app's topbar background inside this dialog. */
:root body.is-crm-view-active #crmReplacementDialog.crm-replacement-dialog .crm-replacement-search,
:root body.is-crm-view-active #crmReplacementDialog.crm-replacement-dialog .topbar-search.crm-replacement-search :is(input, .topbar-search-icon, input:focus) {
  background: transparent !important;
}
.crm-replacement-dialog .crm-replacement-search input { box-sizing: border-box; width: 100%; min-width: 0; height: 44px; min-height: 0; border-radius: 999px; color: var(--crm-palette-lime, #d6fa55); }
.crm-replacement-layout nav summary { list-style: none; }
.crm-replacement-layout nav summary::-webkit-details-marker { display: none; }
.crm-replacement-layout nav summary > button { width: 100%; }
.crm-replacement-products { margin: 0; }
.crm-replacement-product {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  --replacement-muted: #b9bbc0;
  width: 100%;
  min-height: 78px;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 75%;
  text-align: start;
  border-bottom: 1px solid var(--crm-palette-divider, #383a3c);
  cursor: pointer;
}
.crm-replacement-product:focus-visible { outline: 2px solid var(--crm-palette-lime, #d8f66b); outline-offset: -2px; }
.crm-replacement-product:hover { background: var(--crm-palette-hover, #303236); }
.crm-replacement-product img, .crm-replacement-no-photo { width: 44px; height: 44px; border-radius: 6px; object-fit: contain; }
.crm-replacement-product img { background: #fff; }
.crm-replacement-product :is(strong, small) { display: block; overflow-wrap: anywhere; }
.crm-replacement-product strong { font-size: 110%; }
.crm-replacement-product small { color: var(--replacement-muted); font-size: 91.67%; }
.crm-replacement-product > span:has(> strong) { margin-inline-start: 20px; min-width: 0; }
.crm-replacement-price { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
.crm-replacement-price > * { white-space: nowrap; }
.crm-replacement-price s { color: var(--replacement-muted); }
@media (max-width: 600px) {
  .crm-replacement-price { grid-column: 2 / -1; }
}
@media (max-width: 600px) {
  .crm-replacement-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 2fr); }
  .crm-replacement-dialog header { grid-template-columns: minmax(0, 1fr) auto; }
  body.is-crm-view-active #crmReplacementDialog header .crm-replacement-search { grid-row: 2; grid-column: 1 / -1; }
  .crm-replacement-layout nav { border-right: 0; border-bottom: 1px solid var(--crm-palette-divider, #383a3c); }
}

/* CRM search and its empty results. */
body.is-crm-view-active {
  --crm-search-icon-size: 22px;
}
@media (min-width: 768px) {
  body.is-crm-view-active{ --crm-search-icon-size: 25.3px; }
}
.topbar input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  width: var(--crm-search-icon-size);
  height: var(--crm-search-icon-size);
  cursor: pointer;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='%23cdcdcd'/%3E%3Cpath d='m9 9 6 6m0-6-6 6' stroke='%23121316' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
body.is-crm-view-active .room-orders-list:has(> .room-empty) {
  display: grid;
  grid-template: auto minmax(0, 1fr) / minmax(0, 1fr);
}
body.is-crm-view-active .room-orders-list > .room-empty {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 16px;
  text-align: center;
}

:is(.crm-shifts-page, .dashboard-page) {
  --shift-panel: var(--crm-palette-panel, #26272a);
  --shift-line: var(--crm-palette-divider, #383a3c);
  --shift-lime: var(--crm-palette-lime, #d8f66b);
  --shift-purple: var(--crm-palette-purple, #7542d9);
  color-scheme: dark;
}
.crm-shifts-page {
  padding: 24px;
  min-width: 0;
  color: var(--crm-palette-text, #f4f5f7);
}
.crm-shifts-page > h2 { margin: 0 0 20px; font-size: 24px; }
.crm-shift-layout { display: grid; grid-template-columns: minmax(290px, 384px) minmax(0, 1fr); }
.crm-shift-operation {
  min-width: 0;
  padding: 16px;
  background: var(--shift-panel);
  border: 1px solid var(--shift-line);
  border-radius: 8px;
}
.crm-shift-comments h3 { margin: 0 0 14px; color: var(--shift-lime); font-size: 16px; }
.crm-shift-operation { padding: 24px; }
.crm-shift-operation .crm-shift-employee {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 30px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--shift-line);
}
.crm-shift-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--crm-palette-workspace, #36383c);
}
.crm-shift-avatar img { width: 100%; height: 100%; object-fit: cover; }
.crm-shift-operation .crm-shift-employee-picker { position: relative; display: grid; flex: 0 0 36px; }
.crm-shift-operation .crm-shift-employee-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.crm-shift-employee-picker:has(select:focus-visible) .crm-shift-avatar {
  outline: 2px solid var(--shift-lime);
  outline-offset: 2px;
}
.crm-shift-actions { display: grid; gap: 9.6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.crm-shift-operation .crm-shift-actions label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 21px;
  color: inherit;
  font-size: inherit;
}
.crm-shift-operation .crm-shift-actions input[type="radio"] {
  appearance: none;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  min-height: 0;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 1.5px solid var(--crm-palette-divider, #a1a3a6);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.crm-shift-operation .crm-shift-actions input:checked {
  border-color: var(--shift-lime);
  background: var(--shift-lime);
}
.crm-shifts-page :is(input[type="radio"], input[type="checkbox"]) { accent-color: var(--shift-lime); }
.crm-shifts-page :is(select, input:not([type="radio"], [type="checkbox"])),
.dashboard-controls select {
  box-sizing: border-box;
  min-height: 34px;
  border: 1px solid var(--shift-line);
  border-radius: 6px;
  padding: 5px 8px;
  background: var(--crm-palette-workspace, #202124);
  color: inherit;
  font: inherit;
}
.crm-shifts-page button,
.dashboard-controls button {
  padding: 7px 12px;
  border: 1px solid var(--shift-line);
  border-radius: 6px;
  background: var(--crm-palette-workspace, #202124);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.crm-shifts-page button:disabled { opacity: .45; cursor: default; }
:is(.crm-shifts-page, .dashboard-controls) :is(button, select, input):focus-visible { outline: 2px solid var(--shift-lime); outline-offset: 2px; }
.crm-shift-operation button[type="submit"] {
  display: block;
  margin: 24px auto 0;
  padding: 8px 24px;
  border-radius: 999px;
  color: #171a10;
  background: var(--shift-lime);
  border-color: var(--shift-lime);
}
.crm-shift-operation [data-shift-fields] { display: grid; gap: 16px; margin-top: 24px; }
.crm-shift-operation [data-shift-fields] input {
  min-height: 44.2px;
  appearance: none;
  width: 100%;
  padding-inline: 12px;
  border: 1px solid var(--shift-line);
  box-shadow: none;
}
.crm-shift-operation [data-shift-fields] input[type="number"] { appearance: textfield; }
.crm-shift-operation [data-shift-fields] input::-webkit-inner-spin-button,
.crm-shift-operation [data-shift-fields] input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.crm-shift-operation [data-shift-fields] input::placeholder { color: var(--crm-palette-muted, #8c8e94); opacity: 1; }
.crm-shift-comment-field { position: relative; }
.crm-shift-operation [data-shift-fields] .crm-shift-comment-field input { padding-inline-end: 40px; }
.crm-shift-quick-comments { position: absolute; inset: 1px 1px 1px auto; }
.crm-shift-quick-comments summary {
  display: grid;
  place-items: center;
  height: 100%;
  width: 36px;
  list-style: none;
  border-radius: 5px;
  color: var(--crm-palette-muted, #bfc1c6);
  cursor: pointer;
}
.crm-shift-quick-comments summary::-webkit-details-marker { display: none; }
.crm-shift-quick-comments summary:is(:hover, :focus-visible), .crm-shift-quick-comments[open] summary { color: var(--crm-palette-text, #fff); }
.crm-shift-quick-comments svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.crm-shift-quick-comments .room-order-status-menu { left: auto; right: 0; transform: none; }
.crm-shift-operation .crm-shift-quick-comments .room-order-status-option {
  border: 0;
  background: transparent;
  text-align: start;
  color: var(--crm-palette-text, #fff);
}
.crm-shift-operation .crm-shift-quick-comments .room-order-status-option:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .08); }
.crm-shift-operation [role="status"]:not(:empty) { display: block; margin-top: 8px; font-size: 12px; }
.crm-shift-filters, .crm-shift-pagination { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.crm-shift-table { overflow: auto; margin-block: 12px; }
.crm-shift-table table { width: 100%; border-collapse: collapse; }
.crm-shift-table :is(th, td) { padding: 10px; text-align: left; border-bottom: 1px solid var(--shift-line); white-space: nowrap; }
.crm-shift-table th { background: var(--crm-palette-workspace, #202124); color: var(--shift-lime); font-weight: 400; }
.crm-shift-table tbody tr:hover { background: var(--crm-palette-hover, #303136); }
.crm-shift-comments { margin-block-start: 16px; padding-block-start: 14px; border-top: 1px solid var(--shift-line); overflow-wrap: anywhere; }
@media (max-width: 900px) { .crm-shift-layout { grid-template-columns: minmax(0, 1fr); } }

.crm-shifts-page :is(h2, h3, strong, b, legend, label, button, th) { font-weight: 400; }

/* Existing Milio boards inside the CRM tasks page. */
html:has(body.is-crm-view-active #roomView.is-crm-tasks-open),
body.is-crm-tasks-board {
  --crm-task-surface: var(--crm-palette-workspace, #18191c);
}
body.is-crm-view-active:has(.crm-tasks-page:not(.is-hidden)) .room-main {
  padding: 0;
  background: var(--crm-task-surface);
}
body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .app-shell > .topbar {
  background: var(--crm-palette-header, #18191c) !important;
}
body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .topbar .topbar-search {
  background: transparent !important;
}
body.is-crm-view-active #roomView.is-crm-tasks-open .room-sidebar {
  background: var(--crm-menu-background, var(--crm-palette-panel, #1c1d20)) !important;
}
body.is-crm-view-active #roomView.is-crm-tasks-open #crm-native-connection {
  background: transparent !important;
}
body.is-crm-view-active #roomView.is-crm-tasks-open .room-nav button:is(:hover, :focus-visible):not(.is-active) {
  background: rgb(0 0 0 / 5%) !important;
}
body.is-crm-view-active #roomView.is-crm-tasks-open .room-nav button.is-active {
  background: rgb(0 0 0 / 9%) !important;
}
body.is-crm-view-active:has(.crm-tasks-page:not(.is-hidden)) .topbar-search > :is(input, .topbar-search-icon) {
  display: none;
}
body.is-crm-view-active #roomView .crm-tasks-page:not(.is-hidden) {
  display: flex;
  box-sizing: border-box;
  padding: 15px 0 15px 15px;
  min-width: 0;
  min-height: 0;
  background: var(--crm-task-surface);
}
.crm-tasks-page iframe {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
}
body.is-crm-tasks-board,
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) :is(.app-shell, .app-main, .kanban-view) {
  margin: 0;
  padding: 0;
  box-shadow: none;
  outline: none;
  background: var(--crm-task-surface);
  color: var(--crm-palette-text, #f4f5f7);
  border: 0;
  border-radius: 0;
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) { padding: 0; }

/* The embedded board fills its iframe, including wide CRM windows. */
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .app-shell {
  width: 100%;
  max-width: none;
  height: 100dvh;
}
body.is-crm-tasks-board .topbar { display: none !important; }

.crm-task-toolbar { display: none; }
body.is-crm-view-active:has(.crm-tasks-page:not(.is-hidden)) .crm-task-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.crm-task-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  white-space: nowrap;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--crm-palette-text, #f4f5f7);
  font: inherit;
  cursor: pointer;
}
.crm-task-toolbar-button[hidden] { display: none; }
.crm-task-toolbar-button:disabled { opacity: .45; cursor: default; }
.crm-task-toolbar-button:enabled:hover,
.crm-task-toolbar-button:focus-visible { background: var(--crm-palette-hover, #303134); }
.crm-task-toolbar-button[aria-pressed="true"] { color: #d7fa52; }
.crm-task-toolbar-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 901px) {

  body.is-crm-tasks-board #kanbanView .kanban-column:not(.kanban-archive-panel) {
    border-radius: 9px;
  }
}

body.is-crm-tasks-board #kanbanView .kanban-column:not(.has-custom-background) {
  --kanban-column-bg: #262729;
}
body.is-crm-tasks-board #kanbanView .kanban-column:not(.has-custom-text) {
  --kanban-column-text: #f4f5f7;
}
body.is-crm-tasks-board #kanbanView .kanban-column:not(.has-custom-card-background) {
  --kanban-card-bg: #303134;
}
body.is-crm-tasks-board #kanbanView .kanban-column:not(.has-custom-card-text) {
  --kanban-card-text: #f4f5f7;
}
body.is-crm-tasks-board #kanbanView .kanban-column:not(.has-custom-card-hover-background) {
  --kanban-card-hover-bg: #38393c;
}
body.is-crm-tasks-board #kanbanView .kanban-column:not(.has-custom-card-hover-border) {
  --kanban-card-hover-border: #a578ed;
}
body.is-crm-tasks-board #kanbanView .kanban-column {
  background: var(--kanban-column-bg) !important;
  color: var(--kanban-column-text);
  border: 1px solid var(--crm-palette-divider, #393a3d);
  box-shadow: none;
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .kanban-card-modal-head {
  background: var(--card-panel);
  border-bottom: 1px solid var(--card-border);
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .kanban-card-modal-title {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .kanban-card-modal-heading:focus-within {
  background: var(--card-hover);
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .kanban-card-modal-close {
  width: 36px; height: 36px; min-width: 36px; padding: 0; border: 0;
  border-radius: 50%; background: transparent; color: var(--ink); box-shadow: none;
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .kanban-card-modal-close:is(:hover, :focus-visible) {
  background: var(--card-hover);
}
body.is-crm-tasks-board .kanban-card-detail-modal .crm-comment-composer { background-image: none; }
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal .crm-comment-composer .kanban-card-comment-textarea {
  min-height: 45px; max-height: none; padding: 0; font-size: 14px; line-height: 1.6; resize: none;
}
body.is-crm-tasks-board .kanban-card-detail-modal .crm-comment-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}
body.is-crm-tasks-board .kanban-card-detail-modal .crm-comment-date-actions time {
  color: var(--comment-muted); font-size: 11px; font-style: normal;
}
body.is-crm-tasks-board .kanban-card-detail-modal .crm-comment-date-actions button {
  display: grid; place-items: center; padding: 0; background: transparent;
}
body.is-crm-tasks-board .kanban-card-detail-modal .crm-comment-attach {
  flex: 0 0 38px; min-height: 38px; padding: 0;
}
@media (hover:hover) and (pointer:fine) {
  body.is-crm-tasks-board .kanban-card-detail-modal .crm-comment-date-actions > * { grid-area: 1 / 1; }
  body.is-crm-tasks-board .kanban-card-detail-modal .crm-comment-date-actions [data-kanban-comment-delete] { opacity: 0; pointer-events: none; }
  body.is-crm-tasks-board .kanban-card-detail-modal .crm-comment:is(:hover, :focus-within) .crm-comment-date-actions [data-kanban-comment-delete] { opacity: 1; pointer-events: auto; }
  body.is-crm-tasks-board .kanban-card-detail-modal .crm-comment:is(:hover, :focus-within) .crm-comment-date-actions time { opacity: 0; pointer-events: none; }
}

@media (min-width: 901px) {
  body.is-crm-tasks-board .kanban-card-detail-modal > .kanban-card-modal-body.has-side.is-side-open:has(.kanban-card-modal-images-inline):has(.kanban-card-comments-panel) {
    grid-template-columns: minmax(0, 1fr) minmax(500px, 1.1fr);
  }
  body.is-crm-tasks-board .kanban-card-detail-modal > .kanban-card-modal-body.has-side.is-side-open > .kanban-card-modal-side:has(.kanban-card-modal-images-inline):has(.kanban-card-comments-panel) {
    grid-template-columns: minmax(160px, .65fr) minmax(280px, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
  }
  body.is-crm-tasks-board .kanban-card-detail-modal > .kanban-card-modal-body.has-side.is-side-open > .kanban-card-modal-side > .kanban-card-modal-images-inline {
    grid-column: 1; grid-row: 1; border: 0; border-radius: 0; padding: 16px 12px;
    background: var(--card-inset); overflow: auto;
  }
  body.is-crm-tasks-board .kanban-card-detail-modal .kanban-card-modal-side .kanban-card-comments-panel.crm-order-comments-column {
    grid-column: 2; grid-row: 1;
  }
  body.is-crm-tasks-board .kanban-card-detail-modal .kanban-card-modal-photo-list,
  body.is-crm-tasks-board .kanban-card-detail-modal .kanban-card-modal-file-list {
    display: flex; flex-direction: column; gap: 12px;
  }
  body.is-crm-tasks-board .kanban-card-detail-modal .kanban-card-modal-photo-list .kanban-card-modal-image,
  body.is-crm-tasks-board .kanban-card-detail-modal .kanban-card-modal-file-list .kanban-card-modal-image {
    width: 100%; max-width: 100%; margin: 0; flex: 0 0 auto;
  }
}

/* Shift history and revenue dashboard */
.crm-shift-sidebar { min-width: 0; border-inline-end: 1px solid var(--shift-line); }
.crm-shift-sidebar .crm-shift-operation { background: transparent; border: 0; padding: 0 20px 16px 30px; }
.crm-shift-report { display: grid; grid-template-rows: minmax(0, auto) minmax(min(120px, 30%), 1fr) auto; min-width: 0; min-height: 0; }
.crm-shift-report > .crm-shift-history { min-width: 0; overflow: auto; }
.crm-shift-sidebar .crm-shift-employee {
  margin-inline: -30px -20px;
  box-sizing: border-box;
  height: calc(2 * var(--crm-list-row-height));
  padding: 0 20px 0 30px;
}
.crm-shift-history > [role="status"] { margin: 8px 16px; }
.crm-shift-history > [role="status"]:empty { display: none; }
.crm-shift-table { margin: 0; }
.crm-shift-table :is(th, td) {
  padding: 10px clamp(10px, 1.25vw, 24px);
  font-size: 14px;
}
.crm-shift-table th {
  width: 11.75%;
  height: var(--crm-list-row-height);
  vertical-align: middle;
  white-space: normal;
  color: var(--crm-palette-text, #f4f5f7);
}
.crm-shift-table td { height: var(--crm-list-row-height); font-variant-numeric: tabular-nums; }
.crm-shift-table :is(th, td):last-child { width: 6%; border-inline-end: 0; }
.crm-shift-table .crm-shift-revenue { font-weight: 650; }
.crm-shift-table-employee .crm-shift-avatar { width: 34px; height: 34px; margin-inline: auto; }
.crm-shift-table-employee button { display: block; padding: 0; background: transparent; border: 0; }
.crm-shift-pagination { gap: 4px; flex-wrap: nowrap; }
.crm-shift-pagination > span { display: flex; gap: 4px; }
.crm-shift-pagination button {
  min-width: 32px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}
.crm-shift-pagination button[aria-current="page"] { color: var(--shift-lime); }
.crm-shift-pagination button:disabled { display: none; }
.crm-shift-history .crm-shift-comments { padding: 14px 16px; margin: 0; }
.crm-shift-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-height: 0;
  overflow: hidden;
}
.crm-shift-summary > section {
  min-width: 0;
  min-height: 0;
  padding: 16px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.crm-shift-summary > .crm-shift-metric { border-inline-end: 1px solid var(--shift-line); }
.crm-shift-summary > .crm-shift-metric:first-child { border-bottom: 1px solid var(--shift-line); }
.crm-shift-operation-card { grid-area: 1 / 2 / 3 / 3; }
.crm-shift-summary h3 { margin: 0; font-size: 14px; }
.crm-shift-metric { display: grid; align-content: start; gap: 16px; }
.crm-shift-metric strong { font-size: clamp(18px, 2vw, 32px); }
.crm-shift-metric--month strong { color: var(--shift-lime); }
.crm-shift-no-operations { margin: 18px 0 0; color: var(--crm-palette-muted, #bfc1c6); font-size: 13px; }
.crm-shift-operation-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-top: 14px; font-size: 14px; }
.crm-shift-operation-card h3 + .crm-shift-operation-row { margin-top: 22px; }
.crm-shift-table tbody tr { cursor: pointer; }
.crm-shift-table tbody tr:has([data-shift-day][aria-pressed="true"]) { background: var(--crm-palette-selection, #2e3035); }
.crm-shifts-page .crm-shift-day { white-space: nowrap; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.crm-shift-operation-row :is(small, time) { color: var(--crm-palette-muted, #bfc1c6); }
.crm-shift-operation-row time { margin-inline-start: auto; }
.crm-shift-operation-row .is-negative { color: #ff727e; }
@media (max-width: 900px) {
  .crm-shift-sidebar { border-inline-end: 0; border-bottom: 1px solid var(--shift-line); }
}
@media (max-width: 900px) {
  .crm-shift-summary { grid-template-rows: none; }
}
@media (max-width: 620px) {
  .crm-shift-summary { grid-template-columns: minmax(0, 1fr); }
  .crm-shift-summary > .crm-shift-metric { border-inline-end: 0; border-bottom: 1px solid var(--shift-line); }
  .crm-shift-operation-card { grid-area: auto; }
}

/* Keep the shift footer aligned with the CRM sidebar footer. */
body.is-crm-view-active:has(.crm-shifts-page:not(.is-hidden)) .room-main { padding: 0; }
body.is-crm-view-active #roomView .crm-shifts-page:not(.is-hidden) {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}
.crm-shifts-page > .crm-shift-layout { min-height: 0; }
@media (min-width: 901px) {
  .crm-shift-sidebar { overflow: auto; }
  .crm-shift-sidebar .crm-shift-operation {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-bottom: 0;
  }
}
.crm-shift-submit-footer {
  margin: auto -20px 0 -30px;
}
.crm-shift-sidebar [data-shift-fields] { margin-bottom: 24px; }
.crm-shift-submit-footer button[type="submit"] {
  box-sizing: border-box;
  border-top: var(--crm-panel-divider);
  width: 100%;
  height: var(--crm-list-row-height);
  margin: 0;
  border-radius: 0;
}
.crm-shift-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 12px;
  box-sizing: border-box;
  height: var(--crm-list-row-height);
  border-top: var(--crm-panel-divider);
  background: var(--crm-footer-background);
}
@media (max-width: 900px) {
  body.is-crm-view-active #roomView .crm-shifts-page:not(.is-hidden) { overflow: visible; }
  .crm-shift-report { grid-template-rows: auto auto auto; }
  .crm-shift-report > .crm-shift-history { overflow: visible; }
  .crm-shift-footer { position: sticky; bottom: 0; z-index: 5; }
}

/* Settings fill the embedded CRM work area while the board is hidden. */
body.is-crm-tasks-board:has(#settingsView:not(.is-hidden)) {
  margin: 0;
  padding: 0;
}
body.is-crm-tasks-board:has(#settingsView:not(.is-hidden)) :is(.app-shell, .app-main) {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--crm-palette-workspace, #202123);
  box-shadow: none;
}
body.is-crm-tasks-board #settingsView:not(.is-hidden) {
  position: static;
  width: 100%;
  height: 100%;
  padding: 0;
}
body.is-crm-tasks-board #settingsView .settings-modal-backdrop {
  position: static;
  display: block;
  height: 100%;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}
body.is-crm-tasks-board #settingsView .settings-modal {
  position: static;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--crm-palette-workspace, #202123);
  box-shadow: none;
}
body.is-crm-tasks-board #settingsView .settings-modal-body {
  min-height: 0;
  overflow: auto;
}

body.is-crm-view-active:has(#roomView:not(.is-hidden) .crm-shifts-page:not(.is-hidden)) .topbar {
  #crmPickupButton { display: none; }
}
.crm-shift-shop-picker { position: relative; margin-inline-start: 16px; color: var(--crm-palette-text, #f4f5f7); }
.crm-shift-shop-picker > summary {
  width: max-content;
  list-style: none;
  cursor: pointer;
}
.crm-shift-shop-picker > summary::-webkit-details-marker { display: none; }
.crm-shift-shop-options {
  position: absolute;
  inset-block-end: calc(100% + 8px);
  inset-inline-start: 0;
  display: grid;
  min-width: max-content;
  padding: 5px;
  border: 1px solid var(--crm-divider-color);
  border-radius: 8px;
  background: var(--crm-palette-workspace, #2b2d31);
  z-index: 6;
}
.crm-shift-shop-options button {
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  text-align: start;
  background: transparent;
  color: var(--crm-palette-text, #f4f5f7);
}
.crm-shift-shop-options button:is(:hover, :focus-visible) { background: #ffffff14; }
.crm-shift-shop-options button[aria-pressed="true"] { color: #d6f56b; }

body.is-crm-view-active:has(:is(.crm-wholesale-page, .crm-purchases-page, .crm-content-page):not(.is-hidden)) .room-main { padding: 0; }
body.is-crm-view-active #roomView :is(.crm-wholesale-page, .crm-purchases-page, .crm-content-page):not(.is-hidden) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
:is(.crm-wholesale-page, .crm-purchases-page, .crm-content-page) iframe { background: var(--crm-palette-workspace, #202124); color-scheme: dark; flex: 1; width: 100%; min-width: 0; min-height: 0; border: 0; }
.crm-wholesale-page { background: var(--crm-palette-workspace, #202124); }
.crm-wholesale-page > .crm-wholesale-footer {
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  :is(.crm-wholesale-page, .crm-purchases-page, .crm-content-page) iframe { min-height: calc(100dvh - var(--crm-list-row-height)); }
}

body.is-crm-view-active #roomView .crm-wholesale-page:not(.is-hidden) {
  display: grid;
  grid-template-columns: clamp(140px, 19%, 280px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
}
.crm-wholesale-page > .crm-wholesale-footer { grid-column: 1 / -1; }
.crm-wholesale-downloads {
  min-height: 0;
  overflow: auto;
  background: var(--crm-palette-panel, #1c1d20);
  border-inline-end: 1px solid var(--crm-palette-subtle-divider, #ffffff0f);
  color: var(--crm-navigation-color);
}
.crm-wholesale-sections button,
.crm-wholesale-downloads summary {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--crm-list-row-height, 55px);
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: start;
  cursor: pointer;
}
.crm-wholesale-sections button[aria-current="page"] {
  background: var(--crm-palette-selection, #383a3d);
}
.crm-wholesale-downloads summary {
  justify-content: space-between;
  padding-inline-end: 18px;
  list-style: none;
}
.crm-wholesale-downloads summary::-webkit-details-marker { display: none; }
.crm-wholesale-downloads summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
html.crm-wholesale-embedded.crm-wholesale-external-menu .room-page {
  grid-template-columns: minmax(0, 1fr);
}
html.crm-wholesale-embedded.crm-wholesale-external-menu .room-sidebar {
  display: none;
}
.crm-wholesale-downloads details[open] {
  background: var(--crm-palette-selection, #383a3d);
}
.crm-wholesale-downloads nav > :is(a, span) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 38px;
  padding: 6px 24px;
  color: inherit;
  text-decoration: none;
}
.crm-wholesale-downloads nav > a:is(:hover, :focus-visible) {
  background: var(--crm-palette-hover, #303134);
}

/* DSD shares the CRM window chrome when opened from Wholesale. */
html.crm-wholesale-embedded body { margin: 0; padding: 0; background: var(--crm-palette-workspace, #202124); }
html.crm-wholesale-embedded body .app-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--crm-palette-workspace, #202124);
}
html.crm-wholesale-embedded .app-shell > .topbar { display: none !important; }
html.crm-wholesale-embedded body .app-shell > .app-main { padding: 0; background: var(--crm-palette-workspace, #202124); }
html.crm-wholesale-embedded :is(.room-view, .room-page) { min-height: 100dvh; margin: 0; }
html.crm-wholesale-embedded .room-main { padding: 0; }
html.crm-wholesale-embedded .room-orders-empty { border: 0; }

@media (min-width: 768px) {
  html.crm-wholesale-embedded .room-orders-list {
    --contentds-room-orders-grid:
      minmax(0, 7fr) minmax(0, 10fr) minmax(0, 15fr) minmax(0, 13fr)
      repeat(5, minmax(0, 10fr)) minmax(0, 5fr) repeat(2, minmax(0, 10fr));
  }
  html.crm-wholesale-embedded .room-orders-table-head > span:last-child {
    justify-content: flex-end;
    padding-right: 0;
    text-align: right;
  }
  :is(html.crm-wholesale-embedded, html.crm-content-embedded, body.is-crm-settings-active #settingsView) .room-sidebar {
    border-inline-end: 1px solid var(--crm-divider-color, #ffffff0f);
    top: 0;
    position: sticky;
    align-self: start;
    height: 100dvh;
    overflow-y: auto;
    min-height: 0;
    padding: 0;
  }
  :is(html.crm-wholesale-embedded, html.crm-content-embedded, body.is-crm-settings-active #settingsView) .room-nav button {
    box-sizing: border-box;
    height: var(--crm-menu-row-height);
    min-height: 0;
    padding-inline: 24px;
    border-bottom: 1px solid var(--crm-divider-color, #ffffff0f);
  }
  :is(html.crm-wholesale-embedded, html.crm-content-embedded, body.is-crm-settings-active #settingsView) .room-nav button::before { content: none; }
  html.crm-wholesale-embedded .room-orders-table-head {
    box-sizing: border-box;
    height: var(--crm-list-row-height, 55px);
    min-height: 0;
    border-bottom-color: var(--crm-divider-color, #ffffff0f);
  }
  html.crm-wholesale-embedded .room-order-card {
    box-sizing: border-box;
    grid-template-rows: calc(var(--crm-list-row-height, 55px) - 1px) auto;
    padding-block: 0;
    border-bottom: 1px solid var(--crm-divider-color, #ffffff0f);
  }
  html.crm-wholesale-embedded .room-order-card + .room-order-card::before { content: none; }
}

/* CRM Tasks uses the Trello toolbar scale and control order. */
body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .app-shell > .topbar {
  display: grid;
  position: relative;
  grid-template-columns: minmax(96px, 1fr) minmax(0, auto) minmax(max-content, 1fr);
  align-items: center;
  min-height: 70px;
  padding: 8px 8px 8px 24px;
  gap: 12px;
}
body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .topbar :is(.topbar-logo, .crm-pickup-button, #crm-two-columns-toggle, #frontPanelButton, [data-crm-heading-control]) {
  display: none !important;
}
body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .topbar :is(.topbar-brand, .topbar-search, .topbar-actions) {
  position: static;
  display: flex;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  transform: none;
  align-items: center;
}
body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .topbar .topbar-actions { justify-content: flex-end; gap: 6px; }
body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .topbar .topbar-settings { margin: 0; }
.crm-task-board-control .crm-task-toolbar-button { color: #d7fa52; }
.crm-task-search { position: relative; display: block; width: min(320px, 28vw); }
body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .topbar .crm-task-search input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 10px 16px 10px 56px;
  border-radius: 999px;
}
body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .topbar .crm-task-search .topbar-search-icon {
  position: absolute;
  inset: 50% auto auto 16px;
  width: 24px;
  height: 24px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  pointer-events: none;
}
@media (min-width: 1181px) {
  body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .topbar .topbar-search {
    position: absolute;
    inset: 50% auto auto calc(50% - 204px);
    transform: translateY(-50%);
  }
  body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .topbar .topbar-actions { grid-column: 3; }
}
@media (max-width: 760px) {
  body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .app-shell > .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 8px;
  }
  body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .topbar .topbar-search {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: center;
  }
  .crm-task-search { width: min(320px, calc(100vw - 72px)); }
}


html.crm-wholesale-embedded .room-order-card-status-cell:hover .room-order-status-trigger,
html.crm-wholesale-embedded .room-order-card-status-cell:focus-within .room-order-status-trigger,
html.crm-wholesale-embedded .room-order-card-status-cell .room-order-status-trigger span {
  color: var(--crm-status-ink, #21182C);
}

/* Keep the CRM header slightly darker than its charcoal sidebar. */
body.is-crm-view-active:not(:has(#roomView.is-crm-tasks-open)) .app-shell > .topbar,
body.is-crm-view-active:not(:has(#roomView.is-crm-tasks-open)) .app-shell > .topbar .topbar-search,
body.is-crm-view-active:not(:has(#roomView.is-crm-tasks-open)) .app-shell > .topbar .topbar-search > :is(input, .topbar-search-icon) {
  background: var(--crm-palette-header, #18191c) !important;
}

html.crm-wholesale-embedded .room-page:has(.room-main-page--orders.has-order-detail:not(.is-hidden)) {
  grid-template-columns: minmax(0, 1fr);
}
html.crm-wholesale-embedded .room-page:has(.room-main-page--orders.has-order-detail:not(.is-hidden)) .room-sidebar,
html.crm-wholesale-embedded .room-main-page--orders.has-order-detail > :not(#roomOrderModalRoot) {
  display: none !important;
}
html.crm-wholesale-embedded .room-main-page--orders.has-order-detail {
  background: var(--crm-palette-workspace, #202124);
  color: var(--crm-palette-text, #f4f5f7);
}
html.crm-wholesale-embedded #roomOrderModalRoot.crm-order-page-root {
  min-height: 0;
  flex: 1;
}
@media (min-width: 701px) {
  html.crm-wholesale-embedded #roomOrderModalRoot.crm-order-page-root {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max(345px, 28.75%);
    grid-template-rows: minmax(0, 1fr) auto;
    height: var(--crm-order-page-height, 100dvh);
  }
}
.crm-wholesale-item-price {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.crm-wholesale-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

html:has(body.is-crm-view-active #roomView.is-crm-tasks-open),
body.is-crm-view-active:has(#roomView.is-crm-tasks-open) {
  background: var(--crm-task-surface) !important;
}
html[data-trello-native]:has(body.is-crm-view-active #roomView.is-crm-tasks-open) {
  color-scheme: dark;
}

html[data-trello-native] body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .app-shell {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100dvh !important;
  min-height: 100dvh !important;
  background: var(--crm-task-surface);
}

html[data-trello-native] body.is-crm-view-active:has(#roomView.is-crm-tasks-open) .app-main {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
}

body.is-crm-view-active #roomView.is-crm-tasks-open .crm-tasks-page {
  padding-bottom: 0;
}
body.is-crm-tasks-board .crm-task-loading-column {
  min-height: 160px;
  opacity: 0.55;
}

.crm-purchases-toolbar { display: none; }
.crm-purchases-cart-title { display: none; }
body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden))
  .topbar:has(.crm-purchases-toolbar.is-cart-open) .crm-purchases-cart-title {
  display: block;
  padding-inline-start: 12px;
  white-space: nowrap;
}

body:not(:has(.crm-purchases-page:not(.is-hidden))) #crmPurchaseSearch,
body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .topbar-search > input:not(#crmPurchaseSearch) {
  display: none;
}
body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .crm-purchases-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px;
  pointer-events: none;
}
.crm-purchases-toolbar > button { pointer-events: auto; }
body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .crm-purchases-toolbar.is-cart-open {
  justify-content: flex-end;
}
.crm-purchases-toolbar.is-cart-open > [data-purchase-control],
body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .topbar:has(.crm-purchases-toolbar.is-cart-open)
  :is(#crm-table-heading-toggle, #crm-two-columns-toggle,
      .topbar-search > .topbar-search-icon, #crmPurchaseSearch, #crmPurchaseSearchClear) {
  display: none !important;
}

.crm-purchases-refresh { display: none; }
body.is-crm-view-active #roomView:has(.crm-purchases-page:not(.is-hidden)) #crm-native-connection {
  display: none !important;
}
body.is-crm-view-active #roomView:has(.crm-purchases-page:not(.is-hidden)) .crm-purchases-refresh:not(:empty) {
  display: flex;
  align-items: center;
  min-height: var(--crm-menu-row-height, 27.5px);
  margin-top: auto;
  padding-inline: 8px 44px;
  border-top: var(--crm-panel-divider);
}
.crm-purchases-refresh .refresh-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 12px;
  white-space: nowrap;
}
.crm-purchases-refresh .refresh-copy [hidden] { display: none; }
#roomView.crm-menu-collapsed .crm-purchases-refresh {
  justify-content: center;
  padding-inline: 0;
  margin-bottom: var(--crm-sidebar-toggle-height);
}
#roomView.crm-menu-collapsed .crm-purchases-refresh .refresh-copy { display: none; }
.crm-purchases-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(36px, 1fr);
  flex: 0 0 var(--crm-sidebar-toggle-height);
  align-items: center;
  min-width: 0;
  padding-inline: 24px;
  background: var(--crm-palette-header, #242528);
}
@media (min-width: 761px) {
  .crm-purchases-footer {
    padding-inline-start: calc(clamp(140px, 19%, 280px) + 24px);
  }
  .crm-purchases-footer.is-menu-collapsed {
    padding-inline-start: 108px;
  }
}
@media (min-width: 901px) {
  html[data-trello-native] .crm-purchases-footer {
    position: fixed;
    inset: auto var(--crm-right-rail-width, 0px) 0 var(--crm-primary-rail-width, 84px);
    height: var(--crm-sidebar-toggle-height);
    z-index: 5;
  }
}
.crm-purchases-page-count {
  padding-inline: 8px;
  color: var(--crm-palette-muted, #bfc1c6);
  text-align: center;
  font-size: 12px;
}
.crm-purchases-clear-cart {
  grid-area: 1 / 1;
  justify-self: start;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: inherit;
  cursor: pointer;
}
.crm-purchases-clear-cart:enabled:is(:hover, :focus-visible) {
  color: var(--crm-palette-text, #fff);
}
.crm-purchases-clear-cart:disabled {
  opacity: .5;
  cursor: default;
}
.crm-purchases-footer > .crm-purchases-supplier {
  grid-area: 1 / 1;
}
.crm-purchases-supplier {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--crm-palette-muted, #bfc1c6);
}
.crm-purchases-supplier > span {
  font-size: 12px;
  color: var(--crm-palette-lime, #d6fa55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-purchases-supplier > .crm-purchases-filter-reset {
  flex: none;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  color: inherit;
}
.crm-purchases-supplier > .crm-purchases-filter-reset:is(:hover, :focus-visible) {
  color: var(--crm-palette-text, #f4f5f7);
  background: var(--crm-palette-selected, #383a3c);
}
.crm-purchases-filter-reset > svg:not(.crm-purchases-reset-icon) {
  width: var(--crm-rail-icon-size, 21px);
  height: var(--crm-rail-icon-size, 21px);
  stroke-width: 1.7;
}
.crm-purchases-filter-reset > .crm-purchases-reset-icon {
  width: 20.4px;
  height: 20.4px;
}
.crm-purchases-filter-reset:not(:hover, :focus-visible) > .crm-purchases-reset-icon,
.crm-purchases-filter-reset:is(:hover, :focus-visible) > svg:not(.crm-purchases-reset-icon) {
  display: none;
}
.crm-purchases-toolbar > [data-purchase-control="open-table"] {
  margin-inline-start: auto;
}
.crm-purchases-toolbar > [data-purchase-control="open-table"]:focus {
  outline: none;
}

#catalogOpenButton .crm-catalog-panel-icon { display: none; }
body.is-crm-view-active #catalogOpenButton :is(.catalog-menu-icon, .catalog-grid-icon) { display: none; }
body.is-crm-view-active #catalogOpenButton .crm-catalog-panel-icon {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
html[data-trello-native] body.is-crm-view-active .topbar #catalogOpenButton { left: 0; }

/* Older Mac shells still inject these controls after loading the page. */
html[data-trello-native] body.is-crm-view-active:has(#roomView.is-crm-retail-open)
  :is(#crm-table-heading-toggle, #crm-two-columns-toggle) {
  display: none !important;
}


@media (min-width: 901px) {
  body.is-crm-view-active #roomView > .room-page {
    --crm-row-base-height: var(--crm-fitted-row-height, 55px);
    --crm-sidebar-toggle-height: var(--crm-menu-row-height);
  }
  body.is-crm-view-active #roomView .room-sidebar > .room-nav {
    min-height: 0;
    overflow-y: auto;
  }
  html[data-trello-native] body.is-crm-view-active #roomView:not(.is-crm-retail-open) .room-orders-table-head {
    height: var(--crm-list-row-height);
    min-height: var(--crm-list-row-height);
  }
  html[data-trello-native] body.is-crm-view-active #roomView #crm-native-connection {
    box-sizing: border-box;
    height: var(--crm-menu-row-height, 27.5px);
    flex: none;
  }
}

.app-shell:has(.content-settings-page) {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
}

.app-main:has(> .content-settings-page) {
  flex: 1 1 0;
  min-height: 0;
  background: #202124;
}

#settingsView.content-settings-page {
  position: relative;
  inset: auto;
  z-index: auto;
  display: block;
  height: 100%;
  padding: 0;
  color-scheme: dark;
  --ink: #f4f5f7;
  --muted: #b8bbc2;
  --page-overlay-background: #202124;
  --page-overlay-surface: #202124;
  --page-overlay-ink: var(--ink);
  --page-overlay-hover: #292a2d;
  --page-overlay-active: #35373b;
  --page-overlay-border: #3b3d40;
  background: var(--page-overlay-surface);
  color: var(--ink);
}

#settingsView.content-settings-page .settings-modal-backdrop {
  position: static;
  display: block;
  height: 100%;
  padding: 0;
  background: transparent;
}

#settingsView.content-settings-page .settings-modal {
  position: static;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--page-overlay-surface);
  color: var(--ink);
}

#settingsView.content-settings-page .settings-modal-head {
  display: flex;
  align-items: center;
  background: var(--page-overlay-surface);
  border-bottom: 1px solid var(--page-overlay-border);
}

#settingsView.content-settings-page .settings-modal-tabs {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  border: 0;
  background: transparent;
}

#settingsView.content-settings-page .settings-section-tab {
  flex: 0 0 auto;
  color: var(--ink);
}

#settingsView.content-settings-page .settings-section-tab[aria-selected="true"] {
  background: var(--page-overlay-active);
  color: var(--ink);
}

#settingsView.content-settings-page .settings-modal-body {
  min-height: 0;
  overflow: auto;
  background: var(--page-overlay-surface);
}

body.is-crm-view-active:has(#roomView:not(.is-hidden) .crm-content-page:not(.is-hidden)) #crmOrderSearch {
  display: none;
}

body.is-crm-view-active:has(#roomView:not(.is-hidden) .crm-content-page:not(.is-hidden)) #crmContentSearch {
  display: block;
}


.crm-content-page { background: var(--crm-palette-workspace, #202124); }
.crm-content-page > .crm-content-frame-loading { visibility: hidden; }

.crm-content-page > .crm-content-footer {
  flex: 0 0 auto;
}

body.is-crm-settings-active #roomView .room-main {
  padding: 0;
  min-width: 0;
  overflow: hidden;
}

@media (min-width: 901px) {
  :is(html.crm-content-embedded, body.is-crm-settings-active) #settingsView.content-settings-page .settings-modal {
    grid-template-columns: 248px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  :is(html.crm-content-embedded, body.is-crm-settings-active) #settingsView.content-settings-page .settings-modal-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: 100%;
    padding: 0;
    border-bottom: 0;
    background: var(--crm-menu-background, var(--crm-palette-workspace, #1c1d20));
  }

  :is(html.crm-content-embedded, body.is-crm-settings-active) #settingsView.content-settings-page .settings-modal-tabs {
    display: block;
    width: 100%;
    padding: 0;
    border-radius: 0;
  }

  :is(html.crm-content-embedded, body.is-crm-settings-active) #settingsView.content-settings-page .settings-modal-tabs button:not([hidden]) {
    width: 100%;
    justify-content: flex-start;
    font: inherit;
    font-weight: 500;
    color: rgb(255 255 255 / 76%);
    background: transparent;
  }

  :is(html.crm-content-embedded, body.is-crm-settings-active) #settingsView.content-settings-page .settings-modal-tabs button:is([aria-selected="true"], [aria-pressed="true"]) {
    color: var(--crm-palette-text, #fff);
    background: var(--crm-palette-selection, var(--crm-selected-row-background, linear-gradient(135deg, #303236, #292b2e)));
  }

  :is(html.crm-content-embedded, body.is-crm-settings-active) #settingsView.content-settings-page .settings-modal-tabs button:not(.is-active):is(:hover, :focus-visible) {
    color: var(--crm-palette-text, #fff);
    background: rgb(255 255 255 / 6%);
  }

}

body.is-crm-settings-active #settingsView :is(#settingsLogoutButton, [data-settings-modal-close]) {
  display: none !important;
}

.settings-menu-tab[hidden] {
  display: none;
}

.crm-settings-links[hidden],
.crm-settings-links > button[hidden],
body.is-crm-settings-active #settingsView .settings-modal-tabs > button[hidden],
.crm-settings-integrations-open .settings-modal-body {
  display: none;
}

.crm-settings-integrations-open #integrationsView {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

body.is-crm-settings-active #settingsView .crm-settings-links > button {
  width: 100%;
}
body.is-crm-view-active {
  --crm-second-menu-background: var(--crm-palette-panel, #202124);
}

@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView .settings-modal-body:has(.settings-category-panel:not(.is-hidden) .settings-users-panel),
  body.is-crm-settings-active #settingsView .settings-modal-section:has(.settings-category-panel:not(.is-hidden) .settings-users-panel) {
    padding-block: 0;
  }

  body.is-crm-settings-active #settingsView .settings-layout:has(.settings-category-panel:not(.is-hidden) .settings-users-panel) {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  }

  body.is-crm-settings-active #settingsView .settings-layout:has(.settings-category-panel:not(.is-hidden) .settings-users-panel) .settings-values-menu {
    grid-area: 1 / 2;
    border-right: 0;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.is-crm-settings-active #settingsView .settings-main-panel:has(.settings-category-panel:not(.is-hidden) .settings-users-panel) {
    grid-area: 1 / 1;
  }
}

.crm-settings-staff-open .settings-modal-body {
  display: none;
}

#settingsView #crm-assignee-settings {
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--page-overlay-surface);
}

.crm-settings-integrations-open #integrationsView :is(.integrations-panel, .integration-card) {
  color: var(--ink);
  background: var(--page-overlay-hover);
  border-color: var(--page-overlay-border);
  box-shadow: none;
}

body.is-crm-settings-active #settingsView {
  color-scheme: dark;
  --ink: var(--crm-palette-text, #f4f5f7);
  --muted: var(--crm-palette-muted, #b8bbc2);
  --page-overlay-background: var(--crm-palette-workspace, #202124);
  --page-overlay-surface: #202124;
  --page-overlay-ink: #f4f5f7;
  --page-overlay-hover: #292a2d;
  --page-overlay-active: #303136;
  --page-overlay-border: var(--crm-palette-divider, #3b3d40);
}

body.is-crm-settings-active #settingsView.content-settings-page .settings-modal-head {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: var(--crm-menu-background, var(--crm-palette-workspace, #1c1d20));
}
body.is-crm-settings-active #settingsView .crm-settings-links {
  order: -1;
}
body.is-crm-settings-active #settingsView .crm-settings-links:not([hidden]) {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}
@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView .settings-modal-head > .room-nav > button:not([hidden]) {
    box-sizing: border-box;
    height: var(--crm-menu-row-height);
    min-height: var(--crm-menu-row-height);
    flex: none;
  }
}

body.is-crm-settings-active #settingsView .settings-modal-tabs.is-hidden {
  display: none;
}
@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView.crm-settings-content-open .settings-modal {
    grid-template-columns: min(496px, 45%) minmax(0, 1fr);
  }
  body.is-crm-settings-active #settingsView .settings-modal-head > :is(.crm-settings-links, .settings-modal-tabs) {
    flex: 1 1 0;
    min-width: 0;
    overflow: auto;
    border-inline-end: 1px solid var(--page-overlay-border);
  }
}
.crm-settings-health-open .settings-modal-body {
  display: none !important;
}
.crm-settings-health-open #dashboardView {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: var(--page-overlay-surface);
  color: var(--ink);
}

/* Use CRM surfaces for the health dashboard inside settings. */
.crm-settings-health-open #dashboardView {
  color-scheme: dark;
  --ink: var(--crm-palette-text, #f4f5f7);
  --muted: var(--crm-palette-muted, #b8bbc2);
  --health-card: var(--crm-palette-workspace, #262729);
  --health-inset: var(--crm-palette-panel, #303134);
  --health-border: var(--crm-palette-divider, #3b3d40);
  --green: var(--crm-palette-lime, #d6f56b);
  --green-dark: var(--crm-palette-lime, #a6c94f);
  --blue: #8ab4ff;
  --amber: #ffc67a;
  --coral: #ff8996;
}
.crm-settings-health-open #dashboardView :is(.site-health-hero, .site-health-kpi, .site-health-card, .site-health-resource, .site-health-sync-card, .site-health-state, .dashboard-period-filter) {
  background: var(--health-card);
  border-color: var(--health-border);
  box-shadow: none;
}
.crm-settings-health-open #dashboardView :is(.site-health-check-table > div, .site-health-guide-list > div, .site-health-task-list > div, .site-health-event-list li, .site-health-sync-metric-button, .site-health-seo-grid > div, .site-health-funnel > div, .dashboard-period-filter button.is-active, .dashboard-period-filter button:hover) {
  background: var(--health-inset);
  border-color: var(--health-border);
}
.crm-settings-health-open #dashboardView .site-health-ring {
  background: conic-gradient(var(--green) calc(var(--value) * 1%), var(--health-border) 0);
}
.crm-settings-health-open #dashboardView .site-health-ring::before {
  background: var(--health-card);
}
.crm-settings-health-open #dashboardView .site-health-hero-score {
  color: #202124;
}
.crm-settings-health-open #dashboardView .site-health-event-list strong.is-ok {
  background: #353e23;
}
.crm-settings-health-open #dashboardView .site-health-event-list strong.is-warn {
  background: #443626;
}
html:not(.crm-content-embedded) .catalog-thumbnail-heading {
  display: none;
}

html:not(.crm-content-embedded) .catalog-table .catalog-sizes-cell {
  display: none;
}

.crm-category-menu-footer {
  display: none;
}

:is(html.crm-content-embedded, .crm-accounting-menu) .crm-category-menu-footer .crm-menu-toggle {
  display: grid;
  inset: 0;
  width: 100%;
  height: auto;
  border-radius: 0;
  justify-items: end;
  padding-inline: 0 8px;
}

.crm-accounting-menu-collapsed .crm-accounting-menu .crm-category-menu-footer .crm-menu-toggle{
  justify-items: center;
  padding-inline: 0;
}

.crm-accounting-menu-collapsed .crm-menu-toggle svg{
  transform: rotate(180deg);
}

.crm-card-actions-bar {
  grid-column: 1;
  position: sticky;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 8px 16px;
  background: var(--crm-palette-workspace, #1c1d20);
  border-block: 1px solid var(--line);
}

.crm-card-actions-bar {
  bottom: 0;
}

.crm-card-publish-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-inline-start: auto;
}

.crm-card-publish-controls .panel-title,
.crm-card-publish-controls .readiness-score,
.crm-card-publish-footer #publishProductStatus {
  margin: 0;
}

.crm-card-publish-controls .readiness-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crm-card-publish-controls .readiness-score span {
  font-size: inherit;
}

.crm-card-publish-controls .readiness-score p,
.crm-card-publish-footer #publishProductStatus:empty {
  display: none;
}


.crm-card-readiness-checks {
  position: relative;
}

.crm-card-readiness-checks #checkList {
  position: absolute;
  inset: auto auto calc(100% + 8px) 0;
  width: max-content;
  max-width: min(320px, 60vw);
  max-height: 50dvh;
  overflow: auto;
  margin: 0;
  padding: 12px;
  background: var(--crm-palette-workspace, #1c1d20);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.crm-card-actions-bar .quality-review {
  margin-inline-start: auto;
}

:is(.crm-card-actions-bar, .crm-card-publish-footer) .quality-review-badge:not(.is-reviewed) {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: var(--crm-palette-secondary, #cdcdcd);
}

:is(.crm-card-actions-bar, .crm-card-publish-footer) .quality-review-badge:not(.is-reviewed) svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.crm-card-actions-bar .quality-review-badge.is-reviewed {
  border: 0;
}

.crm-card-actions-bar .quality-review-badge.is-reviewed i {
  display: none;
}

.crm-card-info-flags {
  display: block;
}

.crm-card-info-flags .product-flag-switch {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  white-space: nowrap;
}


.crm-card-publish-footer .quality-review {
  flex: 0 0 auto;
  margin-inline-start: auto;
}

.crm-card-publish-footer .quality-review-picker {
  top: auto;
  bottom: calc(100% + 10px);
}

.crm-card-actions-bar .quality-review-picker {
  top: auto;
  bottom: calc(100% + 10px);
}



html[data-trello-native] body.is-crm-view-active #crm-two-columns-toggle svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
  color: var(--crm-palette-secondary, #ccc);
}

#crm-two-columns-toggle svg > rect {
  x: 3px;
  y: 4px;
  width: 18px;
  height: 16px;
}

#crm-two-columns-toggle svg > path {
  transform-box: view-box;
  transform-origin: center;
  transform: translateY(-3px) rotate(90deg) scaleY(.9);
}

@supports (left: anchor(--crm-assembler center)) {
  html[data-trello-native] body.is-crm-view-active #roomView.is-crm-retail-open
    .room-order-card-row [data-crm-assignee="assemblerId"] {
    anchor-name: --crm-assembler;
  }

  html[data-trello-native] body.is-crm-view-active:has(#roomView.is-crm-retail-open .room-order-card-row [data-crm-assignee="assemblerId"])
    #crm-two-columns-toggle {
    position: fixed;
    left: anchor(--crm-assembler center);
    margin-inline-end: 0;
    translate: -50% 0;
  }
}

.crm-content-columns {
  display: none;
  position: relative;
}

body.is-crm-view-active:has(.crm-content-page:not(.is-hidden)) .crm-content-columns:not([hidden]) {
  display: block;
}

.crm-content-columns summary {
  cursor: pointer;
  list-style: none;
}

.crm-content-columns summary::-webkit-details-marker {
  display: none;
}

.crm-content-column-options {
  position: fixed;
  inset-block: var(--crm-columns-top, 95px) var(--crm-fitted-row-height, 55px);
  inset-inline-end: 0;
  z-index: 10;
  box-sizing: border-box;
  width: min(340px, 100vw);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  border-inline-start: 1px solid var(--crm-palette-divider, #3b3d40);
  background: var(--crm-palette-selection, #383a3d);
  color: var(--crm-palette-text, #f1f3f4);
}

.crm-content-columns[open] .crm-content-column-options {
  animation: crm-columns-slide-in 180ms ease-out;
}

/* Match the CRM footer, whose height is independent of fitted table rows. */
@media (min-width: 901px) {
  .crm-content-column-options {
    inset-block-end: var(--crm-shell-bar-height, var(--crm-menu-row-height, 55px));
  }

  html[data-trello-native] .crm-content-column-options {
    inset-inline-end: var(--crm-right-rail-width, 0px);
    border-start-end-radius: var(--crm-shell-joint-radius, 12px);
    border-end-end-radius: var(--crm-shell-joint-radius, 12px);
  }
}

@keyframes crm-columns-slide-in {
  from { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .crm-content-columns[open] .crm-content-column-options {
    animation: none;
  }
}

.crm-content-column-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: var(--crm-fitted-row-height, 55px);
  padding: 0 16px;
  color: var(--crm-palette-text, #fff);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.crm-content-column-options input[type="checkbox"] {
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid #fff;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.crm-content-column-options input[type="checkbox"]:checked::after {
  content: "";
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

#crmCardToolbarActions,
#crmCardToolbarActions [hidden] {
  display: none;
}

body.is-crm-view-active:has(.crm-content-page:not(.is-hidden)) #crmCardToolbarActions:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 8px;
}

#crmCardToolbarActions .topbar-icon-button:not([hidden]) {
  color: var(--crm-palette-secondary, #cdcdcd);
  display: grid;
  place-items: center;
}

#crmCardToolbarActions .topbar-icon-button:focus-visible {
  box-shadow: inset 0 0 0 1px currentColor !important;
}

#crmCardToolbarActions .topbar-icon-button svg {
  color: inherit;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#crmCardToolbarActions #crmCardSiteLink:hover {
  color: var(--crm-palette-text, #fff);
}

#crmCardToolbarActions #crmCardDelete:hover {
  color: var(--coral);
}


.crm-subcategory-icon {
  display: none;
}

.crm-content-column-options[hidden] {
  display: none;
}

.crm-product-panel-toggle {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 50%;
  translate: -100% -50%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.crm-product-panel-toggle[aria-expanded="false"] {
  rotate: -90deg;
}

body.is-crm-view-active:has(#roomView .crm-accounting-page:not(.is-hidden)) .room-main {
  padding: 0;
}

body.is-crm-view-active #roomView .crm-accounting-page:not(.is-hidden) {
  display: grid;
  container-type: inline-size;
  grid-template-columns: var(--crm-accounting-menu-width, clamp(140px, 19%, 280px)) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) var(--crm-menu-row-height, 27.5px);
  padding: 0;
  overflow: hidden;
}

.crm-accounting-menu {
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--crm-menu-row-height, 27.5px);
  box-sizing: border-box;
  grid-row: 1 / -1;
  min-height: 0;
  background: var(--crm-second-menu-background);
  color: var(--crm-palette-text, #f4f5f7);
  border-inline-end: 1px solid var(--crm-palette-divider, #3b3d40);
}

.crm-accounting-menu-collapsed {
  --crm-accounting-menu-width: 84px;
}

.crm-accounting-footer {
  grid-area: 2 / 2;
  display: grid;
  grid-template-columns: clamp(140px, 19cqw, 280px) minmax(0, 1fr);
  background: var(--crm-footer-background);
  border-top: var(--crm-panel-divider);
}

.crm-accounting-new-receipt[hidden] { display: none; }

.crm-accounting-new-receipt {
  grid-column: 1 / 4;
  grid-row: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 3px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}

.crm-accounting-new-receipt > svg {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: var(--crm-palette-lime, #d6fa55);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.crm-accounting-new-receipt:hover {
  background: var(--crm-palette-hover, #292a2d);
}

@media (max-width: 900px) {
  .crm-accounting-footer { grid-template-columns: minmax(0, 1fr); }
  .crm-accounting-new-receipt { border-inline-end: 0; }
}

.crm-accounting-new-receipt:focus-visible {
  outline: 2px solid #f4f5f7;
  outline-offset: 1px;
}


.crm-accounting-items {
  overflow: auto;
  scrollbar-width: none;
}

.crm-accounting-items button {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: var(--crm-menu-row-height);
  padding: 0 24px;
  line-height: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  opacity: 1;
  text-align: start;
  font: inherit;
}

.crm-accounting-items button:is(:hover, :focus-visible) {
  background: var(--crm-palette-hover, linear-gradient(135deg, #303236 0%, #26282b 100%));
}

.crm-accounting-items button:enabled:hover {
  cursor: pointer;
}

.crm-accounting-items svg,
.crm-accounting-menu-collapsed .crm-accounting-items span {
  display: none;
}

.crm-accounting-menu-collapsed .crm-accounting-items button {
  justify-content: center;
  padding-inline: 0;
}

.crm-accounting-menu-collapsed .crm-accounting-items svg { display: block; }

.crm-accounting-menu .crm-category-menu-footer {
  display: block;
  position: relative;
  border-top: 0;
}

body.is-crm-view-active:has(.crm-content-page:not(.is-hidden)):has(#crmCardBlocks:not([hidden])) #crm-two-columns-toggle{
  display: none !important;
}

@media (min-width: 901px) {
  #settingsView.crm-profile-view .settings-modal {
    grid-template-columns: clamp(180px, 19%, 280px) minmax(0, 1fr);
    grid-template-rows: var(--crm-list-row-height, 55px) minmax(0, 1fr);
  }

  #settingsView.crm-profile-view .settings-modal-head {
    display: contents;
  }

  #settingsView.crm-profile-view #settingsMenuList {
    grid-area: 1 / 1 / -1 / 2;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: auto;
    padding: 0;
    border-inline-end: 1px solid var(--crm-profile-border);
    border-radius: 0;
    background: var(--crm-palette-workspace, #242527);
  }

  #settingsView.crm-profile-view #settingsMenuList button:not([hidden]) {
    flex: 0 0 var(--crm-menu-row-height);
    width: 100%;
    padding: 0 24px;
    border: 0;
    border-bottom: 1px solid var(--crm-divider-color, rgb(255 255 255 / 6%));
    border-radius: 0;
    background: transparent;
    color: var(--crm-profile-text);
    text-align: start;
  }

  #settingsView.crm-profile-view #settingsMenuList button:is(:hover, .is-active) {
    background: var(--crm-palette-selection, var(--crm-selected-row-background, linear-gradient(135deg, #303236, #292b2e)));
  }

  #settingsView.crm-profile-view .settings-modal-head > :is(.settings-modal-close, .settings-logout-button) {
    grid-area: 1 / 2;
    align-self: center;
    justify-self: end;
    position: static;
    margin-inline-end: 24px;
  }

  #settingsView.crm-profile-view .settings-modal-head > .settings-logout-button {
    margin-inline-end: 72px;
  }

  #settingsView.crm-profile-view .settings-modal > :is(.settings-modal-body, #settingsPayrollPanel, #settingsCrmMenuPanel) {
    grid-area: 2 / 2;
    min-height: 0;
    overflow-y: auto;
  }
}

body.is-crm-settings-active #settingsView .crm-settings-links > button:not([hidden]) {
  justify-content: flex-start;
  text-align: start;
  padding-inline: 24px;
  border-block-end: 0;
}

body.is-crm-settings-active #settingsView .crm-settings-links > button::after {
  content: none;
}

body.is-crm-settings-active #settingsView .crm-settings-links > button.is-active {
  background: var(--crm-palette-hover, #303236);
}

.crm-retail-menu[hidden],
#crmRetailToggle {
  display: none;
}

body.is-crm-view-active #roomView .crm-retail-nav:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--crm-menu-background, var(--crm-palette-workspace, #1c1d20));
}

body.is-crm-view-active #roomView .crm-retail-nav > button:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  flex: 0 0 var(--crm-menu-row-height);
  box-sizing: border-box;
  min-height: var(--crm-menu-row-height);
  padding: 0 24px;
  border-radius: 0;
  text-align: left;
}

body.is-crm-view-active #roomView .crm-retail-nav .crm-nav-icon {
  display: none;
}

body.is-crm-view-active #roomView :is(#crmRetailNav, #crmMarketingNav) > button > span {
  display: block;
  flex: 1;
  text-align: left;
}

@media (min-width: 901px) {
  body.is-crm-view-active #roomView .room-page:has(> .crm-retail-menu:not([hidden])) {
    grid-template-columns: 248px clamp(140px, 19%, 280px) minmax(0, 1fr);
  }

  body.is-crm-view-active #roomView.crm-menu-collapsed .room-page:has(> .crm-retail-menu:not([hidden])) {
    grid-template-columns: var(--crm-primary-rail-width, 84px) clamp(140px, 19%, 280px) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  body.is-crm-view-active #roomView .crm-retail-nav:not([hidden]) {
    flex-direction: row;
    overflow-x: auto;
  }

  body.is-crm-view-active #roomView .crm-retail-nav > button:not([hidden]) {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

body.is-crm-view-active #roomView .crm-retail-menu:not([hidden]) {
  min-width: 0;
  min-height: 0;
  background: var(--crm-menu-background, var(--crm-palette-panel, #1c1d20));
  border-inline-end: 1px solid var(--crm-divider-color);
}

@media (min-width: 901px) {
  body.is-crm-view-active #roomView .crm-retail-menu:not([hidden]) {
    display: grid;
    grid-template-rows: minmax(0, 1fr) var(--crm-sidebar-toggle-height);
  }

  body.is-crm-view-active #roomView .room-page:has(> .crm-retail-menu.is-collapsed:not(.is-dashboard-menu):not([hidden])) {
    grid-template-columns: 248px 84px minmax(0, 1fr);
  }

  body.is-crm-view-active #roomView.crm-menu-collapsed .room-page:has(> .crm-retail-menu.is-collapsed:not(.is-dashboard-menu):not([hidden])) {
    grid-template-columns: var(--crm-primary-rail-width, 84px) 84px minmax(0, 1fr);
  }

  body.is-crm-view-active #roomView .crm-retail-menu.is-collapsed :is(#crmRetailNav, #crmMarketingNav) > button:not([hidden]) {
    justify-content: center !important;
    padding-inline: 0;
  }

  body.is-crm-view-active #roomView .crm-retail-menu #crmRetailToggle > svg,
  body.is-crm-view-active #roomView .crm-retail-menu.is-collapsed :is(#crmRetailNav, #crmMarketingNav) > button > .crm-nav-icon {
    display: block;
    width: 18px;
    height: 18px;
  }

  body.is-crm-view-active #roomView .crm-retail-menu.is-collapsed :is(#crmRetailNav, #crmMarketingNav) > button > span {
    display: none;
  }

  body.is-crm-view-active #roomView #crmRetailToggle {
    display: grid;
    position: relative;
    inset: auto;
    grid-row: 2;
    width: 100%;
    height: var(--crm-sidebar-toggle-height);
    box-sizing: border-box;
    border-top: var(--crm-panel-divider);
    border-radius: 0;
  }

  body.is-crm-view-active #roomView .crm-retail-menu:not(.is-collapsed) #crmRetailToggle {
    justify-items: end;
    padding-inline-end: 8px;
  }

  .crm-retail-menu.is-collapsed #crmRetailToggle svg {
    transform: rotate(180deg);
  }
}

body.is-crm-view-active:has(#roomView .room-main-page:not(.is-hidden) > .dashboard-page) .room-main {
  padding: 0;
}

.dashboard-heading {
  padding: 24px;
  border-bottom: 1px solid var(--shift-line);
}

.dashboard-heading h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
}

.dashboard-heading p,
.dashboard-controls [role="status"] {
  margin: 0;
  color: #b8bbc2;
  font-size: 13px;
}

.dashboard-heading p {
  margin-top: 6px;
}

.dashboard-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 16px 24px;
}

.dashboard-controls label {
  display: grid;
  gap: 6px;
  min-width: min(100%, 180px);
  color: #b8bbc2;
  font-size: 13px;
}

.dashboard-controls select,
.dashboard-controls button {
  min-height: 34px;
  color: #f4f5f7;
}

.dashboard-controls button:hover {
  background: var(--shift-panel);
}

.dashboard-controls [role="status"] {
  align-self: center;
}

.dashboard-page dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 1px;
  margin: 0;
  border-block: 1px solid var(--shift-line);
  background: var(--shift-line);
}

.dashboard-page dl:empty {
  display: none;
}

.dashboard-page dl > div {
  display: grid;
  gap: 8px;
  padding: 18px 24px;
  background: var(--shift-panel);
}

.dashboard-page dt {
  color: #b8bbc2;
  font-size: 13px;
}

.dashboard-page dd {
  margin: 0;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.dashboard-page dl > div:first-child dd {
  color: var(--shift-lime);
}

.crm-accounting-receipt:not([hidden]) {
  grid-area: 1 / 2;
  min-width: 0;
  overflow: auto;
  color-scheme: dark;
}

.crm-accounting-receipt :is(h2, label, input, select, textarea, button, th, strong),
.crm-accounting-receipt input::file-selector-button {
  font: inherit;
  color: inherit;
}

.crm-receipt-fields label.crm-receipt-warehouse {
  grid-template-columns: minmax(0, 1fr);
}

.crm-receipt-warehouse select {
  appearance: none;
  cursor: pointer;
}

.crm-accounting-receipt form {
  display: grid;
  grid-template-columns: clamp(140px, 19cqw, 280px) minmax(0, 1fr);
  --receipt-row-height: var(--crm-menu-row-height, 27.5px);
  --receipt-divider: var(--crm-divider-color, rgb(255 255 255 / 6%));
  box-sizing: border-box;
  min-height: 100%;
}

.crm-receipt-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  padding-bottom: 24px;
  background: var(--crm-second-menu-background);
  border-inline-end: 1px solid var(--receipt-divider);
}

.crm-receipt-fields label {
  display: grid;
  white-space: nowrap;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: var(--receipt-row-height);
  padding-inline: 16px;
  border-bottom: 1px solid var(--receipt-divider);
}

.crm-receipt-fields label.crm-receipt-date {
  grid-template-columns: minmax(0, 1fr);
}

.crm-receipt-date > span,
.crm-receipt-date > input {
  grid-area: 1 / 1;
}

.crm-receipt-date > span {
  pointer-events: none;
}

.crm-receipt-fields :is(.crm-receipt-date input, .crm-receipt-warehouse select) {
  padding-inline-start: 0;
}

.crm-receipt-date:not(:focus-within) > input {
  opacity: 0;
}

.crm-receipt-date:focus-within > span {
  visibility: hidden;
}


.crm-accounting-receipt :is(input, select, textarea, button:not(.crm-accounting-new-receipt)) {
  min-width: 0;
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  box-shadow: none;
  border-radius: 6px;
  background: var(--crm-palette-workspace, #202124);
  color: inherit;
  font: inherit;
}

.crm-accounting-receipt :is(input, select, textarea, button:not(.crm-accounting-new-receipt)):focus-visible {
  outline: none;
  background: var(--crm-palette-selection, #303134);
}

.crm-accounting-receipt :is(input, select, textarea) {
  box-sizing: border-box;
  width: 100%;
}

.crm-accounting-receipt .crm-receipt-fields :is(input, select, textarea),
.crm-accounting-receipt .crm-receipt-table button {
  height: calc(var(--receipt-row-height) - 6px);
  min-height: 0;
  padding-block: 0;
}

.crm-accounting-receipt .crm-receipt-table td:has(> input) {
  padding: 0;
}

.crm-accounting-receipt .crm-receipt-table td > input {
  display: block;
  height: calc(var(--receipt-row-height) - 1px);
  min-height: 0;
  padding: 0 8px;
  border-radius: 0;
  background: transparent;
  outline: none;
}

.crm-receipt-table input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.crm-receipt-table input[type="number"] {
  appearance: textfield;
}

.crm-receipt-table input[type="number"]::-webkit-inner-spin-button,
.crm-receipt-table input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.crm-receipt-fields textarea {
  resize: none;
}

.crm-accounting-receipt .crm-receipt-fields .crm-receipt-file-button {
  width: 100%;
  height: var(--receipt-row-height);
  min-height: 0;
  padding: 0 16px;
  border-radius: 0;
  border-bottom: 1px solid var(--receipt-divider);
  text-align: start;
  cursor: pointer;
}

.crm-receipt-file-button:hover:not(:disabled) {
  background: var(--crm-palette-hover, #303134);
}

.crm-receipt-products {
  background-color: rgb(255 255 255 / 2%);
  min-width: 0;
  padding-bottom: 24px;
}

@media (max-width: 900px) {
  .crm-accounting-receipt form {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-receipt-fields { border-inline-end: 0; }
}

.crm-receipt-table {
  margin-bottom: 20px;
  overflow-x: auto;
}

.crm-receipt-table table,
.crm-receipt-summary-grid {
  width: 100%;
  min-width: 620px;
}

.crm-receipt-table table {
  table-layout: fixed;
  border-collapse: collapse;
}

.crm-receipt-table :is(th, td) {
  box-sizing: border-box;
  height: var(--receipt-row-height);
  padding: 2px 8px;
  border-bottom: 1px solid var(--receipt-divider);
  text-align: start;
  vertical-align: middle;
}

.crm-receipt-table :is(th, td) + :is(th, td) {
  border-inline-start: 0;
}

.crm-receipt-products,
.crm-receipt-summary {
  --receipt-attribute-width: 14%;
  --receipt-number-width: 10%;
}

.crm-receipt-table col:nth-child(n+3):nth-child(-n+4) { width: var(--receipt-attribute-width); }
.crm-receipt-table col:nth-child(n+5) { width: var(--receipt-number-width); }

.crm-receipt-table :is(th, td):not(:first-child),
.crm-receipt-table tbody :is([data-quantity], [data-price]) {
  text-align: center;
}

.crm-receipt-table tbody [data-color] {
  overflow-wrap: anywhere;
}

.crm-receipt-summary {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
}

.crm-receipt-summary-grid {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(0, 1fr) repeat(2, var(--receipt-attribute-width)) repeat(3, var(--receipt-number-width));
}

.crm-receipt-summary-grid > div {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 0 8px;
  padding: 2px 8px;
  border-inline-start: 0;
  font-size: 13px;
}

.crm-receipt-summary-grid > .crm-receipt-submit-status {
  grid-column: 1 / 4;
  grid-row: 1;
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
  padding: 0;
}

.crm-receipt-submit-status > .crm-accounting-new-receipt {
  flex: none;
  align-self: stretch;
}

.crm-receipt-status {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 4px 12px;
  text-align: center;
  overflow-wrap: anywhere;
}

.crm-receipt-total-quantity {
  grid-column: 4;
  white-space: nowrap;
}
.crm-receipt-total-amount { grid-column: 6; }

@media (max-width: 900px) {
  body.is-crm-view-active #roomView .crm-accounting-page:not(.is-hidden):has(.crm-receipt-summary:not([hidden])) {
    grid-template-rows: minmax(0, 1fr) calc(2 * var(--crm-menu-row-height, 27.5px));
  }
  .crm-receipt-summary { grid-column: 1; grid-row: 1; }
}

.crm-receipt-results:not([hidden]) {
  display: grid;
  gap: 4px;
  padding-top: 4px;
}

.crm-receipt-results button {
  text-align: start;
}

.crm-receipt-actions > button[data-add] {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: var(--receipt-row-height);
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--receipt-divider);
  background: transparent;
  cursor: pointer;
}

.crm-receipt-actions > button[data-add]:hover {
  background: var(--crm-palette-hover, #292a2d);
}

.crm-receipt-products .crm-receipt-table {
  margin-bottom: 0;
}

.crm-accounting-suppliers:not([hidden]) {
  display: grid;
  grid-area: 1 / 2 / -1;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) var(--crm-menu-row-height);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.crm-accounting-items button[aria-current="page"] {
  background: var(--crm-menu-active-background, var(--crm-palette-selection, #2c2e30));
}

.crm-suppliers-list,
.crm-suppliers-list-footer {
  background: var(--crm-palette-panel, #252525);
}

.crm-suppliers-list {
  grid-area: 1 / 1;
  min-width: 0;
  overflow: auto;
}

.crm-supplier-fields h2 {
  box-sizing: border-box;
  font: inherit;
  margin: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: var(--crm-menu-row-height);
  border-bottom: 1px solid var(--crm-divider-color, rgb(255 255 255 / 6%));
}

.crm-suppliers-list table {
  width: 100%;
  min-width: 960px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

/* Typography shared by the Accounting menu and suppliers workspace. */
.crm-accounting-page {
  --crm-type-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --crm-type-caption: 12px;
  --crm-type-support: 14px;
  --crm-type-body: 16px;
  --crm-type-heading: 20px;
  --crm-type-metric: 32px;
  --crm-type-regular: 400;
  --crm-type-medium: 500;
}

.crm-accounting-suppliers {
  font-family: var(--crm-type-family);
  font-size: var(--crm-type-body);
  font-weight: var(--crm-type-regular);
}

.crm-suppliers-list th {
  font-weight: var(--crm-type-medium);
}

.crm-accounting-suppliers [role="status"] {
  font-size: var(--crm-type-support);
}

.crm-suppliers-list th,
.crm-suppliers-list td {
  box-sizing: border-box;
  height: var(--crm-menu-row-height);
  padding: 0 12px;
  border-bottom: 1px solid var(--crm-divider-color, rgb(255 255 255 / 6%));
  text-align: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-suppliers-list th:first-child,
.crm-suppliers-list td:first-child {
  padding-inline-start: 24px;
}

.crm-suppliers-list tbody tr {
  cursor: pointer;
}

.crm-suppliers-list tbody tr:is(:hover, :focus-visible, .is-active) {
  background: var(--crm-selected-row-background);
}

.crm-supplier-create-footer button[hidden] {
  display: none;
}

.crm-supplier-phone-group + .crm-supplier-phone-group {
  margin-inline-start: 0.25em;
}

.crm-suppliers-list p,
.crm-suppliers-list > button {
  margin-inline: 24px;
}

.crm-supplier-create {
  grid-area: 1 / 2 / -1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--crm-menu-row-height);
  min-width: 0;
  min-height: 0;
  margin: 0;
  border-inline-start: var(--crm-panel-divider);
}

.crm-supplier-fields {
  overflow: auto;
}

.crm-supplier-fields input,
.crm-supplier-create-footer button {
  display: block;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  height: var(--crm-menu-row-height);
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-bottom: 1px solid var(--crm-divider-color, rgb(255 255 255 / 6%));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
}

.crm-supplier-fields input::placeholder {
  color: var(--crm-palette-text, #fff);
  opacity: 1;
}

.crm-supplier-fields input:focus::placeholder {
  opacity: 0;
}

.crm-supplier-fields input:focus {
  outline: none;
  background: var(--crm-selected-row-background);
}

.crm-supplier-create-footer button:focus-visible {
  outline: none;
  box-shadow: inset 0 -2px currentColor;
}

.crm-supplier-fields p {
  margin-inline: 24px;
}

.crm-suppliers-list-footer {
  grid-area: 2 / 1;
}

.crm-suppliers-list-footer,
.crm-supplier-create-footer {
  min-height: 0;
  border-top: var(--crm-panel-divider);
}

.crm-supplier-create-footer button {
  display: grid;
  place-items: center;
  height: 100%;
  padding-inline: 8px;
  font-weight: var(--crm-type-medium);
}

.crm-supplier-create-footer button:enabled {
  cursor: pointer;
}

.crm-accounting-page:has(.crm-accounting-suppliers:not([hidden])) .crm-accounting-footer {
  display: none;
}

/* CRM category settings */
body.is-crm-settings-active .settings-view-has-category-choice {
  --category-row-height: var(--crm-menu-row-height, 31.625px);
  --category-divider: 1px solid var(--crm-divider-color, #353638);
}

body.is-crm-settings-active .settings-view-has-category-choice :is(.settings-modal-body, .settings-modal-section),
body.is-crm-settings-active .settings-view-has-category-choice :is(.settings-values-menu, .settings-main-panel, .settings-category-choice) {
  padding: 0;
  gap: 0;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-values-menu {
  border-inline-end: var(--category-divider);
}

body.is-crm-settings-active .settings-view-has-category-choice :is(.settings-category-choice-toolbar, .settings-category-choice-block) {
  min-height: var(--category-row-height);
  align-items: center;
  margin-inline: 0;
  padding: 0 16px;
  border-bottom: var(--category-divider);
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-product-preview {
  border-top: var(--category-divider);
  padding: 12px 16px;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-main-panel {
  display: flex;
  flex-direction: column;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-main-panel > .panel-title {
  display: flex;
  align-items: center;
  min-height: calc(2 * var(--category-row-height));
  margin: 0;
  padding-inline-start: 16px;
  border-bottom: var(--category-divider);
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-panel-toggle {
  top: 8px;
  right: 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-panel-toggle:is(:hover, :focus-visible) {
  background: var(--crm-control-hover, var(--crm-palette-hover, #34363a));
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-panel {
  height: auto;
  gap: 0;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-panel .field-grid {
  gap: 0;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-panel :is(.field-grid > *, .settings-category-spec-groups) {
  min-height: var(--category-row-height);
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-bottom: var(--category-divider);
  border-radius: 0;
  background: transparent;
}

body.is-crm-settings-active .settings-view-has-category-choice :is(.settings-category-choice-search, .settings-category-panel .field-grid) :is(input, textarea) {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.is-crm-settings-active .settings-view-has-category-choice :is(.settings-category-choice-search, .settings-category-panel .field-grid > *):focus-within {
  background: var(--crm-control-hover, var(--crm-palette-selection, #303134));
}

body.is-crm-settings-active .settings-view-has-category-choice :is(input, textarea):focus::placeholder {
  color: transparent;
}

.settings-category-root-menu {
  display: none;
}

body.is-crm-settings-active .settings-view-has-category-choice {
  --category-menu-font-size: 16px;
}

body.is-crm-settings-active .settings-view-has-category-choice :is(.settings-category-root-menu, .settings-values-menu, .settings-main-panel) :is(button, a, input, textarea, h3, strong, small, span, summary, p) {
  color: var(--crm-palette-text, #fff);
  font-size: var(--category-menu-font-size);
  font-weight: 500;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-root-menu {
  display: block;
  min-width: 0;
  overflow: auto;
  background: var(--crm-menu-background, var(--crm-palette-panel, #1c1d20));
  border-inline-end: var(--category-divider);
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-root-menu :is(.settings-category-choice-block-roots, .settings-category-choice-roots, .settings-category-choice-root-item) {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-root-menu button {
  order: 1;
  justify-content: flex-start;
  width: 100%;
  min-height: var(--category-row-height);
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-bottom: var(--category-divider);
  border-radius: 0;
  background: transparent;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-root-menu .settings-category-choice-roots {
  order: 0;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-root-menu button:is(.is-active, [aria-pressed="true"], :hover, :focus-visible) {
  background: var(--crm-selected-row-background, var(--crm-palette-selection, #303236));
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-choice-toolbar {
  padding-inline-start: 0;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-choice-summary button {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-choice-summary button:disabled {
  opacity: .5;
}

body.is-crm-settings-active .settings-view-has-category-choice :is(.settings-category-delete-row, .settings-category-spec-summary) {
  min-height: var(--category-row-height);
  align-items: center;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-delete-row {
  padding-inline: 16px;
  border-bottom: var(--category-divider);
}

body.is-crm-settings-active .settings-view-has-category-choice :is(.settings-category-delete-button, .settings-category-spec-settings-button) {
  display: inline-grid;
  place-items: center;
  width: var(--category-row-height);
  height: var(--category-row-height);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--crm-palette-text, #fff);
}

body.is-crm-settings-active .settings-view-has-category-choice :is(.settings-category-delete-button, .settings-category-spec-settings-button) svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 901px) {
  body.is-crm-settings-active .settings-view-has-category-choice .settings-layout {
    grid-template-columns: clamp(140px, 19%, 280px) minmax(0, 7fr) minmax(300px, 3fr);
  }

  body.is-crm-settings-active .settings-view-has-category-choice.settings-view-category-panel-collapsed .settings-layout {
    grid-template-columns: clamp(140px, 19%, 280px) minmax(0, 1fr) 52px;
  }
}

body.is-crm-settings-active #crmPickupButton {
  display: none !important;
}

body.is-crm-settings-active:has(#settingsView.settings-view-has-category-choice) :is(#crmOrderSearch, #crmContentSearch, #catalogSearch) {
  display: none;
}

body.is-crm-settings-active:has(#settingsView.settings-view-has-category-choice) #crmCategorySearch {
  display: block;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-choice-toolbar {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 901px) {
  body.is-crm-settings-active .settings-view-has-category-choice {
    --category-column-width: clamp(140px, 19cqw, 280px);
  }

  body.is-crm-settings-active .settings-view-has-category-choice .settings-values-menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 34%);
    grid-template-rows: minmax(0, 1fr);
  }

  body.is-crm-settings-active .settings-view-has-category-choice .settings-category-choice {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    grid-auto-columns: minmax(140px, var(--category-column-width));
    grid-auto-flow: column;
    align-content: stretch;
    overflow: auto;
  }

  body.is-crm-settings-active .settings-view-has-category-choice .settings-category-choice-toolbar {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.is-crm-settings-active .settings-view-has-category-choice .settings-category-choice-block {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border: 0;
    border-inline-end: var(--category-divider);
    overflow-y: auto;
  }

  body.is-crm-settings-active .settings-view-has-category-choice .settings-category-choice-block > :is(.settings-category-choice-parents, .settings-category-choice-list) {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  body.is-crm-settings-active .settings-view-has-category-choice .settings-category-choice-block button {
    justify-content: flex-start;
    width: 100%;
    min-height: var(--category-row-height);
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-bottom: var(--category-divider);
    border-radius: 0;
    background: transparent;
    text-align: start;
  }

  body.is-crm-settings-active .settings-view-has-category-choice .settings-category-choice-block button:is(.is-active, [aria-pressed="true"], :hover, :focus-visible) {
    background: var(--crm-selected-row-background, #303236);
  }

  body.is-crm-settings-active .settings-view-has-category-choice .settings-category-product-preview {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    border-inline-start: var(--category-divider);
    overflow-y: auto;
  }

  body.is-crm-settings-active .settings-view-has-category-choice .settings-category-product-preview.is-hidden {
    display: none;
  }

  body.is-crm-settings-active .settings-view-has-category-choice .settings-category-product-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  body.is-crm-settings-active .settings-view-has-category-choice :is(.settings-category-product-preview-head, .settings-category-product-preview-card, .settings-category-product-preview-empty) {
    min-height: var(--category-row-height);
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-bottom: var(--category-divider);
    border-radius: 0;
    background: transparent;
    overflow-wrap: anywhere;
  }
}

body.is-crm-view-active #roomView #roomNav > button[data-room-action] {
  color: #bbb;
}

body.is-crm-view-active #roomView #roomNav > button[data-room-action].is-active {
  background: transparent !important;
  color: #fff;
}

body.is-crm-view-active #roomView #roomNav > button[data-room-action]::before,
body.is-crm-view-active #roomView #roomNav > button[data-room-action]::after {
  content: none;
}

/* Dashboard uses the same second-level column as the retail workspace. */
#catalogOpenButton[hidden],
#crmDashboardNav[hidden],
#crmMarketingNav[hidden],
#crmRetailNav[hidden] {
  display: none !important;
}

body.is-crm-view-active #roomView #crmRetailMenu.is-dashboard-menu {
  display: flex;
  flex-direction: column;
}

#crmDashboardNav {
  min-height: 0;
  overflow: auto;
}

#crmDashboardNav .catalog-modal-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

#crmDashboardNav .catalog-modal-card {
  display: flex;
  flex-direction: row;
  box-shadow: none;
  transform: none;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--crm-menu-row-height);
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--crm-palette-text, #fff);
  font: inherit;
  text-align: left;
  text-decoration: none;
}

#crmDashboardNav .catalog-modal-card:disabled {
  opacity: 1;
}

#crmDashboardNav .catalog-modal-card:is(a, button):hover:not(:disabled),
#crmDashboardNav .catalog-modal-card:focus-visible {
  background: var(--crm-palette-hover, rgb(255 255 255 / 8%));
}

#crmDashboardNav .catalog-modal-card-title {
  font: inherit;
}

#crmDashboardNav .catalog-modal-card-main {
  position: static;
  flex: 1;
  justify-content: flex-start;
  padding: 0;
}

#crmDashboardNav .catalog-modal-admin-link {
  position: static;
  border: 0;
  background: transparent;
  color: inherit;
}

@media (max-width: 900px) {
  #crmDashboardNav .catalog-modal-grid {
    flex-direction: row;
  }

  #crmDashboardNav .catalog-modal-card {
    white-space: nowrap;
  }
}

body.is-crm-view-active #roomView #crmRetailNav > button::before,
body.is-crm-view-active #roomView #crmRetailNav > button::after {
  content: none;
}


body.is-crm-view-active #roomView :is(.room-order-card-cell--delivery, .room-orders-heading--delivery) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}


@media (min-width: 768px) {
  body.is-crm-view-active {
    --crm-orders-footer-inline-padding: 25px;
    --crm-orders-filter-inline-padding: 6px;
  }

  body.is-crm-view-active :is(.crm-orders-footer, .crm-purchases-footer) {
    padding-inline-end: var(--crm-orders-footer-inline-padding);
  }

  body.is-crm-view-active .crm-orders-footer .crm-orders-paid-filter {
    padding-inline-end: var(--crm-orders-filter-inline-padding);
  }

  body.is-crm-view-active .topbar > #crmPickupButton.crm-pickup-button {
    position: absolute;
    inset-inline-end: calc(var(--crm-orders-footer-inline-padding) + var(--crm-orders-filter-inline-padding));
    top: 50%;
    transform: translateY(-50%);
    justify-content: flex-end;
    padding-inline-end: 0;
  }
}

/* CRM close controls use a circular hit area. */
:is(html[data-trello-native] body, body.is-crm-view-active)
  button[aria-label^="Закрыть"]:not(#settingsMenuPanelGear) {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent;
  color: var(--crm-palette-text, #f4f5f7);
  font-size: 0 !important;
  box-shadow: none !important;
}

:is(html[data-trello-native] body, body.is-crm-view-active)
  button[aria-label^="Закрыть"]:not(#settingsMenuPanelGear):is(:hover, :focus-visible) {
  background: var(--crm-palette-hover, #303236) !important;
}

:is(html[data-trello-native] body, body.is-crm-view-active)
  button[aria-label^="Закрыть"]:not(#settingsMenuPanelGear) > svg {
  display: none;
}

:is(html[data-trello-native] body, body.is-crm-view-active)
  button[aria-label^="Закрыть"]:not(#settingsMenuPanelGear)::before {
  content: none;
}

:is(html[data-trello-native] body, body.is-crm-view-active)
  button[aria-label^="Закрыть"]:not(#settingsMenuPanelGear)::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.crm-orders-footer:has(.crm-order-marker-filter) {
  position: relative;
}
.crm-order-marker-filter {
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  z-index: 5;
}
.crm-order-marker-filter summary {
  display: grid;
  place-items: center;
  list-style: none;
  cursor: pointer;
  color: var(--crm-palette-secondary, #cdcdcd);
}
.crm-order-marker-filter summary::-webkit-details-marker { display: none; }
.crm-order-marker-filter summary.is-active { color: var(--crm-palette-lime, #d6fa55); }
.crm-order-marker-options {
  position: absolute;
  bottom: 100%;
  inset-inline-start: 0;
  width: 240px;
}
.crm-order-marker-options svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.is-crm-view-active .crm-orders-footer:has(.crm-order-marker-filter)
  > .crm-orders-tabs:has([data-crm-orders-view]) {
  padding-inline-start: 28px;
}

body.is-crm-settings-active .topbar :is(.topbar-logo, .topbar-search, #catalogOpenButton, #frontPanelButton, #crmPickupButton, #crm-two-columns-toggle, #crm-table-heading-toggle) {
  display: none !important;
}

body.is-crm-settings-active #settingsView .settings-modal-head > .crm-settings-links {
  border-inline-end: 1px solid var(--crm-palette-divider, #383a3d);
  position: relative;
  z-index: 1;
}

body.is-crm-settings-active #settingsView .settings-category-choice-block button {
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  min-height: var(--crm-menu-row-height, 55px);
  padding-inline: 24px;
  border-bottom: 1px solid var(--crm-divider-color, rgb(255 255 255 / 6%));
  color: var(--crm-palette-secondary, #cdcdcd);
}
body.is-crm-settings-active #settingsView .settings-category-choice-block button:is(.is-active, [aria-pressed="true"]) {
  color: var(--crm-palette-text, #f4f5f7);
}
body.is-crm-settings-active #settingsView .settings-category-product-preview-card img {
  width: 62px;
  height: 62px;
  border-radius: 6px;
  object-fit: contain;
}

/* Supply the shared footer surface where the section has no controls of its own. */
:is(body.is-crm-settings-active, body.is-crm-view-active:not(:has(
  #roomView:not(.is-hidden) .room-main-page:not(.is-hidden)
  :is(.crm-orders-footer, .crm-order-dates-footer, .crm-accounting-footer, .crm-content-footer,
      .crm-suppliers-list-footer, .crm-supplier-create-footer, .crm-shift-footer, .crm-clients-footer),
  #roomView:not(.is-hidden) :is(.crm-suppliers-list-footer, .crm-supplier-create-footer):not([hidden], .is-hidden)
))) .app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
}
:is(body.is-crm-settings-active, body.is-crm-view-active:not(:has(
  #roomView:not(.is-hidden) .room-main-page:not(.is-hidden)
  :is(.crm-orders-footer, .crm-order-dates-footer, .crm-accounting-footer, .crm-content-footer,
      .crm-suppliers-list-footer, .crm-supplier-create-footer, .crm-shift-footer, .crm-clients-footer),
  #roomView:not(.is-hidden) :is(.crm-suppliers-list-footer, .crm-supplier-create-footer):not([hidden], .is-hidden)
))) .app-shell::after {
  content: "";
  flex: 0 0 var(--crm-menu-row-height, 55px);
  background: var(--crm-palette-header, #242528);
}
@media (min-width: 901px) {
  html[data-trello-native] body.is-crm-view-active:has(#roomView:not(.is-hidden) .crm-content-page:not(.is-hidden) .crm-content-has-catalog-footer) .app-shell::after {
    content: none;
  }

  html[data-trello-native] body.is-crm-view-active:has(#roomView:not(.is-hidden) .crm-content-page:not(.is-hidden) .crm-content-has-catalog-footer) .app-shell > .app-main {
    flex: 1 1 0;
    height: auto;
  }
}

body.is-crm-settings-active .app-shell > .app-main {
  flex: 1 1 0;
  min-height: 0;
  height: 0;
}

select.crm-select-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  clip-path: inset(50%);
  pointer-events: none;
}
.crm-select-trigger {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 30px 8px 12px;
  position: relative;
  border: 1px solid var(--crm-palette-divider, #383a3d);
  border-radius: 8px;
  background: var(--crm-palette-workspace, #18191c);
  color: var(--crm-palette-text, #f4f5f7);
  font: inherit;
  text-align: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-select-trigger::after,
.crm-receipt-supplier-field > [data-receipt-supplier]::after {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  inset-inline-end: 14px;
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  opacity: .5;
  transform: rotate(45deg);
}
.crm-select-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  overflow: auto;
  box-sizing: border-box;
}

/* CRM user details follow the same row grid as the adjacent settings menu. */
body.is-crm-settings-active #settingsView:has(.settings-users-card) {
  --crm-settings-row-height: var(--crm-menu-row-height, 55px);
}

@media (min-width: 901px) {
  html[data-trello-native] body.is-crm-settings-active #settingsView:has(.settings-users-card) {
    --crm-settings-row-height: var(--crm-mac-row-height, calc(48.25px * 1.15));
  }

  body.is-crm-settings-active #settingsView:has(.settings-users-card) .settings-modal-head > .room-nav > button:not([hidden]) {
    height: var(--crm-settings-row-height);
    min-height: var(--crm-settings-row-height);
  }
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-main-panel:has(.settings-category-panel:not(.is-hidden) .settings-users-card) {
  padding-block-start: 0;
}

.settings-crm-user-heading { display: none; }

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-main-panel:has(.settings-category-panel:not(.is-hidden) .settings-users-card) > .panel-title {
  display: none;
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view) .settings-users-card {
  --profile-row-height: var(--crm-settings-row-height, var(--crm-menu-row-height, 55px));
  --profile-row-divider: var(--category-divider, 1px solid var(--crm-palette-divider, #383a3c));
  --profile-row-inset: 24px;
  gap: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-users-card > .settings-users-head {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: calc(2 * var(--profile-row-height));
  padding-inline: var(--profile-row-inset);
  margin: 0;
  border-bottom: var(--profile-row-divider);
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-users-card > .settings-users-head .settings-users-title {
  margin: 0;
  color: var(--crm-palette-text, #fff);
  font-size: 20px;
  font-weight: 500;
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form {
  margin: 0;
  padding: 0;
  gap: 0;
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-contact-row {
  display: contents;
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form :is(.settings-user-form > label, .settings-user-contact-row > label, .settings-user-column-field) {
  position: relative;
  display: block;
  box-sizing: border-box;
  height: var(--profile-row-height);
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border-bottom: var(--profile-row-divider);
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form :is(.settings-user-form > label, .settings-user-contact-row > label, .settings-user-column-field) > span {
  position: absolute;
  top: 50%;
  inset-inline-start: var(--profile-row-inset);
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--crm-palette-muted, #a9abaf);
  font-size: 12px;
  font-weight: 400;
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form :is(input[type="text"], input[type="password"], select, .crm-select-trigger, .settings-user-roles-dropdown > summary) {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  outline: none;
  padding-block: 0;
  padding-inline-start: calc(var(--profile-row-inset) + 104px);
  color: var(--crm-palette-text, #fff);
  font-size: 14px;
  font-weight: 400;
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form :is(input[type="text"], input[type="password"], select, .crm-select-trigger, .settings-user-roles-dropdown > summary):focus {
  outline: none;
  box-shadow: none;
  background-color: var(--crm-palette-selection, #383a3d);
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form input::placeholder {
  color: var(--crm-palette-muted, #a9abaf);
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form input:focus::placeholder {
  color: transparent;
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form :is(.settings-user-roles, .settings-user-column-card, .settings-user-actions) {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: var(--profile-row-divider);
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form .settings-user-roles {
  position: relative;
  min-height: var(--profile-row-height);
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form .settings-user-roles legend {
  position: absolute;
  inset-inline-start: var(--profile-row-inset);
  top: calc(var(--profile-row-height) / 2);
  transform: translateY(-50%);
  padding: 0;
  pointer-events: none;
  color: var(--crm-palette-muted, #a9abaf);
  font-weight: 400;
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form .settings-user-roles-dropdown > summary {
  display: flex;
  align-items: center;
  height: calc(var(--profile-row-height) - 1px);
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form .settings-user-column-card {
  gap: 0;
  background: transparent;
  border-bottom: 0;
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-column-card > .settings-users-title {
  display: none;
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form .settings-user-actions {
  box-sizing: border-box;
  min-height: var(--profile-row-height);
  padding-inline: var(--profile-row-inset);
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form select:not(.crm-select-source) {
  appearance: auto;
  background-image: none;
}

@media (max-width: 900px) {
  :is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
    .settings-user-form .settings-user-department-field {
    display: block !important;
  }
}

/* Round the settings workspace at its actual junction with the shell footer. */
@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView.content-settings-page {
    border-end-start-radius: var(--crm-shell-joint-radius, 12px);
    overflow: clip;
  }
  body.is-crm-settings-active .app-shell > .app-main {
    background-color: var(--crm-palette-header, #242528) !important;
  }
  body.is-crm-settings-active #settingsView .settings-modal-head > .crm-settings-links {
    border-end-start-radius: 0;
  }
}

.crm-settings-downloads-open .settings-modal-body {
  visibility: hidden;
}

body.is-crm-settings-active #settingsView .settings-modal-tabs > [data-crm-app-download]:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--crm-menu-row-height, 55px);
  padding-inline: 24px;
  border: 0;
  border-bottom: 1px solid var(--crm-divider-color, #383a3c);
  border-radius: 0;
  color: var(--crm-palette-secondary, #ccc);
  background: transparent;
  font: inherit;
  text-decoration: none;
}

body.is-crm-settings-active #settingsView [data-crm-app-download]:is(:hover, :focus-visible) {
  color: var(--crm-palette-text, #fff);
  background: var(--crm-palette-hover, #303236);
}

@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView:not(.crm-profile-view)
    :is(.settings-modal-body, .settings-modal-section, .settings-main-panel):has(.settings-category-panel:not(.is-hidden) .settings-users-panel) {
    padding-inline: 0;
  }

  body.is-crm-settings-active #settingsView .settings-users-panel.has-inline-avatar {
    grid-template-columns: minmax(0, 1fr);
  }

  body.is-crm-settings-active #settingsView .settings-main-panel:has(.has-inline-avatar)::before {
    content: none;
  }
}

body.is-crm-settings-active #settingsView .has-inline-avatar .settings-users-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.is-crm-settings-active #settingsView .has-inline-avatar .settings-user-avatar-preview {
  flex: none;
  width: 52px;
  height: 52px;
  font-size: 17px;
}

.settings-user-list-entry { position: relative; }

.settings-user-list-entry > .settings-user-row { padding-inline-end: 42px; }

.settings-user-menu-trigger {
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--crm-palette-muted, #bbb);
  cursor: pointer;
}

@media (hover: hover) {
  .settings-user-menu-trigger { opacity: 0; }
  .settings-user-list-entry:is(:hover, :focus-within) .settings-user-menu-trigger,
  .settings-user-menu-trigger[aria-expanded="true"] { opacity: 1; }
}

.settings-user-menu {
  position: fixed;
  inset: auto;
  margin: 0;
}

.settings-user-add-icon {
  border: 1px solid currentColor;
  color: var(--crm-palette-muted, #bbb);
  background: transparent;
  font-size: 20px;
}

:is(body.is-crm-settings-active #settingsView, #settingsView.crm-profile-view)
  .settings-user-form.is-autosave .settings-user-actions {
  min-height: 0;
  border: 0;
}

.settings-user-form.is-autosave .settings-user-status:empty { display: none; }

.settings-user-form.is-autosave .settings-user-status.is-success { color: var(--crm-palette-muted, #bbb); }

/* Use the Retail search treatment across CRM header search controls. */
body.is-crm-view-active .app-shell > .topbar .topbar-search :is(input[type="search"], .crm-purchases-cart-title) {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none;
  color: var(--crm-palette-text, #f4f5f7);
  font-size: 14px;
  font-weight: 400;
}

body.is-crm-view-active .app-shell > .topbar .topbar-search .crm-purchases-cart-title,
body.is-crm-view-active .app-shell > .topbar .topbar-search input[type="search"]::placeholder {
  color: var(--crm-palette-muted, #bbb);
  opacity: 1;
}

body.is-crm-view-active .app-shell > .topbar .topbar-search input[type="search"]:focus-visible {
  outline: 1px solid var(--crm-palette-muted, #bbb);
  outline-offset: -2px;
}

body.is-crm-view-active .app-shell > .topbar .topbar-search .topbar-search-icon {
  border: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--crm-palette-text, #f4f5f7);
}

body.is-crm-view-active .app-shell > .topbar .topbar-search .topbar-search-icon svg {
  width: var(--crm-search-icon-size);
  height: var(--crm-search-icon-size);
}

/* Share the Purchases toolbar icon styling with Content. */
body.is-crm-view-active
  :is(.topbar .crm-purchases-toolbar > button, .topbar #crm-two-columns-toggle, .topbar :is(#crmContentColumns, #crmCardBlocks) > summary, .crm-purchases-footer > [data-purchase-control="open-cart"]) > svg {
  width: calc(var(--purchase-icon-size, 22px) * 0.95);
  height: calc(var(--purchase-icon-size, 22px) * 0.95);
  stroke-width: 1.895;
  color: var(--crm-palette-muted, #bfc1c6);
}

body.is-crm-view-active
  :is(.topbar .crm-purchases-toolbar > button, .topbar #crm-two-columns-toggle, .crm-purchases-footer > [data-purchase-control="open-cart"]):enabled:is(:hover, :focus-visible) > svg,
body.is-crm-view-active .topbar :is(#crmContentColumns, #crmCardBlocks) > summary:is(:hover, :focus-visible) > svg {
  color: #fff;
}

/* Match the visible size of the three toolbar icons to the heading outline. */
body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .topbar
  .crm-purchases-toolbar > [data-purchase-control="open-table"],
body.is-crm-view-active .topbar #crmContentColumns > summary {
  --purchase-icon-size: 24.5px;
}

body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .topbar
  .crm-purchases-toolbar > [data-purchase-control="open-statistics"] {
  --purchase-icon-size: 27.5px;
}

body.is-crm-view-active .crm-purchases-footer > [data-purchase-control="open-cart"] {
  --purchase-icon-size: 26px;
  gap: 1.25em;
}

body.is-crm-view-active
  :is(.topbar .crm-purchases-toolbar > button, .crm-purchases-footer > [data-purchase-control="open-cart"]) > svg > :is(path, rect, circle) {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.65px;
}

@media (min-width: 901px) {
  html[data-trello-native] body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .topbar
    :is(.crm-purchases-toolbar, #crm-two-columns-toggle) {
    translate: 16px 0;
  }
}

/* Match the Purchases heading artwork and the toolbar button spacing. */
body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .topbar
  #crm-two-columns-toggle {
  position: relative;
  left: -12px;
}

body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .topbar
  #crm-two-columns-toggle > svg {
  translate: 0 1px;
}

body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .topbar
  #crm-two-columns-toggle > svg > rect {
  x: 2px;
  y: 2.2px;
  width: 20px;
  height: 19.6px;
  rx: 1.9px;
}

body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .topbar
  #crm-two-columns-toggle > svg > path {
  transform: translateY(-3.7px) rotate(90deg);
}

.crm-settings-purchases-open .settings-modal-body { display: none; }
#crmSupplierSettings:not([hidden]) { display: flex; flex: 1; min-width: 0; min-height: 0; }
#crmSupplierSettings iframe { flex: 1; width: 100%; min-height: 0; border: 0; }

.crm-task-toolbar-button[data-purchase-control="refresh-supplier"][data-catalog-error] svg {
  color: #f48bcb;
}

.crm-retail-refresh { display: none; }

@media (min-width: 901px) {
  #roomView.is-crm-retail-open #crmRetailMenu #crmRetailToggle {
    grid-column: 1;
  }
  #roomView.is-crm-retail-open:has(#crmRetailMenu:not([hidden]) .crm-retail-refresh:not([hidden])) #crm-native-connection {
    display: none !important;
  }
  #roomView.is-crm-retail-open #crmRetailMenu .crm-retail-refresh:not([hidden]) {
    grid-area: 2 / 1;
    align-self: center;
    justify-self: start;
    margin-inline-start: 8px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: var(--crm-sidebar-toggle-height);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--crm-palette-secondary, #cdcdcd);
  }
  #roomView.is-crm-retail-open #crmRetailMenu .crm-retail-refresh:enabled:hover {
    color: var(--crm-palette-text, #fff);
    background: var(--crm-palette-hover, #34363a);
  }
  .crm-retail-refresh svg { width: 21px; height: 21px; }
  body.is-crm-view-active #roomView.is-crm-retail-open #crmRetailMenu.is-collapsed:has(.crm-retail-refresh:not([hidden])) {
    grid-template-rows: minmax(0, 1fr) repeat(2, var(--crm-sidebar-toggle-height));
  }
  #roomView.is-crm-retail-open #crmRetailMenu.is-collapsed .crm-retail-refresh:not([hidden]) {
    justify-self: center;
    margin-inline-start: 0;
  }
  #roomView.is-crm-retail-open #crmRetailMenu.is-collapsed:has(.crm-retail-refresh:not([hidden])) #crmRetailToggle {
    grid-row: 3;
  }
}

.crm-retail-refresh svg path {
  stroke: currentColor;
  stroke-width: 0.3px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

#crmPurchaseSearch:focus:placeholder-shown {
  text-indent: 1em;
}


#crmPurchaseSearch::-webkit-search-cancel-button {
  display: none;
}

.topbar-search:has(> #crmPurchaseSearchClear:not([hidden])) > #crmPurchaseSearch {
  padding-inline-end: 40px;
}

#crmPurchaseSearchClear {
  position: absolute;
  z-index: 2;
  inset-inline-end: 0;
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#crmPurchaseSearchClear > svg {
  width: var(--crm-search-icon-size, 24px);
  height: var(--crm-search-icon-size, 24px);
}

body:not(:has(.crm-purchases-page:not(.is-hidden))) #crmPurchaseSearchClear,
#crmPurchaseSearchClear[hidden] {
  display: none;
}


.crm-purchases-cart-supplier {
  position: relative;
  max-width: 100%;
}

.crm-purchases-cart-supplier > summary {
  display: block;
  padding-block: 6px;
  cursor: pointer;
}

.crm-purchases-cart-supplier > summary::-webkit-details-marker {
  display: none;
}

.crm-purchases-cart-supplier-choices {
  position: absolute;
  z-index: 1;
  inset-block-start: 100%;
  inset-inline-start: 0;
  width: min(280px, calc(100vw - 32px));
  max-height: 50vh;
  box-sizing: border-box;
  overflow: auto;
}

#crmCartColumns {
  pointer-events: auto;
  inset: var(--crm-list-row-height, 55px) var(--crm-right-rail-width, 9px) auto auto;
  margin: 0;
  box-sizing: border-box;
  width: min(280px, calc(100vw - 32px));
  min-width: 0;
}

body.is-crm-view-active #crmCartColumns > button {
  position: relative;
  border-radius: 0;
}

body.is-crm-view-active #crmCartColumns > button:not(:hover) {
  background: transparent !important;
}

body.is-crm-view-active #crmCartColumns > button::before {
  content: "";
  box-sizing: border-box;
  flex: 0 0 16px;
  height: 16px;
  border: 1px solid var(--crm-palette-muted, #bbb);
}

body.is-crm-view-active #crmCartColumns > button[aria-pressed="true"]::before {
  border-color: var(--crm-palette-lime, #d6fa55);
  background: var(--crm-palette-lime, #d6fa55);
}

body.is-crm-view-active #crmCartColumns > button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset-inline-start: 16px;
  top: calc(50% - 4px);
  width: 7px;
  height: 4px;
  border: solid var(--crm-palette-workspace, #18191c);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.crm-purchases-quick-fill:not([hidden]) {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--crm-palette-muted, #bfc1c6);
  cursor: pointer;
}
.crm-purchases-quick-fill > svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.crm-purchases-quick-fill:enabled:is(:hover, :focus-visible) {
  background: var(--crm-palette-hover, #34363a);
  color: var(--crm-palette-text, #fff);
}
.crm-purchases-quick-fill:disabled {
  opacity: .5;
  cursor: default;
}


.crm-card-actions-bar .danger-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crm-card-actions-bar :is(#deleteCurrentProduct, .product-site-link-button) {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
}

.crm-card-actions-bar :is(#deleteCurrentProduct, .product-site-link-button) svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


body.is-crm-view-active .topbar
  :is(#crmCardToolbarActions .topbar-icon-button, #crmContentColumns > summary, #crmCardBlocks > summary) > svg.crm-nav-icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
  color: var(--crm-palette-secondary, #cdcdcd);
}

body.is-crm-view-active .topbar
  :is(#crmCardToolbarActions .topbar-icon-button, #crmContentColumns > summary, #crmCardBlocks > summary):is(:hover, :focus-visible) > svg.crm-nav-icon {
  color: var(--crm-palette-text, #fff);
}

.crm-card-color-row {
  display: none;
}

#crmCardColorLabel {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#crmCardColorSwatches:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-inline-start: auto;
  padding: 4px;
  overflow-x: auto;
}

#crmCardColorSwatches > button {
  display: flex;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--crm-divider-color, #414246);
  border-radius: 50%;
  background: transparent;
}

#crmCardColorSwatches > button > span {
  flex: 1;
}

#crmCardColorSwatches > button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}


#crmCardPhotoActions {
  display: contents;
}

.crm-photo-actions[hidden] {
  display: none;
}

.crm-photo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.crm-photo-actions button,
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) header button {
  display: grid;
  place-items: center;
  min-height: 36px;
  width: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.crm-photo-actions svg,
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) header svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) header button:is(:hover, :focus-visible) {
  background: var(--crm-palette-hover, #383a3d);
}

:is(#crmPhotoSettings, .crm-content-preview-photo-tools) {
  --page-overlay-background: var(--crm-palette-header, #242528);
  --page-overlay-ink: var(--crm-palette-text, #cdcdcd);
  --page-overlay-border: var(--crm-palette-divider, var(--line));
  --ink: var(--crm-palette-text, #cdcdcd);
  --muted: var(--crm-palette-muted, #afafaf);
  box-sizing: border-box;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--crm-palette-divider, var(--line));
  border-radius: 12px;
  background: var(--crm-palette-header, #242528);
  color: var(--crm-palette-text, #cdcdcd);
  color-scheme: dark;
  font-size: 14px;
}

#crmPhotoSettings::backdrop { background: rgb(0 0 0 / 55%); }

:is(#crmPhotoSettings, .crm-content-preview-photo-tools) header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
  padding: 12px 24px;
  background: var(--crm-palette-workspace, #18191c);
  border-bottom: 1px solid var(--crm-palette-divider, var(--line));
}

:is(#crmPhotoSettings, .crm-content-preview-photo-tools) h2 { margin: 0; font-size: 20px; font-weight: 500; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) header button { border-radius: 50%; flex: 0 0 36px; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) header svg { width: 24px; height: 24px; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .crm-photo-tools-body { padding: 24px; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .crm-photo-tools-dropzone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 112px;
  padding: 16px;
  border: 1px dashed var(--crm-palette-selection, #383a3d);
  border-radius: 8px;
  background: var(--crm-palette-workspace, #18191c);
}
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .crm-photo-tools-dropzone.dragging {
  border-color: var(--crm-palette-lime, #d6fa55);
  background: var(--crm-palette-hover, #383a3d);
}
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .crm-photo-tools-upload-button {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--crm-palette-selection, #383a3d);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .crm-photo-tools-dropzone p {
  margin: 0;
  color: var(--crm-palette-muted, #afafaf);
  font-size: 13px;
}
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .crm-photo-tools-settings { margin-top: 24px; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) h3 { margin: 0 0 16px; font-size: 16px; font-weight: 500; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .optimizer-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .optimizer-controls .quality-control { grid-column: 1 / -1; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .optimizer-controls label { color: inherit; font-size: 14px; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .optimizer-controls label > span { color: var(--crm-palette-muted, #afafaf); }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) input[type="range"] { accent-color: var(--crm-palette-lime, #d6fa55); }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) select {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--crm-palette-selection, #383a3d);
  border-radius: 8px;
  background: var(--crm-palette-workspace, #18191c);
  color: inherit;
  font: inherit;
}
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .crm-photo-tools-optimize {
  width: 100%;
  min-height: 44px;
  margin-top: 24px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--crm-palette-lime, #d6fa55);
  color: var(--crm-palette-workspace, #18191c);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) button:disabled { opacity: .45; cursor: default; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) :is(button, select, input):focus-visible { outline: 2px solid var(--crm-palette-lime, #d6fa55); outline-offset: 2px; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) footer { padding: 0 24px 20px; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .crm-photo-tools-status { margin: 0; min-height: 20px; color: var(--crm-palette-muted, #afafaf); font-size: 13px; }
.crm-card-publish-footer #crmCardReadinessTrigger {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.crm-card-publish-footer #crmCardReadinessTrigger:focus-visible { outline: none; }
@media (max-width: 480px) {
  :is(#crmPhotoSettings, .crm-content-preview-photo-tools) .optimizer-controls { grid-template-columns: 1fr; }
  :is(#crmPhotoSettings, .crm-content-preview-photo-tools) .crm-photo-tools-body { padding: 16px; }
}

.crm-card-info-dialog::backdrop {
  background: rgb(0 0 0 / 55%);
}

.crm-card-info-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.crm-card-info-dialog h2 {
  margin: 0;
  font-size: 20px;
}


.crm-content-tab-icon {
  display: none;
}

#crmCardColorSwatches:not([hidden]) {
  overflow: visible;
  flex-wrap: wrap;
}

#crmCardColorSwatches .crm-card-current-color > .primary-color-dropdown-button {
  display: flex;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--crm-divider-color, #414246);
  border-radius: 50%;
  background: transparent;
}

#crmCardColorSwatches .crm-card-current-color > .primary-color-dropdown-button > span {
  flex: 1;
  align-self: stretch;
}

#crmCardColorSwatches .primary-color-dropdown {
  z-index: 20;
}

#crmCardColorLabel.spec-value-editable {
  font-weight: 400;
}

#crmCardColorSwatches .crm-card-current-color {
  flex: 0 0 28px;
  width: 28px;
}

#crmCardColorSwatches:not([hidden]) {
  flex: 0 0 auto;
}

.catalog-column-grip {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 3;
  width: 9px;
  cursor: col-resize;
  touch-action: none;
}

.catalog-column-grip:is(:hover, :focus-visible)::after {
  content: "";
  position: absolute;
  inset: 8px 0 8px auto;
  width: 1px;
  background: var(--crm-palette-muted, #bbb);
}

body.catalog-column-dragging,
body.catalog-column-dragging * {
  cursor: col-resize !important;
  user-select: none !important;
}

.primary-color-options > .primary-color-clear {
  margin-top: 0;
  padding: 6px 8px 6px 7px;
  font-weight: 700;
}
.crm-card-color-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
#crmCardColorSwatches > button,
#crmCardColorSwatches .crm-card-current-color > .primary-color-dropdown-button {
  width: 20px;
  min-width: 20px;
  height: 20px;
}
#crmCardColorSwatches .crm-card-current-color {
  flex-basis: 20px;
  width: 20px;
}


/* Keep the column picker compact and consistent with CRM menus. */
body .crm-content-column-options {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

body .crm-content-column-options label {
  flex: 0 0 auto;
  height: var(--crm-menu-row-height, 55px);
  min-height: var(--crm-menu-row-height, 55px);
  padding-inline: 24px;
}

body .crm-content-column-options label:hover {
  background: var(--crm-palette-hover, #383a3d);
}

body .crm-content-column-options input[type="checkbox"]:checked {
  border-color: var(--lime, #d8ff55);
  background: var(--lime, #d8ff55);
}

body .crm-content-column-options input[type="checkbox"]:checked::after {
  border-color: #202124;
}
html:not(.crm-content-embedded) .catalog-color-cell{
  display: none;
}

/* Category settings levels use the same row grid as the second-level menu. */
@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView.settings-view-has-category-choice {
    --category-row-height: var(--crm-mac-row-height, var(--crm-menu-row-height, 55px));
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice :is(
    .settings-category-root-menu button,
    .settings-category-choice-block button,
    .settings-category-choice-toolbar,
    .settings-category-product-preview-head,
    .settings-category-product-preview-card,
    .settings-category-product-preview-empty
  ) {
    box-sizing: border-box;
    height: var(--category-row-height);
    min-height: var(--category-row-height);
    max-height: var(--category-row-height);
    flex-shrink: 0;
    align-items: center;
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-product-preview-card {
    grid-template-columns: minmax(0, calc(var(--category-row-height) - 16px)) minmax(0, 1fr);
    padding-block: 7px;
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-product-preview-card img {
    width: 100%;
    height: calc(var(--category-row-height) - 16px);
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-product-preview-copy {
    padding-block: 0;
    gap: 2px;
    overflow: hidden;
    max-height: 100%;
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-product-preview-copy > span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.crm-specs-content-columns {
  display: contents;
}

/* Category navigation uses the same visual roles at every menu level. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice {
  --category-menu-font-size: 16px;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice :is(
  .settings-modal-tabs,
  .settings-values-menu,
  .settings-category-root-menu,
  .settings-category-choice,
  .settings-category-choice-block,
  .settings-category-product-preview,
  .settings-category-product-preview-list
) {
  background: var(--crm-menu-background, var(--crm-palette-panel, #1c1d20));
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice :is(
  .settings-modal-tabs > button,
  .settings-category-root-menu button,
  .settings-category-choice-block button,
  .settings-category-choice-toolbar,
  .settings-category-product-preview-card,
  .settings-category-product-preview-empty
) {
  font-family: system-ui, sans-serif;
  font-size: var(--category-menu-font-size);
  font-weight: 400;
  color: var(--crm-palette-secondary, #cdcdcd);
  border-block: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice :is(
  .settings-category-choice-block,
  .settings-category-product-preview
) {
  border-block: 0;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice :is(
  .settings-modal-tabs > button,
  .settings-category-root-menu button,
  .settings-category-choice-block button,
  .settings-category-product-preview-card
):is(:hover, :focus-visible, .is-active, [aria-pressed="true"], [aria-selected="true"]) {
  color: var(--crm-palette-text, #fff);
  background: var(--crm-palette-hover, #383a3d);
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice :is(
  .settings-category-choice-block button,
  .settings-category-root-menu button,
  .settings-category-product-preview-card
) :is(span, strong, small) {
  font: inherit;
  color: inherit;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-product-preview-head {
  display: none;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice :is(
  .settings-main-panel,
  .settings-category-panel
) {
  background: var(--crm-menu-background, var(--crm-palette-panel, #1c1d20));
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-main-panel :is(
  button, a, input, textarea, h3, strong, small, span, summary, p, label
) {
  font-family: system-ui, sans-serif;
  font-size: var(--category-menu-font-size);
  font-weight: 400;
  color: var(--crm-palette-secondary, #cdcdcd);
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice :is(
  .settings-main-panel > .panel-title,
  .settings-category-panel .field-grid > *,
  .settings-category-panel .settings-category-spec-groups,
  .settings-category-delete-row,
  .settings-category-spec-summary
) {
  border-block: 0;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-main-panel :is(
  button, summary
):is(:hover, :focus-visible, .is-active, [aria-pressed="true"], [aria-selected="true"]) {
  color: var(--crm-palette-text, #fff);
  background: var(--crm-palette-hover, #383a3d);
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-choice-summary {
  display: none;
}

/* Category settings stay open, with their delete action at the panel bottom. */
body.is-crm-settings-active .settings-view-has-category-choice .settings-main-panel > .panel-title {
  display: none;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-panel:not(.is-hidden) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

body.is-crm-settings-active .settings-view-has-category-choice .settings-category-delete-row {
  margin-top: auto;
  border-bottom: 0;
}

/* Content settings keep their submenu and release the primary menu column. */
@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView.crm-settings-content-open.crm-settings-primary-menu-collapsed .settings-modal {
    grid-template-columns: min(248px, 45%) minmax(0, 1fr);
  }
}

/* Keep each category navigation column as wide as the first settings menu. */
@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView.settings-view-has-category-choice {
    container-type: inline-size;
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-layout {
    --category-column-width: min(248px, 22.5cqw);
    grid-template-columns: var(--category-column-width) max-content minmax(300px, 1fr);
    overflow-x: auto;
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-values-menu {
    grid-template-columns: max-content var(--category-column-width);
    min-width: 0;
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-choice {
    width: max-content;
    grid-template-columns: var(--category-column-width);
    grid-auto-columns: var(--category-column-width);
    overflow: visible;
  }
}

/* Keep category creation actions at the bottom of full-height menu columns. */
@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-choice {
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-choice-toolbar {
    display: none;
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-root-menu {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-choice-block {
    grid-row: 1;
    align-self: stretch;
    align-items: stretch;
    min-height: 0;
    overflow: hidden;
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-root-menu > .settings-category-choice-block {
    flex: 1;
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-choice-block > :is(
    .settings-category-choice-roots,
    .settings-category-choice-parents,
    .settings-category-choice-list
  ) {
    flex: 1;
    flex-wrap: nowrap;
    min-height: 0;
    overflow-y: auto;
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-choice-block > .settings-category-choice-level-add {
    flex-shrink: 0;
    margin-top: auto;
  }

  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-choice-block:last-child {
    border-inline-end: 0;
  }
}

/* Category binding uses the same full-width row as neighbouring settings. */
.settings-category-woo-category {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: var(--crm-menu-row-height, 48px);
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--crm-palette-text, #fff);
  font: 400 16px/1.4 system-ui, sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.settings-category-woo-category:hover {
  background: var(--crm-palette-selection, #383a3d);
}
.settings-category-woo-category:focus-visible {
  outline: 2px solid var(--crm-palette-text, #fff);
  outline-offset: -2px;
}

/* Align category columns with the first menu row; the search lives in the CRM header. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-choice-toolbar { display: none; }
@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-choice { grid-template-rows: minmax(0, 1fr); }
  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-choice-block { grid-row: 1; }
}

/* Share one column for the CRM category sample and category settings. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-main-panel > .settings-category-product-preview {
  flex: 0 0 auto;
  min-height: 0;
  width: 100%;
  border: 0;
  overflow: visible;
  padding: 0 0 12px;
}

@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-values-menu {
    grid-template-columns: max-content;
  }
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-main-panel .settings-category-product-preview-card {
  grid-template-columns: 40px minmax(0, 1fr);
  height: auto;
  min-height: 64px;
  max-height: none;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-main-panel .settings-category-product-preview-card img {
  width: 40px;
  height: 40px;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-main-panel .settings-category-product-preview-copy {
  max-height: none;

}

/* Category headings use the same typography as profile field labels. */
body.is-crm-settings-active #settingsView .settings-category-panel :is(
  .category-settings-grid > label > span,
  .settings-category-woo-field > span,
  .settings-category-description > summary,
  .settings-category-spec-summary,
  .settings-category-spec-summary-title
) {
  color: var(--crm-palette-muted, #a9abaf);
  font-size: 12px;
  font-weight: 400;
}

/* Remove legacy scrollbar gutters from equal-width navigation columns. */
@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView.settings-view-has-category-choice :is(.settings-category-choice, .settings-category-choice-block) {
    margin-inline: 0;
    padding-inline: 0;
  }
}

/* Settings primary navigation uses the Purchases collapse control. */
.crm-settings-nav-icon { display: none; }
#crmSettingsMenuToggle { display: none; }
#crmSettingsMenuToggle[hidden] { display: none; }
@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView .crm-settings-links > #crmSettingsMenuToggle {
    display: grid;
    position: static;
    inset: auto;
    box-sizing: border-box;
    width: 100%;
    place-items: center end;
    flex: 0 0 var(--crm-sidebar-toggle-height, 55px);
    height: var(--crm-sidebar-toggle-height, 55px);
    margin-block-start: auto;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--crm-palette-secondary, #ccc);
  }
  body.is-crm-settings-active #settingsView #crmSettingsMenuToggle:is(:hover, :focus-visible) {
    background: var(--crm-palette-hover, #34363a);
    color: var(--crm-palette-text, #cdcdcd);
  }
  #crmSettingsMenuToggle svg, .crm-settings-nav-icon {
    width: 18px; height: 18px; fill: none; stroke: currentColor;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  }
  body.is-crm-settings-active #settingsView.crm-settings-primary-menu-collapsed .crm-settings-links {
    flex: 0 0 52px;
  }
  body.is-crm-settings-active #settingsView.crm-settings-primary-menu-collapsed .crm-settings-links > [data-crm-settings-action] {
    justify-content: center;
    padding-inline: 0;
  }
  .crm-settings-primary-menu-collapsed .crm-settings-links > [data-crm-settings-action] > span { display: none; }
  .crm-settings-primary-menu-collapsed .crm-settings-nav-icon { display: block; }
  body.is-crm-settings-active #settingsView.crm-settings-primary-menu-collapsed .settings-modal {
    grid-template-columns: min(300px, 45%) minmax(0, 1fr);
  }
  body.is-crm-settings-active #settingsView.crm-settings-primary-menu-collapsed #crmSettingsMenuToggle { place-items: center; }
  #crmSettingsMenuToggle[aria-expanded="false"] svg { transform: rotate(180deg); }
}

/* Selected settings menu entries share one palette color at every depth. */
body.is-crm-settings-active #settingsView.settings-view :is(
  .crm-settings-links,
  .settings-modal-tabs,
  .settings-category-root-menu,
  .settings-values-menu,
  .settings-category-choice
) button:is(.is-active, .active, [aria-selected="true"], [aria-pressed="true"]) {
  background: var(--crm-palette-selection, #383a3d);
}
/* Category detail blocks follow the neighbouring menu row grid. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-main-panel {
  gap: 0;
  padding: 0;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-main-panel > .settings-category-product-preview {
  box-sizing: border-box;
  height: var(--category-row-height);
  padding: 0;
  border-bottom: var(--category-divider);
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-main-panel .settings-category-product-preview-card {
  box-sizing: border-box;
  height: calc(var(--category-row-height) - 1px);
  min-height: calc(var(--category-row-height) - 1px);
  max-height: calc(var(--category-row-height) - 1px);
  padding: 4px 16px;
  overflow: hidden;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-panel :is(.category-settings-grid > *, .settings-category-spec-groups) {
  box-sizing: border-box;
  min-height: var(--category-row-height);
  margin: 0;
  padding: 0;
  border-bottom: var(--category-divider);
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .category-settings-grid > :is(label, .settings-category-woo-field) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  height: var(--category-row-height);
  padding: 4px 16px;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .category-settings-grid > :is(label, .settings-category-woo-field) > span,
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-source-header > label > span {
  min-width: 0;
  color: var(--crm-palette-muted, #afafaf);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .category-settings-grid :is(input, .settings-category-woo-category) {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  line-height: 1.25;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-panel :is(.settings-category-description > summary, .settings-category-spec-summary) {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: calc(var(--category-row-height) - 1px);
  min-height: calc(var(--category-row-height) - 1px);
  padding: 0 16px;
  margin: 0;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-description > summary::before {
  content: "▸";
  margin-inline-end: 6px;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-description[open] > summary::before {
  content: "▾";
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-description > textarea {
  box-sizing: border-box;
  width: calc(100% - 32px);
  margin: 0 16px 12px;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-spec-group-list {
  padding: 0 16px 12px;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-panel :is(.settings-category-description, .settings-category-spec-groups) {
  display: block;
}

/* Category names sit directly on the settings surface. */
body.is-crm-settings-active #settingsCategoryPanel :is(#settingsCategorySourceInput, #settingsCategoryDisplayInput, #settingsCategoryMenuInput) {
  background: transparent;
  box-shadow: none;
}

/* Category section headings keep their toggle behavior without arrows. */
body.is-crm-settings-active #settingsCategoryPanel :is(.settings-category-description, .settings-category-spec-groups) > summary {
  list-style: none;
}
body.is-crm-settings-active #settingsCategoryPanel :is(.settings-category-description, .settings-category-spec-groups) > summary::-webkit-details-marker {
  display: none;
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-description > summary::before,
body.is-crm-settings-active #settingsCategoryPanel .settings-category-spec-summary-title::before {
  display: none;
}

/* One two-row header combines the source category with its photo. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .category-settings-grid > .settings-category-source-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  height: calc(2 * var(--category-row-height));
  padding: 0 16px;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-source-header > label {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  height: var(--category-row-height);
  padding: 4px 0;
  border: 0;
  box-sizing: border-box;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-source-header .settings-category-product-preview {
  grid-column: 2;
  grid-row: 1;
  width: 40px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  justify-self: end;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-source-header :is(
  .settings-category-product-preview-head,
  .settings-category-product-preview-copy,
  .settings-category-product-preview-empty
) {
  display: none;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-source-header .settings-category-product-preview-card {
  display: block;
  width: 40px;
  height: 40px;
  min-height: 0;
  max-height: none;
  padding: 0;
  border: 0;
}

/* The fixed shell rail must not hide expanded settings labels. */
@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView:not(.crm-settings-primary-menu-collapsed) .crm-settings-links > [data-crm-settings-action] > span {
    display: inline;
  }
  body.is-crm-settings-active #settingsView:not(.crm-settings-primary-menu-collapsed) .crm-settings-links > [data-crm-settings-action] {
    justify-content: flex-start;
    padding-inline: 24px;
  }
  body.is-crm-settings-active #settingsView .crm-settings-links > #crmSettingsMenuToggle {
    justify-content: stretch;
  }
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-source-header {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-source-header #settingsCategorySourceInput {
  padding-inline-end: 96px;
}

/* Double the category photo within its existing two-row header. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-source-header .settings-category-product-preview,
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-source-header .settings-category-product-preview-card,
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-source-header .settings-category-product-preview-card img {
  width: 80px;
  height: 80px;
}

/* Match the display and WooCommerce rows to the source-category header. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .category-settings-grid > :is(label, .settings-category-woo-field) {
  height: calc(2 * var(--category-row-height));
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-panel .settings-category-description[open] {
  box-sizing: border-box;
  height: calc(2 * var(--category-row-height));
  padding: 0;
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-description > textarea {
  display: block;
  height: calc(var(--category-row-height) - 12px);
  min-height: 0;
  max-height: calc(var(--category-row-height) - 12px);
  overflow-y: auto;
  resize: none;
}

body.is-crm-settings-active #settingsView.settings-view-has-category-choice #settingsCategoryDescriptionInput,
body.is-crm-settings-active #settingsView.settings-view-has-category-choice #settingsCategoryDescriptionInput:focus {
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Category fields place their caption above the value. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .category-settings-grid > :is(label, .settings-category-woo-field),
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-source-header > label {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 4px;
}

/* The full CRM description row is one persistent, clickable field label. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .category-settings-grid > :is(label, div).settings-category-description {
  display: block;
  box-sizing: border-box;
  height: calc(2 * var(--category-row-height));
  padding: 0;
  cursor: text;
  background: color-mix(in srgb, var(--crm-palette-selection, #383a3d) 40%, transparent);
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .category-settings-grid > :is(label, div).settings-category-description > .settings-category-description-title {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: calc(var(--category-row-height) - 1px);
  min-height: calc(var(--category-row-height) - 1px);
  margin: 0;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 400;
  color: var(--crm-palette-muted, #afafaf);
}

/* The empty-description action is a hint; the stored textarea stays empty. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-description {
  position: relative;
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-description > .settings-category-description-add {
  position: absolute;
  inset-inline: 16px;
  top: calc(var(--category-row-height) - 1px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  height: calc(var(--category-row-height) - 12px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--crm-palette-text, #cdcdcd);
  font: 400 var(--category-menu-font-size, 16px)/1.25 system-ui, sans-serif;
  text-align: start;
  cursor: text;
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-description > .settings-category-description-add[hidden] {
  display: none;
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-description-add:focus-visible {
  outline: 1px solid var(--crm-palette-text, #cdcdcd);
  outline-offset: 2px;
}

/* Category characteristics follow the same row height as the menu. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice #settingsCategoryPanel .settings-category-spec-group-list {
  gap: 0;
  margin-top: 0;
  padding: 0;
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice #settingsCategoryPanel .settings-category-spec-group {
  gap: 0;
  padding: 0;
  border-bottom: 0;
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice #settingsCategoryPanel :is(.settings-category-spec-summary, .settings-category-spec-group-row, .settings-category-spec-field-row) {
  box-sizing: border-box;
  height: var(--category-row-height, 55px);
  min-height: var(--category-row-height, 55px);
  max-height: var(--category-row-height, 55px);
  margin: 0;
  padding: 0 16px;
  border-bottom: var(--category-divider);
  border-top: 0;
  align-items: center;
}

/* Keep category header/action separators, without rules between characteristic rows. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice #settingsCategoryPanel :is(.settings-category-spec-group-row, .settings-category-spec-field-row) {
  border-block: 0;
}

body.is-crm-settings-active #settingsView #settingsCategoryPanel .settings-category-spec-group-row.is-readonly {
  cursor: default;
}

/* Content settings use the same bottom collapse arrow as the primary menu. */
.crm-settings-submenu-icon, #crmSettingsSubmenuToggle { display: none; }
@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView.crm-settings-submenu-enabled .settings-modal-head > #settingsMenuList {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-x: hidden;
  }
  body.is-crm-settings-active #settingsView.crm-settings-submenu-enabled #settingsMenuList > [data-settings-section]:not([hidden]) {
    box-sizing: border-box;
    flex: 0 0 var(--category-row-height, var(--crm-menu-row-height, 55px));
    height: var(--category-row-height, var(--crm-menu-row-height, 55px));
    min-height: var(--category-row-height, var(--crm-menu-row-height, 55px));
  }
  body.is-crm-settings-active #settingsView #settingsMenuList > #crmSettingsSubmenuToggle:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: static;
    inset: auto;
    flex: 0 0 var(--crm-sidebar-toggle-height, 55px);
    box-sizing: border-box;
    width: 100%;
    height: var(--crm-sidebar-toggle-height, 55px);
    min-height: var(--crm-sidebar-toggle-height, 55px);
    margin-top: auto;
    padding: 0 8px;
    place-items: center end;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--crm-palette-secondary, #cdcdcd);
  }
  body.is-crm-settings-active #settingsView #crmSettingsSubmenuToggle:is(:hover, :focus-visible) {
    background: var(--crm-palette-hover);
    color: var(--crm-palette-text);
  }
  #crmSettingsSubmenuToggle svg, .crm-settings-submenu-icon {
    width: 18px; height: 18px; fill: none; stroke: currentColor;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  }
  body.is-crm-settings-active #settingsView.crm-settings-submenu-collapsed .settings-modal-head > #settingsMenuList {
    flex: 0 0 52px;
  }
  body.is-crm-settings-active #settingsView.crm-settings-submenu-enabled.crm-settings-primary-menu-collapsed:not(.crm-settings-submenu-collapsed) .settings-modal {
    grid-template-columns: min(300px, 45%) minmax(0, 1fr);
  }
  body.is-crm-settings-active #settingsView.crm-settings-submenu-collapsed .settings-modal {
    grid-template-columns: min(300px, 45%) minmax(0, 1fr);
  }
  body.is-crm-settings-active #settingsView.crm-settings-submenu-collapsed.crm-settings-primary-menu-collapsed .settings-modal {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  body.is-crm-settings-active #settingsView.crm-settings-submenu-collapsed #settingsMenuList > [data-settings-section] {
    justify-content: center;
    padding-inline: 0;
  }
  body.is-crm-settings-active #settingsView.crm-settings-submenu-enabled:not(.crm-settings-submenu-collapsed) #settingsMenuList > button > .crm-settings-submenu-label { display: inline; }
  body.is-crm-settings-active #settingsView.crm-settings-submenu-collapsed .crm-settings-submenu-label { display: none; }
  body.is-crm-settings-active #settingsView.crm-settings-submenu-collapsed .crm-settings-submenu-icon { display: block; }
  body.is-crm-settings-active #settingsView.crm-settings-submenu-collapsed #settingsMenuList > #crmSettingsSubmenuToggle { place-items: center; }
  #crmSettingsSubmenuToggle[aria-expanded="false"] svg { transform: rotate(180deg); }
}

/* Keep category deletion in the native shell footer, outside scrolling rows. */
@media (min-width: 901px) {
  html[data-trello-native] body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-delete-row {
    position: fixed;
    inset: auto calc(var(--crm-right-rail-width, 9px) + 16px) 0 auto;
    z-index: 30;
    height: var(--crm-shell-bar-height, 55px);
    min-height: 0;
    margin: 0;
    padding: 0;
    align-items: center;
    border: 0;
  }
}

body.is-crm-settings-active #settingsCategoryPanel .settings-category-spec-title-edit,
body.is-crm-settings-active #settingsCategoryPanel .settings-category-spec-title-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
body.is-crm-settings-active #settingsCategoryPanel .settings-category-spec-title-edit:hover {
  background: color-mix(in srgb, var(--crm-palette-selection, #383a3d) 40%, transparent);
}

/* Category binding remains plain on pointer hover in CRM settings. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-woo-category:hover {
  background: transparent !important;
}

/* Keep the description hint plain when the category row is hovered. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-description > .settings-category-description-add:hover {
  background: transparent;
}

/* Editable specification rows own their hover, including both outer gutters. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice #settingsCategoryPanel [data-settings-spec-row].is-editable {
  display: flex;
  align-items: center;
  padding-inline: 0;
  gap: 0;
}
body.is-crm-settings-active #settingsView #settingsCategoryPanel [data-settings-spec-row]:is(:hover, :focus-within) {
  background: color-mix(in srgb, var(--crm-palette-selection, #383a3d) 40%, transparent);
}
body.is-crm-settings-active #settingsView #settingsCategoryPanel [data-settings-spec-row] > :is(.settings-category-spec-title-edit, .settings-category-spec-title-input) {
  flex: 1 1 auto;
  width: 0;
  padding-inline: 16px;
  background: transparent;
}
body.is-crm-settings-active #settingsView #settingsCategoryPanel .settings-category-spec-row-delete {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0 16px 0 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  opacity: 0;
  pointer-events: none;
}
body.is-crm-settings-active #settingsView #settingsCategoryPanel [data-settings-spec-row]:is(:hover, :focus-within) > .settings-category-spec-row-delete {
  opacity: 1;
  pointer-events: auto;
}
body.is-crm-settings-active #settingsView #settingsCategoryPanel .settings-category-spec-row-delete svg {
  width: 18px;
  height: 18px;
}
@media (hover: none) {
  body.is-crm-settings-active #settingsView #settingsCategoryPanel [data-settings-spec-row] > .settings-category-spec-row-delete {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Category details share the profile workspace surface. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-main-panel {
  --crm-menu-background: var(--crm-palette-workspace, #18191c);
  background: var(--crm-palette-workspace, #18191c);
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-main-panel :is(
  .settings-category-panel, .settings-category-description, .settings-category-spec-groups
) {
  background: var(--crm-palette-workspace, #18191c);
}

/* Settings menus share the profile menu tone; forms share its workspace tone. */
body.is-crm-settings-active #settingsView {
  --crm-menu-background: var(--crm-palette-panel, #1c1d20);
  --crm-profile-surface: var(--crm-palette-workspace, #18191c);
}
body.is-crm-settings-active #settingsView :is(
  .crm-settings-links, .settings-modal-tabs, .settings-category-root-menu,
  .settings-values-menu, .settings-category-choice, .settings-category-choice-block,
  .settings-values-list
) {
  background-color: var(--crm-palette-panel, #1c1d20);
}
body.is-crm-settings-active #settingsView :is(
  .settings-main-panel, .settings-users-panel, .settings-user-form
) {
  background-color: var(--crm-palette-workspace, #18191c);
}

/* Category identifiers share one selected-color header with four equal cells. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-panel .category-settings-grid > .settings-category-identity-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  height: calc(2 * var(--category-row-height));
  background: var(--crm-palette-selection, #383a3d);
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-identity-row > :is(label, .settings-category-woo-field) {
  box-sizing: border-box;
  display: grid;
  grid-column: auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-identity-row > :not(:last-child) {
  border-inline-end: var(--category-divider);
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-identity-row > label > span {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--crm-palette-muted, #afafaf);
}

/* Reuse the outlined trash glyph with the CRM icon color. */
body.is-crm-settings-active #settingsView #settingsCategoryPanel .settings-category-spec-row-delete svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Category specification rows can be moved independently, including headings. */
body.is-crm-settings-active #settingsView #settingsCategoryPanel .settings-category-spec-group-list.is-sortable {
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.is-crm-settings-active #settingsView #settingsCategoryPanel [data-settings-spec-row][draggable="true"] {
  flex-shrink: 0;
  cursor: grab;
}
body.is-crm-settings-active #settingsView #settingsCategoryPanel [draggable="true"] > .settings-category-spec-title-edit {
  cursor: grab;
}
body.is-crm-settings-active #settingsView #settingsCategoryPanel .is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}
body.is-crm-settings-active #settingsView #settingsCategoryPanel .is-drop-before {
  border-top: 2px solid var(--crm-palette-text, #cdcdcd);
}
body.is-crm-settings-active #settingsView #settingsCategoryPanel .is-drop-after {
  border-bottom: 2px solid var(--crm-palette-text, #cdcdcd);
}

/* Specification rows use the same highlight as the selected category. */
body.is-crm-settings-active #settingsView #settingsCategoryPanel [data-settings-spec-row]:is(:hover, :focus-within) {
  background: var(--crm-palette-selection, #383a3d);
}
body.is-crm-settings-active #settingsView #settingsCategoryPanel [data-settings-spec-row] > :is(
  .settings-category-spec-title-edit, .settings-category-spec-title-input, .settings-category-spec-row-delete
):is(:hover, :focus-visible) {
  background: transparent;
}
body.is-crm-settings-active #settingsView #settingsCategoryPanel .settings-category-spec-row-delete {
  color: var(--crm-palette-secondary, #cdcdcd);
}

/* Render header separators over the menu surface so they remain visible on selection. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-identity-row > :not(:last-child) {
  position: relative;
  border-inline-end: 0;
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice .settings-category-identity-row > :not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(var(--crm-palette-divider, #353638), var(--crm-palette-divider, #353638)), var(--crm-palette-panel, #1c1d20);
}

/* Settings columns meet the shell footer without a horizontal outline. */
@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView.content-settings-page,
  body.is-crm-settings-active #settingsView :is(
    .settings-modal, .settings-modal-head, .settings-modal-body,
    .settings-modal-section, .settings-layout, .settings-main-panel,
    .crm-settings-links, .settings-modal-tabs, .settings-category-root-menu,
    .settings-values-menu
  ) {
    border-block-end: 0;
  }
  body.is-crm-settings-active .app-shell::after {
    border-block-start: 0;
  }
}

/* Adding a category characteristic follows the typography and row geometry below. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice #settingsCategoryPanel .settings-category-spec-create {
  display: flex;
  align-items: center;
  width: calc(100% + 32px);
  height: var(--category-row-height, 55px);
  margin: 0 -16px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--crm-palette-muted, #afafaf);
  font: 400 var(--category-menu-font-size, 16px)/1.25 system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice #settingsCategoryPanel .settings-category-spec-create:hover {
  background: var(--crm-palette-hover, #383a3d);
}
body.is-crm-settings-active #settingsView #settingsCategoryPanel .settings-category-spec-create:focus-visible {
  outline: 1px solid var(--crm-palette-text, #cdcdcd);
  outline-offset: -2px;
}
.spec-category-settings-button:focus-visible { outline: 1px solid var(--crm-palette-text, #cdcdcd); outline-offset: -2px; }
body.is-crm-settings-active #settingsView.crm-category-from-product .crm-settings-links > :not(#crmCategoryBackToProduct) { display: none !important; }
body.is-crm-settings-active #settingsView.crm-category-from-product #crmCategoryBackToProduct {
  display: flex; align-items: center; justify-content: center; width: 100%;
  height: var(--crm-menu-row-height, 55px); padding: 0; border: 0; background: transparent;
  color: var(--crm-palette-secondary, #cdcdcd); cursor: pointer;
}
body.is-crm-settings-active #settingsView.crm-category-from-product #crmCategoryBackToProduct svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Category specification layout actions; Lucide Minus, Save and Download. */
.settings-category-spec-tools { display:flex; align-items:center; gap:8px; margin-left:auto; padding-right:24px; }
.settings-category-spec-tools button { display:grid; place-items:center; width:36px; height:36px; padding:6px; border:0; background:transparent; color:var(--crm-palette-text-secondary,#CDCDCD); cursor:pointer; }
.settings-category-spec-tools svg { width:22px; height:22px; }
.settings-category-spec-tools button:hover { color:var(--crm-palette-text-primary,#CDCDCD); }
.settings-category-spec-tools button:focus-visible,.settings-category-spec-divider-handle:focus-visible { outline:2px solid var(--crm-palette-muted,#AFAFAF); outline-offset:-2px; }
.settings-category-spec-summary:has(.settings-category-spec-tools) { display:flex; align-items:center; }
.settings-category-spec-summary:has(.settings-category-spec-tools) .settings-category-spec-create { flex:1; min-width:0; }
.settings-category-spec-divider-handle { display:flex; align-items:center; flex:1; align-self:stretch; padding:0; border:0; background:transparent; color:inherit; cursor:grab; }
.settings-category-spec-divider-handle span { width:100%; height:1px; background:var(--crm-palette-line,rgba(56,58,61,.4)); }
.spec-layout-divider { width:100%; height:1px; margin:16px 0; background:var(--crm-palette-line,rgba(56,58,61,.4)); }
.category-spec-template-dialog { width:min(460px,calc(100vw - 48px)); padding:24px; border:1px solid var(--crm-palette-selection,#383A3D); border-radius:12px; background:var(--crm-palette-workspace,#18191C); color:var(--crm-palette-text-primary,#CDCDCD); font:inherit; }
.category-spec-template-dialog::backdrop { background:rgba(0,0,0,.55); }
.category-spec-template-dialog h2 { margin:0 0 24px; font-size:20px; }
.category-spec-template-dialog input { display:block; box-sizing:border-box; width:100%; margin-top:12px; padding:12px; background:var(--crm-palette-panel,#1C1D20); color:inherit; border:1px solid var(--crm-palette-selection,#383A3D); font:inherit; }
.category-spec-template-dialog button { padding:12px; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.category-spec-template-dialog button:hover { background:var(--crm-palette-selection,#383A3D); }
.category-spec-template-actions { display:flex; justify-content:flex-end; gap:12px; }
.category-spec-template-list { display:flex; flex-direction:column; max-height:50vh; overflow:auto; }
.category-spec-template-list button { text-align:left; }
.settings-category-spec-divider { position:relative; }
.settings-category-spec-divider-handle span { position:absolute; left:0; right:0; width:auto; pointer-events:none; }
html[data-trello-native] .settings-category-spec-tools button:hover { background:transparent; }

/* Keep legacy group rules out of the sortable CRM list and balance its outer spacing. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice #settingsCategoryPanel .settings-category-spec-group-list {
  padding-block: calc(var(--category-row-height, 55px) / 2);
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice #settingsCategoryPanel .settings-category-spec-group {
  border-block: 0;
}

/* The outer characteristics section must not draw a line through overflowing rows. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice #settingsCategoryPanel .settings-category-spec-groups {
  border-block: 0;
}

/* Keep long category lists in normal flow instead of shrinking their sections. */
body.is-crm-settings-active #settingsView.settings-view-has-category-choice #settingsCategoryPanel {
  flex: 0 0 auto;
  height: auto;
}
body.is-crm-settings-active #settingsView.settings-view-has-category-choice #settingsCategoryPanel > :is(.category-settings-grid, .settings-category-spec-groups) {
  flex: 0 0 auto;
}

/* A product entered from purchasing keeps the shared card and one return menu. */
.crm-purchase-card-back[hidden] { display: none; }

/* Keep the image toggle beside the other Purchases header actions. */
.crm-purchases-toolbar > [data-purchase-control="selected-photo"] { margin-inline-start:auto; }
.crm-purchases-toolbar:has(> [data-purchase-control="selected-photo"]) > [data-purchase-control="open-table"] { margin-inline-start:0; }
body.is-crm-view-active .topbar .crm-purchases-toolbar > #crmPurchasePhotoToggle[aria-pressed="true"] > svg { color:var(--crm-palette-lime, #d6fa55); }

/* CRM Tasks: neutral column settings and board picker. */
body.is-crm-tasks-board :is(#kanbanColumnFilterModalRoot, #boardsModal) {
  --page-overlay-background: var(--crm-palette-workspace, #18191c);
  --page-overlay-ink: var(--crm-palette-text, #cdcdcd);
  --page-overlay-border: var(--crm-palette-divider, #383a3d);
  --page-overlay-hover: var(--crm-palette-hover, #303236);
  --ink: var(--page-overlay-ink);
  --muted: var(--crm-palette-muted, #afafaf);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-weight: 400;
  color-scheme: dark;
}
body.is-crm-tasks-board #boardsModal {
  background: var(--crm-palette-workspace, #18191c) !important;
  background-image: none !important;
  border: 1px solid var(--crm-palette-divider, #383a3d);
  border-radius: 12px;
  box-shadow: none;
}
body.is-crm-tasks-board #boardsModal::backdrop { background: rgb(0 0 0 / 55%); backdrop-filter: none; }
body.is-crm-tasks-board #boardsModal { padding: 64px 24px 24px; }
body.is-crm-tasks-board #boardsModal :is(.boards-modal-card, .catalog-modal-card-main) {
  background: var(--crm-palette-panel, #1c1d20) !important; background-image: none !important;
  box-shadow: none; border-color: var(--page-overlay-border); border-radius: 8px; color: var(--ink);
}
body.is-crm-tasks-board #boardsModal .boards-modal-card.is-active { background: var(--crm-palette-selection, #383a3d) !important; }
body.is-crm-tasks-board #boardsModal .boards-modal-card:hover:not(.is-active) { background: var(--page-overlay-hover) !important; }
body.is-crm-tasks-board #boardsModal .catalog-modal-card-title { color: var(--ink); font: 500 20px/1.4 system-ui; }
body.is-crm-tasks-board #boardsModal :is(.boards-modal-add, .boards-rename-button) {
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: transparent; box-shadow: none; color: var(--ink);
}
body.is-crm-tasks-board #boardsModal .boards-modal-add { top: 12px; right: 24px; }
body.is-crm-tasks-board #boardsModal :is(.boards-modal-add, .boards-rename-button):hover { background: var(--page-overlay-hover); }
body.is-crm-tasks-board #boardsModal :is(.boards-modal-add, .boards-rename-button) svg { width: 21px; height: 21px; stroke-width: 1.7; }
body.is-crm-tasks-board #boardsModal .boards-create-form input {
  background: transparent; border: 0; border-bottom: 1px solid var(--page-overlay-border); border-radius: 0; color: var(--ink); font: 400 16px system-ui;
}
body.is-crm-tasks-board #boardsModal .boards-create-form .button {
  background: transparent; background-image: none; border: 0; color: var(--ink); box-shadow: none; font: 400 16px system-ui;
}
body.is-crm-tasks-board :is(#kanbanColumnFilterModalRoot, #boardsModal) :is(button, input):focus-visible {
  outline: 2px solid var(--crm-palette-secondary, #cdcdcd); outline-offset: 2px;
}
body.is-crm-tasks-board .kanban-card-detail-modal .kanban-card-modal-close::before,
body.is-crm-tasks-board .kanban-card-detail-modal .kanban-card-modal-close::after { content: none; }

body.is-crm-tasks-board .kanban-card-detail-modal .crm-comment-actions .crm-comment-attach {
  background: transparent; color: var(--crm-text, #cdcdcd); border: 1px solid var(--comment-line);
}

/* Keep task attachments on the dialog surface, with half-sized photo previews. */
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal
  .kanban-card-modal-side .kanban-card-modal-images-inline,
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal
  .kanban-card-modal-images-inline :is(.kanban-card-modal-image, .kanban-card-modal-image-button) {
  background: transparent !important;
  border: 0;
  box-shadow: none;
}
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal
  .kanban-card-modal-photo-list .kanban-card-modal-image {
  width: 50%;
  max-width: 50%;
  flex: 0 0 auto;
}
@media (min-width: 901px) {
  body.is-crm-tasks-board .kanban-card-detail-modal > .kanban-card-modal-body.has-side.is-side-open {
    padding-block: 0;
  }
  body.is-crm-tasks-board .kanban-card-detail-modal > .kanban-card-modal-body.has-side.is-side-open > .kanban-card-modal-main {
    padding-block: 20px;
  }
}

/* Align compact photo previews to the comments divider and outline their edges. */
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal
  .kanban-card-modal-photo-list { align-items: flex-end; }
body.is-crm-tasks-board:has(#kanbanView:not(.is-hidden)) .kanban-card-detail-modal
  .kanban-card-modal-photo-list .kanban-card-modal-image {
  border: 1px solid var(--crm-palette-divider, #383a3d);
  box-sizing: border-box;
}

/* Purchases actions share one evenly spaced row, independent of table columns. */
body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .topbar .crm-purchases-toolbar > button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-inline: 0;
}
body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .topbar .crm-purchases-toolbar > #crmPurchasePhotoToggle {
  margin-inline-start: auto;
}

body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .app-shell > .topbar {
  column-gap: 6px;
}
body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .topbar #crm-two-columns-toggle {
  left: 0;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  margin-inline: 0;
}

/* Empty characteristics have no horizontal dividers and a centered settings hint. */
.spec-details-empty {
  border: 0;
  text-align: center;
  font-size: 14px;
}
.spec-details-empty-settings {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--crm-palette-status-working, #63e9ee);
  font: inherit;
  cursor: pointer;
}
.spec-details-empty-settings:hover { text-decoration: underline; }
.spec-details-empty-settings:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

/* Keep task comments equally wide with and without attachments. */
@media (min-width: 901px) {
  body.is-crm-tasks-board .kanban-card-detail-modal > .kanban-card-modal-body.has-side.is-side-open:has(.kanban-card-comments-panel) {
    grid-template-columns: minmax(0, 1fr) var(--crm-task-comments-width);
  }
  body.is-crm-tasks-board .kanban-card-detail-modal > .kanban-card-modal-body.has-side.is-side-open:has(.kanban-card-modal-images-inline):has(.kanban-card-comments-panel) {
    grid-template-columns: minmax(0, 1fr) minmax(calc(var(--crm-task-comments-width) + 160px), 1.1fr);
  }
  body.is-crm-tasks-board .kanban-card-detail-modal > .kanban-card-modal-body.has-side.is-side-open > .kanban-card-modal-side:has(.kanban-card-modal-images-inline):has(.kanban-card-comments-panel) {
    grid-template-columns: minmax(160px, 1fr) var(--crm-task-comments-width);
  }
  body.is-crm-tasks-board .kanban-card-detail-modal .kanban-card-modal-side:not(:has(.kanban-card-modal-images-inline)) > .kanban-card-comments-panel.crm-order-comments-column {
    grid-column: 1;
  }
}

/* Keep the archive flush with the toolbar; retain the board columns' top inset. */
@media (min-width: 901px) {
  body.is-crm-view-active #roomView .crm-tasks-page:not(.is-hidden) {
    padding-top: 0;
  }
}
#searchGeometry svg { width: 20px; height: 20px; }
.crm-card-colors-dialog > header {
  margin: 0;
  padding: 16px 20px;
  background: var(--crm-palette-panel);
  border-bottom: 1px solid var(--crm-divider-color);
}
.crm-card-colors-dialog > header > button svg { width: 24px; height: 24px; }
.crm-card-colors-dialog > header > button:is(:hover, :focus-visible) { background: var(--crm-palette-selection); }
#crmCardColorsDialog .product-colors-heading { display: block; }
#crmCardColorsDialog .product-colors-heading > h3 { display: block; margin: 0 0 12px; font: 500 16px system-ui, sans-serif; }
#crmCardColorsDialog .product-colors-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
#crmCardColorsDialog .product-colors-search { flex: 1 1 300px; }
#crmCardColorsDialog button:focus-visible { outline: 2px solid var(--crm-palette-secondary); outline-offset: 2px; }
#crmCardColorsDialog #productColorsSearch button:focus-visible { outline: 0; text-decoration: underline; text-underline-offset: 3px; }
#crmCardColorsDialog .product-color-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--crm-divider-color); font-size: 14px; }
#crmCardColorsDialog .product-color-row > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#crmCardColorsDialog [data-colors-status] { color: var(--crm-palette-muted); font-size: 14px; }
#crmCardColorsDialog h4 { font-size: 16px; font-weight: 500; }
#crmCardColorsDialog .product-color-exclude svg { width: 21px; height: 21px; }
#crmCardColorsDialog [data-colors-refresh] svg { width: 21px; height: 21px; }
#crmCardColorsDialog .product-color-row:last-child { border-bottom: 0; }
#crmCardColorsDialog h2 { font-weight: 500; }
#crmCardColorsDialog .product-colors-search:focus-within { background: transparent; }
/* Website tools share the CRM settings navigation. */
.crm-settings-search-open .settings-modal-body { display: none !important; }
.crm-settings-search-open #searchView { min-width: 0; min-height: 0; overflow: auto; }
#crmDashboardNav .catalog-modal-card[hidden] { display: none !important; }

#crmWholesaleSiteLinks:not([hidden]),
#crmWholesaleSiteLinks .catalog-modal-card--dsd {
  display: flex;
  align-items: center;
  gap: 16px;
}
#crmWholesaleSiteLinks .catalog-modal-card--dsd {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  color: var(--crm-palette-text, #cdcdcd);
}
#crmWholesaleSiteLinks a {
  position: static;
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: inherit;
  text-decoration: none;
}
#crmWholesaleSiteLinks .catalog-modal-admin-link { width: 24px; height: 24px; }
#crmWholesaleSiteLinks .catalog-modal-admin-link svg { width: 21px; height: 21px; }
#crmWholesaleSiteLinks a:hover { color: var(--crm-palette-lime, #d6fa55); }
#crmWholesaleSiteLinks:not([hidden]) {
  position: absolute;
  inset-inline-start: 108px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
#crmWholesaleSiteLinks .catalog-modal-card--dsd { flex-direction: row; }
#crmWholesaleSiteLinks .catalog-modal-card-main { flex: 0 0 auto; }
/* Login follows the CRM palette and typography. */
.contentds-site-auth-gate-card,
#authModal,
#authModal .auth-modal-card {
  background: var(--crm-palette-workspace, #1c1d20);
  color: var(--crm-palette-text, #cdcdcd);
  font-family: system-ui, sans-serif;
  border-color: var(--crm-palette-divider, #48494c);
  box-shadow: none;
}
.contentds-site-auth-gate-card { gap: 20px; border-radius: 12px; }
.contentds-site-auth-gate-card span,
.contentds-site-auth-gate-card p,
#authModal .auth-field span,
#authModal .auth-recovery-link { color: var(--crm-palette-secondary, #cdcdcd); font-weight: 400; }
.contentds-site-auth-gate-card h2,
#authModal h2 { color: inherit; font-size: 20px; font-weight: 500; }
.contentds-site-auth-gate-card p { font-size: 14px; line-height: 1.5; }
#authModal input {
  background: transparent;
  color: inherit;
  border-color: var(--crm-palette-divider, #48494c);
}
.contentds-site-auth-gate-card .button-primary,
#authModal .auth-submit {
  background: var(--crm-palette-lime, #d6fa55);
  color: #17181b;
  border-color: transparent;
  font-size: 16px;
  font-weight: 500;
  box-shadow: none;
}
#authModal .auth-modal-close { color: inherit; }
.contentds-site-auth-locked { background: var(--crm-palette-workspace, #18191c); }
#authModal::backdrop { background: rgb(0 0 0 / 55%); backdrop-filter: blur(4px); }
html:root body #authModal .auth-submit,
html:root[data-trello-native] body #authModal .auth-submit,
html:root body .contentds-site-auth-gate-card .button-primary {
  background: var(--crm-palette-lime, #d6fa55) !important;
  color: #17181b !important;
  -webkit-text-fill-color: #17181b !important;
  border-color: transparent !important;
}
html:root body #authModal .auth-submit:hover,
html:root[data-trello-native] body #authModal .auth-submit:hover { filter: brightness(.95); }
html:root[data-trello-native] body #authModal .auth-submit.button-primary {
  background: var(--crm-palette-lime, #d6fa55) !important;
  color: #17181b !important;
  -webkit-text-fill-color: #17181b !important;
}

/* Website brands remain inside the settings navigation. */
.crm-settings-brands-open .settings-modal-body { display: none !important; }
.crm-settings-brands-open #brandsView { min-width: 0; min-height: 0; overflow: auto; }
.crm-settings-brands-open #brandsView { container-type: inline-size; color: var(--crm-palette-text); }
.crm-settings-brands-open .brands-layout { grid-template-columns: 180px minmax(0, 1fr); }
.crm-settings-brands-open .brands-detail { grid-column: 1 / -1; }
.crm-settings-brands-open .brands-head { flex-wrap: wrap; }
.crm-settings-brands-open .brands-head-actions { flex-wrap: wrap; }
.crm-settings-brands-open :is(.brands-page, .brands-layout, .brands-list-panel, .brands-detail) { min-width: 0; }
.crm-settings-brands-open :is(.brands-table-head, .brands-row) { grid-template-columns: 50px minmax(80px, 1fr) 60px 60px; }
.crm-settings-brands-open .panel {
  background: var(--crm-palette-workspace);
  border-color: var(--crm-palette-divider);
  box-shadow: none;
}
.crm-settings-brands-open :is(.brands-row, .brands-filter-list button) {
  background: transparent;
  color: var(--crm-palette-text);
}
.crm-settings-brands-open :is(.brands-row, .brands-filter-list button):is(:hover, :focus-visible, .is-active) {
  background: var(--crm-palette-selection);
  border-color: var(--crm-palette-divider);
}
.crm-settings-brands-open :is(.brands-head p, .brands-empty, .brands-detail-empty, .brands-table-head, .brands-row-title small, .brands-detail-form label span) { color: var(--crm-palette-muted); }
.crm-settings-brands-open :is(.brands-row-products, .brands-table-head button:is(:hover, :focus-visible, .is-active)) { color: var(--crm-palette-text); }
.crm-settings-brands-open :is(.brands-search input, .brands-detail-form input, .brands-detail-form textarea) {
  max-width: 100%;
  background: var(--crm-palette-panel);
  color: var(--crm-palette-text);
  border-color: var(--crm-palette-divider);
}
@container (max-width: 620px) {
  .crm-settings-brands-open .brands-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Shared filter palette and related product colors. */
#crmCardColorsDialog .crm-card-filter-colors { padding: 20px; border-bottom: 1px solid var(--crm-divider-color); }
#crmCardColorsDialog .crm-card-filter-colors .primary-color-picker { width: 100%; max-width: none; }
#crmCardColorsDialog .primary-color-dropdown { position: static; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
#crmCardColorsDialog .primary-color-options { display: grid; grid-template-columns: repeat(3, max-content); justify-content: space-between; gap: 8px; }

/* Marketing is a CRM workspace; the second-level menu is shared with orders. */
body.is-crm-view-active #roomView:has(.crm-marketing-page:not(.is-hidden)) .room-main {
  padding: 0;
  overflow: hidden;
}
.crm-marketing-page, .crm-marketing-page #marketingModalRoot,
.crm-marketing-workspace, .crm-marketing-panels {
  min-width: 0;
  min-height: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}
.crm-marketing-page:not(.is-hidden) { display: flex; }
.crm-marketing-workspace {
  background: var(--crm-palette-workspace);
  color: var(--crm-palette-text);
  overflow: auto;
}
.crm-marketing-workspace .site-exchange-filter-section:not(.is-hidden) {
  min-height: 100%;
  height: auto;
  overflow: visible;
  padding: 24px;
}
.crm-marketing-workspace .marketing-discounts-panel:not(.is-hidden) {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 100%;
}
.crm-marketing-workspace .marketing-promocodes-panel:not(.is-hidden) {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 24px;
}
.crm-marketing-workspace :is(input, select, textarea, button) { font-family: inherit; }
.crm-marketing-workspace .discounts-modal-grid { color: var(--crm-palette-text); }
.crm-marketing-workspace .discounts-modal-column { padding-inline: 20px; }
.crm-marketing-workspace .discounts-modal-column:first-child { padding-inline-start: 0; }
.crm-marketing-workspace .discounts-modal-column:last-child { padding-inline-end: 0; }
@media (max-width: 1100px) {
  .crm-marketing-workspace .discounts-modal-grid { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .crm-marketing-workspace .discounts-modal-column { padding: 16px 0; border: 0; }
}
@media (max-width: 900px) {
  .crm-marketing-workspace .marketing-promocodes-panel:not(.is-hidden) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  body.is-crm-view-active #roomView #crmRetailMenu.is-marketing-menu {
    display: block;
    background: var(--crm-palette-panel, #1c1d20);
  }
  body.is-crm-view-active #roomView #crmMarketingNav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    background: var(--crm-palette-panel, #1c1d20);
  }
  body.is-crm-view-active #roomView #crmMarketingNav button {
    border: 0;
    padding: 14px 18px;
    background: transparent;
  }
  body.is-crm-view-active #roomView #crmMarketingNav button.is-active { background: var(--crm-palette-selection, #383a3d); }
  .crm-marketing-workspace { background: var(--crm-palette-workspace, #18191c); color: var(--crm-palette-text, #cdcdcd); }
  .crm-marketing-workspace .site-exchange-filter-section.is-hidden { display: none; }
  .crm-marketing-workspace .discounts-modal-grid,
  .crm-marketing-workspace .discounts-modal-column,
  .crm-marketing-workspace .discounts-filter-grid,
  .crm-marketing-workspace .discounts-rule-fields { display: grid; gap: 16px; min-width: 0; }
  .crm-marketing-workspace .discounts-modal-column-head { display: flex; align-items: center; justify-content: space-between; }
  .crm-marketing-workspace .discounts-modal-column-head h4 { margin: 0; font-size: 18px; }
  .crm-marketing-workspace #discountsNameList { display: grid; gap: 8px; }
  .crm-marketing-workspace :is(input, select, textarea, .discounts-name-button, .discounts-filter-select-trigger) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--crm-palette-selection, #383a3d);
    border-radius: 8px;
    background: var(--crm-palette-panel, #1c1d20);
    color: var(--crm-palette-text, #cdcdcd);
    padding: 8px 12px;
  }
  .crm-marketing-workspace svg { width: 20px; height: 20px; }
  .crm-marketing-workspace input[type=checkbox] { width: auto; min-height: 0; }
}
@media (max-width: 900px) {
  .crm-marketing-workspace :is(.discounts-name-item, .discounts-rule-row) { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
  .crm-marketing-workspace .discounts-rule-row { grid-template-columns: 100px minmax(0, 1fr); }
  .crm-marketing-workspace :is(.discounts-name-delete, .discounts-modal-add-name, .discounts-filter-select-button) { border: 1px solid #383a3d; border-radius: 8px; background: #1c1d20; color: #cdcdcd; min-height: 36px; }
  .crm-marketing-workspace .discounts-filter-select-button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 12px; }
  .crm-marketing-workspace .discounts-name-button { text-align: left; }
  .crm-marketing-workspace .discounts-name-item + .discounts-name-item { margin-block-start: 8px; }
  .crm-marketing-workspace svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
}


/* Keep geometry directly below the description in the right half of the card. */
.crm-description-geometry-column { display: contents; }
#crmCardColorsDialog:focus { outline: none; }
/* Continue the description surface to the next divider in the left column. */
.crm-description-extension { display: none; }

@media (max-width: 640px) {
  #crmCardColorsDialog .primary-color-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}

/* Reserve the fixed pickup button's width and gap in the wholesale toolbar. */
@media (min-width: 901px) {
  body.is-crm-view-active:has(#roomView.is-crm-wholesale-open) .topbar-actions {
    margin-inline-end: 84px;
  }
}
.room-preorder-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 260px));
  gap: 24px;
  padding: 28px;
}
.room-preorder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 148px;
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid #343638;
  border-radius: 14px;
  background: #26282a;
  color: #cdcdcd;
  text-decoration: none;
}
.room-preorder-card img { width: 150px; height: 78px; object-fit: contain; filter: invert(1); }
.room-preorder-card:is(:hover, :focus-visible) { background: #2c2e30; border-color: #777; color: #fff; }
@media (max-width: 760px) { .room-preorder-cards { padding: 24px; } }
.crm-wholesale-page > iframe { height: 100%; }

/* The first wholesale menu collapses independently of the brand menu. */
.crm-wholesale-downloads { display:flex; flex-direction:column; }
.crm-wholesale-downloads > .crm-category-menu-footer { display:flex; margin-top:auto; flex:0 0 55px; justify-content:flex-end; }
.crm-wholesale-downloads > .crm-category-menu-footer .crm-menu-toggle { position:static; width:55px; height:55px; padding:16px; border:0; background:transparent; color:inherit; }
.crm-wholesale-downloads .crm-menu-toggle svg,.crm-wholesale-menu-icon svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.crm-wholesale-menu-icon { display:none; }
.crm-wholesale-page.crm-wholesale-menu-collapsed { --crm-wholesale-menu-width:84px; }
body.is-crm-view-active #roomView .crm-wholesale-page.crm-wholesale-menu-collapsed:not(.crm-preorders-menu-open):not(.is-hidden) { grid-template-columns:84px minmax(0,1fr); }
.crm-wholesale-menu-collapsed .crm-wholesale-downloads :is(.crm-wholesale-menu-label,summary::after) { display:none; }
.crm-wholesale-menu-collapsed .crm-wholesale-menu-icon { display:flex; }
.crm-wholesale-menu-collapsed .crm-wholesale-downloads :is(.crm-wholesale-sections button,summary) { justify-content:center; padding-inline:0; }
.crm-wholesale-menu-collapsed [data-wholesale-menu-toggle] svg { transform:rotate(180deg); }
.crm-wholesale-menu-collapsed .crm-wholesale-downloads summary::after { display:none; }

/* Keep select-all in the same column as the row checkboxes. */
.catalog-selection-toolbar:not(:has(button:not(.is-hidden))) {
  display: none;
}
#crmCatalogToolbarActions,
#crmCatalogToolbarActions [hidden] {
  display: none;
}
body.is-crm-view-active:has(.crm-content-page:not(.is-hidden)) #crmCatalogToolbarActions:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 8px;
}
#crmCatalogToolbarActions .topbar-icon-button:not([hidden]) {
  display: grid;
  place-items: center;
  color: var(--crm-palette-secondary, #cdcdcd);
}
#crmCatalogToolbarActions svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#crmCatalogToolbarActions [data-catalog-action="deleteSelectedProducts"]:enabled:hover {
  color: var(--crm-palette-danger, #f48bcb);
}

/* Match catalog actions to the adjacent Content controls. */
body.is-crm-view-active .topbar #crmCatalogToolbarActions {
  gap: 0;
}
body.is-crm-view-active .topbar #crmCatalogToolbarActions svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
  color: var(--crm-palette-secondary, #cdcdcd);
}
body.is-crm-view-active .topbar #crmCatalogToolbarActions button:is(:hover, :focus-visible) svg {
  color: var(--crm-palette-text, #fff);
}
@media (min-width: 901px) {
  body.is-crm-view-active .topbar #crmCatalogToolbarActions:not([hidden]) {
    margin-inline-end: max(40px, calc(50vw - 240px));
  }
}
#crmCardPublishProgress[hidden] { display: none; }
#crmCardPublishProgress > span {
  display: block;
  height: 100%;
  background: var(--crm-palette-lime, #d6fa55);
  border-radius: 0;
  transition: width .2s linear;
}

/* CRM Back/Forward: thin chevrons above the category sidebar. */
.crm-history { display: none; }
body.is-crm-view-active .topbar > .crm-history {
  display: flex; position: absolute; left: 96px; top: 50%; transform: translateY(-50%);
  gap: 4px; align-items: center; -webkit-app-region: no-drag;
}
.crm-history button { display: grid; place-items: center; width: 36px; height: 36px;
  padding: 0; border: 0; background: transparent; color: var(--crm-palette-muted, #c7c8ca); cursor: pointer; }
.crm-history button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; }
.crm-history button:hover:not(:disabled) { color: #fff; }
.crm-history button:disabled { opacity: .3; cursor: default; }
.crm-history button:focus-visible { outline: 1px solid currentColor; outline-offset: -3px; border-radius: 4px; }
@media(max-width:600px) { body.is-crm-view-active .topbar > .crm-history { left: 72px; gap: 0; } .crm-history button { width: 30px; } }

/* The shared history arrows replace the Mac-only order return control. */
html[data-trello-native] body.is-crm-view-active #crm-order-back-button {
  display: none !important;
}
#crmCardReadinessDialog[open] { display: flex; flex-direction: column; }
#crmCardReadinessDialog .crm-readiness-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); flex: 1; min-height: 0; }
#crmCardReadinessDialog .crm-readiness-columns > section { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#crmCardReadinessDialog .crm-readiness-checks-column { background: var(--crm-palette-workspace, #18191c); }
#crmCardReadinessDialog .crm-readiness-journal-column { background: var(--crm-palette-header, #242528); border-left: 1px solid var(--crm-palette-divider, var(--line)); }
#crmCardReadinessDialog .crm-readiness-column-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; min-height: 72px; padding: 16px 24px 16px 48px; margin: 0; background: transparent; }
#crmCardReadinessDialog .crm-readiness-checks-column > header { border-bottom: 1px solid var(--crm-palette-header, #242528); }
#crmCardReadinessDialog .crm-readiness-journal-column > header { border-bottom: 1px solid color-mix(in srgb, var(--crm-palette-header, #242528) 92%, white); }
#crmCardReadinessDialog h2 { margin: 0; font-size: 20px; font-weight: 500; color: var(--crm-palette-text, #cdcdcd); }
#crmCardReadinessDialog .crm-readiness-column-header > button { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
#crmCardReadinessDialog .crm-readiness-column-header > button:hover { background: var(--crm-palette-hover, #383a3d); }
#crmCardReadinessDialog .crm-readiness-column-header svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#crmCardReadinessDialog .crm-readiness-column-body { min-height: 0; overflow: auto; padding: 12px 24px 24px 48px; }
#crmCardReadinessDialog .crm-readiness-column-body:focus-visible { outline: 2px solid var(--crm-palette-text, #cdcdcd); outline-offset: -3px; }
#crmCardReadinessDialog :is(.check-list, .event-log) { display: grid; gap: 0; margin: 0; max-height: none; padding: 0; background: transparent; }
#crmCardReadinessDialog :is(.check-item, .event-log p) { box-sizing: border-box; min-height: 42px; margin: 0; padding: 9px 0; border: 0; border-radius: 0; background: transparent; color: var(--crm-palette-text, #cdcdcd); font-size: 14px; font-weight: 400; line-height: 24px; }
#crmCardReadinessDialog .check-item { align-items: flex-start; }
#crmCardReadinessDialog .check-item::before { margin-top: 3px; }
#crmCardReadinessDialog .event-log p::before { content: none; }
@media (max-width: 680px) {
  #crmCardReadinessDialog .crm-readiness-columns { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  #crmCardReadinessDialog .crm-readiness-columns > section { min-height: auto; }
  #crmCardReadinessDialog .crm-readiness-column-body { overflow: visible; }
  #crmCardReadinessDialog .crm-readiness-journal-column { border-left: 0; border-top: 1px solid var(--crm-palette-divider, var(--line)); }
  #crmCardReadinessDialog .crm-readiness-journal-column header > button { position: absolute; top: 18px; right: 24px; }
  #crmCardReadinessDialog .crm-readiness-checks-column header { padding-right: 72px; }
}

:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .optimizer-controls label { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .optimizer-controls .quality-control { display: grid; grid-template-columns: 1fr auto; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .quality-control span { grid-column: 1; grid-row: 1; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .quality-control strong { grid-column: 2; grid-row: 1; color: var(--crm-palette-text, #cdcdcd); }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .quality-control input { grid-column: 1 / -1; grid-row: 2; width: 100%; }
:is(#crmPhotoSettings, .crm-content-preview-photo-tools) .crm-photo-tools-upload-button { color: var(--crm-palette-text, #cdcdcd); }

/* Keep every reviewer visible in the existing footer control. */
#qualityReviewToggle .quality-review-toggle-avatar { display: grid; place-items: center; width: 100%; height: 100%; min-width: 0; border-radius: 50%; overflow: hidden; }
#qualityReviewToggle.has-multiple-reviewers { display: flex; width: auto; inline-size: auto; gap: 4px; }
#qualityReviewToggle.has-multiple-reviewers .quality-review-toggle-avatar { width: 36px; height: 36px; flex: 0 0 36px; }
#qualityReviewClear { display: none; }

/* Content's empty preview column shares the expanded navigation width. */
#crmContentPreviewToggle, #crmContentPreviewEdit, #crmContentPreviewLock, #crmContentPreviewMenus { display: none; }
body.is-crm-view-active:has(.crm-content-page:not(.is-hidden)) :is(#crmContentPreviewToggle, #crmContentPreviewEdit, #crmContentPreviewLock, #crmContentPreviewMenus):not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  height: 56px;
  min-height: 56px;
  padding-block: 0;
  color: var(--crm-palette-secondary, #cdcdcd);
}
#crmContentPreviewToggle svg, #crmContentPreviewEdit svg, #crmContentPreviewLock svg, #crmContentPreviewMenus svg { width: 21px; height: 21px; stroke-width: 1.7; }
#crmContentPreviewToggle[aria-pressed="true"], #crmContentPreviewEdit[aria-pressed="true"] { background: var(--crm-palette-selection); }
body.is-crm-view-active #roomView :is(.crm-content-page, .crm-purchases-page).crm-content-preview-open:not(.is-hidden) { flex-direction: row; }
.crm-content-preview-open > iframe { width: 0; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) {
  box-sizing: border-box;
  flex: 0 0 var(--crm-content-preview-width, 420px);
  width: var(--crm-content-preview-width, 420px);
  max-width: 45%;
  margin-block-end: var(--crm-list-row-height, 55px);
  min-height: 0;
  background: var(--crm-menu-background, var(--crm-palette-panel, #1c1d20));
  border-inline-start: 1px solid var(--crm-divider-color, var(--crm-palette-divider));
}
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel)[hidden] { display: none; }
/* Purchases already reserve the footer outside the preview area. */
#crmPurchasePreviewPanel { margin-block-end: 0; }
.crm-purchases-page > .crm-content-preview-resizer { bottom: 0; }
#crmCardColorsDialog .product-colors-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}
#crmCardColorsDialog .product-colors-heading-row > h3 {
  margin: 0;
  font: 500 20px system-ui, sans-serif;
}
#crmCardColorsDialog .product-color-row > .product-color-row-swatch {
  display: flex;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--crm-palette-selection);
  border-radius: 50%;
  overflow: hidden;
}
#crmCardColorsDialog .product-color-row-swatch > span { flex: 1; height: 100%; }

html:root[data-trello-native] body.is-crm-view-active #roomView :is(.crm-content-page, .crm-purchases-page).crm-content-preview-open:not(.is-hidden) {
  background-color: var(--crm-palette-header, #242528) !important;
}

:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) { overflow: auto; padding: 0; }
.crm-content-preview-photo { display: block; width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; }
.crm-content-preview-text { padding: 20px; color: var(--crm-palette-secondary, #cdcdcd); font: 400 14px/1.5 system-ui, sans-serif; overflow-wrap: anywhere; }
.crm-content-preview-text h2 { margin: 0 0 16px; font: 500 18px/1.35 system-ui, sans-serif; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-text[data-preview-field="dealerDescription"] > h2 { font: 400 14px system-ui, sans-serif; }
.crm-content-preview-description > :first-child { margin-top: 0; }
.crm-content-preview-description > :last-child { margin-bottom: 0; }

#crmCardReadinessDialog .crm-readiness-column-header > button:is(:focus, :focus-visible) { outline: none; box-shadow: none; }
#crmCardReadinessDialog .event-log p { white-space: pre-wrap; }

/* Configurable product preview: settings use the same palette and controls. */
.crm-content-preview-settings { border: 0; margin: 0; padding: 20px; min-width: 0; font: 400 14px/1.5 system-ui, sans-serif; color: var(--crm-palette-secondary); }
.crm-content-preview-settings legend { padding: 0; font-size: 20px; font-weight: 500; }
.crm-content-preview-settings label { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.crm-content-preview-settings input { accent-color: var(--crm-palette-accent, #d6fa55); width: 16px; height: 16px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) button, :is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) select { font: inherit; color: var(--crm-palette-secondary); background: transparent; border: 1px solid var(--crm-palette-divider, #383a3d); border-radius: 6px; padding: 8px 12px; cursor: pointer; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) button:hover { background: var(--crm-table-row-hover); }
.crm-content-preview-gallery { display: grid; gap: 8px; background: inherit; }
.crm-preview-photo-row { display: grid; gap: 8px; min-width: 0; }
.crm-preview-photo-row:is(.is-pair, .is-trio, .is-first-pair) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
/* Original image ratios determine the first pair height; captions float over it. */
.crm-preview-photo-row:is(.is-first-pair, .is-pair) { align-items: start; }
.crm-preview-photo-stack { display: grid; gap: 8px; min-width: 0; }
.crm-content-preview-gallery figure { position: relative; box-sizing: border-box; min-width: 0; width: 100%; margin: 0; }
.crm-content-preview-gallery figcaption { position: absolute; z-index: 1; inset: auto 0 0; box-sizing: border-box; display: block; padding: 8px; overflow: hidden; font: 400 12px/1.4 system-ui, sans-serif; color: #bdbdbd; background: #000; opacity: 0; visibility: hidden; pointer-events: none; }
.crm-content-preview-gallery figure:is(:hover, :focus-within) figcaption { opacity: 1; visibility: visible; }
@media (hover: none) { .crm-content-preview-gallery figcaption { opacity: 1; visibility: visible; } }
.crm-preview-photo-details { display: grid; gap: 2px; min-width: 0; }
.crm-preview-photo-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #eee; }
.crm-preview-photo-alt { overflow-wrap: anywhere; white-space: normal; }
.crm-preview-photo-stats { font-size: 11px; }
.crm-content-preview-photo { cursor: zoom-in; }
.crm-content-preview-thumbnail { padding: 0; }
.crm-content-preview-thumbnail img { display: block; width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; }
.crm-preview-values { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.crm-preview-values dd { margin: 0; overflow-wrap: anywhere; }
.crm-preview-values dt { color: var(--crm-palette-muted); }
.crm-preview-color-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-settings label { font: 400 16px/1.5 system-ui, sans-serif; color: var(--crm-palette-secondary, #cdcdcd); }

/* The separator is a sibling so photo/settings rendering cannot remove it. */
body.is-crm-view-active #roomView .crm-content-page { position: relative; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) { max-width: none; }
.crm-content-preview-resizer { position: absolute; z-index: 20; top: 0; bottom: var(--crm-list-row-height, 55px); right: calc(var(--crm-content-preview-width, 420px) - 5px); width: 10px; cursor: col-resize; touch-action: none; }
.crm-content-preview-resizer[hidden] { display: none; }
.crm-content-preview-resizer:focus-visible { outline: none; }
.crm-content-preview-resizer:is(:hover, :focus-visible)::before { content: ""; position: absolute; inset: 0 4px; background: var(--crm-palette-accent, #d6fa55); }
.crm-preview-resizing { user-select: none; }
.crm-preview-resizing::after { content: ""; position: fixed; inset: 0; z-index: 10000; cursor: col-resize; }
body.is-crm-view-active .topbar #crmContentPreviewToggle,
body.is-crm-view-active .topbar #crmContentPreviewToggle:is(:hover, :focus, :active) { background: transparent !important; box-shadow: none !important; }
body.is-crm-view-active .topbar #crmContentPreviewToggle[aria-pressed="true"],
body.is-crm-view-active .topbar #crmContentPreviewToggle[aria-pressed="true"] svg { color: var(--crm-palette-accent, #d6fa55) !important; }
body.is-crm-view-active .topbar #crmContentPreviewEdit > svg.crm-nav-icon { width: 18px; height: 18px; min-width: 18px; min-height: 18px; flex: 0 0 18px; stroke-width: 1.7; }

/* Task completion belongs in the card header, before its icon actions. */
.kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-primary-actions > .kanban-card-done-button {
  width: auto; min-width: 90px; height: 36px; padding: 0 18px; border: 1px solid currentColor;
  border-radius: 18px; background: transparent; color: var(--crm-palette-text, #c9c9c9);
  box-shadow: none; font: 500 14px/1 system-ui, sans-serif; cursor: pointer;
}
.kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-primary-actions > .kanban-card-done-button:disabled { opacity: .45; cursor: default; }
@media (min-width: 901px) {
  .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-primary-actions > .kanban-card-done-button { flex: 0 0 auto; margin: 0; }
}
.kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-primary-actions > .kanban-card-done-button { position: relative; z-index: 1; }
body.is-crm-tasks-board .kanban-card-detail-modal > .kanban-card-modal-head > .kanban-card-primary-actions > .kanban-card-done-button { color: var(--crm-palette-text, #c9c9c9); }

/* Column settings are a workspace page inside CRM Tasks. */
body.is-crm-tasks-board #settingsView.crm-task-settings-page .settings-modal {
  grid-template-columns: clamp(140px, 19vw, 280px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
body.is-crm-tasks-board #settingsView.crm-task-settings-page.crm-task-menu-collapsed .settings-modal { grid-template-columns: 84px minmax(0, 1fr); }
body.is-crm-tasks-board #settingsView.crm-task-settings-page .settings-modal-head { display: none; }
#crmTaskSettingsNav:not([hidden]) {
  display: flex; flex-direction: column; min-height: 0; padding: 0;
  border: 0; border-right: 1px solid var(--crm-palette-line, rgba(56,58,61,.4));
  border-radius: 0; background: var(--crm-palette-panel, #1c1d20);
}
#crmTaskSettingsNav > button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: var(--crm-menu-row-height, 44px); padding: 0 16px;
  border: 0; border-radius: 0; background: transparent;
  color: var(--crm-palette-text, #cdcdcd); font: inherit; text-align: left; cursor: pointer;
}
#crmTaskSettingsNav > button:is(:hover, :focus-visible) { background: var(--crm-palette-selection, #383a3d); }
#crmTaskSettingsNav > button:focus-visible { outline: 1px solid currentColor; outline-offset: -2px; }
#crmTaskSettingsNav svg { width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#crmTaskSettingsNav > #crmTaskSettingsToggle { margin-top: auto; justify-content: flex-end; }
.crm-task-menu-collapsed #crmTaskSettingsNav > button { justify-content: center; padding-inline: 0; }
.crm-task-menu-collapsed #crmTaskSettingsBack span { display: none; }
#crmTaskSettingsToggle[aria-expanded="false"] svg { transform: rotate(180deg); }
body.is-crm-tasks-board #settingsView.crm-task-settings-page .settings-modal-body { padding-top: 0; }

#crmTaskSettingsOpen[aria-expanded="true"] { background: var(--crm-palette-selection, #383a3d); }
.crm-task-menu-collapsed #crmTaskSettingsOpen span { display: none; }
#settingsView.crm-task-settings-page :is(.settings-modal-layout-wrap, .settings-modal-section, .settings-layout) { height: 100%; min-height: 0; padding: 0; gap: 0; }
#settingsView.crm-task-settings-page .settings-modal-body { padding: 0; overflow: hidden; }
#settingsView.crm-task-settings-page .settings-layout { display: grid; grid-template-columns: clamp(140px, 19vw, 280px) minmax(0, 1fr); }
#settingsView.crm-task-settings-page .settings-values-menu {
  display: flex; flex-direction: column; min-height: 0; padding: 0;
  border: 0; border-right: 1px solid var(--crm-palette-line, rgba(56,58,61,.4));
  border-radius: 0; background: var(--crm-palette-panel, #1c1d20);
}
#settingsView.crm-task-settings-page #settingsValuesList { flex: 1; min-height: 0; max-height: none; overflow: auto; padding: 0; margin: 0; gap: 0; }
#settingsView.crm-task-settings-page .settings-value-item {
  min-height: var(--crm-menu-row-height, 44px); padding: 0 16px;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  color: var(--crm-navigation-color, #cdcdcd); font: var(--crm-navigation-font, 400 16px/1.25 system-ui);
}
#settingsView.crm-task-settings-page .settings-value-item::before,
#settingsView.crm-task-settings-page .settings-value-item::after { display: none; }
#settingsView.crm-task-settings-page .settings-value-item:is(.active, :hover, :focus-visible) { background: var(--crm-palette-selection, #383a3d); }
#settingsView.crm-task-settings-page .settings-main-panel { min-height: 0; padding: 24px; overflow: auto; }
#crmTaskColumnsToggle { display: flex; justify-content: flex-end; align-items: center; width: 100%; min-height: var(--crm-menu-row-height, 44px); padding: 0 16px; border: 0; border-radius: 0; background: transparent; color: var(--crm-palette-text, #cdcdcd); cursor: pointer; }
#crmTaskColumnsToggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
#crmTaskColumnsToggle:is(:hover, :focus-visible) { background: var(--crm-palette-selection, #383a3d); }
#crmTaskColumnsToggle[aria-expanded="false"] svg { transform: rotate(180deg); }
#settingsView.crm-task-columns-collapsed .settings-layout { grid-template-columns: 84px minmax(0, 1fr); }
#settingsView.crm-task-columns-collapsed :is(.category-menu-name, .category-menu-count) { display: none; }
#settingsView.crm-task-columns-collapsed .settings-value-item { padding: 0; justify-content: center; }
#settingsView .crm-task-column-icon { display: none; }
#settingsView.crm-task-columns-collapsed .crm-task-column-icon { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#settingsView.crm-task-columns-collapsed #crmTaskColumnsToggle { justify-content: center; padding: 0; }
#settingsView.crm-task-submenu-hidden .settings-values-menu { display: none; }
#settingsView.crm-task-submenu-hidden .settings-layout { grid-template-columns: minmax(0, 1fr); }

body.is-crm-tasks-board #settingsView.crm-task-settings-page { --crm-menu-row-height: calc(var(--crm-row-base-height, 55px) * .575); }
#crmTaskSettingsNav { width: auto; max-width: none; overflow: hidden; }
#crmTaskSettingsNav > button { position: static; inset: auto; flex: 0 0 var(--crm-menu-row-height, 32px); height: var(--crm-menu-row-height, 32px); max-height: var(--crm-menu-row-height, 32px); }
#crmTaskSettingsNav > #crmTaskSettingsToggle { position: static; inset: auto; }
#crmTaskColumnsToggle { position: static; inset: auto; flex: 0 0 var(--crm-menu-row-height, 32px); }
#crmTaskSettingsNav:not([hidden]) { height: 100%; max-height: none; align-self: stretch; gap: 0; margin: 0; }
#crmTaskSettingsNav > button { margin: 0; font: var(--crm-navigation-font, 400 16px/1.25 system-ui); }
#crmTaskSettingsNav svg { display: block; }
#settingsView.crm-task-settings-page .settings-value-item .category-menu-name { font: inherit; }

/* Expanded photo tools belong to the preview, above its masonry gallery. */
.crm-content-preview-photo-tools { color: var(--crm-palette-secondary); font: 400 14px/1.5 system-ui, sans-serif; }
.crm-content-preview-photo-tools .crm-photo-tools-body { padding: 16px; }
.crm-content-preview-photo-tools .crm-photo-tools-dropzone { align-items: center; justify-content: center; text-align: center; min-height: 96px; }
.crm-content-preview-photo-tools .optimizer-controls { min-width: 0; gap: 12px; }
.crm-content-preview-photo-tools .optimizer-controls label { min-width: 0; }
.crm-content-preview-photo-tools .quality-control { display: grid; grid-template-columns: 1fr auto; }
.crm-content-preview-photo-tools .quality-control input { grid-column: 1 / -1; width: 100%; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-photo-tools-upload-button { background: var(--crm-palette-selection); }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-photo-tools-optimize { background: var(--crm-palette-accent, #d6fa55); color: var(--crm-palette-workspace); }
.crm-content-preview-photo-tools footer { padding: 0 16px 8px; }
.crm-content-preview-photo-tools .crm-photo-tools-status:empty { display: none; }
/* Inline preview uses the card color controls without a modal or backdrop. */
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors h3 { margin: 16px 0; font: 500 18px/1.35 system-ui, sans-serif; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors .primary-color-picker { width: 100%; max-width: none; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors .primary-color-dropdown { position: static; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors .primary-color-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors .primary-color-option { display: flex; gap: 8px; align-items: center; border: 1px solid transparent; padding: 8px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors .primary-color-option.is-selected { border-color: var(--crm-palette-selection); }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors-related { margin-top: 20px; border-top: 1px solid var(--crm-palette-divider); }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .product-colors-heading-row { display: flex; align-items: center; justify-content: space-between; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .product-colors-heading-row button { width: 36px; height: 36px; padding: 8px; border: 0; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .product-colors-search form { display: flex; width: 100%; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .product-colors-search input { min-width: 0; width: 100%; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .product-color-row { display: flex; align-items: center; gap: 8px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .product-color-row > span:not(.product-color-row-swatch) { flex: 1; min-width: 0; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .product-color-row-swatch { display: flex; flex: 0 0 16px; height: 16px; border-radius: 50%; overflow: hidden; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .product-color-row-swatch > span { flex: 1; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .product-color-exclude { width: 32px; height: 32px; padding: 6px; border: 0; }

:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-table-scroll { max-width: 100%; overflow-x: auto; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-table { width: 100%; border-collapse: collapse; font: inherit; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-table :is(th, td) { padding: 8px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--crm-palette-divider); font-weight: 400; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-table :is(th, td):first-child { text-align: left; padding-left: 0; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-table em { font: inherit; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .spec-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 8px 0; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .spec-row > strong { font-weight: 400; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .spec-row > span { color: var(--crm-palette-spec-label, #909090); }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .spec-value-editable { cursor: text; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .is-editing { outline: 1px solid var(--crm-palette-selection); }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) h2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-card-action { flex: 0 0 32px; width: 32px; height: 32px; padding: 6px; border: 0; background: transparent; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-card-action svg { width: 20px; height: 20px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .description-preview { min-height: 44px; outline-offset: 4px; }

/* Match the existing card's inline text editing and stacked spec rows. */
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .spec-row { grid-template-columns: minmax(0, 1fr); align-items: start; row-gap: 6px; padding-block: 12px; border: 0; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .spec-row > :is(.spec-value-editable, .spec-value-input, strong, select) { box-sizing: border-box; width: 100%; min-height: 1lh; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--crm-palette-secondary); -webkit-text-fill-color: currentColor; font: inherit; line-height: inherit; letter-spacing: inherit; overflow-wrap: anywhere; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors .primary-color-option { background: transparent; color: var(--crm-palette-secondary); box-shadow: none; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors .primary-color-option.is-selected { border-color: var(--crm-palette-selection); box-shadow: none; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors .product-colors-heading { display: block; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors .product-colors-heading-row { width: 100%; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors .product-colors-controls, :is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors .product-colors-search { display: block; width: 100%; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors .product-colors-search input { height: 44px; padding: 10px 12px; border: 0; border-radius: 6px 0 0 6px; background: var(--crm-palette-selection); color: var(--crm-palette-secondary); font: inherit; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-colors .product-colors-search button[type=submit] { flex: 0 0 auto; white-space: nowrap; border: 0; border-radius: 0 6px 6px 0; background: var(--crm-palette-accent, #d6fa55); color: var(--crm-palette-header, #18191c); }

:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .spec-value-editable { white-space: pre-wrap; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .spec-value-editable:is(.is-empty, .is-editing, :hover) { background: transparent; box-shadow: none; outline: none; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .spec-value-editable.is-empty::before { content: "—"; color: var(--crm-palette-muted); }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .description-preview { padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent !important; color: var(--crm-palette-secondary); -webkit-text-fill-color: currentColor; box-shadow: none; font: inherit; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .description-preview:focus { outline: 1px solid var(--crm-palette-selection); }
/* Preview navigation lock uses the eye's quiet outline and active accent. */
body.is-crm-view-active .topbar #crmContentPreviewLock,
body.is-crm-view-active .topbar #crmContentPreviewLock:is(:hover, :focus, :active) { background: transparent !important; box-shadow: none !important; }
body.is-crm-view-active .topbar #crmContentPreviewLock[aria-pressed="true"],
body.is-crm-view-active .topbar #crmContentPreviewLock[aria-pressed="true"] svg { color: var(--crm-palette-accent, #d6fa55) !important; }
/* Keep compact task navigation controls centered like other CRM menus. */
#settingsView.crm-task-menu-collapsed #crmTaskSettingsNav > #crmTaskSettingsToggle { justify-content: center; }
#settingsView.crm-task-columns-collapsed .settings-value-item { display: flex; align-items: center; justify-content: center; }

/* Full-card preview is the original card document, with its own scroll and controls. */
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel).is-full-card { overflow: hidden; }
.crm-content-preview-card { display: block; width: 100%; height: 100%; border: 0; background: var(--crm-palette-workspace); }
.crm-content-preview-settings label:last-of-type { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--crm-palette-divider); }
.crm-content-preview-settings label:has(input:disabled) { opacity: .5; }
.crm-content-preview-card { transform-origin: top left; }

/* Compact inline photo processing fills the preview; the separate card dialog keeps its layout. */
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools {
  width: 100%; max-width: none; max-height: none; margin: 0;
  border: 0; border-radius: 0; box-shadow: none; overflow: visible;
}
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .crm-photo-tools-body { padding: 10px 12px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .crm-photo-tools-dropzone {
  flex-direction: row; flex-wrap: wrap; gap: 4px 10px; min-height: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent;
}
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .crm-photo-tools-upload-button {
  min-height: 28px; padding: 4px 10px; font-size: 13px; border: 0; border-radius: 4px;
}
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .crm-photo-tools-dropzone p { font-size: 11px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .crm-photo-tools-settings { margin-top: 8px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools h3 { display: none; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .optimizer-controls { gap: 6px 8px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .quality-control {
  grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px;
}
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .quality-control > span { display: none; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .quality-control input { grid-column: 1; grid-row: 1; min-width: 0; margin: 0; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .quality-control strong { grid-column: 2; grid-row: 1; font: 400 12px system-ui; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .optimizer-controls label:not(.quality-control) { position: relative; display: block; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .optimizer-controls label:not(.quality-control) > span {
  position: absolute; inset-inline-start: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; font: 400 12px system-ui;
}
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools select { min-height: 30px; padding: 4px 18px 4px 62px; font-size: 12px; border-radius: 4px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .crm-photo-tools-optimize {
  min-height: 30px; margin-top: 8px; padding: 4px 10px; border: 0; border-radius: 4px; font-size: 13px;
}
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools footer { padding: 0 12px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools footer:has(.crm-photo-tools-status:empty) { display: none; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .optimizer-controls label { min-height: 0; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .quality-control { height: 20px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools input[type="range"] { min-height: 0; height: 18px; padding: 0; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .crm-photo-tools-dropzone p { line-height: 1.2; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools :is(.crm-photo-tools-upload-button, .crm-photo-tools-optimize) { line-height: 1.2; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .crm-select-trigger {
  width: 100%; min-height: 30px; padding: 4px 24px 4px 62px;
  font-size: 12px; border-radius: 4px;
}
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools .optimizer-controls label:not(.quality-control) > span { z-index: 1; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools label:has(#maxSide) .crm-select-trigger { padding-inline-start: 58px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-content-preview-photo-tools label:has(#targetSize) .crm-select-trigger { padding-inline-start: 36px; }

.crm-content-preview-card[hidden] { display: none; }

/* Photo processing opens the original dialog rather than occupying the preview. */
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) > .crm-content-preview-tools {
  display: block; width: 100%; min-height: 36px;
  padding: 8px 16px; border: 0; border-radius: 0; text-align: left;
  background: var(--crm-palette-panel, #1c1d20); font: 400 14px/1.4 system-ui;
}

/* Gallery actions belong to the shell header, aligned with the preview edge. */
#crmPreviewPhotoActions { display: none; }
body.is-crm-view-active #crmPreviewPhotoActions:not([hidden]) {
  display: contents;
}
body.is-crm-view-active #crmPreviewPhotoActions .topbar-icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; min-width: 44px; height: 56px; padding: 0;
  color: var(--crm-palette-secondary); background: transparent;
}
#crmPreviewPhotoActions .crm-nav-icon { display: block; width: 21px; height: 21px; stroke-width: 1.7; }
body.is-crm-view-active #crmPreviewPhotoActions button:is(:hover, :focus-visible) { color: var(--crm-palette-text, #fff); }
#crmPhotoSettings .crm-photo-tools-body > section[hidden] { display: none; }
body.is-crm-view-active .topbar #crmContentPreviewMenus[aria-pressed="true"] { color: var(--crm-palette-accent, #d6fa55) !important; }
.crm-content-preview-gallery img { -webkit-user-drag: none; }
.crm-content-preview-gallery figcaption { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.crm-preview-photo-details { flex: 1; }
.crm-preview-photo-order { display: flex; flex: none; gap: 2px; margin-left: auto; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-photo-order button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #bdbdbd; cursor: pointer; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-photo-order button svg { width: 20px; height: 20px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-photo-order button:is(:hover, :focus-visible) { color: #fff; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-photo-order button:focus-visible { outline: 1px solid currentColor; outline-offset: -2px; }
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-photo-order button:disabled { opacity: .3; cursor: default; }
.crm-preview-order-status { margin: 0; padding: 8px; font: 400 12px/1.4 system-ui; color: var(--crm-palette-secondary); }
.crm-preview-order-status:empty { display: none; }

/* An empty or loading embedded CRM view exposes the workspace canvas. */
body.is-crm-view-active #roomView :is(.crm-tasks-page,.crm-wholesale-page,.crm-purchases-page,.crm-content-page),
body.is-crm-settings-active #crmSupplierSettings {
  background: var(--crm-palette-workspace, #18191c);
  color-scheme: dark;
}
:is(.crm-tasks-page,.crm-wholesale-page,.crm-purchases-page,.crm-content-page,#crmSupplierSettings) > iframe {
  background: var(--crm-palette-workspace, #18191c);
  color-scheme: dark;
}

.bfi-source-status { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.bfi-source-card { min-width:0; padding:16px; border:1px solid var(--crm-divider-color,#383a3d); border-radius:8px; background:var(--crm-palette-panel,#1c1d20); color:var(--crm-palette-text,#cdcdcd); }
.bfi-source-card h3 { margin:0 0 10px; font:500 20px system-ui,sans-serif; }
.bfi-source-card p { margin:6px 0; font:400 14px/1.5 system-ui,sans-serif; }
.bfi-source-card .bfi-source-state { font-weight:500; }
.bfi-source-card .is-error { color:#f48bcb; }
.bfi-source-status+.loader-bfi-panel { min-height:160px; }
.loader-bfi-layout:has(.bfi-source-status) { grid-template-rows:auto minmax(0,1fr); }
@media(max-width:900px) { .bfi-source-status { grid-template-columns:1fr; } }

/* Gallery actions share the CRM header's pencil scale, hit areas and spacing. */
body.is-crm-view-active .topbar :is(#crmPreviewPhotoActions button, #crmContentPreviewMenus, #crmContentPreviewLock) {
  width: 44px; min-width: 44px; height: 56px; min-height: 56px;
  padding: 0; align-self: center; color: var(--crm-palette-secondary, #cdcdcd);
}
body.is-crm-view-active .topbar :is(#crmPreviewPhotoActions button, #crmContentPreviewMenus, #crmContentPreviewLock) > svg.crm-nav-icon {
  width: 18px; height: 18px; min-width: 18px; min-height: 18px;
  flex: 0 0 18px; stroke-width: 1.7;
}

body.is-crm-view-active .topbar #crmContentPreviewEdit > svg.crm-nav-icon {
  width: 16px; height: 16px; min-width: 16px; min-height: 16px; flex: 0 0 16px;
}
body.is-crm-view-active .topbar #crmContentPreviewToggle > svg.crm-nav-icon {
  width: 21px; height: 21px; min-width: 21px; min-height: 21px; flex: 0 0 21px;
}

/* Accounting supplier selection is the third navigation column. */
.crm-accounting-receipt { position: relative; }
.crm-receipt-supplier-field {
  display: flex; align-items: center; gap: 8px; padding-inline: 16px;
  height: var(--receipt-row-height); min-width: 0;
  border-bottom: 1px solid var(--receipt-divider);
}
.crm-receipt-supplier-field > button { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-receipt-supplier-field > button span { float: right; }
.crm-accounting-receipt .crm-receipt-supplier-menu:not([hidden]) {
  display: flex; flex-direction: column; grid-column: 2; grid-row: 1;
  min-width: 0; min-height: 0; box-sizing: border-box;
  background: var(--crm-navigation-background, #18191c);
  color: var(--crm-navigation-color, #cdcdcd);
  border-inline-end: 1px solid var(--crm-divider-color, #383a3d);
}
.crm-receipt-supplier-menu nav { flex: 1; min-height: 0; overflow: auto; }
.crm-accounting-receipt .crm-receipt-supplier-menu button {
  display: block; width: 100%; height: var(--crm-navigation-row-height, 55px);
  padding-inline: var(--crm-navigation-inset, 24px); border-radius: 0;
  background: transparent; text-align: left; font: var(--crm-navigation-font, inherit);
}
.crm-receipt-supplier-menu button:is(:hover, :focus-visible) { background: var(--crm-navigation-hover, #34363a); }
.crm-receipt-supplier-menu button[aria-checked="true"] { background: var(--crm-navigation-selection, #383a3d); }
.crm-receipt-supplier-menu p { margin: 0; padding-inline: 16px; }
.crm-receipt-supplier-menu p:empty { display: none; }

/* Receipt second-level fields occupy their complete grid cells. */
.crm-receipt-fields > label,
.crm-receipt-fields > .crm-receipt-supplier-field {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  gap: 0;
  box-sizing: border-box;
}
.crm-accounting-receipt .crm-receipt-fields :is(input:not([type="hidden"]), select, textarea, .crm-select-trigger, [data-receipt-supplier]) {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0 16px;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}
.crm-receipt-date > span { padding-inline: 16px; }
.crm-accounting-receipt .crm-receipt-warehouse select {
  padding-inline-end: 36px;
}
.crm-receipt-warehouse { position: relative; }
.crm-receipt-warehouse:not(:has(.crm-select-trigger))::after {
  content: "⌄";
  position: absolute;
  right: 16px;
  pointer-events: none;
}
.crm-receipt-fields :is(input, textarea)::placeholder {
  color: inherit;
  opacity: 1;
}
.crm-receipt-fields :is(input, textarea):focus::placeholder { opacity: 0; }
.crm-accounting-receipt .crm-receipt-fields > :is(label, .crm-receipt-supplier-field):focus-within {
  background: var(--crm-navigation-selection, #383a3d);
}
.crm-accounting-receipt .crm-receipt-fields textarea {
  padding-block: 0;
  line-height: calc(var(--receipt-row-height) - 1px);
}

/* Receipt dates reuse the pickup calendar, with the full-cell field trigger. */
.crm-receipt-fields > .crm-receipt-date[hidden] { display: none; }
.crm-accounting-receipt .crm-receipt-calendar { height: var(--receipt-row-height); border-bottom: 1px solid var(--receipt-divider); box-sizing: border-box; }
.crm-accounting-receipt .crm-receipt-calendar > summary { height: 100%; padding-inline: 16px; border: 0; border-radius: 0; font: inherit; list-style: none; }
.crm-receipt-calendar > summary::-webkit-details-marker { display: none; }
.crm-receipt-calendar > summary:focus-visible { outline: 1px solid currentColor; outline-offset: -2px; }
.crm-receipt-calendar:focus-within { background: var(--crm-navigation-selection, #383a3d); }
.crm-receipt-calendar > div { min-width: 270px; max-width: calc(100vw - 24px); box-shadow: none; }
#crmReceiptForm .crm-receipt-calendar button { font: 400 14px system-ui !important; background: transparent; color: inherit; border-radius: 5px; cursor: pointer; }
#crmReceiptForm .crm-receipt-calendar button:hover { background: var(--crm-palette-selection, #383a3d); }
#crmReceiptForm .crm-receipt-calendar button[aria-pressed="true"] { background: var(--crm-palette-lime, #d6fa55) !important; color: #18191c !important; }

/* Align the receipt calendar with the date row and the product column divider. */
.crm-accounting-receipt .crm-receipt-calendar > div {
  inset-block-start: 0;
  inset-inline-start: 100%;
}

/* Warehouse is a full-cell cycling control, without a dropdown indicator. */
.crm-accounting-receipt .crm-receipt-fields [data-receipt-warehouse] {
  width: 100%; height: 100%; min-height: 0; padding: 0 16px;
  border: 0; border-radius: 0; background: transparent; text-align: start;
  color: inherit; font: inherit; box-sizing: border-box;
}
.crm-receipt-warehouse:has([data-receipt-warehouse])::after { display: none; }

.crm-settings-accounting-open .settings-modal-body { display: none; }
#crmWarehouseSettings:not([hidden]) { flex: 1; min-width: 0; min-height: 0; overflow: auto; background: var(--crm-palette-workspace, #242528); color: var(--crm-palette-text, #cdcdcd); font: 400 16px system-ui; }
#crmWarehouseSettings > header { min-height: calc(2 * var(--crm-navigation-row-height, 55px)); display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--crm-divider-color, #383a3d); box-sizing: border-box; }
#crmWarehouseSettings h2 { margin: 0; font: 500 20px system-ui; }
#crmWarehouseSettings .crm-warehouse-list > div { display: flex; align-items: center; min-height: var(--crm-navigation-row-height, 55px); padding: 0 24px; border-bottom: 1px solid var(--crm-divider-color, #383a3d); box-sizing: border-box; }
#crmWarehouseSettings form { display: flex; min-height: var(--crm-navigation-row-height, 55px); border-bottom: 1px solid var(--crm-divider-color, #383a3d); }
#crmWarehouseSettings label { flex: 1; min-width: 0; }
#crmWarehouseSettings input { width: 100%; height: 100%; padding: 0 24px; box-sizing: border-box; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; }
#crmWarehouseSettings input::placeholder { color: var(--crm-palette-muted, #afafaf); }
#crmWarehouseSettings input:focus::placeholder { opacity: 0; }
#crmWarehouseSettings label:focus-within { background: var(--crm-palette-selection, #383a3d); }
#crmWarehouseSettings button { padding: 12px 24px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
#crmWarehouseSettings button:hover { background: var(--crm-palette-selection, #383a3d); }
#crmWarehouseSettings :is(button, input):focus-visible { outline: 1px solid currentColor; outline-offset: -2px; }
#crmWarehouseSettings > p { padding: 0 24px; font-size: 14px; }
#crmWarehouseSettings > p:empty { display: none; }
#crmWarehouseSettings :is(form, label) { font: inherit; color: inherit; }
/* Receipt metadata is a navigation menu: no row separators or file backdrop. */
.crm-accounting-receipt .crm-receipt-fields > :is(label, .crm-receipt-supplier-field, .crm-receipt-calendar, .crm-receipt-file-button) {
  border-bottom: 0;
}
.crm-receipt-supplier-field > [data-receipt-supplier] { position: relative; padding-inline-end: 36px; }
.crm-receipt-supplier-field > [data-receipt-supplier] > span { display: none; }
.crm-accounting-receipt .crm-receipt-fields > .crm-receipt-file-button { background: transparent; }
.crm-accounting-receipt .crm-receipt-fields > .crm-receipt-file-button:is(:hover, :focus-visible) {
  background: var(--crm-navigation-hover, #34363a);
}

/* Align the product heading and every product value with the CRM text inset. */
.crm-receipt-table th:first-child,
.crm-accounting-receipt .crm-receipt-table td:first-child > input {
  padding-inline-start: 24px;
}

.crm-accounting-receipt .crm-receipt-table tbody [data-size] {
  text-align: center;
}
.crm-receipt-actions > button[data-add] > svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Article is the first column; product names keep the same inset. */
.crm-receipt-table col:first-child { width: 14%; }
.crm-receipt-table th:nth-child(2),
.crm-accounting-receipt .crm-receipt-table td:nth-child(2) > input {
  padding-inline-start: 24px;
  text-align: left;
}
.crm-accounting-receipt .crm-receipt-table,
.crm-accounting-receipt .crm-receipt-table :is(th, td, input, output, button) {
  font-size: var(--crm-receipt-font-size, 13px);
  font-weight: 400;
  color: var(--crm-receipt-text-color, #c9c9ca);
}

/* Keyboard selection of a receipt row uses the shared selection tone. */
.crm-receipt-table tbody tr:focus {
  outline: none;
  background: var(--crm-navigation-selection, var(--crm-palette-selection, #383a3d));
}

/* The supplier column takes its own space, like the catalog's third menu. */
.crm-accounting-receipt form:has(> .crm-receipt-supplier-menu:not([hidden])) {
  grid-template-columns: repeat(2, clamp(140px, 19cqw, 280px)) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}
.crm-accounting-receipt form:has(> .crm-receipt-supplier-menu:not([hidden])) > :is(.crm-receipt-fields, .crm-receipt-products) {
  min-height: 0;
  overflow: auto;
}
.crm-accounting-receipt form:has(> .crm-receipt-supplier-menu:not([hidden])) > .crm-receipt-products {
  grid-column: 3;
  grid-row: 1;
}
.crm-receipt-supplier-menu > .crm-category-menu-footer {
  display: flex;
  flex: 0 0 var(--crm-menu-row-height, 55px);
  height: var(--crm-menu-row-height, 55px);
  background: inherit;
}
.crm-accounting-receipt .crm-receipt-supplier-menu .crm-menu-toggle {
  display: grid;
  position: static;
  width: 100%;
  height: 100%;
  padding: 0 24px;
  justify-items: end;
  color: inherit;
}
.crm-receipt-supplier-menu .crm-menu-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.crm-accounting-page:has(.crm-accounting-receipt:not([hidden]) .crm-receipt-supplier-menu:not([hidden])) > .crm-accounting-footer {
  grid-template-columns: repeat(2, clamp(140px, 19cqw, 280px)) minmax(0, 1fr);
}
.crm-accounting-page:has(.crm-accounting-receipt:not([hidden]) .crm-receipt-supplier-menu:not([hidden])) > .crm-accounting-footer > .crm-receipt-summary {
  grid-column: 3;
}

/* Receipt fields and workspace share text color with separate sizes. */
.crm-accounting-receipt {
  --crm-receipt-font-size: 13px;
  --crm-receipt-field-font-size: 14px;
  --crm-receipt-text-color: #c9c9ca;
}
.crm-accounting-receipt .crm-receipt-fields > .crm-receipt-file-button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px;
}
.crm-receipt-file-button > svg { width: 21px; height: 21px; flex: none; }

/* Accounting: counterparties occupy a separate third navigation column. */
body.is-crm-view-active #roomView .crm-accounting-page.crm-counterparties-open:not(.is-hidden),
html:root[data-trello-native] body.is-crm-view-active #roomView .crm-accounting-page.crm-counterparties-open:not(.is-hidden) {
  grid-template-columns: var(--crm-accounting-menu-width, var(--crm-navigation-width, 280px)) var(--crm-counterparties-menu-width, var(--crm-navigation-width, 280px)) minmax(0, 1fr);
}
.crm-counterparties-menu[hidden], .crm-counterparties-empty[hidden] { display: none; }
.crm-counterparties-menu { grid-column: 2; grid-row: 1 / -1; }
.crm-counterparties-open .crm-accounting-suppliers:not([hidden]) { grid-area: 1 / 3 / -1 / 4; }
.crm-counterparties-open .crm-accounting-footer { grid-column: 3; }
.crm-counterparties-empty { grid-area: 1 / 3; min-width: 0; padding: 0 24px; color: var(--crm-palette-text); font: inherit; }
.crm-counterparties-menu-collapsed { --crm-counterparties-menu-width: var(--crm-navigation-collapsed-width, 84px); }
.crm-counterparties-menu-collapsed .crm-counterparties-menu .crm-accounting-items span { display: none; }
.crm-counterparties-menu-collapsed .crm-counterparties-menu .crm-accounting-items svg { display: block; }
.crm-counterparties-menu-collapsed .crm-counterparties-menu .crm-accounting-items button { justify-content: center; padding-inline: 0; }
.crm-accounting-menu-collapsed .crm-counterparties-menu:not(:has([aria-expanded="false"])) .crm-accounting-items span { display: inline; }
.crm-accounting-menu-collapsed .crm-counterparties-menu:not(:has([aria-expanded="false"])) .crm-accounting-items svg { display: none; }
.crm-accounting-menu-collapsed .crm-counterparties-menu:not(:has([aria-expanded="false"])) .crm-accounting-items button { justify-content: flex-start; padding-inline: 24px; }
.crm-counterparties-menu .crm-menu-toggle svg { transform: none; }
.crm-counterparties-menu-collapsed .crm-counterparties-menu .crm-menu-toggle svg { transform: rotate(180deg); }
/* A persistent navigation column must not inherit popover chrome. */
#crmReceiptForm #crmReceiptSuppliers > nav[role="menu"] {
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  background: transparent !important;
}
#crmReceiptForm #crmReceiptSuppliers > nav > button {
  height: var(--crm-navigation-row-height, 55px);
  padding: 0 var(--crm-navigation-inset, 24px);
  border-radius: 0;
  color: var(--crm-navigation-color, #cdcdcd) !important;
  font: var(--crm-navigation-font, inherit);
}
#crmReceiptForm #crmReceiptSuppliers > nav > button[aria-checked="true"] {
  background: var(--crm-navigation-selection, #383a3d) !important;
}
#crmReceiptForm #crmReceiptSuppliers .crm-menu-toggle svg { transform: none; }

/* The add-product row becomes one full-width search field until selection. */
.crm-accounting-receipt .crm-receipt-table .is-unmatched-product > td > input[type="search"] {
  color: var(--crm-palette-status-shipped, #f48bcb);
}

.crm-receipt-actions[hidden],
.crm-receipt-table .is-product-search > td[hidden] {
  display: none;
}
.crm-accounting-receipt .crm-receipt-table .is-product-search > td > input {
  width: 100%;
  text-align: start;
}

/* Keep the blinking caret neutral even when an unmatched product is pink. */
.crm-accounting-receipt .crm-receipt-table input[type="search"] {
  caret-color: var(--crm-receipt-text-color, #c9c9ca);
}
.crm-accounting-receipt .crm-receipt-table input[type="search"]::placeholder {
  color: var(--crm-receipt-text-color, #c9c9ca);
  opacity: 1;
}

/* Match the accounting navigation junction to the shared shell corner. */
@media (min-width: 901px) {
  .crm-accounting-page > .crm-accounting-menu:not(.crm-counterparties-menu) {
    position: relative;
    border-end-start-radius: var(--crm-shell-joint-radius, 12px);
  }
  .crm-accounting-page > .crm-accounting-menu:not(.crm-counterparties-menu)::after {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: var(--crm-shell-joint-radius, 12px);
    height: var(--crm-shell-joint-radius, 12px);
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle at top right,
      transparent calc(var(--crm-shell-joint-radius, 12px) - 0.5px),
      var(--crm-palette-header, #242528) calc(var(--crm-shell-joint-radius, 12px) + 0.5px));
  }
}

/* Counterparty navigation keeps its own alignment when the accounting rail collapses. */
.crm-counterparties-menu .crm-accounting-items > button {
  --crm-navigation-item-inset: var(--crm-navigation-inset, 24px);
  --crm-navigation-item-align: flex-start;
  text-align: start;
}
.crm-counterparties-menu-collapsed .crm-counterparties-menu .crm-accounting-items > button {
  --crm-navigation-item-inset: 0px;
  --crm-navigation-item-align: center;
}

/* Supplier search occupies the first navigation row, with no visible prompt. */
.crm-receipt-supplier-search {
  display: flex; align-items: center; gap: 12px; flex: 0 0 var(--crm-navigation-row-height, 55px);
  padding-inline: var(--crm-navigation-inset, 24px); min-width: 0;
  color: var(--crm-navigation-color, #cdcdcd);
}
.crm-receipt-supplier-search,
.crm-accounting-receipt .crm-receipt-supplier-field:has(> [data-receipt-supplier][aria-expanded="true"]) {
  background: var(--crm-navigation-selection, #383a3d);
}
.crm-receipt-supplier-search svg { width: 20px; height: 20px; flex: none; }
.crm-accounting-receipt .crm-receipt-supplier-search input {
  width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0;
  background: transparent !important; color: inherit; font: inherit;
}
.crm-accounting-receipt .crm-receipt-supplier-menu button[hidden] { display: none !important; }
/* Show receipt column headings as soon as a product or search row exists. */
.crm-receipt-table table:not(:has(> tbody > tr)) > thead {
  display: none;
}

/* Receipt headings use the quiet 12px purchase-table heading treatment. */
.crm-accounting-receipt .crm-receipt-table thead th {
  font-size: 12px;
  font-weight: 400;
  color: color-mix(in srgb, var(--crm-palette-text, #cdcdcd) 55%, var(--crm-palette-panel, #1c1d20));
}

/* Receipt metadata follows the shared menu collapse pattern. */
.crm-receipt-fields-shortcuts { display: none; }
@media (min-width: 901px) {
  .crm-accounting-page { --crm-receipt-fields-width: clamp(140px, 19cqw, 280px); }
  .crm-accounting-page.crm-receipt-fields-collapsed { --crm-receipt-fields-width: var(--crm-navigation-collapsed-width, 84px); }
  .crm-accounting-receipt form { height: 100%; min-height: 0; grid-template-columns: var(--crm-receipt-fields-width) minmax(0, 1fr); }
  .crm-accounting-receipt form:has(> .crm-receipt-supplier-menu:not([hidden])) { grid-template-columns: var(--crm-receipt-fields-width) clamp(140px, 19cqw, 280px) minmax(0, 1fr); }
  .crm-accounting-receipt .crm-receipt-products { min-height: 0; overflow: auto; }
  .crm-accounting-receipt .crm-receipt-fields { display: flex; flex-direction: column; padding-bottom: 0; min-height: 0; overflow: auto; }
  .crm-accounting-receipt form .crm-receipt-fields:has(.crm-receipt-calendar[open]) { overflow: visible; }
  .crm-receipt-fields > :not(.crm-receipt-fields-footer) { flex-shrink: 0; }
  .crm-receipt-fields-footer { display: flex; flex: 0 0 var(--crm-navigation-footer-height, 55px); margin-top: auto; position: sticky; bottom: 0; background: inherit; border: 0; }
  .crm-accounting-receipt .crm-receipt-fields-footer .crm-menu-toggle { display: flex; align-items: center; justify-content: flex-end; position: static; height: var(--crm-navigation-footer-height, 55px); padding: 0 var(--crm-navigation-inset, 24px); border: 0; border-radius: 0; color: var(--crm-navigation-color, #cdcdcd) !important; }
  .crm-accounting-receipt .crm-receipt-fields-footer .crm-menu-toggle svg { width: var(--crm-navigation-arrow-size, 18px); height: var(--crm-navigation-arrow-size, 18px); transform: none; }
  .crm-receipt-fields-collapsed .crm-receipt-fields > :not(.crm-receipt-fields-footer, .crm-receipt-fields-shortcuts) { display: none; }
  .crm-receipt-fields-collapsed .crm-receipt-fields-shortcuts { display: flex; flex-direction: column; }
  .crm-receipt-fields-shortcuts > button { display: grid; place-items: center; width: 100%; height: var(--receipt-row-height); padding: 0; border: 0; border-radius: 0; background: transparent; }
  .crm-receipt-fields-shortcuts svg { width: var(--crm-navigation-icon-size, 21px); height: var(--crm-navigation-icon-size, 21px); }
  .crm-receipt-fields-shortcuts > button:is(:hover, :focus-visible) { background: var(--crm-navigation-hover, #34363a); }
  .crm-receipt-fields-collapsed .crm-receipt-fields-footer .crm-menu-toggle { justify-content: center; padding: 0; }
  .crm-receipt-fields-collapsed .crm-receipt-fields-footer .crm-menu-toggle svg { transform: rotate(180deg); }
  .crm-accounting-page:has(.crm-accounting-receipt:not([hidden])) > .crm-accounting-footer { grid-template-columns: var(--crm-receipt-fields-width) minmax(0, 1fr); }
  .crm-accounting-page:has(.crm-accounting-receipt:not([hidden]) .crm-receipt-supplier-menu:not([hidden])) > .crm-accounting-footer { grid-template-columns: var(--crm-receipt-fields-width) clamp(140px, 19cqw, 280px) minmax(0, 1fr); }
}
@media (max-width: 900px) { .crm-receipt-fields-footer { display: none; } }

/* Optional catalogue details use the existing per-user column choices. */
html:not(.crm-content-embedded) .catalog-article-cell,
html:not(.crm-content-embedded) .catalog-barcode-cell,
html:not(.crm-content-embedded) .catalog-weight-cell,
html:not(.crm-content-embedded) .catalog-country-cell,
html:not(.crm-content-embedded) .catalog-year-cell,
html:not(.crm-content-embedded) .catalog-category-cell{
  display: none;
}

html:not(.crm-content-embedded) .catalog-competitor-prices-cell{ display: none; }
/* Purchase receipts share the accounting workspace and its table typography. */
.crm-purchase-documents:not([hidden]) { grid-area: 1 / 2; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.crm-purchase-documents-scroll { overflow: auto; min-height: 0; }
.crm-purchase-documents table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font: 400 13px/1.25 system-ui, sans-serif; color: #f4f5f7; }
.crm-purchase-documents :is(th, td) { box-sizing: border-box; height: max(var(--crm-navigation-row-height, 55px), var(--crm-menu-row-height, 55px)); padding: 0 24px; text-align: start; vertical-align: middle; white-space: nowrap; border-bottom: 1px solid var(--crm-retail-row-divider); font-weight: 400; }
.crm-purchase-documents :is(p, button) { margin: 8px 24px; }

.crm-purchase-documents > button { align-self: flex-start; border: 0; background: transparent; color: inherit; font: inherit; padding: 8px 0; cursor: pointer; }
.crm-purchase-documents > button:hover { text-decoration: underline; }
.crm-purchase-documents > p:empty { display: none; }
.crm-purchase-documents table { table-layout: auto; }
.crm-purchase-documents th { position: sticky; top: 0; z-index: 1; background: var(--crm-palette-panel, #1c1d20); color: rgba(255, 255, 255, .58); font: 400 11px/20px system-ui, sans-serif; border-bottom: var(--crm-panel-divider); }

/* Email navigation uses the same second-level column as Marketing. */
.crm-marketing-workspace .site-exchange-filter-section.marketing-email-panel:not(.is-hidden) {
  display: grid;
  grid-template-columns: var(--crm-marketing-second-width, 220px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.marketing-email-menu .marketing-channel-menu-button {
  display: flex;
  align-items: center;
  gap: 12px;
}
.marketing-email-menu .crm-nav-icon {
  width: var(--crm-navigation-icon-size, 21px);
  height: var(--crm-navigation-icon-size, 21px);
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.marketing-email-panel.is-second-menu-collapsed .marketing-channel-menu-button::before { display: none; }
@media (max-width: 900px) {
  .crm-marketing-workspace .site-exchange-filter-section.marketing-email-panel:not(.is-hidden) {
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  }
}

/* Named dealer imports keep every contact below the company fields. */
.room-dealer-modal-card-form:has(.room-dealer-managers) {
  grid-template-rows: auto auto auto;
  align-content: start;
}
.room-dealer-modal .room-dealer-managers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  color: #CDCDCD;
}
.room-dealer-modal .room-dealer-managers > h4 {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: #242528;
}
.room-dealer-modal .room-dealer-managers h4 {
  color: #CDCDCD !important;
  font-size: 14px;
  line-height: 1.4;
}
.room-dealer-modal .room-dealer-managers .room-dealer-modal-condition-column {
  background: #242528;
}
.room-dealer-modal .room-dealer-managers strong {
  color: #CDCDCD;
  overflow-wrap: anywhere;
}

/* Retail client directory follows the existing order list and shared footer. */
body.is-crm-view-active:has(.crm-clients-page:not(.is-hidden)) .room-main { padding: 0; }
body.is-crm-view-active #roomView .crm-clients-page {
  display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 0;
  overflow: hidden; color: #c9c9ca; background: var(--crm-retail-content-surface, var(--crm-palette-workspace, #1c1c20));
  font: 400 13px/1.25 system-ui, sans-serif;
}
body.is-crm-view-active #roomView .crm-clients-page.is-hidden { display: none; }
.crm-clients-page button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.crm-clients-page :is(button, a):focus-visible { outline: 1px solid var(--crm-palette-secondary, #cdcdcd); outline-offset: -3px; }
.crm-clients-content { flex: 1 1 0; min-height: 0; overflow: auto; }
.crm-clients-table { width: 100%; border-collapse: separate; border-spacing: 0; font: inherit; color: inherit; }
.crm-clients-table :is(th, td) {
  box-sizing: border-box; height: var(--crm-list-row-height, var(--crm-menu-row-height, 55px));
  padding: 0 16px; text-align: left; border: 0; border-bottom: 1px solid var(--crm-divider-color); font: inherit;
}
.crm-clients-table th {
  position: sticky; top: 0; z-index: 1; background: var(--crm-palette-panel, #1c1d20);
  color: rgba(255,255,255,.58); font: 400 11px/20px system-ui, sans-serif;
}
.crm-clients-table td:first-child { padding: 0; }
.crm-clients-table td button { display: block; width: 100%; height: calc(var(--crm-list-row-height, 55px) - 1px); padding: 0 16px; text-align: left; }
.crm-clients-table tbody tr:hover, .crm-client-order:hover { background: var(--crm-palette-hover, #2c2e30); }
.crm-clients-table :is(th, td):nth-last-child(-n+2) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.crm-clients-table :is(th, td):nth-child(2) { white-space: nowrap; }
body.is-crm-view-active #roomView .crm-clients-footer {
  display: flex; align-items: center; flex: 0 0 var(--crm-menu-row-height, 55px);
  box-sizing: border-box; height: var(--crm-menu-row-height, 55px); min-height: var(--crm-menu-row-height, 55px);
  padding: 0 25px; border: 0; margin: 0; color: #ccc;
  background: var(--crm-palette-header, var(--crm-footer-background)); font: 400 14px/20px system-ui, sans-serif;
}
.crm-clients-status, .crm-client-card { padding: 20px; }
.crm-clients-back { min-height: var(--crm-menu-row-height, 55px); padding: 0 20px; }
.crm-client-card h3 { margin: 0 0 20px; font-size: 16px; font-weight: 400; }
.crm-client-card dl { margin: 0 0 24px; }
.crm-client-card dl > div { display: flex; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--crm-divider-color); }
.crm-client-card dt { min-width: 100px; } .crm-client-card dd { margin: 0; overflow-wrap: anywhere; }
.crm-client-order { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--crm-divider-color); color: inherit; text-decoration: none; }


/* CRM wholesale dealers follow the Clients / Retail table grid. */
html.crm-wholesale-embedded .room-main-page--dealers {
  box-sizing: border-box; display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 0; overflow: hidden;
}
html.crm-wholesale-embedded .room-main-page--dealers.is-hidden { display: none; }
html.crm-wholesale-embedded .room-dealers-list {
  display: block; flex: 1 1 0; min-height: 0; margin: 0; overflow: auto;
  --crm-dealers-columns: 64px minmax(160px,1.1fr) minmax(140px,1fr) minmax(110px,.7fr) minmax(140px,1fr) minmax(136px,.85fr) minmax(180px,1.1fr) minmax(160px,1fr);
}
html.crm-wholesale-embedded :is(.room-dealers-table-head, .room-dealer-card-row) {
  display: grid; grid-template-columns: var(--crm-dealers-columns); min-width: 1140px;
  box-sizing: border-box; height: var(--crm-list-row-height, 55px); min-height: var(--crm-list-row-height, 55px); padding: 0;
}
html.crm-wholesale-embedded .room-dealers-table-head {
  position: sticky; top: 0; z-index: 4; background: var(--crm-palette-panel, #1c1d20);
  border: 0; border-bottom: 1px solid var(--crm-retail-row-divider, var(--crm-divider-color));
}
html.crm-wholesale-embedded .room-dealer-card {
  display: block; box-sizing: border-box; min-width: 1140px; padding: 0; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--crm-retail-row-divider, var(--crm-divider-color)); transition: none;
}
html.crm-wholesale-embedded .room-dealer-card-row { height: calc(var(--crm-list-row-height, 55px) - 1px); min-height: 0; }
html.crm-wholesale-embedded :is(.room-dealers-table-head > span, .room-dealer-card-row > *) {
  justify-content: flex-start; box-sizing: border-box; min-width: 0; min-height: 0; padding: 0 16px; text-align: left;
}
html.crm-wholesale-embedded .room-dealers-table-head > span { color: rgba(255,255,255,.58); font: 400 11px/20px system-ui,sans-serif; }
html.crm-wholesale-embedded .room-dealer-card-row > * { color: #c9c9ca; font: 400 13px/1.25 system-ui,sans-serif; }
html.crm-wholesale-embedded :is(.room-dealers-table-head > span, .room-dealer-card-row > *)::before,
html.crm-wholesale-embedded .room-dealer-card + .room-dealer-card::before { content: none; }
html.crm-wholesale-embedded .room-dealer-card:is(:hover, :focus-visible) { background: var(--crm-palette-hover, #2c2e30); }
html.crm-wholesale-embedded .room-dealer-card:focus-visible { outline: 1px solid var(--crm-palette-secondary,#cdcdcd); outline-offset: -2px; }
html.crm-wholesale-embedded .room-dealer-card:active { transform: none; }
html.crm-wholesale-embedded .room-dealer-card-cell--logo { justify-content: center; padding: 0; }
html.crm-wholesale-embedded .room-dealer-card-logo { width: 32px; height: 32px; font: 400 11px/1 system-ui,sans-serif; }
body.is-crm-view-active #roomView .crm-wholesale-dealers-open > .crm-wholesale-footer { justify-content: flex-start; }
.crm-dealers-count { font: 400 14px/20px system-ui,sans-serif; color: #ccc; }
/* Embedded dealer tables keep desktop rows when the iframe becomes narrow. */
/* The embedded frame owns the available height. Keep one percentage chain
   instead of asking WebKit for a second dynamic viewport inside the frame. */
html.crm-wholesale-embedded:has(.room-main-page--dealers:not(.is-hidden)) { height: var(--crm-wholesale-frame-height, 100%); overflow: hidden; }
html.crm-wholesale-embedded:has(.room-main-page--dealers:not(.is-hidden)) :is(body, .app-shell, .app-main, #roomView, .room-page, .room-main) {
  box-sizing: border-box; height: 100% !important; min-height: 0 !important; max-height: none; margin: 0; padding: 0; overflow: hidden;
}
html.crm-wholesale-embedded:has(.room-main-page--dealers:not(.is-hidden)) :is(.app-shell, .app-main, #roomView, .room-page, .room-main) { display: block; }
body.is-crm-view-active #roomView .crm-wholesale-dealers-open > .crm-wholesale-footer { padding-inline-start: calc(clamp(140px, 19%, 280px) + 25px); }
body.is-crm-view-active #roomView .crm-wholesale-dealers-open.crm-wholesale-menu-collapsed > .crm-wholesale-footer { padding-inline-start: 109px; }
html.crm-wholesale-embedded :is(.room-dealers-table-head > span, .room-dealer-card-row > *) { display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html.crm-wholesale-embedded .room-dealer-card-logo { display: inline-grid; place-items: center; flex: 0 0 32px; border-radius: 50%; background: var(--crm-palette-selection, #2c2e30); overflow: hidden; }
html.crm-wholesale-embedded .room-dealer-card-logo img { width: 100%; height: 100%; object-fit: contain; }
/* Dealer list: organisation, trading name, contacts, logo at the right edge. */
html.crm-wholesale-embedded .room-dealers-list { --crm-dealers-columns: minmax(170px,1.1fr) minmax(170px,1.1fr) minmax(130px,.8fr) minmax(170px,1fr) minmax(150px,.9fr) minmax(200px,1.2fr) minmax(180px,1.1fr) 64px; }
html.crm-wholesale-embedded .room-dealers-table-head button { display: flex; align-items: center; gap: 5px; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
html.crm-wholesale-embedded .room-dealers-table-head button:focus-visible { outline: 1px solid currentColor; outline-offset: -2px; }
html.crm-wholesale-embedded .room-dealers-table-head .crm-dealers-logo-heading { justify-content: center; padding: 0; }
.crm-dealers-logo-heading svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.crm-dealer-back { display: none; }
.crm-wholesale-dealer-card-open .crm-wholesale-downloads > :not(.crm-dealer-back, .crm-category-menu-footer) { display: none !important; }
.crm-wholesale-dealer-card-open .crm-dealer-back { display: flex; align-items: center; gap: 12px; min-height: var(--crm-menu-row-height,55px); padding: 0 24px; border: 0; border-radius: 0; background: transparent; color: var(--crm-palette-text,#cdcdcd); font: var(--crm-navigation-font, 400 14px/1.25 system-ui,sans-serif); text-align: left; cursor: pointer; }
.crm-dealer-back svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.crm-dealer-back:hover { background: var(--crm-palette-hover); }
.crm-wholesale-menu-collapsed .crm-dealer-back { padding: 0; justify-content: center; }
.crm-wholesale-menu-collapsed .crm-dealer-back > span { display: none; }
html.crm-wholesale-embedded .crm-dealer-page-open > :not(#roomDealerModalRoot) { display: none !important; }
html.crm-wholesale-embedded .crm-dealer-page-root { display: flex; flex: 1; min-height: 0; width: 100%; }
html.crm-wholesale-embedded #roomDealerModalRoot .crm-dealer-page {
  position: static; display: flex; flex-direction: column; flex: 1; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--crm-retail-orders-background,#1c1c20); color: #c9c9ca; font: 400 13px/1.4 system-ui,sans-serif;
}
html.crm-wholesale-embedded .crm-dealer-page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--crm-list-row-height,55px); padding: 0 20px; border-bottom: 1px solid var(--crm-retail-row-divider); }
html.crm-wholesale-embedded .crm-dealer-page h2 { margin: 0; color: inherit; font: 500 20px system-ui,sans-serif; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-tabs { display: flex; gap: 20px; padding: 0; border: 0; background: transparent; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-tabs button { border: 0; border-radius: 0; padding: 12px 0; background: transparent; color: #afafaf; font: inherit; cursor: pointer; box-shadow: none; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-tabs button.is-active { color: var(--crm-palette-text,#cdcdcd); }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-body { display: block; flex: 1; min-height: 0; padding: 20px; overflow: auto; background: transparent; color: inherit; }
html.crm-wholesale-embedded .crm-dealer-page :is(.room-dealer-modal-layout, .room-dealer-modal-section, .room-dealer-modal-card-form, .room-dealer-modal-condition-column, .room-dealer-modal-metric, .room-dealer-modal-logo-card) { background: transparent; color: inherit; border-color: var(--crm-retail-row-divider); border-radius: 0; box-shadow: none; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) minmax(160px,.6fr); gap: 24px; }
html.crm-wholesale-embedded .crm-dealer-page :is(label, label > span, p, h4, dt, dd, strong, .room-dealer-modal-note, .room-dealer-modal-card-status) { color: inherit; font-weight: 400; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-field { display: flex; flex-direction: column; min-height: var(--crm-list-row-height,55px); padding: 8px 0; border-bottom: 1px solid var(--crm-retail-row-divider); }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-field-control { width: 100%; box-sizing: border-box; min-height: 28px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; box-shadow: none; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-field-control:focus { outline: 1px solid var(--crm-palette-secondary); outline-offset: 2px; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-logo-preview { border: 1px solid var(--crm-retail-row-divider); border-radius: 0; background: transparent; color: inherit; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-card-actions { position: sticky; bottom: -20px; background: var(--crm-palette-header,#242528); border-top: 1px solid var(--crm-retail-row-divider); margin: 20px -20px -20px; padding: 12px 20px; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-save { border: 0; border-radius: 0; background: transparent; color: var(--crm-palette-lime); font: inherit; box-shadow: none; cursor: pointer; }
@media(max-width:900px) { html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } html.crm-wholesale-embedded .crm-dealer-page-head { flex-wrap: wrap; padding-block: 12px; } }

/* Settings updates the installed interface, using the retail footer placement. */
#crmSettingsRefresh { display: none; }
@media (min-width: 901px) {
  body.is-crm-settings-active #settingsView .crm-settings-links > #crmSettingsRefresh:not([hidden]) {
    display: grid;
    position: absolute;
    inset-inline-start: 8px;
    bottom: 0;
    place-items: center;
    width: 42px;
    height: var(--crm-sidebar-toggle-height, 55px);
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--crm-palette-secondary, #cdcdcd);
    z-index: 2;
  }
  body.is-crm-settings-active #settingsView #crmSettingsRefresh:enabled:hover {
    color: var(--crm-palette-text, #fff);
    background: var(--crm-palette-hover, #34363a);
  }
  #crmSettingsRefresh svg { width: 21px; height: 21px; }
  #crmSettingsRefresh svg path {
    stroke: currentColor; stroke-width: .3px; stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }
  body.is-crm-settings-active:has(#crmSettingsRefresh:not([hidden])) #crm-native-connection {
    display: none !important;
  }
  body.is-crm-settings-active #settingsView.crm-settings-primary-menu-collapsed .crm-settings-links:has(#crmSettingsRefresh:not([hidden])) > #crmSettingsMenuToggle {
    margin-block-start: 0;
  }
  body.is-crm-settings-active #settingsView.crm-settings-primary-menu-collapsed .crm-settings-links > #crmSettingsRefresh:not([hidden]) {
    position: static;
    flex: 0 0 var(--crm-sidebar-toggle-height, 55px);
    align-self: center;
    margin-block-start: auto;
  }
}

/* Dealer columns: the shared topbar shows only the list-specific control. */
#crmDealerColumnsButton { display: none; }
body.is-crm-view-active:has(.crm-wholesale-dealers-open:not(.is-hidden):not(.crm-wholesale-dealer-card-open)) #crmDealerColumnsButton { display: inline-flex; }
body.is-crm-view-active:has(.crm-wholesale-dealers-open:not(.is-hidden)) :is(#crmPickupButton, #crm-table-heading-toggle, #crm-two-columns-toggle) { display: none !important; }
html.crm-wholesale-embedded :is(.room-dealers-table-head, .room-dealer-card, .room-dealer-card-row) { min-width: var(--crm-dealers-min-width, 1140px); }
.crm-dealer-columns-menu { box-sizing: border-box; width: 280px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 80px); overflow: auto; margin: 0; padding: 8px; border: 1px solid #555; border-radius: 8px; background: var(--crm-palette-panel, #1c1d20); color: #cdcdcd; box-shadow: none; }
.crm-dealer-columns-menu label { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 8px; font: 400 13px/1.4 system-ui; cursor: pointer; }
.crm-dealer-columns-menu label:hover { background: var(--crm-palette-selection, #343638); border-radius: 4px; }
.crm-dealer-columns-menu input { margin: 0; accent-color: #a7a7a7; }
.crm-dealer-columns-menu::backdrop { background: transparent; }
body.is-crm-view-active .topbar > #crmDealerColumnsButton { position: absolute; inset-inline-end: 25px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 6px; color: var(--crm-palette-secondary, #cdcdcd); }
body .crm-dealer-columns-menu { max-height: calc(100dvh - 80px); }

/* Dealer sections use the product card's flat two-tone column structure. */
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-body { padding: 0; }
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-block-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 100%; }
html.crm-wholesale-embedded .crm-dealer-block-main { min-width: 0; background: var(--crm-palette-workspace, #18191c); }
html.crm-wholesale-embedded .crm-dealer-block-aside { min-width: 0; background: var(--crm-palette-panel, #1c1d20); border-left: 1px solid var(--crm-retail-row-divider); }
html.crm-wholesale-embedded .crm-dealer-page :is(.crm-dealer-block, .room-dealer-managers) { margin: 0; padding: 24px 32px; border-bottom: 1px solid var(--crm-retail-row-divider); }
html.crm-wholesale-embedded .crm-dealer-page :is(.crm-dealer-block h3, .room-dealer-managers > h4) { margin: 0 0 16px; font: 400 16px system-ui; color: var(--crm-palette-text, #cdcdcd); }
html.crm-wholesale-embedded .crm-dealer-block-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-field > span { color: var(--crm-palette-spec-label, #909090); font-size: 13px; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-field-control { font: 400 14px system-ui; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-logo-preview { width: 120px; height: 120px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-managers .room-dealer-modal-condition-column { padding: 16px 0; border: 0; border-bottom: 1px solid var(--crm-retail-row-divider); }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-card-actions { bottom: 0; margin: 0; padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 760px) {
  html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-block-layout { grid-template-columns: minmax(0, 1fr); }
  html.crm-wholesale-embedded .crm-dealer-page :is(.crm-dealer-block, .room-dealer-managers) { padding: 20px; }
  html.crm-wholesale-embedded .crm-dealer-block-fields { grid-template-columns: minmax(0, 1fr); }
  html.crm-wholesale-embedded .crm-dealer-block-aside { border-left: 0; }
}
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-managers > h4 { padding: 0; background: transparent; border: 0; border-radius: 0; }

/* Dealer blocks touch the workspace edges and share its fixed footer. */
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-section--card {
  display: block; height: auto; padding: 0; margin: 0; gap: 0; overflow: visible;
}
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-card-form {
  display: block; padding: 0; margin: 0; gap: 0; overflow: visible;
}
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-field { border: 0; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-managers .room-dealer-modal-condition-column { border: 0; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-condition-row { border: 0; }
.crm-wholesale-footer .crm-dealer-footer-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; padding-right: 24px; min-width: 0; }
.crm-wholesale-footer .crm-dealer-footer-status { font: inherit; color: inherit; }
.crm-wholesale-footer .crm-dealer-footer-status.is-error { color: #f48bcb; }
.crm-wholesale-footer .crm-dealer-footer-actions button { padding: 0; border: 0; background: transparent; color: var(--crm-palette-lime, #d6fa55); font: inherit; cursor: pointer; box-shadow: none; }
.crm-wholesale-footer .crm-dealer-footer-actions button:disabled { opacity: .5; cursor: default; }
.crm-wholesale-footer .crm-dealer-footer-actions button:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-managers { display: block; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-managers .room-dealer-modal-condition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-managers .room-dealer-modal-condition-row { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 55px; padding: 8px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-managers .room-dealer-modal-condition-row > span { color: var(--crm-palette-spec-label, #909090); font: 400 13px/1.4 system-ui; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-managers .room-dealer-modal-condition-row > strong { display: flex; align-items: center; min-height: 28px; text-align: left; overflow-wrap: anywhere; color: inherit; font: 400 14px/1.4 system-ui; }

/* The dealer heading is the single editable company name. */
html.crm-wholesale-embedded .crm-dealer-page-head h2 { flex: 1; min-width: 0; }
html.crm-wholesale-embedded .crm-dealer-page-head .crm-dealer-company-title { display: block; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; box-shadow: none; text-overflow: ellipsis; }
html.crm-wholesale-embedded .crm-dealer-page-head .crm-dealer-company-title:focus-visible { outline: 1px solid var(--crm-palette-secondary, #cdcdcd); outline-offset: 4px; }

/* Dealer section headers occupy two navigation rows; all details stay on one page. */
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-page-head { height: calc(2 * var(--crm-section-menu-row-height, 55px)); min-height: calc(2 * var(--crm-section-menu-row-height, 55px)); padding-block: 0; box-sizing: border-box; }
html.crm-wholesale-embedded .crm-dealer-page :is(.crm-dealer-block, .room-dealer-managers) { padding: 0; }
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-block > h3 { display: flex; align-items: center; height: calc(2 * var(--crm-section-menu-row-height, 55px)); min-height: calc(2 * var(--crm-section-menu-row-height, 55px)); box-sizing: border-box; margin: 0; padding: 0 32px; border-bottom: 1px solid var(--crm-retail-row-divider); color: var(--crm-palette-lime, #d6fa55); font: 400 16px system-ui; }
html.crm-wholesale-embedded .crm-dealer-page :is(.crm-dealer-block-fields, .crm-dealer-block-content) { padding: 24px 32px; }
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-block-content .room-dealer-modal-condition-column { padding: 16px 0; border: 0; }
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-block-content .room-dealer-modal-conditions-grid { display: block; }
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-block-content :is(.room-dealer-modal-condition-row, .room-dealer-modal-metric) { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crm-product-category-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.crm-product-category-dialog h2 { margin: 0; }
.crm-product-category-dialog input { margin-block: 16px; }
.crm-product-category-list { display: flex; flex-direction: column; max-height: 50vh; overflow: auto; }
.crm-product-category-list button { text-align: start; flex-shrink: 0; }
.crm-product-category-list button[aria-pressed="true"] { color: var(--crm-palette-lime, #d6fa55); }
.crm-product-category-dialog [role="status"] { margin-block-end: 0; font-size: 14px; }
/* The company header and logo scroll with the whole dealer page. */
html.crm-wholesale-embedded #roomDealerModalRoot .crm-dealer-page { overflow-x: hidden; overflow-y: auto; }
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-page-head { flex: 0 0 auto; position: static; inset: auto; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-body { flex: 0 0 auto; overflow: visible; }
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-header-logo { flex: 0 0 86px; width: 86px; height: 86px; margin: 0; box-sizing: border-box; font-size: 11px; }

/* A chosen company logo uses the same circular shape as the dealer list. */
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-header-logo:has(img) { flex-basis: 68.8px; width: 68.8px; height: 68.8px; border-radius: 50%; overflow: hidden; }
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-header-logo img { width: 100%; height: 100%; object-fit: contain; }

html.crm-wholesale-embedded .crm-dealer-header-logo .crm-dealer-logo-plus { color: var(--crm-palette-text-muted, #8e8e93); flex: none; }

/* Decorative placeholders; behavior will be assigned separately. */
.crm-topbar-sky-icons{display:none}
body.is-crm-view-active:has(.crm-room-page[data-room-page="marketing"]:not(.is-hidden) .marketing-email-panel:not(.is-hidden) :is(.email-composer,.email-dispatch)) .topbar > .crm-topbar-sky-icons{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:24px;color:var(--crm-palette-text,#cdcdcd);pointer-events:none}
.crm-topbar-sky-icons > svg{display:block;width:var(--crm-navigation-icon-size,21px);height:var(--crm-navigation-icon-size,21px);fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Local proofreading in the product description. */
.description-proofreading-overlay{position:fixed;inset:0;pointer-events:none;z-index:21}
.description-proofreading-overlay>span{position:absolute;height:3px;pointer-events:none;background:repeat-x left top/6px 3px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='3' viewBox='0 0 6 3'%3E%3Cpath d='M0 2Q1.5 0 3 2T6 2' fill='none' stroke='%23f06464' stroke-width='1'/%3E%3C/svg%3E")}
#descriptionProofread{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;min-width:40px;height:32px;min-height:32px;padding:6px 10px;border:0;border-radius:6px;box-shadow:none;background:transparent;color:var(--crm-palette-text,#cdcdcd)}
#descriptionProofread svg{width:21px;height:21px;flex-shrink:0;stroke-width:1.5}
#descriptionProofread:hover{background:var(--crm-palette-hover,#383a3d73)}
#descriptionProofread[aria-pressed="true"]{color:var(--crm-palette-accent,#c4f044);background:var(--crm-palette-selection,#383a3d)}
#descriptionProofread:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
.description-proofreading-status:empty{display:none}
.description-proofreading-status{font-size:12px;color:#f06464}
/* Description module preferences keep hidden fields intact. */
.description-module-hidden { display: none !important; }
#descriptionModulesToggle { flex: 0 0 44px; }
.description-modules-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  box-sizing: border-box;
  width: min(310px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--crm-palette-divider, #3b3d40);
  border-radius: 8px;
  background: var(--crm-palette-workspace, #242527);
  color: var(--crm-palette-text, #cdcdcd);
  box-shadow: none;
  font: 14px/1.4 system-ui;
}
.description-modules-menu > strong { display: block; margin: 4px 8px 8px; font-weight: 500; }
.description-modules-menu label { display: flex; align-items: center; gap: 10px; padding: 8px; cursor: pointer; }
.description-modules-menu label:hover { background: rgb(128 128 128 / 12%); }
.description-modules-menu input { width: 16px; height: 16px; margin: 0; accent-color: var(--crm-accent, #d4ff58); }
#descriptionModulesToggle > svg.crm-nav-icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
  color: var(--crm-palette-secondary, #cdcdcd);
}
#descriptionModulesToggle:is(:hover, :focus-visible) > svg.crm-nav-icon { color: var(--crm-palette-text, #fff); }
/* Purchases reuse the catalog preview, including its controls and resize handle. */
body.is-crm-view-active #roomView .crm-purchases-page { position: relative; }
body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .crm-purchases-toolbar :is(#crmContentPreviewToggle, #crmContentPreviewEdit, #crmContentPreviewLock, #crmContentPreviewMenus, #crmPreviewPhotoActions):not([hidden]) { display: inline-flex; pointer-events: auto; align-items: center; }
.crm-purchases-toolbar > #crmContentPreviewToggle { margin-inline-start: 0; }
.crm-purchases-toolbar:has(> #crmContentPreviewToggle) > :nth-child(1 of :not([hidden])) { margin-inline-start: auto; }
.crm-purchases-toolbar:has(> #crmContentPreviewToggle) > #crmPurchasePhotoToggle { margin-inline-start: 0; }

/* Product edit delivery status shares the card footer's quiet text style. */
.crm-card-publish-footer .crm-card-save-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--crm-palette-text, #cdcdcd);
}

/* Preview GPT actions are bare icons in every interaction state. */
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-card-action,
:is(#crmContentPreviewPanel, #crmPurchasePreviewPanel) .crm-preview-card-action:is(:hover, :active, :focus, :focus-visible, :disabled) {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none;
  transform: none;
}
.manufacturer-photo-upload {
  display: grid; place-items: center; width: 32px; height: 32px;
  padding: 4px; border: 0; background: transparent; color: var(--crm-palette-secondary, #cdcdcd); cursor: pointer;
}
.manufacturer-photo-upload svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.manufacturer-photo-upload:disabled { opacity: .5; cursor: wait; }
.manufacturer-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 24px; }
.manufacturer-photo-grid:empty { min-height: 100px; }
.manufacturer-photo-grid figure { min-width: 0; margin: 0; }
.manufacturer-photo-grid img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.manufacturer-photo-status { margin: 0; padding-inline: 24px; color: var(--crm-palette-muted, #afafaf); }
.manufacturer-photo-status:empty { display: none; }

/* Individual manager access to the shared dealer cabinet. */
.dealer-manager-access{grid-column:1/-1;padding-top:16px;font:400 14px system-ui;color:var(--crm-palette-text,#cdcdcd)}
.dealer-manager-access label{display:grid;gap:8px}.dealer-manager-access label>span{color:var(--crm-palette-muted,#909090)}
.dealer-manager-access input{width:100%;padding:10px 0;border:0;border-bottom:1px solid var(--crm-palette-divider,#383a3d);border-radius:0;background:transparent;color:inherit;font:inherit}
.dealer-manager-access>div{display:flex;flex-wrap:wrap;gap:20px;padding-top:12px}.dealer-manager-access button{padding:0;border:0;background:transparent;color:var(--crm-palette-lime,#d6fa55);font:inherit;cursor:pointer}.dealer-manager-access button:disabled{opacity:.5;cursor:wait}.dealer-manager-access p{min-height:20px;margin:12px 0 0;color:var(--crm-palette-muted,#afafaf)}

.distribution-preorders{padding:24px;color:var(--crm-palette-text,#cdcdcd);font:400 14px system-ui}.distribution-preorder-row{display:grid;grid-template-columns:80px minmax(150px,1fr) 80px 90px 180px max-content;gap:16px;width:100%;padding:20px 0;border:0;border-bottom:1px solid var(--crm-palette-divider,#383a3d);background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}.distribution-preorder-detail{max-width:calc(100vw - 48px);max-height:80vh;overflow:auto;padding:24px;border:1px solid var(--crm-palette-divider,#383a3d);border-radius:12px;background:var(--crm-palette-workspace,#18191c);color:var(--crm-palette-text,#cdcdcd);font:400 14px system-ui;box-shadow:none}.distribution-preorder-detail table{width:100%;border-collapse:collapse}.distribution-preorder-detail :is(th,td){padding:12px;text-align:left;border-bottom:1px solid #383a3d}.distribution-preorder-detail::backdrop{background:rgb(0 0 0 / .55)}

.room-main-page:has(>.distribution-preorders):not(.is-hidden){display:block;overflow:auto}.distribution-preorders{min-width:800px}.distribution-preorder-detail h2{font:400 18px system-ui}.distribution-preorder-detail button{padding:12px 20px;border:0;border-radius:20px;background:var(--crm-palette-lime,#d6fa55);color:#18191c;font:inherit;cursor:pointer}
/* Wholesale preorder view controls. */
.crm-preorder-view-icons { display: none; }
body.is-crm-view-active:has(#roomView.is-crm-wholesale-open) .topbar > .crm-preorder-view-icons:not([hidden]) {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--crm-palette-text, #cdcdcd);
}
.crm-preorder-view-icons > button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: calc(var(--crm-navigation-icon-size, 21px) + 14px);
  height: calc(var(--crm-navigation-icon-size, 21px) + 14px);
  min-height: 0;
  padding: 7px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  cursor: default;
}
.crm-preorder-view-icons > button[aria-pressed="true"] { background: var(--crm-palette-selection, #383a3d); }
.crm-preorder-view-icons > button:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.crm-preorder-view-icons svg {
  display: block;
  width: var(--crm-navigation-icon-size, 21px);
  height: var(--crm-navigation-icon-size, 21px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Keep preorder details on the same dark surface as the CRM workspace. */
html:root body #distributionPreorderDetail{background:#18191c!important;color:#cdcdcd!important;border:1px solid #383a3d!important;box-shadow:none!important}
html:root body #distributionPreorderDetail :is(h2,p,th,td){color:#cdcdcd!important;font-weight:400!important}
html:root body #distributionPreorderDetail button{box-shadow:none!important}

/* Editable manager phone keeps the contact layout, including empty contacts. */
.dealer-manager-phone input {
  width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: inherit; font: inherit; box-shadow: none;
}
.dealer-manager-phone input::placeholder { color: inherit; opacity: 1; }
.dealer-manager-phone input:focus { outline: none; border-bottom: 1px solid currentColor; }
.dealer-manager-phone small { font: inherit; font-size: 12px; }
.dealer-manager-phone small:empty { display: none; }
/* Main manager marker shares the sidebar outline icon style. */
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-managers .room-dealer-modal-condition-column > h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.crm-dealer-main-manager {
  display: inline-flex;
  flex: 0 0 21px;
  margin-inline-start: auto;
  color: inherit;
}
.crm-dealer-main-manager svg { width: 21px; height: 21px; }
/* Dealer password actions belong to the shared CRM header. */
.crm-dealer-password-tools[hidden], .crm-dealer-password-menu[hidden] { display:none !important; }
.crm-dealer-password-tools { display:flex; align-items:center; }
.crm-dealer-password-menu { position:fixed; z-index:1200; width:280px; max-width:calc(100vw - 24px); background:var(--crm-second-menu-background, #242527); color:var(--crm-palette-text, #cdcdcd); border:1px solid var(--crm-divider-color, #383a3e); border-radius:0; box-shadow:none; }
.crm-dealer-password-menu [role=menu] { display:flex; flex-direction:column; }
.crm-dealer-password-menu button { width:100%; min-height:var(--crm-menu-row-height, 40px); text-align:left; padding:8px 16px; border:0; border-radius:0; background:transparent; color:inherit; font:400 14px system-ui; }
.crm-dealer-password-menu button:hover, .crm-dealer-password-menu button:focus-visible { background:var(--crm-palette-selection, #383a3e); }
.crm-dealer-password-menu p { margin:0; padding:12px 16px; font:400 14px system-ui; }
.crm-dealer-password-menu p:empty { display:none; }

body:not(:has(#roomView.is-crm-wholesale-open:not(.is-hidden) .crm-wholesale-dealer-card-open)) .crm-dealer-password-tools { display:none !important; }

body.is-crm-view-active .crm-dealer-password-menu.crm-dropdown { border-radius:0 !important; box-shadow:none !important; padding:0 !important; border:1px solid var(--crm-divider-color, #383a3e) !important; }
body.is-crm-view-active .crm-dealer-password-menu [role=menu] { position:static !important; border:0 !important; box-shadow:none !important; padding:0 !important; margin:0 !important; border-radius:0 !important; width:100%; }

/* Dealer key uses the last header action slot, without pickup-button space. */
@media (min-width: 901px) {
  body.is-crm-view-active:has(#roomView.is-crm-wholesale-open .crm-wholesale-dealer-card-open) .topbar-actions {
    margin-inline-end: 0;
  }
}
body.is-crm-view-active .crm-dealer-password-tools > button svg {
  width: var(--crm-rail-icon-size, 21px);
  height: var(--crm-rail-icon-size, 21px);
  stroke-width: 1.7;
}

/* Remix Icon key-2-line, original geometry; Remix Icon License v1.0. */
body.is-crm-view-active .crm-dealer-password-tools > button svg.crm-dealer-key-icon { fill:currentColor; stroke:none; }
/* Dealer logos are editable by mouse and keyboard. */
html.crm-wholesale-embedded .crm-dealer-page button.crm-dealer-header-logo { padding: 0; cursor: pointer; appearance: none; }
html.crm-wholesale-embedded .crm-dealer-page button.crm-dealer-header-logo:focus-visible { outline: 2px solid var(--crm-palette-text, #cdcdcd); outline-offset: 3px; }

/* Empty dealer fields use the same dash as manager contact values. */
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-field-control::placeholder { color: inherit; opacity: 1; }
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-modal-field-control:focus::placeholder { color: transparent; }

/* Company identity belongs to the first data block, aligned with Managers. */
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-company-block-head {display:flex;align-items:center;justify-content:space-between;gap:20px;height:calc(2 * var(--crm-section-menu-row-height,55px));min-height:calc(2 * var(--crm-section-menu-row-height,55px));box-sizing:border-box;padding:0 32px;border-bottom:1px solid var(--crm-retail-row-divider);}
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-company-block-head h3 {flex:1;min-width:0;margin:0;color:var(--crm-palette-lime,#d6fa55);font:400 16px system-ui;}
html.crm-wholesale-embedded .crm-dealer-company-block-head .crm-dealer-company-title {display:block;width:100%;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;box-shadow:none;text-overflow:ellipsis;}
html.crm-wholesale-embedded .crm-dealer-company-block-head .crm-dealer-company-title:focus-visible {outline:1px solid var(--crm-palette-secondary,#cdcdcd);outline-offset:4px;}
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-company-block-head .crm-dealer-header-logo {flex:0 0 calc(68.8px / 1.5);width:calc(68.8px / 1.5);height:calc(68.8px / 1.5);}

/* Dealer card layout preferences keep fields mounted, including unsaved drafts. */
body.is-crm-view-active:has(.crm-wholesale-dealer-card-open:not(.is-hidden)) #crmDealerColumnsButton { display: inline-flex; }
html.crm-wholesale-embedded .crm-dealer-page :is(.crm-dealer-block, .crm-dealer-block-main, .crm-dealer-block-aside)[hidden] { display: none !important; }
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-block-layout.crm-dealer-single-column { grid-template-columns: minmax(0, 1fr); }
html.crm-wholesale-embedded .crm-dealer-single-column .crm-dealer-block-aside { border-left: 0; }

body.is-crm-view-active:has(.crm-wholesale-dealer-card-open:not(.is-hidden)) .topbar > #crmDealerColumnsButton { inset-inline-end: 73px; }
/* Manager names use the standard CRM text color. */
html.crm-wholesale-embedded .crm-dealer-page .room-dealer-managers .room-dealer-modal-condition-column > h4 { color: var(--crm-palette-text, #cdcdcd) !important; }
html.crm-wholesale-embedded .crm-dealer-page .crm-dealer-main-manager { color: var(--crm-palette-text, #cdcdcd); }
/* Company-wide dealer permissions, using the CRM block grid. */
.crm-dealer-section-access .crm-dealer-block-content { padding: 0; }
.crm-dealer-section-access label { display:flex; align-items:center; gap:12px; min-height:var(--crm-row-height, 42px); padding:0 16px; border-bottom:0; cursor:pointer; }
.crm-dealer-section-access input { accent-color:var(--crm-lime, #D6FA55); width:16px; height:16px; }
.crm-dealer-section-access [role="status"]:empty { display:none; }

.distribution-preorder-logo { display: none; }
.distribution-preorders[data-view="cards"] { min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 260px)); gap: 24px; padding: 28px; }
.distribution-preorders[data-view="cards"] .distribution-preorder-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 148px; padding: 20px; border: 1px solid #343638; border-radius: 14px; background: #26282a; text-align: center; }
.distribution-preorders[data-view="cards"] .distribution-preorder-logo { display: block; width: 150px; height: 78px; object-fit: contain; filter: invert(1); }
.distribution-preorders[data-view="cards"] .distribution-preorder-row:is(:hover, :focus-visible) { background: #2c2e30; border-color: #777; color: #fff; }
.crm-preorder-view-icons > button { cursor: pointer; }
.crm-preorder-view-icons > button:hover { background: var(--crm-palette-selection, #383a3d); }

/* Wholesale notification editor follows the shared settings menus and palette. */
.crm-settings-wholesale-open .settings-modal-body { display: none; }
#crmWholesaleNotifications:not([hidden]) { flex: 1; min-width: 0; min-height: 0; overflow: auto; background: var(--crm-palette-workspace); color: var(--crm-palette-text); font: 400 14px system-ui; }
#crmWholesaleNotifications > header { min-height: calc(2 * var(--crm-navigation-row-height, 55px)); display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--crm-divider-color); }
#crmWholesaleNotifications h2 { margin: 0; font: 500 20px system-ui; }
#crmWholesaleNotifications form { max-width: 860px; padding: 24px; }
#crmWholesaleNotifications label { display: grid; gap: 10px; margin-bottom: 24px; color: inherit; font: inherit; }
#crmWholesaleNotifications :is(input,textarea) { box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid var(--crm-divider-color); border-radius: 0; box-shadow: none; background: transparent; color: inherit; font: inherit; }
#crmWholesaleNotifications textarea { resize: vertical; min-height: 150px; }
#crmWholesaleNotifications :is(input,textarea,button):focus-visible { outline: 1px solid var(--crm-palette-text); outline-offset: 2px; }
#crmWholesaleNotifications .crm-notification-hint { color: var(--crm-palette-muted); }
#crmWholesaleNotifications .crm-notification-preview { border-top: 1px solid var(--crm-divider-color); padding-block: 20px; margin-top: 24px; }
#crmWholesaleNotifications h3 { font: inherit; color: var(--crm-palette-muted); margin: 0 0 16px; }
#crmWholesaleNotifications .crm-notification-preview p { white-space: pre-wrap; overflow-wrap: anywhere; }
#crmWholesaleNotifications .crm-notification-preview strong { font-weight: 500; overflow-wrap: anywhere; }
#crmWholesaleNotifications .crm-notification-status { padding: 0 24px; }
#crmWholesaleNotifications .crm-notification-status:empty { display: none; }

/* Keep the dealer loading message centered in the available workspace. */
html.crm-wholesale-embedded .room-dealers-list.is-loading {
  display: flex; align-items: center; justify-content: center;
}
html.crm-wholesale-embedded .room-dealers-list.is-loading > .room-empty {
  margin: 0; padding: 20px; text-align: center;
  color: var(--crm-palette-muted, #AFAFAF);
}
/* Incoming dealer applications share the wholesale workspace, menu and table roles. */
.crm-dealer-applications[hidden] { display:none; }
.crm-dealer-applications { grid-column:2; grid-row:1; min-width:0; min-height:0; overflow:auto; display:flex; flex-direction:column; color:var(--crm-palette-text, #cdcdcd); background:var(--crm-retail-orders-background, #1c1c20); font:400 16px system-ui; }
.crm-dealer-applications header { display:flex; align-items:center; justify-content:space-between; min-height:calc(2 * var(--crm-menu-row-height, 55px)); padding:0 24px; border-bottom:1px solid var(--crm-divider-color); }
.crm-dealer-applications h2 { margin:0; font:500 20px system-ui; }
.crm-dealer-applications button { border:0; border-radius:0; background:transparent; color:inherit; font:inherit; cursor:pointer; padding:12px 16px; }
.crm-dealer-applications button:hover { background:var(--crm-navigation-hover, #34363a); }
.crm-dealer-applications button:focus-visible { outline:1px solid currentColor; outline-offset:-3px; }
.crm-dealer-applications button:disabled { opacity:.5; cursor:default; }
.crm-dealer-applications [role="status"] { margin:0; padding:16px 24px; color:var(--crm-palette-secondary, #afafaf); font-size:14px; }
.crm-applications-table-wrap { overflow:auto; flex:1; min-height:0; }
.crm-dealer-applications table { border-collapse:collapse; width:100%; text-align:left; }
.crm-dealer-applications th, .crm-dealer-applications td { padding:12px 24px; min-height:var(--crm-menu-row-height,55px); height:var(--crm-menu-row-height,55px); border-bottom:1px solid var(--crm-retail-row-divider, #383a3d33); font-weight:400; overflow-wrap:anywhere; }
.crm-dealer-applications th { font-size:14px; color:var(--crm-palette-secondary, #afafaf); background:var(--crm-palette-panel); }
.crm-dealer-applications nav { display:flex; align-items:center; justify-content:center; min-height:var(--crm-menu-row-height,55px); border-top:1px solid var(--crm-divider-color); gap:16px; font-size:14px; }
.crm-wholesale-page.crm-wholesale-applications-open > iframe { visibility:hidden!important; grid-column:2; grid-row:1; pointer-events:none; }
.crm-wholesale-page.crm-wholesale-applications-open > .crm-wholesale-footer { visibility:hidden; }
body:has(.crm-wholesale-applications-open:not(.is-hidden)) :is(#crmOrderSearch, #crmPreorderViewIcons, #crmDealerColumnsButton, #crmPickupButton, #crm-table-heading-toggle, #crm-two-columns-toggle) { display:none!important; }
.crm-wholesale-page.crm-wholesale-applications-open { grid-template-rows:minmax(0,1fr)!important; }
.crm-wholesale-page.crm-wholesale-applications-open > .crm-wholesale-footer { display:none; }
.crm-dealer-applications :is(th, td):is(:nth-child(1), :nth-child(4), :nth-child(5), :nth-child(6), :nth-child(7)) { white-space:nowrap; }

/* Keep the log pagination action steady while its loading label changes. */
.site-exchange-logs-head:has(> [data-site-exchange-logs-more]) {
  flex-wrap: wrap;
}
[data-site-exchange-logs-more] {
  min-inline-size: min(9em, 100%);
  max-inline-size: 100%;
}
/* Telephony follows the order detail grid; it never overlays comments/forms. */
.crm-order-page .crm-telephony {
  margin:0; padding:var(--crm-order-section-spacing,24px) 0;
  border-top:1px solid var(--crm-palette-divider, #383a3d);
  color:var(--crm-palette-text, #cdcdcd); font:400 14px/1.45 system-ui;
  min-width:0; --telephony-row:var(--crm-menu-row-height,40px);
}
.crm-telephony [hidden] { display:none !important; }
.crm-telephony button { color:inherit; font:inherit; background:transparent; border:0; border-radius:0; cursor:pointer; padding:6px 10px; min-height:36px; }
.crm-telephony button:enabled:is(:hover,:focus-visible) { background:var(--crm-palette-hover, #383a3d); }
.crm-telephony :is(button,input,summary):focus-visible { outline:2px solid var(--crm-palette-text, #cdcdcd); outline-offset:2px; }
.crm-telephony button:disabled { color:var(--crm-palette-muted, #afafaf); cursor:default; opacity:.7; }
.crm-telephony-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.crm-telephony-head h3 { margin:0; font:500 20px/1.4 system-ui; }
.crm-telephony .crm-telephony-meta { margin:4px 0 0; color:var(--crm-palette-muted, #afafaf); font-size:12px; font-weight:400; }
.crm-telephony-head > button { margin-right:-10px; flex:none; }
.crm-telephony-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; border-bottom:1px solid var(--crm-palette-divider, #383a3d); margin-top:16px; }
.crm-telephony-filters { display:flex; flex-wrap:wrap; gap:0; margin-left:-10px; }
.crm-telephony-filters button[aria-pressed="true"] { background:var(--crm-palette-selection, #383a3d); color:var(--crm-palette-text, #cdcdcd); }
.crm-telephony-toolbar > button { margin-right:-10px; color:var(--crm-palette-muted, #afafaf); }
.crm-telephony-message { margin:0; padding:16px 0; color:var(--crm-palette-muted, #afafaf); font:400 14px/1.5 system-ui; }
.crm-telephony-list { list-style:none; margin:0; padding:0; max-height:420px; overflow:auto; overscroll-behavior:contain; }
.crm-telephony-call { border-bottom:1px solid var(--crm-palette-divider, #383a3d); }
.crm-telephony-call summary { display:flex; align-items:center; gap:16px; list-style:none; padding:14px 0; cursor:pointer; min-width:0; }
.crm-telephony-call summary::-webkit-details-marker { display:none; }
.crm-telephony-call summary:hover { background:var(--crm-palette-hover, #383a3d); }
.crm-telephony-call-main { display:flex; flex-direction:column; min-width:0; flex:1; }
.crm-telephony-call-main > span:first-child { display:flex; flex-wrap:wrap; gap:4px 14px; }
.crm-telephony-outcome { color:var(--crm-palette-muted, #afafaf); }
.crm-telephony-outcome[data-outcome="missed"] { color:var(--crm-palette-text, #cdcdcd); font-weight:500; }
.crm-telephony-call-duration { font-variant-numeric:tabular-nums; color:var(--crm-palette-muted, #afafaf); font-size:12px; max-width:110px; text-align:right; }
.crm-telephony-disclosure { color:var(--crm-palette-muted, #afafaf); font-size:12px; }
.crm-telephony-call details[open] .crm-telephony-disclosure { display:none; }
.crm-telephony-call-detail { padding:0 0 16px; }
.crm-telephony-participants { display:grid; gap:8px; padding:0 0 12px; }
.crm-telephony-participants > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 16px; }
.crm-telephony-participants > div > .crm-telephony-meta { margin:0; }
.crm-telephony-recordings { display:flex; flex-wrap:wrap; gap:8px; margin-left:-10px; }
.crm-telephony-unavailable { display:flex; flex-wrap:wrap; gap:4px 20px; padding-top:8px; color:var(--crm-palette-muted, #afafaf); font-size:12px; }
.crm-telephony-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px 24px; padding-top:12px; }
.crm-telephony-footer > div { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.crm-telephony-footer > div > button { padding-left:0; }
.crm-telephony-footer > .crm-telephony-meta { align-self:center; }
.crm-telephony-player { padding:12px 0; border-bottom:1px solid var(--crm-palette-divider, #383a3d); }
.crm-telephony-player-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.crm-telephony-player-head > button { margin-right:-10px; }
.crm-telephony-player-controls { display:flex; align-items:center; gap:12px; margin-top:8px; }
.crm-telephony-player-controls input { flex:1; min-width:0; accent-color:var(--crm-palette-muted, #afafaf); }
.crm-telephony-player-controls time { min-width:40px; text-align:right; font-size:12px; font-variant-numeric:tabular-nums; }
@media(max-width:600px) {
  .crm-telephony-head { gap:8px; }
  .crm-telephony-head h3 { max-width:240px; }
  .crm-telephony-toolbar { align-items:flex-start; gap:4px; }
  .crm-telephony-filters { flex:1; }
  .crm-telephony-filters button { padding-inline:8px; font-size:12px; }
  .crm-telephony-call summary { flex-wrap:wrap; gap:8px; }
  .crm-telephony-call-main { flex-basis:100%; }
  .crm-telephony-call-duration { text-align:left; max-width:none; }
  .crm-telephony-footer { gap:4px; }
}
.crm-telephony-player-controls input[type="range"] { height:20px; min-height:20px; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; background:transparent; }
.crm-price-list :is(td button,[data-price-lines] button) { margin:0; padding:0; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.crm-price-list td button:hover { text-decoration:underline; }
.crm-price-list [data-price-lines] { overflow:auto; min-height:0; }
.crm-price-list svg { fill:none; }

/* Daily price journal uses the accounting row palette and controls. */
.crm-price-list { color:var(--crm-palette-text,#cdcdcd); }
.crm-price-list > select { box-sizing:border-box; width:100%; min-height:var(--crm-menu-row-height,54px); margin:0; padding:12px 24px; border:0; border-radius:0; background:var(--crm-second-menu-background,#26282a); color:var(--crm-palette-text,#cdcdcd); font:400 16px system-ui; color-scheme:dark; }
.crm-price-list > [data-price-refresh] { border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.crm-price-list > [data-price-refresh]:hover { background:var(--crm-palette-selection,#383a3d); }

/* Wholesale preorder board: card mode shares the CRM canvas and palette. */
.distribution-preorders[data-view="cards"] { display:flex; align-items:stretch; gap:16px; width:max-content; min-width:100%; padding:8px 20px 20px; box-sizing:border-box; }
.distribution-preorders[data-view="cards"] .distribution-preorder-column { display:flex; flex-direction:column; flex:0 0 280px; width:280px; border-radius:12px; background:transparent; }
.distribution-preorder-column > h2 { margin:0; padding:8px 16px 20px; display:flex; align-items:center; justify-content:center; gap:8px; font:400 14px system-ui, sans-serif; color:var(--crm-palette-muted, #bbb); text-align:center; }
.distribution-preorder-count { display:none; }
.distribution-preorder-hint { display:none; }
.distribution-preorder-cards { display:flex; flex-direction:column; gap:12px; padding:0 12px 12px; flex:1; min-height:180px; }
.distribution-preorders[data-view="cards"] .distribution-preorder-card { background:var(--crm-footer-background,#29292d); border:1px solid var(--crm-divider-color,#454549); border-radius:10px; cursor:grab; overflow:hidden; }
.distribution-preorders[data-view="cards"] .distribution-preorder-row { width:100%; min-height:0; border:0; border-radius:0; background:transparent; padding:16px; gap:8px; }
.distribution-preorders[data-view="cards"] .distribution-preorder-logo { width:calc(100px / 1.5); height:calc(52px / 1.5); }
.distribution-preorder-stage { display:block; box-sizing:border-box; width:100%; border:0; border-top:1px solid var(--crm-divider-color,#454549); border-radius:0; padding:10px; background:transparent; color:inherit; font:400 12px system-ui; cursor:pointer; }
.distribution-preorder-stage option { background:#232326; color:#cdcdcd; }
.distribution-preorder-card.is-dragging { opacity:.45; }
.distribution-preorder-column.is-drop-target { outline:2px solid var(--crm-palette-lime,#d6fa55); outline-offset:-2px; }
.distribution-preorder-stage:focus-visible { outline:2px solid var(--crm-palette-lime,#d6fa55); outline-offset:-2px; }
.distribution-preorders[data-view="list"] :is(.distribution-preorder-column,.distribution-preorder-cards,.distribution-preorder-card) { display:contents; }
.distribution-preorders[data-view="list"] :is(.distribution-preorder-column > h2,.distribution-preorder-hint,.distribution-preorder-stage) { display:none; }
.distribution-preorders > [data-preorder-error] { max-width:280px; color:var(--crm-palette-text,#cdcdcd); }

.distribution-preorders[data-view="cards"] .distribution-preorders-empty { display:none; }
.distribution-preorders[data-view="cards"] { height:calc(100dvh - 48px); }
.distribution-preorders[data-view="cards"] .distribution-preorder-column { min-height:0; border:0; }
.distribution-preorders[data-view="cards"] .distribution-preorder-cards { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.distribution-preorders[data-view="cards"] .distribution-preorder-card { flex-shrink:0; }
.distribution-preorders[data-view="list"] .distribution-preorder-card > .crm-select-trigger { display:none; }

/* Switch column content immediately without motion. */
#kanbanBoard .kanban-column {
  transition: border-color .18s ease, background .18s ease;
}
@media (prefers-reduced-motion: reduce) {
  #kanbanBoard .kanban-column{ transition: none; }
}

/* Compact preorder cards retain full data in the list and order details. */
.distribution-preorders[data-view="cards"] .distribution-preorder-row > span:is(:nth-of-type(3), :nth-of-type(4), :nth-of-type(6)),
.distribution-preorders[data-view="cards"] .distribution-preorder-card > :is(.distribution-preorder-stage, .crm-select-trigger) { display:none; }

/* Logos belong to the draggable preorder card, never to a separate image drag. */
.distribution-preorder-card .distribution-preorder-logo { -webkit-user-drag:none; user-select:none; }

/* Purchase layout tools are available only while the eye is enabled. */
body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .crm-purchases-toolbar:not([data-preview-open="true"]) :is(#crmContentPreviewMenus, #crmPurchaseRightColumn, #crm-two-columns-toggle, #crmPurchaseQuickFill, [data-purchase-control="open-statistics"]) { display: none !important; }
body.is-crm-view-active:has(.crm-purchases-page:not(.is-hidden)) .crm-purchases-toolbar:not([data-preview-open="true"]) > #crmContentPreviewToggle { margin-inline-start: auto; }

/* Original menu icon rotated; placeholder has no action. */
#crmPurchaseRightColumn[hidden] { display: none !important; }
#crmPurchaseRightColumn svg { transform: none; }

.product-presentation-controls { display:flex; gap:8px; flex-wrap:wrap; margin-block:12px; }
.product-presentation-slides { display:grid; gap:0; }
#productPresentationContent { padding:0; }
#productPresentationPanel .product-presentation-slides { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.product-presentation-slides figure { position:relative; margin:0; min-width:0; align-self:start; }
.product-presentation-slides img { display:block; width:100%; height:auto; }
.presentation-slide-open { display:block; width:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
.product-presentation-controls .button { background:transparent; color:inherit; border:1px solid #343639; box-shadow:none; transform:none; font:inherit; }
.product-presentation-controls .button:hover { background:#2c2e30; border-color:#505255; }
.product-presentation-slides .presentation-slide-actions {
  position:absolute; inset-inline:0; bottom:0; z-index:1;
  display:flex; flex-wrap:nowrap; gap:0; margin:0; padding:4px;
  background:#000; color:#fff; opacity:0; pointer-events:none;
}
.product-presentation-slides figure:is(:hover, :focus-within) .presentation-slide-actions { opacity:1; pointer-events:auto; }
.product-presentation-slides .presentation-slide-actions .button {
  flex:1; min-width:0; margin:0; padding:8px 4px; border:0; border-radius:0;
  background:transparent; color:inherit; box-shadow:none; font:400 13px system-ui;
}
.product-presentation-slides .presentation-slide-actions .button:is(:hover, :focus-visible) { background:#2c2e30; outline:none; }
.product-presentation-slides .presentation-slide-actions .button:disabled { opacity:.4; }
[data-presentation-product] > [role=status]:empty { display:none; }
@media (hover:none) { .product-presentation-slides .presentation-slide-actions { opacity:1; pointer-events:auto; } }
html:not(.crm-content-embedded) #productPresentationPanel { display:none; }

/* Shared wholesale Chat availability setting. */
#crmWholesaleChat:not([hidden]) { flex:1; min-width:0; overflow:auto; background:var(--crm-palette-workspace); color:var(--crm-palette-text); font:400 14px system-ui; }
#crmWholesaleChat > header { min-height:calc(2 * var(--crm-navigation-row-height,55px)); display:flex; align-items:center; padding:0 24px; border-bottom:1px solid var(--crm-divider-color); }
#crmWholesaleChat h2 { margin:0; font:500 20px system-ui; }
#crmWholesaleChat form { max-width:860px; padding:24px; }
#crmWholesaleChat .crm-chat-enabled-row { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:var(--crm-menu-row-height,55px); border-bottom:1px solid var(--crm-divider-color); }
#crmWholesaleChat input { width:18px; height:18px; accent-color:var(--crm-palette-lime); }
#crmWholesaleChat > [role="status"] { padding:0 24px; }
#crmWholesaleChat > [role="status"]:empty { display:none; }
#crmWholesaleChat .crm-chat-state { color:var(--crm-palette-muted); margin:20px 0; }

.crm-dealer-applications [data-application-approve] { white-space:nowrap; }

.crm-dealer-applications :is(th, td):nth-child(2) { min-width:180px; }
.crm-dealer-applications :is(th, td):nth-child(3) { min-width:150px; }

/* Dealer actions share the existing toolbar hit areas and original Iconsax pairs. */
.crm-dealer-management-tools { display:inline-flex;align-items:center;gap:0; }
.crm-dealer-management-tools[hidden],body:not(:has(.crm-wholesale-dealer-card-open:not(.is-hidden))) .crm-dealer-management-tools { display:none!important; }
.crm-dealer-management-tools > button { width:44px;height:var(--crm-rail-icon-size,25.3px);display:grid;place-items:center;padding:0; }
.crm-dealer-management-tools button > svg[data-iconsax] { width:22px;height:22px;flex:none; }
.crm-dealer-management-tools [aria-disabled="true"] { cursor:default; }
.crm-dealer-management-tools svg > .crm-iconsax-bold { display:none; }
.crm-dealer-management-tools :is(button:hover,button[aria-pressed="true"]) svg > .crm-iconsax-linear { display:none; }
.crm-dealer-management-tools :is(button:hover,button[aria-pressed="true"]) svg > .crm-iconsax-bold { display:inline; }

body.is-crm-view-active .topbar > .crm-dealer-management-tools { position:absolute;inset-inline-end:114px;top:50%;transform:translateY(-50%); }

/* Brand preorder summary; original Iconsax chart-square follows adjacent controls. */
.crm-preorder-summary-divider{width:1px;height:24px;flex:none;background:var(--crm-palette-divider,#383a3d);}
.crm-preorder-view-icons button[data-preorder-view="summary"]{color:inherit;}
.crm-preorder-view-icons button[data-preorder-view="summary"] svg{width:var(--crm-navigation-icon-size,21px);height:var(--crm-navigation-icon-size,21px);stroke:none;}
html:root body .crm-preorder-view-icons button[data-preorder-view="summary"] [data-summary-icon="linear"] [stroke-width]{stroke-width:1.7!important;}
.crm-preorder-view-icons [data-summary-icon="bold"]{display:none;}
.crm-preorder-view-icons button[data-preorder-view="summary"]:is(:hover,:focus-visible,[aria-pressed="true"]){color:#fff;}
.crm-preorder-view-icons button[data-preorder-view="summary"]:is(:hover,:focus-visible,[aria-pressed="true"]) [data-summary-icon="linear"]{display:none;}
.crm-preorder-view-icons button[data-preorder-view="summary"]:is(:hover,:focus-visible,[aria-pressed="true"]) [data-summary-icon="bold"]{display:block;}
.distribution-preorders[hidden],.distribution-preorder-summary[hidden]{display:none!important;}
.distribution-preorder-summary{box-sizing:border-box;padding:28px;color:var(--crm-palette-text,#cdcdcd);font:400 14px/1.5 system-ui;max-width:1160px;}
.distribution-preorder-summary header{display:flex;align-items:center;gap:24px;flex-wrap:wrap;min-height:56px;border-bottom:1px solid var(--crm-palette-divider,#383a3d);}
.distribution-preorder-summary h2{font:400 18px/1.4 system-ui;margin:0 auto 0 0;}
.distribution-preorder-summary header label{display:flex;align-items:center;gap:12px;}
.distribution-preorder-summary :is(select,textarea){font:inherit;color:inherit;background:transparent;border:0;border-radius:0;}
.distribution-preorder-summary select{padding:8px;}.distribution-preorder-summary option{background:var(--crm-palette-panel,#1c1d20);}
.distribution-preorder-summary dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:28px 0 12px;}
.distribution-preorder-summary dl>div{padding:16px 24px;border-right:1px solid var(--crm-palette-divider,#383a3d);}.distribution-preorder-summary dl>div:first-child{padding-left:0;}.distribution-preorder-summary dl>div:last-child{border-right:0;}
.distribution-preorder-summary dt,.distribution-preorder-summary [data-summary-note]{color:var(--crm-palette-muted,#afafaf);}
.distribution-preorder-summary dd{font-size:28px;line-height:1.4;margin:10px 0 0;overflow-wrap:anywhere;}
.distribution-preorder-summary .distribution-preorder-terms-label{display:block;margin:32px 0 8px;}
.distribution-preorder-summary textarea{box-sizing:border-box;display:block;resize:vertical;width:100%;min-height:200px;padding:16px;line-height:1.6;background:var(--crm-palette-panel,#1c1d20);}
.distribution-preorder-summary textarea:focus{outline:none;background:var(--crm-palette-selection,#383a3d);}
.distribution-preorder-summary textarea:focus::placeholder{color:transparent;}
.distribution-preorder-summary textarea::placeholder{color:var(--crm-palette-muted,#afafaf);}
.distribution-preorder-summary footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;min-height:56px;}
.distribution-preorder-summary button{font:inherit;color:var(--crm-palette-muted,#afafaf);background:transparent;border:0;padding:8px 12px;cursor:pointer;}
.distribution-preorder-summary button:hover{color:#fff;}.distribution-preorder-summary button:disabled{opacity:.45;cursor:default;}
.distribution-preorder-summary [data-summary-save]:not(:disabled){color:var(--crm-palette-lime,#d6fa55);}
.distribution-preorder-summary :is(button,select):focus-visible{outline:1px solid var(--crm-palette-lime,#d6fa55);outline-offset:2px;}
.distribution-preorder-summary [data-summary-status]{margin:0;color:var(--crm-palette-muted,#afafaf);}
@media(max-width:700px){.distribution-preorder-summary{padding:16px;}.distribution-preorder-summary header{gap:12px;}.distribution-preorder-summary dl{grid-template-columns:1fr;}.distribution-preorder-summary dl>div{padding:16px 0;border-right:0;border-bottom:1px solid var(--crm-palette-divider,#383a3d);}.distribution-preorder-summary dd{font-size:24px;}}

.distribution-preorder-summary textarea{border:0!important;box-shadow:none!important;}
.distribution-preorder-summary .distribution-preorder-terms-label{color:var(--crm-palette-text,#cdcdcd);}

/* Shared client/company mailing preference. */
.crm-mail-consent{font:400 14px system-ui,sans-serif;color:var(--crm-palette-text,#cdcdcd);margin-bottom:16px}
.crm-mail-consent label{font:inherit;color:inherit;display:flex;align-items:center;gap:12px;min-height:var(--crm-menu-row-height,40px);padding:0 16px;cursor:pointer}
.crm-mail-consent input[type=checkbox]{width:16px;height:16px;margin:revert;flex:none;accent-color:var(--crm-palette-lime,#d6fa55)}
.crm-mail-consent [role=status]{display:block;padding:0 16px;color:var(--crm-palette-muted,#afafaf)}
.crm-mail-consent [role=status]:empty{display:none}
.crm-mail-consent button{font:inherit;color:inherit;background:transparent;border:0;padding:8px 16px;cursor:pointer}

/* Shared counterparty directory: existing CRM row, divider, text and surface roles. */
.crm-counterparty-directory{display:flex;flex-direction:column;min-height:0;padding:0!important;overflow:hidden;background:var(--crm-palette-workspace,#18191c);color:var(--crm-palette-text,#cdcdcd);font:400 14px system-ui}
.crm-counterparty-directory[hidden]{display:none}
.crm-counterparty-list{flex:1;min-height:0;overflow:auto;scrollbar-width:none}
.crm-counterparty-list::-webkit-scrollbar{display:none}
.crm-counterparty-list table{width:100%;border-collapse:collapse;font:inherit}
.crm-counterparty-list th,.crm-counterparty-list td{padding:12px 16px;text-align:left;font-weight:400;border-bottom:1px solid var(--crm-divider-color,#383a3d)}
.crm-counterparty-list th{position:sticky;top:0;background:var(--crm-palette-workspace,#18191c);color:var(--crm-palette-muted,#afafaf)}
.crm-counterparty-list tr:hover{background:var(--crm-table-row-hover,#242528)}
.crm-counterparty-list tr.is-active{background:var(--crm-palette-selection,#383a3d)}
.crm-counterparty-list tr{cursor:pointer}
.crm-counterparty-list [role=status]{padding:0 16px;font-size:14px;color:var(--crm-palette-muted,#afafaf)}
.crm-counterparty-bottom,.crm-counterparty-editor footer{display:flex;align-items:center;justify-content:space-between;min-height:var(--crm-menu-row-height,40px);border-top:1px solid var(--crm-divider-color,#383a3d)}
.crm-counterparty-bottom>span{padding:0 16px}
.crm-counterparty-directory button{padding:12px 16px;color:inherit;background:none;border:0;font:inherit;cursor:pointer}
.crm-counterparty-directory button:hover{background:var(--crm-table-row-hover,#242528)}
.crm-counterparty-editor{flex:none;max-height:65%;overflow:auto;border-top:1px solid var(--crm-divider-color,#383a3d)}
.crm-counterparty-editor[hidden]{display:none}
.crm-counterparty-editor>label{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;padding-left:16px;border-bottom:1px solid var(--crm-divider-color,#383a3d)}
.crm-counterparty-editor input{width:100%;min-width:0;padding:12px 16px;border:0;background:transparent;color:inherit;font:inherit;outline-offset:-2px}
.crm-counterparty-editor input:focus{background:var(--crm-palette-selection,#383a3d)}
.crm-counterparty-editor fieldset{margin:0;padding:12px 0 0;border:0}
.crm-counterparty-editor legend{padding:0 16px;color:var(--crm-palette-muted,#afafaf)}
.crm-counterparty-manager{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--crm-divider-color,#383a3d)}
.crm-counterparty-editor button[type=submit]{color:var(--crm-palette-workspace,#18191c);background:var(--crm-palette-lime,#d6fa55)}
/* Keep icons hidden in expanded text menus, as on neighboring CRM columns. */
.crm-counterparties-menu .crm-accounting-items button>svg.crm-counterparty-icon-linear,
.crm-counterparties-menu .crm-accounting-items button>svg.crm-counterparty-icon-bold{display:none;width:24px;height:24px;flex:none}
.crm-counterparties-menu-collapsed .crm-counterparties-menu .crm-accounting-items button>svg.crm-counterparty-icon-linear{display:block}
.crm-counterparties-menu-collapsed .crm-counterparties-menu .crm-accounting-items button>svg.crm-counterparty-icon-bold{display:none}
.crm-counterparties-menu-collapsed .crm-counterparties-menu .crm-accounting-items button[aria-current=page]>svg.crm-counterparty-icon-linear,
.crm-counterparties-menu-collapsed .crm-counterparties-menu .crm-accounting-items button:hover>svg.crm-counterparty-icon-linear{display:none}
.crm-counterparties-menu-collapsed .crm-counterparties-menu .crm-accounting-items button[aria-current=page]>svg.crm-counterparty-icon-bold,
.crm-counterparties-menu-collapsed .crm-counterparties-menu .crm-accounting-items button:hover>svg.crm-counterparty-icon-bold{display:block}
@media(max-width:760px){.crm-counterparty-manager{grid-template-columns:1fr}.crm-counterparty-editor>label{grid-template-columns:120px minmax(0,1fr)}}
/* Marketing pilot: email navigation replaces the first visible menu column. */
body.is-crm-view-active #roomView #crmRetailMenu.is-marketing-menu[hidden] { display: none !important; }

/* Parent and child Marketing navigation occupy one shared column. */
.crm-marketing-workspace :is(.marketing-email-panel, .marketing-promocodes-panel, .marketing-basic-panel).is-marketing-root-menu:not(.is-hidden) { grid-template-columns: minmax(0, 1fr) !important; }
.crm-marketing-workspace .is-marketing-root-menu > .crm-marketing-second-menu,
.crm-marketing-workspace .discounts-modal-grid.is-marketing-root-menu > .discounts-modal-column:first-child { display: none !important; }
.crm-marketing-workspace .discounts-modal-grid.is-marketing-root-menu { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
.crm-marketing-workspace .marketing-basic-panel:not(.is-hidden) { display: grid; grid-template-columns: var(--crm-marketing-second-width, var(--crm-navigation-width, 220px)) minmax(0, 1fr); height: 100%; padding: 0; gap: 0; }

/* Every Marketing footer returns to the parent, including in icon-only mode. */
.crm-marketing-workspace .crm-marketing-second-toggle svg { transform: none !important; }
