:root {
  --ink: #171412;
  --muted: #756d63;
  --line: #e9e1d6;
  --soft: #faf7f1;
  --paper: #fffdf9;
  --gold: #b88a36;
  --gold-dark: #83601f;
  --cream: #f2eadf;
  --black: #111111;
  --green: #2f7d53;
  --red: #b54739;
  --blue: #3867a8;
  --shadow: 0 18px 50px rgba(31, 25, 18, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.7), rgba(184, 138, 54, 0.34)),
    url("https://images.unsplash.com/photo-1592945403244-b3fbafd7f539?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.login-panel {
  width: min(440px, 100%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.93);
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--black);
  color: #f3cf89;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 138, 54, 0.13);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px 1fr;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 0 1fr;
}

.app-shell.sidebar-collapsed .sidebar {
  display: none;
}

.app-shell.sidebar-collapsed .main {
  grid-column: 1 / -1;
  width: 100%;
}

.app-shell.sidebar-collapsed .topbar {
  padding-left: 150px;
}

body[data-view="dashboard"] .app-shell.sidebar-collapsed .content {
  padding-top: 88px;
}

.desktop-menu-btn {
  position: fixed;
  left: 250px;
  top: 18px;
  z-index: 32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  min-height: 46px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: var(--black);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(23, 20, 18, 0.24);
  transition: left 180ms ease, transform 180ms ease;
}

.desktop-menu-btn span {
  font-size: 22px;
  line-height: 1;
}

.desktop-menu-btn:hover {
  transform: translateY(-2px);
}

.app-shell.sidebar-collapsed .desktop-menu-btn {
  left: 18px;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: #171412;
  color: #fff9ef;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand .brand-mark {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.sidebar-brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.sidebar-brand span,
.sidebar-card span {
  display: block;
  color: #c7bcae;
  font-size: 11px;
}

.nav-list {
  display: grid;
  gap: 3px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #efe7da;
  padding: 7px 9px;
  text-align: left;
  font-size: 14px;
  line-height: 1.15;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(242, 207, 137, 0.14);
  color: #fff;
}

.nav-customer-create {
  margin-bottom: 6px;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  color: #ead8ad;
}

.nav-icon {
  width: 20px;
  flex: 0 0 20px;
  text-align: center;
  font-size: 14px;
}

.sidebar-card {
  margin-top: auto;
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-card strong {
  font-size: 14px;
}

.sidebar-card .ghost-btn {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 13px;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 390px);
  gap: 20px;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(12px);
}

.search-box {
  position: relative;
  display: block;
}

.search-box span {
  position: absolute;
  left: 13px;
  top: 9px;
  color: var(--gold-dark);
  font-size: 10px;
  text-transform: uppercase;
}

.search-box input {
  padding-top: 25px;
}

.content {
  padding: 28px;
}

body[data-view="dashboard"] .topbar {
  display: none;
}

body[data-view="dashboard"] .content {
  padding-top: 26px;
}

.dashboard-hero {
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 28px;
  border-radius: 8px;
  color: #fffaf1;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.34), rgba(184, 138, 54, 0.2)),
    url("https://images.unsplash.com/photo-1594035910387-fea47794261f?auto=format&fit=crop&w=1600&q=85") center/cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-hero-actions-only {
  justify-content: flex-end;
}

.dashboard-hero-actions-only .btn-row {
  margin-left: auto;
}

.dashboard-hero h3 {
  max-width: 680px;
  font-size: 34px;
  line-height: 1.08;
}

.dashboard-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 12px 0 0;
  color: #f0e5d5;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.card,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(31, 25, 18, 0.05);
}

.panel {
  padding: 18px;
}

.panel-head,
.section-head,
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head {
  margin-bottom: 16px;
}

.onboarding-queue {
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.onboarding-queue-head,
.onboarding-counts,
.onboarding-address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.onboarding-queue-head h4 {
  margin: 3px 0 0;
  font-size: 18px;
}

.onboarding-counts {
  justify-content: flex-end;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.onboarding-counts span {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.onboarding-counts strong {
  color: var(--ink);
}

.onboarding-table {
  margin-top: 14px;
  box-shadow: none;
}

.onboarding-table table {
  min-width: 930px;
}

.onboarding-empty,
.onboarding-notice {
  margin: 12px 0 0;
}

.onboarding-notice {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  border-left: 3px solid var(--gold);
  padding: 10px 12px;
  background: var(--cream);
  color: var(--muted);
}

.chogan-onboarding-form input[readonly] {
  background: var(--cream);
  color: var(--muted);
}

.onboarding-address-head {
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.onboarding-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  line-height: 1.45;
}

.onboarding-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.form-error {
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.onboarding-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.onboarding-detail-grid > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  background: var(--paper);
}

.onboarding-detail-grid .wide {
  grid-column: 1 / -1;
}

.onboarding-detail-grid span:not(.badge) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.onboarding-detail-grid strong {
  overflow-wrap: anywhere;
}

.onboarding-detail-grid .onboarding-error {
  background: #fff4f2;
}

.onboarding-review-note {
  margin: 14px 0 0;
}

.onboarding-detail-actions {
  margin-top: 16px;
}

.registration-quote-required {
  max-width: 620px;
}

.registration-quote-list {
  display: grid;
  gap: 10px;
}

.registration-quote-list button {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.registration-quote-list button:hover {
  border-color: var(--gold);
  background: var(--cream);
}

.registration-quote-list button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.registration-quote-list button strong,
.registration-quote-list button small {
  display: block;
}

.registration-quote-list button small {
  margin-top: 4px;
  color: var(--muted);
}

.kpi {
  padding: 18px;
}

.kpi span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.kpi small {
  color: var(--green);
  font-weight: 800;
}

.chart {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 72px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: var(--cream);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--black), var(--gold));
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 9px 13px;
  font-weight: 800;
}

.primary-btn {
  background: var(--black);
  color: #fff8ed;
}

.secondary-btn {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.ghost-btn {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: inherit;
}

.danger-btn {
  border-color: rgba(181, 71, 57, 0.25);
  background: #fff4f2;
  color: var(--red);
}

.icon-btn {
  min-width: 40px;
  padding: 8px;
  border-color: var(--line);
  background: #fff;
}

.password-cell,
.password-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-cell code {
  min-width: 98px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  word-break: break-all;
}

.password-field input {
  flex: 1;
  min-width: 0;
}

.password-eye {
  min-width: 38px;
  width: 38px;
  height: 38px;
  padding: 0;
}

.eye-mark {
  position: relative;
  width: 19px;
  height: 12px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 999px 999px 999px 999px / 760px 760px 620px 620px;
}

.eye-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.whatsapp-list-layout {
  display: grid;
  gap: 16px;
}

.whatsapp-template-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.whatsapp-template-actions .secondary-btn {
  min-height: 34px;
  padding: 7px 11px;
  white-space: nowrap;
  font-size: 13px;
}

.whatsapp-table {
  min-width: 760px;
  table-layout: fixed;
}

.whatsapp-table th:nth-child(1),
.whatsapp-table td:nth-child(1) {
  width: 260px;
}

.whatsapp-table th:nth-child(2),
.whatsapp-table td:nth-child(2) {
  width: 250px;
}

.whatsapp-table th:first-child,
.whatsapp-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--paper);
}

.whatsapp-table th:first-child {
  z-index: 2;
}

.whatsapp-name-cell strong {
  display: block;
  font-size: 15px;
}

.email-copy {
  display: grid;
  gap: 7px;
  min-width: 180px;
}

.email-copy-link {
  width: fit-content;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.email-copy-link.copied {
  color: var(--green);
}

.email-copy-status {
  min-height: 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--cream);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge.green {
  background: #e8f4ee;
  color: var(--green);
}

.badge.red {
  background: #fff0ee;
  color: var(--red);
}

.badge.blue {
  background: #edf4ff;
  color: var(--blue);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 17, 0.42);
}

.modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
  box-shadow: var(--shadow);
}

.close-btn {
  position: sticky;
  top: 0;
  left: calc(100% - 44px);
  z-index: 5;
  margin-left: auto;
  margin-bottom: 8px;
  box-shadow: 0 8px 20px rgba(31, 25, 18, 0.14);
}

.cards-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.mini-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.mini-card .muted {
  overflow-wrap: anywhere;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 66px;
  overflow: hidden;
}

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.product-tabs button {
  min-height: 36px;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
}

.product-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-subtabs button {
  min-height: 34px;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.quote-input-panel textarea {
  min-height: 190px;
  resize: vertical;
}

.quote-search-box {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(184, 138, 54, 0.28);
  border-radius: 8px;
  background: #fffaf1;
}

.quote-search-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.quote-search-results {
  display: grid;
  gap: 10px;
}

.quote-search-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quote-search-card.selected {
  border-color: #c99b3b;
  box-shadow: inset 0 0 0 2px rgba(184, 138, 54, 0.16);
}

.quote-search-image {
  width: 108px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.quote-search-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quote-search-image span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--gold-dark);
  font-weight: 900;
}

.quote-search-card p {
  margin: 5px 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.quote-search-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.quote-code-block {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  overflow: hidden;
  border: 2px solid #111;
  border-radius: 8px;
  background: #111;
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.12);
}

.quote-code-block strong {
  padding: 8px 10px;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0;
}

.quote-code-block span {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-width: 38px;
  padding: 7px 9px;
  background: #f3cf72;
  color: #111;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.quote-code-block span.red {
  background: #ffe2df;
  color: #b44438;
}

.quote-code-block span.blue {
  background: #dceaff;
  color: #315f9d;
}

.quote-code-block span.green {
  background: #def2e8;
  color: #26734d;
}

.quote-code-block.small strong {
  font-size: 19px;
  padding: 7px 9px;
}

.quote-code-block.small span {
  min-width: 32px;
  font-size: 17px;
}

.quote-product-name {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.quote-search-card small {
  color: var(--gold-dark);
  font-weight: 900;
}

.quote-pick {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 46px;
  padding: 9px 12px;
  border: 2px solid #d8c69d;
  border-radius: 8px;
  background: #fffaf1;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.quote-pick input {
  width: 22px;
  height: 22px;
}

.quote-search-empty {
  padding: 12px;
  border: 1px dashed #d8c69d;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.compact-form {
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(100px, 0.55fr);
}

.quote-result-panel {
  display: grid;
  gap: 16px;
}

.quote-result-panel.locked {
  border-color: rgba(181, 71, 57, 0.34);
  background: #fff8f6;
}

.quote-locked-message {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(181, 71, 57, 0.32);
  border-radius: 8px;
  background: #fff0ed;
  color: var(--red);
  font-weight: 850;
}

.quote-locked-message span {
  color: var(--muted);
}

.quote-result-head {
  display: grid;
  gap: 12px;
}

.quote-result-head h3 {
  margin: 0;
}

.quote-total-summary {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fffaf1;
  border: 1px solid rgba(184, 138, 54, 0.32);
  box-sizing: border-box;
}

.quote-total-summary > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-total-summary > span:last-child {
  padding-top: 8px;
  border-top: 1px solid rgba(184, 138, 54, 0.24);
  color: #111;
}

.quote-total-summary strong {
  color: #111;
  font-size: 18px;
  white-space: nowrap;
}

#quoteTotal {
  font-size: 24px;
}

#quoteDiscountAmount {
  color: #17613b;
}

.saved-quote-discount {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-weight: 800;
}

.quote-table {
  display: grid;
  gap: 10px;
}

.quote-item-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(108px, 0.55fr) minmax(76px, 0.35fr) minmax(96px, 0.45fr) minmax(132px, 0.55fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quote-item-row.missing {
  border-color: #f1b8b1;
  background: #fff7f5;
}

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

.quote-line-product > div:last-of-type {
  display: grid;
  gap: 2px;
}

.quote-line-product > div:last-of-type span {
  color: var(--ink);
  font-weight: 900;
}

.quote-item-row small {
  color: var(--muted);
  font-weight: 700;
}

.quote-line-note {
  grid-column: 1 / -1;
}

.quote-item-row label {
  gap: 5px;
  font-size: 11px;
  text-transform: uppercase;
}

.quote-item-row input,
.quote-item-row select {
  min-height: 38px;
  padding: 8px 9px;
}

.quote-line-saving {
  display: grid;
  gap: 2px;
  align-self: stretch;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(52, 132, 91, 0.2);
  border-radius: 8px;
  background: #f0fbf4;
  color: #23734c;
  font-size: 15px;
  line-height: 1.15;
}

.quote-line-saving span,
.quote-line-saving small {
  color: #3f8761;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-line-saving strong {
  color: #145734;
  font-size: 18px;
  line-height: 1;
}

.quote-line-total {
  grid-column: 1 / -1;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--cream);
  text-align: left;
  font-size: 20px;
}

.quote-remove-btn {
  min-height: 38px;
  align-self: end;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.quote-line-total::before {
  content: "Zeilensumme: ";
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-internal-panel {
  padding: 10px 12px;
  border: 1px dashed rgba(184, 138, 54, 0.38);
  border-radius: 8px;
  background: #fff;
}

.quote-internal-panel summary {
  cursor: pointer;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-internal-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.quote-internal-line,
.quote-internal-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fffaf1;
}

.quote-internal-line span,
.quote-internal-total span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-internal-line small,
.quote-internal-total small {
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.quote-internal-total {
  background: #171412;
}

.quote-internal-total span,
.quote-internal-total small,
.quote-internal-total strong {
  color: #fffaf1;
}

.quote-internal-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quote-copy-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(184, 138, 54, 0.28);
  border-radius: 8px;
  background: #fffaf1;
}

.quote-copy-box textarea {
  min-height: 170px;
  background: #fff;
  font-weight: 700;
}

.saved-quotes-panel {
  margin-top: 18px;
}

.saved-quote-list {
  display: grid;
  gap: 10px;
}

.saved-quote-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.35fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.saved-quote-row > div {
  display: grid;
  gap: 3px;
}

.saved-quote-row span {
  color: var(--muted);
  font-weight: 750;
}

.saved-quote-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.saved-quote-detail {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.saved-quote-detail > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-prep-panel {
  border-color: rgba(57, 93, 163, 0.22);
  background: #f8fbff;
}

.brilhome-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid rgba(184, 138, 54, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf1, #f7fbf7);
}

.brilhome-hero h3 {
  margin: 0 0 6px;
  font-size: 28px;
}

.brilhome-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-weight: 700;
}

.brilhome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.brilhome-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.brilhome-image-btn {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f5ef;
  overflow: hidden;
  cursor: pointer;
}

.brilhome-image-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brilhome-card h3 {
  margin: 0;
  font-size: 22px;
}

.brilhome-card > strong {
  color: #111;
  font-size: 26px;
}

.brilhome-rating {
  width: fit-content;
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fffaf1;
  text-align: left;
  cursor: pointer;
}

.brilhome-rating .stars {
  font-size: 18px;
}

.brilhome-rating .muted {
  font-size: 13px;
  font-weight: 800;
}

.brilhome-rating:hover,
.brilhome-rating:focus-visible {
  outline: 2px solid rgba(245, 180, 0, 0.36);
}

.brilhome-card small {
  color: var(--gold-dark);
  font-weight: 900;
}

.brilhome-card p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.brilhome-card details {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.brilhome-card summary {
  cursor: pointer;
  color: #17130f;
  font-weight: 900;
}

.brilhome-count {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 12px;
}

.portal-summary {
  margin-bottom: 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.portal-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(360px, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 25, 18, 0.05);
}

.portal-card > .row-between {
  align-items: start;
  gap: 10px;
}

.portal-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.portal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.portal-meta span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--muted);
  font-weight: 800;
}

.portal-meta b {
  color: #17130f;
  font-size: 12px;
  text-transform: uppercase;
}

.portal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.portal-actions button {
  width: 100%;
}

.portal-actions button:nth-child(3) {
  grid-column: auto;
}

.portal-bot-banner {
  border-color: rgba(184, 138, 54, 0.36);
  background: linear-gradient(135deg, #fffdf8, #fff5e3);
}

.portal-bot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.portal-bot-grid span {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(184, 138, 54, 0.25);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
}

.portal-bot-grid b {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.portal-bot-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.portal-bot-flow span {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.portal-bot-latest {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.portal-bot-latest button {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.portal-bot-latest strong,
.portal-bot-latest span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-bot-latest span {
  color: var(--muted);
  font-weight: 800;
}

.portal-timeline {
  display: grid;
  gap: 10px;
}

.portal-timeline.mini {
  grid-column: 1 / -1;
  padding-top: 4px;
}

.contact-log-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact-log-line p {
  margin: 4px 0;
  color: #2d271f;
  font-weight: 700;
  line-height: 1.4;
}

.contact-log-line small {
  color: var(--muted);
  font-weight: 800;
}

.progress {
  height: 9px;
  border-radius: 999px;
  background: var(--cream);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--gold);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-grid.day {
  grid-template-columns: 1fr;
}

.calendar-grid.month .calendar-day {
  min-height: 104px;
}

.calendar-day {
  min-height: 112px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calendar-event {
  margin-top: 8px;
  padding: 6px;
  border-radius: 6px;
  background: var(--cream);
  font-size: 12px;
  font-weight: 700;
}

.assistant-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

.ai-output {
  white-space: pre-wrap;
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  line-height: 1.55;
}

.document-drop {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px dashed var(--gold);
  border-radius: 8px;
  background: #fffaf1;
}

.catalog-panel {
  overflow: hidden;
}

.catalog-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.catalog-page {
  position: relative;
  display: grid;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
}

.catalog-preview-btn {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.catalog-page img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.download-float {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.78);
  color: #fffaf1;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.catalog-page span {
  font-weight: 800;
}

.catalog-page small {
  color: var(--muted);
  font-weight: 700;
}

.product-thumb {
  width: 70px;
  height: 70px;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.product-thumb-btn {
  display: inline-grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
}

.product-thumb.empty {
  display: grid;
  place-items: center;
  background: var(--black);
  color: #f3cf89;
  font-weight: 900;
}

.finder-image {
  width: 100%;
  height: 210px;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search-results-panel {
  border-color: rgba(184, 138, 54, 0.38);
}

.product-result-card {
  align-content: start;
}

.stars {
  color: #f5b400;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(83, 58, 10, 0.2);
}

.stars-empty {
  color: #c99a3a;
  opacity: 0.72;
}

.rating-empty-label {
  display: inline-block;
  margin-top: 3px;
  font-weight: 700;
}

.readable-product-info .stars,
.readable-product-info strong .stars {
  color: #f5b400;
  font-size: 22px;
}

.readable-product-info strong .muted {
  color: #6f675f;
}

.review-open {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.product-rating-actions {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.product-review-action {
  padding: 8px 12px;
  white-space: nowrap;
}

.crm-rating-fieldset {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.crm-rating-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.crm-rating-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.crm-rating-choice span {
  display: block;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: #8a641c;
  font-weight: 800;
}

.crm-rating-choice input:checked + span {
  border-color: #b8872f;
  background: #fff3d8;
  color: #6f4c0d;
}

.product-review-details {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffdf9;
}

.product-review-items {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.product-review-items article {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.product-review-items article p {
  margin: 8px 0;
}

.inventory-control {
  display: grid;
  gap: 7px;
  min-width: 190px;
}

.inventory-control > div {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) 30px 52px 30px;
  gap: 5px;
  align-items: center;
}

.inventory-control button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d3b16e;
  border-radius: 8px;
  background: #fffaf0;
  color: #17130e;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

.inventory-control strong,
.inventory-control input {
  text-align: center;
  font-size: 17px;
}

.inventory-control input {
  width: 52px;
  height: 30px;
  padding: 3px;
  border: 1px solid #d3b16e;
  border-radius: 8px;
  font-weight: 900;
}

.inventory-control .inventory-save-btn {
  width: 100%;
  height: auto;
  padding: 9px 12px;
  background: #17130e;
  color: #fff;
  font-size: 14px;
}

.inventory-control small {
  color: #6f675f;
  font-weight: 800;
}

.inventory-control.inventory-readonly > div {
  grid-template-columns: minmax(105px, 1fr) 42px;
}

.inventory-readonly strong {
  padding: 5px 8px;
  border-radius: 8px;
  background: #fff3d9;
}

.product-inventory-detail {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffaf0;
}

.inventory-overview {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.6fr);
  gap: 20px;
  align-items: center;
  border: 2px solid #b8872f;
  background: linear-gradient(135deg, #fff8e8, #ffffff);
}

.inventory-overview h3 {
  margin: 2px 0 6px;
  font-size: 27px;
}

.inventory-overview-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(105px, 1fr));
  gap: 10px;
}

.inventory-overview-values span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #ead8b7;
  border-radius: 12px;
  background: #fff;
}

.inventory-overview-values strong {
  font-size: 25px;
}

.inventory-page-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.inventory-page-title h2 {
  margin: 3px 0 5px;
  font-size: clamp(30px, 4vw, 44px);
}

.card-inventory {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #d3b16e;
  border-radius: 12px;
  background: #fffaf0;
}

@media (max-width: 820px) {
  .inventory-page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .inventory-overview {
    grid-template-columns: 1fr;
  }

  .inventory-overview-values {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }
}

.review-open:hover .muted,
.review-open:focus-visible .muted {
  color: #8a651c;
  text-decoration: underline;
}

.review-lines {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-weight: 600;
}

.review-lines small {
  display: block;
  color: #342c24;
  line-height: 1.45;
  padding: 10px 12px;
  border: 1px solid rgba(184, 138, 54, 0.22);
  border-radius: 8px;
  background: #fffaf1;
}

.review-lines b {
  display: block;
  margin-bottom: 3px;
  color: #0f0e0c;
}

.review-lines em {
  display: block;
  margin-bottom: 6px;
  color: #7b7168;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.mini-stars {
  font-size: 13px;
}

.review-heading {
  display: block;
  color: #0f0e0c;
  font-size: 13px;
  font-weight: 900;
}

.review-more {
  display: grid;
  gap: 8px;
}

.review-more summary {
  width: fit-content;
  cursor: pointer;
  color: #8a651c;
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-more div {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.review-sort-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(184, 138, 54, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf1, #ffffff);
}

.review-sort-banner .stars {
  grid-row: span 2;
}

.review-sort-banner strong {
  color: #17130f;
  font-size: 15px;
}

.review-sort-banner small {
  color: var(--muted);
  font-weight: 700;
}

.review-list-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid rgba(184, 138, 54, 0.32);
  border-radius: 8px;
  background: #fffaf1;
}

.review-list-banner strong {
  display: block;
  color: #17130f;
  font-size: 18px;
}

.review-list-banner small {
  color: var(--muted);
  font-weight: 800;
}

.price-lines {
  display: grid;
  gap: 4px;
  min-width: 116px;
}

.price-lines span {
  display: block;
  white-space: nowrap;
  color: #15110d;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.savings-line {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(184, 138, 54, 0.3);
  border-radius: 8px;
  background: #fff;
}

.savings-line.compact {
  margin-top: 8px;
  padding: 8px 10px;
}

.savings-line span {
  color: #6f675f;
  font-size: 20px;
  font-weight: 800;
  white-space: normal;
}

.savings-line small {
  color: #8f857b;
  font-size: 18px;
  font-weight: 800;
}

.savings-line strong {
  color: #8a651c;
  font-size: 20px;
  font-weight: 800;
}

.savings-line.compact span {
  font-size: 12px;
}

.savings-line.compact small {
  font-size: 11px;
}

.savings-line.compact strong {
  font-size: 14px;
}

.mlm-command {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.mlm-chief {
  border-color: rgba(184, 138, 54, 0.35);
  background: linear-gradient(135deg, #fffdf8, #f8efe1);
}

.compact-grid {
  margin-top: 16px;
}

.bot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.workflow-steps span {
  display: grid;
  align-content: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(184, 138, 54, 0.28);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--black);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.28;
}

.bot-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
}

.email-bot-center {
  border-color: rgba(184, 138, 54, 0.32);
  background: #fffdf8;
}

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

.automation-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.automation-stats .kpi {
  min-width: 0;
  padding: 14px 16px;
}

.automation-stats .kpi strong {
  font-size: 24px;
}

.daily-email-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid rgba(184, 138, 54, 0.26);
  border-radius: 8px;
  background: #fffaf1;
}

.daily-email-strip h3,
.daily-email-strip p {
  margin: 0;
}

.daily-email-strip .muted {
  display: block;
  margin-top: 4px;
}

.daily-email-status {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(43, 123, 82, 0.18);
  border-radius: 8px;
  background: #effaf4;
  color: #2b7b52;
  font-weight: 850;
}

.warmup-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.warmup-pipeline span {
  display: grid;
  gap: 5px;
  min-height: 102px;
  padding: 10px;
  border: 1px solid rgba(184, 138, 54, 0.26);
  border-radius: 8px;
  background: #fff;
}

.warmup-pipeline b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #111;
  color: #f6d57d;
  font-size: 13px;
}

.warmup-pipeline strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.warmup-pipeline small {
  color: var(--muted);
  font-weight: 850;
}

.email-bot-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.email-bot-flow span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.email-bot-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.top-edit-draft {
  margin-top: 0;
  margin-bottom: 22px;
}

.email-bot-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.email-bot-card.focused {
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(143, 103, 37, 0.14);
  background: #fffaf1;
}

.email-bot-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.email-bot-card-head h3 {
  margin: 4px 0 0;
}

.email-bot-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.email-bot-steps span {
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.email-bot-steps b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #efe7d8;
  color: var(--gold-dark);
  font-size: 13px;
}

.email-bot-steps strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
}

.email-bot-steps small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.email-bot-steps span.done {
  border-color: rgba(47, 143, 91, 0.22);
  background: #f0fbf5;
}

.email-bot-steps span.done b {
  background: #2f8f5b;
  color: #fff;
}

.email-customer-directory {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.email-send-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  font-weight: 850;
}

.email-send-status i {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #9a9287;
  box-shadow: 0 0 0 4px rgba(154, 146, 135, 0.14);
  flex: 0 0 auto;
}

.email-send-status.green i {
  background: #2f8f5b;
  box-shadow: 0 0 0 4px rgba(47, 143, 91, 0.16);
}

.email-send-status.yellow i {
  background: #c4902f;
  box-shadow: 0 0 0 4px rgba(196, 144, 47, 0.17);
}

.email-send-status.red i {
  background: #c85045;
  box-shadow: 0 0 0 4px rgba(200, 80, 69, 0.14);
}

.email-send-status span {
  display: grid;
  gap: 2px;
}

.email-send-status small {
  color: var(--muted);
  font-size: 12px;
}

.customer-number-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3eadb;
  color: #8a6420;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.form-error {
  padding: 10px 12px;
  border: 1px solid rgba(181, 71, 57, 0.32);
  border-radius: 8px;
  background: #fff0ed;
  color: var(--red);
  font-weight: 850;
}

.confirm-check {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: fit-content;
  min-height: 34px;
  margin: 2px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  text-transform: none;
}

.confirm-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #b54739;
  flex: 0 0 auto;
}

.confirm-check span {
  color: var(--ink);
}

.email-bot-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.email-bot-meta.compact {
  margin: 0;
}

.email-bot-meta span {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
  color: var(--muted);
  font-weight: 800;
}

.email-bot-meta b {
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}

.email-draft-preview {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(184, 138, 54, 0.24);
  border-radius: 8px;
  background: #fffaf1;
}

.email-draft-title {
  display: grid;
  gap: 3px;
}

.email-draft-title span {
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.email-draft-preview p {
  max-height: 130px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
}

.email-bot-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, auto));
  gap: 8px;
  align-items: stretch;
}

.email-bot-actions button {
  min-height: 42px;
  padding: 9px 11px;
}

.email-bot-help {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(47, 143, 91, 0.18);
  border-radius: 8px;
  background: #f2fbf6;
  color: #2f704d;
  font-size: 13px;
  font-weight: 850;
}

.product-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
}

.product-detail-image {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.product-detail-image img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.product-detail-image small {
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.product-detail-image.reference {
  align-content: start;
  min-height: 360px;
}

.product-reference-caption {
  display: grid;
  gap: 2px;
  text-align: center;
}

.product-reference-caption strong {
  color: var(--ink);
  font-size: 13px;
}

.product-reference-note {
  margin: 0;
  padding: 11px 13px;
  border-left: 3px solid var(--gold);
  background: #fffaf1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.finder-reference-btn {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.readable-product-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.readable-product-info div {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.readable-product-info span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.readable-product-info strong {
  font-size: 17px;
  line-height: 1.25;
}

.readable-product-info .product-description {
  grid-column: 1 / -1;
}

.scent-dna {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #ead7b7;
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf1, #ffffff);
}

.scent-dna p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
}

.scent-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scent-chip-list span {
  padding: 7px 10px;
  border: 1px solid #e3c893;
  border-radius: 999px;
  background: #fff;
  color: #7a5411;
  font-size: 13px;
  font-weight: 900;
}

.scent-pyramid-list {
  display: grid;
  border-top: 1px solid #ead7b7;
  border-bottom: 1px solid #ead7b7;
}

.scent-pyramid-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 9px 4px;
  border-bottom: 1px solid #f0e5d1;
}

.scent-pyramid-row:last-child {
  border-bottom: 0;
}

.scent-pyramid-row strong {
  color: var(--gold-dark);
  font-size: 13px;
  text-transform: uppercase;
}

.scent-pyramid-row span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.scent-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.scent-visual-card {
  display: grid;
  grid-template-rows: 94px auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e4d3b5;
  border-radius: 8px;
  background: #fff;
}

.scent-visual-card.phase-top {
  border-top: 3px solid #c99731;
}

.scent-visual-card.phase-heart {
  border-top: 3px solid #9e4654;
}

.scent-visual-card.phase-base {
  border-top: 3px solid #23201c;
}

.scent-visual-image {
  display: block;
  width: 100%;
  height: 94px;
  background-image: var(--atlas-image);
  background-repeat: no-repeat;
  background-position: var(--atlas-x) var(--atlas-y);
  background-size: 600% 300%;
}

.scent-visual-card figcaption {
  display: grid;
  gap: 3px;
  align-content: start;
  padding: 9px 10px 10px;
}

.scent-visual-card strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.scent-visual-card small,
.scent-note-disclaimer {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.scent-visual-card small {
  text-transform: uppercase;
}

.scent-note-disclaimer {
  display: block;
  line-height: 1.45;
}

.catalog-detail {
  display: grid;
  gap: 16px;
}

.catalog-detail img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.price-list {
  display: grid;
  gap: 18px;
}

.price-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(184, 138, 54, 0.3);
  border-radius: 8px;
  background: #fffaf1;
}

.price-list-head span {
  color: #8a651c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.price-list-head strong {
  color: #17130f;
  font-size: 14px;
}

.price-list div {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.price-list span {
  color: var(--ink);
  font-weight: 600;
}

.price-list b {
  display: block;
  color: #0f0e0c;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.25;
}

.price-list small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}

.readonly-setting {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.readonly-setting span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.readonly-setting strong {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.check-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.lock-request-btn {
  border-color: #d8c69d;
  background: #fffaf1;
  color: var(--gold-dark);
}

.mobile-only {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 1080px) {
  .grid.four,
  .grid.three,
  .automation-stats,
  .bot-grid,
  .workflow-steps,
  .warmup-pipeline,
  .email-bot-flow,
  .email-bot-steps,
  .assistant-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .email-bot-actions {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .mlm-command {
    grid-template-columns: 1fr;
  }

  .quote-layout {
    grid-template-columns: 1fr;
  }

  .quote-item-row {
    grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(82px, auto)) auto;
  }

  .saved-quote-row {
    grid-template-columns: 1fr;
  }

  .saved-quote-actions {
    justify-content: flex-start;
  }

  .portal-card,
  .portal-meta,
  .portal-bot-grid,
  .portal-bot-flow,
  .daily-email-strip,
  .email-bot-meta,
  .email-bot-steps,
  .email-bot-actions,
  .portal-actions {
    grid-template-columns: 1fr;
  }

  .portal-actions button:nth-child(3) {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .desktop-menu-btn {
    display: none;
  }

  .topbar > div {
    display: none;
  }

  .topbar {
    display: block;
    padding: 14px 16px;
  }

  .app-shell.sidebar-collapsed .topbar {
    padding: 14px 16px;
  }

  body[data-view="dashboard"] .app-shell.sidebar-collapsed .content {
    padding-top: 16px;
  }

  .topbar .search-box {
    width: 100%;
    max-width: none;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed .sidebar {
    display: flex;
  }

  .app-shell.sidebar-collapsed .main {
    grid-column: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(290px, 86vw);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-brand {
    min-height: 42px;
  }

  .sidebar-close {
    margin-left: auto;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff9ef;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: rgba(17, 17, 17, 0.52);
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .mobile-crm-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px 10px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(250, 247, 241, 0.97);
    backdrop-filter: blur(12px);
  }

  .mobile-crm-title {
    min-width: 0;
    display: grid;
    gap: 1px;
  }

  .mobile-crm-title span {
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .mobile-crm-title strong {
    overflow: hidden;
    font-size: 17px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-btn {
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    border-color: var(--gold);
    background: var(--black);
    color: #fff;
    font-size: 22px;
    line-height: 1;
  }

  .topbar {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .search-box {
    grid-column: 1 / -1;
  }

  .content {
    padding: 16px;
  }

  .dashboard-hero {
    min-height: 330px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
  }

  .dashboard-hero h3 {
    font-size: 26px;
  }

  .grid.four,
  .grid.three,
  .grid.two,
  .automation-stats,
  .bot-grid,
  .workflow-steps,
  .email-bot-flow,
  .email-bot-meta,
  .daily-email-strip,
  .warmup-pipeline,
  .portal-bot-grid,
  .portal-bot-flow,
  .assistant-box,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .portal-bot-latest button {
    grid-template-columns: 1fr;
  }

  .onboarding-queue-head,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .onboarding-counts {
    justify-content: flex-start;
  }

  .onboarding-detail-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-detail-grid .wide {
    grid-column: auto;
  }

  .registration-quote-list button {
    grid-template-columns: 1fr;
  }

  .mobile-only {
    display: inline-flex;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .readable-product-info {
    grid-template-columns: 1fr;
  }

  .scent-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-item-row,
  .quote-search-card,
  .compact-form,
  .saved-quote-row {
    grid-template-columns: 1fr;
  }

  .quote-search-line {
    grid-template-columns: 1fr;
  }

  .quote-search-image {
    width: 100%;
    max-height: 190px;
  }

  .quote-search-top,
  .quote-line-product {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .quote-search-top {
    flex-direction: column;
  }

  .quote-pick {
    justify-content: flex-start;
  }

  .quote-line-total {
    text-align: left;
  }

  .quote-remove-btn {
    width: 100%;
  }
}
.server-pagination {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.server-pagination span {
  color: var(--muted);
  text-align: center;
}

.data-loading {
  padding: 10px 0;
}

.database-panel .database-stats,
.database-panel .import-grid {
  margin-top: 16px;
}

.database-panel .database-actions {
  align-items: center;
  margin-top: 16px;
}

.settings-fieldset {
  min-width: 0;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.settings-fieldset legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 850;
}

.settings-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.settings-legal-grid .full {
  grid-column: 1 / -1;
}

.settings-approval-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: var(--ink);
}

.settings-approval-check input {
  width: auto;
  margin-top: 2px;
}

.integration-status {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.integration-status > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.launch-readiness {
  border-left: 4px solid var(--red);
}

.launch-readiness.is-ready {
  border-left-color: var(--green);
}

.readiness-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.readiness-list > div {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.readiness-list span {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 680px) {
  .content {
    padding: 20px 16px;
  }

  .section-head .btn-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .section-head .btn-row button {
    width: 100%;
  }

  .customer-table,
  .onboarding-table {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-card-table,
  .onboarding-table .mobile-card-table {
    display: block;
    min-width: 0;
  }

  .mobile-card-table thead {
    display: none;
  }

  .mobile-card-table tbody {
    display: grid;
    gap: 14px;
  }

  .mobile-card-table tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 8px 24px rgba(31, 25, 18, 0.05);
  }

  .mobile-card-table td {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    overflow-wrap: anywhere;
  }

  .mobile-card-table td::before {
    content: attr(data-label);
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-card-table td.btn-row {
    display: grid;
  }

  .mobile-card-table td.btn-row button,
  .mobile-card-table td.btn-row a {
    width: 100%;
  }

  .server-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-legal-grid,
  .readiness-list {
    grid-template-columns: 1fr;
  }
}
