:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #20242b;
  --muted: #68707c;
  --line: #dde1e7;
  --primary: #4a4f78;
  --primary-dark: #373b5d;
  --success: #287a57;
  --warning: #9a6814;
  --danger: #b33a3a;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.45; }
a { color: inherit; }
.topbar {
  min-height: 64px; padding: 10px max(20px, calc((100% - 1240px) / 2));
  background: #262a3f; color: #fff; display: flex; flex-direction: column;
  align-items: stretch; gap: 4px; position: sticky; top: 0; z-index: 10;
}
.topbar-main {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; width: 100%; min-width: 0;
}
.brand {
  min-width: 0; font-size: 1.35rem; font-weight: 750;
  text-decoration: none; letter-spacing: .02em; overflow-wrap: anywhere;
}
.topbar nav { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.topbar nav a { padding: 10px 12px; border-radius: 9px; text-decoration: none; }
.topbar nav a:hover { background: rgba(255,255,255,.12); }
.language-switch {
  display: flex; align-items: center; flex: 0 0 auto; margin-left: auto;
  gap: .3rem; white-space: nowrap;
}
.language-switch form { margin: 0; }
.language-switch button {
  border: 0; background: transparent; color: inherit; cursor: pointer;
  font: inherit; padding: .2rem;
}
.language-switch button.active { font-weight: 800; text-decoration: underline; }
.language-switch button:focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px; border-radius: 3px;
}
.page { width: min(1240px, 100%); margin: auto; padding: 28px 20px 64px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.45rem); }
h2 { margin: 0 0 16px; font-size: 1.22rem; }
.eyebrow { color: var(--muted); margin: 0 0 4px; font-weight: 650; text-transform: uppercase; font-size: .76rem; letter-spacing: .08em; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-weight: 500; }
.metric-grid, .section-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 30px; }
.metric, .section-card, .form-section, .filter-panel, .database-path, .empty-state {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  box-shadow: 0 3px 14px rgba(25, 31, 45, .04);
}
.metric { display: flex; flex-direction: column; gap: 5px; }
.metric strong { font-size: 1.65rem; }
.metric span, .section-card span { color: var(--muted); }
.section-card { display: flex; flex-direction: column; gap: 6px; min-height: 100px; text-decoration: none; }
a.section-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.section-card.disabled { opacity: .52; }
.button.disabled, .button:disabled { opacity: .55; cursor: not-allowed; }
.database-path code, .form-section code { overflow-wrap: anywhere; }
.button {
  min-height: 44px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.button:hover { border-color: var(--primary); }
.button.primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { background: #f1f2f5; }
.button.danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.button.small { min-height: 38px; padding: 7px 11px; font-size: .88rem; }
.filter-panel { display: flex; align-items: end; gap: 12px; margin-bottom: 18px; }
.filter-panel label { min-width: 170px; font-weight: 650; font-size: .9rem; }
.filter-panel .grow { flex: 1; }
input, select, textarea {
  width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 12px; border: 1px solid #cbd0d8;
  border-radius: 9px; background: #fff; color: var(--text); font: inherit;
}
textarea { resize: vertical; min-height: 92px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(74,79,120,.16); border-color: var(--primary); }
.responsive-table { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; background: #fafafa; }
tbody tr:last-child td { border-bottom: 0; }
.actions { display: flex; flex-direction: column; gap: 7px; min-width: 150px; }
.actions form { margin: 0; }
.actions .button { width: 100%; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.badge.success { color: #176242; background: #dff4ea; }
.badge.warning { color: #7d520d; background: #fff0cc; }
.badge.neutral { color: #565d68; background: #eceef1; }
.badge.error { color: #8b2430; background: #fbe3e6; }
.editor { display: grid; gap: 18px; }
.form-section { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { font-weight: 650; font-size: .92rem; }
.field-error { display: block; margin-top: 5px; color: var(--danger); font-size: .84rem; }
.check-field { min-height: 48px; display: flex; align-items: center; gap: 10px; font-weight: 650; }
.check-field input { width: 22px; height: 22px; min-height: 0; margin: 0; accent-color: var(--primary); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; position: sticky; bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.96); box-shadow: 0 5px 20px rgba(20,24,34,.12); }
.status-section p { margin: 7px 0; }
.intake-method-list { display: grid; gap: 16px; width: 100%; min-width: 0; }
.intake-method-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center; gap: 28px; width: 100%; min-width: 0; min-height: 156px;
}
.intake-method-copy { min-width: 0; }
.intake-method-copy h2 { margin-bottom: 8px; }
.intake-method-copy p { margin: 5px 0; overflow-wrap: anywhere; }
.intake-method-action { display: flex; align-items: center; min-width: 0; }
.intake-method-action .button { width: 100%; min-height: 46px; }
.intake-instructions { margin: 18px 0 24px; }
.intake-summary { display: grid; gap: 8px; margin: 8px 0; }
.intake-summary div { display: grid; grid-template-columns: minmax(135px, .8fr) 1fr; gap: 10px; }
.intake-summary dt { color: var(--muted); font-weight: 650; }
.intake-summary dd { margin: 0; overflow-wrap: anywhere; }
.intake-description {
  white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px;
  border-radius: 10px; background: #f7f8fa;
}
.intake-source { margin-top: 14px; }
.intake-source summary { cursor: pointer; font-weight: 650; }
.intake-source pre {
  max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  padding: 14px; border-radius: 10px; background: #f7f8fa;
}
.intake-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px; width: 100%; min-width: 0;
}
.intake-gallery figure {
  min-width: 0; max-width: 100%; margin: 0; overflow: hidden;
  padding: 10px; border: 1px solid var(--line); border-radius: 12px;
}
.intake-gallery figure.is-main { border-color: var(--success); }
.intake-gallery img {
  display: block; width: 100%; height: 220px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 10px; background: #f7f8fa;
}
.intake-gallery figcaption { display: grid; min-width: 0; gap: 7px; margin-top: 8px; }
.intake-filename {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.intake-main-badge { justify-self: start; max-width: 100%; white-space: normal; }
.intake-image-meta { color: var(--muted); overflow-wrap: anywhere; }
.intake-main-choice {
  display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer;
}
.intake-main-choice input { flex: 0 0 auto; width: 20px; min-height: 20px; margin: 0; }
.intake-main-choice span { min-width: 0; overflow-wrap: anywhere; }
.manual-product-form { display: grid; gap: 18px; min-width: 0; }
.manual-product-form input, .manual-product-form select,
.manual-product-form textarea { font-size: max(1rem, 16px); }
.manual-photo-picker input[type="file"] { min-height: 48px; padding: 10px; }
.manual-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 14px; min-width: 0; margin-top: 14px;
}
.manual-photo-card {
  display: grid; gap: 9px; min-width: 0; margin: 0; padding: 10px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff;
}
.manual-photo-card.is-main { border-color: var(--success); }
.manual-photo-card img {
  display: block; width: 100%; height: 190px; object-fit: contain;
  border-radius: 9px; background: #f7f8fa;
}
.manual-photo-card figcaption { display: grid; gap: 8px; min-width: 0; }
.manual-main-badge { justify-self: start; }
.manual-product-summary { margin-bottom: 0; }
.manual-product-actions .primary { min-height: 48px; }
.intake-structured-readonly {
  display: grid; gap: 8px; margin: 18px 0;
}
.intake-structured-readonly div { overflow-wrap: anywhere; }
.notice { margin-bottom: 18px; padding: 13px 16px; border-radius: 10px; background: #e5f4ec; color: #175e40; }
.notice-error { background: #fde8e8; color: #8f2525; }
.danger-zone { border-color: #e1aaaa; background: #fff9f9; }
.danger-zone h2 { color: #8f2525; }
.record-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.record-list li { display: grid; gap: 3px; padding: 12px; background: #f6f7f9; border-radius: 9px; }
.record-list span, .record-list small { color: var(--muted); overflow-wrap: anywhere; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.quick-filters .active { box-shadow: 0 0 0 2px var(--ink); }
.description-status, .creation-methods, .preview-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.content-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.content-tab { border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; text-decoration: none; }
.content-tab.active, .content-tab[aria-current="page"] { background: var(--text); color: var(--surface); font-weight: 700; }
.content-editor form { display: grid; gap: 12px; }
.inline-actions { position: static; box-shadow: none; padding: 0; border: 0; }
.media-upload { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 14px; padding: 16px; background: #f7f8fa; border-radius: 12px; }
.file-picker { position: relative; display: inline-flex; margin-top: 6px; }
.file-picker input {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0;
  margin: 0; opacity: 0; cursor: pointer;
}
.file-picker:focus-within .button {
  outline: 3px solid rgba(74,79,120,.22); outline-offset: 2px;
  border-color: var(--primary);
}
.file-picker-name {
  display: block; margin-top: 7px; color: var(--muted);
  font-size: .88rem; overflow-wrap: anywhere;
}
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.media-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fafafa; }
.media-card > img { width: 100%; height: 320px; object-fit: contain; display: block; background: #fafafa; }
.media-save-button { width: 100%; justify-content: center; }
.media-fields { display: grid; gap: 9px; padding: 14px; }
.media-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; padding: 0 14px 14px; }
.media-actions form, .media-actions .button { width: 100%; }
.version-list { display: grid; gap: 13px; }
.version-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.version-card time { display: block; margin-top: 8px; color: var(--muted); font-size: .86rem; }
.version-card p { white-space: pre-wrap; }
.customer-preview { width: min(760px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 30px rgba(20,24,34,.08); }
.customer-preview > section, .preview-header { padding: 20px; border-top: 1px solid var(--line); }
.preview-header h2 { margin: 0; font-size: 2rem; }
.description-text { min-width: 0; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.details-grid, .notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.details-grid div { display: grid; gap: 3px; padding: 12px; background: #f6f7f9; border-radius: 9px; }
.details-grid span { color: var(--muted); }
.demo-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px; background: #f6f7f9; }
.demo-buttons button { min-height: 42px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); }
.ai-panel form { display: grid; gap: 16px; }
.ai-result { display: grid; gap: 18px; }
.ai-result .description-text { padding: 18px; background: #f6f7f9; border-radius: 10px; }
.ai-metadata { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0; }
.ai-metadata div { padding: 12px; background: #f6f7f9; border-radius: 9px; }
.ai-metadata dt { color: var(--muted); font-size: .82rem; }
.ai-metadata dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-actions form { margin: 0; }
.confirm-panel { max-width: 720px; margin: 0 auto; }
.shop-page { display: grid; gap: 20px; }
.shop-hero {
  padding: clamp(22px, 5vw, 42px); border-radius: 20px;
  background: linear-gradient(135deg, #302f4f, #5b4f72); color: #fff;
}
.shop-hero .eyebrow { color: #ded8ec; }
.shop-hero p:last-child { max-width: 680px; margin: 12px 0 0; }
.shop-filters {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.shop-search, .offer-switch { grid-column: 1 / -1; }
.offer-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.offer-switch legend { width: 100%; margin-bottom: 6px; font-weight: 650; }
.offer-switch label { position: relative; }
.offer-switch input { position: absolute; opacity: 0; pointer-events: none; }
.offer-switch span {
  display: block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; cursor: pointer;
}
.offer-switch input:checked + span { color: #fff; background: var(--primary); border-color: var(--primary); }
.offer-switch input:focus + span { outline: 3px solid rgba(74,79,120,.16); }
.shop-price-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shop-filters label, .shop-filters legend { font-size: .9rem; font-weight: 650; }
.shop-filter-actions { display: flex; align-items: end; gap: 10px; }
.shop-summary { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.shop-card {
  min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 17px;
  display: flex; flex-direction: column;
  background: var(--surface); box-shadow: 0 5px 18px rgba(25,31,45,.05);
}
.shop-card h2 { margin-bottom: 0; font-size: 1.45rem; overflow-wrap: anywhere; }
.shop-offers { display: grid; gap: 10px; margin-top: 18px; }
.shop-offer-block { padding: 14px; border-radius: 12px; background: #f5f3f8; }
.shop-offer-block h3 { margin: 0 0 7px; font-size: .88rem; color: var(--muted); }
.shop-offer-block small { display: block; margin-top: 5px; color: var(--muted); }
.shop-offer-block ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.shop-offer-block li { display: flex; justify-content: space-between; gap: 12px; }
.shop-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.product-content-section { padding-inline: 20px; }
.product-detail-lines { display: grid; gap: 9px; margin: 0; }
.product-detail-lines div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.product-detail-lines dt { flex: 0 0 auto; color: var(--muted); font-weight: 650; }
.product-detail-lines dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.product-notes { display: grid; gap: 10px; }
.product-notes h2 { margin: 0; }
.product-order-action { display: flex; justify-content: center; padding: 8px 0; }
.product-order-action .button { min-width: min(100%, 280px); text-align: center; }
.shop-benefits {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.shop-benefit {
  padding: 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface);
}
.shop-benefit h2 { margin: 0 0 6px; font-size: 1rem; }
.shop-benefit p { margin: 0; color: var(--muted); }
.customer-footer {
  display: grid; gap: 10px; justify-items: center;
  padding: 24px max(12px, 4vw); border-top: 1px solid var(--line);
  color: var(--muted); text-align: center;
}
.customer-footer-brand { color: var(--text); }
.customer-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.customer-footer-nav > * + *::before { content: "·"; margin-right: 10px; color: var(--muted); }
.customer-footer-copyright { margin: 0; }
.shop-details { display: grid; gap: 8px; margin: 16px 0 0; }
.shop-details div { padding-top: 8px; border-top: 1px solid var(--line); }
.shop-details dt { color: var(--muted); font-size: .78rem; }
.shop-details dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.shop-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; }
.shop-details-link {
  min-height: 44px; max-width: 100%; margin-top: 20px; padding: 8px 12px;
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-end;
  border: 1px solid var(--line); border-radius: 10px; color: var(--primary);
  background: transparent; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.shop-details-link:hover { border-color: var(--primary); background: rgba(74,79,120,.06); }
.shop-details-link:focus-visible { outline: 3px solid rgba(74,79,120,.16); outline-offset: 2px; }
.shop-details-link::after { content: "\2192"; margin-left: .35rem; }
.shop-product-page { max-width: 860px; margin: 0 auto; }
.product-gallery { display: grid; gap: 10px; min-width: 0; }
.product-gallery-active {
  display: block; width: 100%; height: min(68vh, 640px); object-fit: contain;
  border-radius: 16px; background: var(--surface);
}
.product-gallery-thumbnails {
  display: flex; gap: 9px; max-width: 100%; overflow-x: auto;
  padding: 2px 2px 8px; scrollbar-gutter: stable;
}
.product-gallery-thumbnail {
  flex: 0 0 82px; width: 82px; height: 82px; padding: 3px;
  border: 2px solid transparent; border-radius: 10px; background: var(--surface);
  cursor: pointer;
}
.product-gallery-thumbnail img {
  display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px;
}
.product-gallery-thumbnail:hover { border-color: var(--line); }
.product-gallery-thumbnail:focus-visible { outline: 3px solid rgba(74,79,120,.25); outline-offset: 2px; }
.product-gallery-thumbnail.is-active { border-color: var(--primary); }
.shop-quote-panel, .shop-quote-result {
  padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.shop-quote-panel { display: grid; gap: 16px; }
.shop-quote-heading { margin: 0; }
.order-product-summary { display: grid; gap: 5px; }
.order-product-summary h2, .order-product-summary p { margin: 0; }
.order-offer-switch { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.order-offer-switch legend { width: 100%; }
.order-product-cost, .order-live-total { display: grid; gap: 4px; min-height: 28px; }
.order-live-error:empty { display: none; }
.order-container-options[hidden], [data-decant-fields][hidden], [data-bottle-fields][hidden] { display: none; }
.order-container-options { display: grid; gap: 8px; min-width: 0; }
.order-container-options h3 { margin: 0; font-size: .95rem; }
.order-container-list { display: grid; gap: 7px; min-width: 0; }
.order-container-option {
  display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer;
}
.order-container-option:has(input:checked) {
  border-color: var(--primary); background: #f5f3f8;
}
.order-container-option input {
  flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; margin: 0;
  accent-color: var(--primary);
}
.order-container-option span { min-width: 0; overflow-wrap: anywhere; }
.order-container-option:focus-within {
  outline: 3px solid rgba(74,79,120,.16); outline-offset: 1px;
}
.order-volume-options { display: flex; flex-wrap: wrap; gap: 7px; }
.order-volume-option {
  min-width: 48px; min-height: 36px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--text); font: inherit; cursor: pointer;
}
.order-volume-option:hover { border-color: var(--primary); }
.order-volume-option:focus-visible {
  outline: 3px solid rgba(74,79,120,.16); outline-offset: 1px;
}
.order-volume-option.is-active {
  border-color: var(--primary); background: var(--primary); color: #fff;
}
.order-submit:disabled { cursor: not-allowed; opacity: .55; }
.order-contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.order-submit { justify-self: center; min-width: min(100%, 280px); }
.order-back-link { justify-self: center; color: var(--muted); font-size: .9rem; }
.product-cart-navigation {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem 2rem; min-width: 0; max-width: 100%;
}
.product-cart-navigation a, .cart-catalog-link {
  color: var(--muted); font-size: .9rem; overflow-wrap: anywhere;
}
.shop-quote-option {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px;
  align-items: end; padding: 16px; border-radius: 12px; background: #f5f3f8;
}
.shop-quote-option h3, .shop-quote-option p, .shop-quote-option label { grid-column: 1 / -1; margin: 0; }
.shop-bottle-options { display: grid; gap: 10px; }
.shop-bottle-option { grid-template-columns: minmax(0, 1fr) auto; }
.shop-quote-result { overflow-wrap: anywhere; }
.shop-request-form { display: grid; gap: 18px; }

@media (max-width: 760px) {
  .topbar { gap: 5px; position: static; }
  .topbar-main { gap: 12px; }
  .topbar nav { width: 100%; flex-wrap: wrap; }
  .topbar nav a { white-space: nowrap; }
  .page { padding: 20px 12px 48px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-heading > div { min-width: 0; }
  .page-heading .eyebrow { max-width: min(100%, 340px); white-space: normal; overflow-wrap: anywhere; }
  .page-heading > .button { width: 100%; }
  .filter-panel { align-items: stretch; flex-direction: column; }
  .filter-panel label { width: 100%; min-width: 0; }
  .filter-panel .button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .intake-method-card {
    grid-template-columns: 1fr; align-items: stretch; gap: 18px; min-height: 0;
  }
  .intake-method-action, .intake-method-action .button { width: 100%; }
  .manual-photo-preview { grid-template-columns: 1fr; }
  .manual-product-actions .button { width: 100%; min-height: 48px; }
  .media-upload { grid-template-columns: 1fr; }
  .form-actions { position: static; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .responsive-table { border: 0; background: transparent; overflow: visible; }
  .responsive-table table, .responsive-table tbody { display: block; }
  .responsive-table thead { display: none; }
  .responsive-table tr {
    display: block; margin-bottom: 12px; padding: 10px 13px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 12px rgba(25,31,45,.04);
  }
  .responsive-table td {
    display: grid; grid-template-columns: minmax(105px, 40%) 1fr; gap: 10px; padding: 9px 0;
    border-bottom: 1px solid var(--line); overflow-wrap: anywhere;
  }
  .responsive-table td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; font-weight: 650; }
  .responsive-table td:last-child { border-bottom: 0; }
  .responsive-table .actions { display: grid; grid-template-columns: 1fr; min-width: 0; }
  .metric-grid, .section-grid { grid-template-columns: 1fr 1fr; }
  .demo-buttons { grid-template-columns: 1fr 1fr; }
  .ai-actions { flex-direction: column; }
  .ai-actions form, .ai-actions .button { width: 100%; }
  .shop-filters, .shop-price-fields, .shop-grid { grid-template-columns: 1fr; }
  .shop-search, .offer-switch, .shop-price-fields { grid-column: auto; }
  .shop-filter-actions { align-items: stretch; flex-direction: column; }
  .shop-filter-actions .button { width: 100%; }
  .shop-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .shop-pagination { flex-wrap: wrap; }
  .product-gallery-active { height: min(58vh, 480px); }
  .product-gallery-thumbnail { flex-basis: 68px; width: 68px; height: 68px; }
  .shop-benefits { grid-template-columns: 1fr; }
  .shop-quote-option, .shop-bottle-option { grid-template-columns: minmax(0, 1fr); }
  .shop-quote-option .button { width: 100%; }
  .order-contact-fields { grid-template-columns: 1fr; }
  .order-submit { width: 100%; }
}
@media (max-width: 420px) {
  .metric-grid, .section-grid { grid-template-columns: 1fr; }
}
/* Administrator authentication */
.auth-page { min-height: 100vh; background: var(--page-bg, #f5f3fa); }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.auth-card { width: min(100%, 28rem); padding: 2rem; border-radius: 1rem; background: #fff; box-shadow: 0 1rem 3rem rgba(40, 24, 70, .12); display: grid; gap: 1rem; }
.auth-card input { font-size: 16px; }
.auth-submit { width: 100%; }
.admin-session { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; padding: 0 1rem 1rem; }
.admin-session form { margin: 0; }
.customer-header-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: .75rem; min-width: 0; margin-left: auto;
}
.customer-header-actions .language-switch { margin-left: 0; }
.cart-navigation {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .5rem;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  color: inherit; background: transparent; font-size: .92rem; font-weight: 650;
  line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.cart-navigation:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.cart-navigation:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.cart-count {
  min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem;
  display: inline-grid; place-items: center; border-radius: 999px;
  background: rgba(255,255,255,.16); font-size: .76rem; font-weight: 750;
}
.cart-page-header { margin-bottom: .75rem; }
.cart-page-header h1 { margin: 0; font-size: clamp(1.45rem,4vw,2rem); }
.cart-items { display: grid; gap: .75rem; margin: .75rem 0 1rem; }
.cart-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 18px; }
.cart-item-image { width: 160px; height: 160px; max-width: 100%; object-fit: contain; border-radius: 10px; }
.cart-item-content { min-width: 0; max-width: 100%; display: grid; gap: .75rem; }
.cart-item-header { min-width: 0; }
.cart-item-header h2 { margin: 0; overflow-wrap: anywhere; word-break: normal; }
.cart-item-brand { margin-bottom: .2rem; text-transform: uppercase; }
.cart-item-notice { display: inline-flex; max-width: 100%; margin: .55rem 0 0; padding: .3rem .55rem; border-radius: 999px; background: #fff0cc; color: #7d520d; font-size: .8rem; line-height: 1.25; overflow-wrap: anywhere; }
.cart-item-settings { display: grid; grid-template-columns: minmax(130px,.7fr) minmax(170px,.8fr) minmax(220px,1.5fr); gap: .75rem; align-items: end; }
.cart-item-field { min-width: 0; display: grid; gap: .35rem; color: var(--muted); font-size: .86rem; font-weight: 650; }
.cart-item-field input, .cart-item-field select { width: 100%; min-width: 0; margin: 0; }
.cart-quantity-control { display: grid; grid-template-columns: 44px minmax(54px,80px) 44px; align-items: stretch; }
.cart-quantity-control button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: #f6f7f9; color: var(--text); font: inherit; font-size: 1.15rem; cursor: pointer; }
.cart-quantity-control button:first-child { border-radius: 9px 0 0 9px; }
.cart-quantity-control button:last-child { border-radius: 0 9px 9px 0; }
.cart-quantity-control button:disabled { cursor: not-allowed; opacity: .45; }
.cart-quantity-control input { min-height: 44px; border-radius: 0; text-align: center; }
.cart-item-compact { display: grid; gap: .25rem; padding: .75rem .9rem; border-radius: 12px; background: #f5f3f8; }
.cart-item-compact p { margin: 0; overflow-wrap: anywhere; }
.cart-item-multiplier { color: var(--muted); }
.cart-item-total { padding-top: .35rem; border-top: 1px solid var(--line); font-size: 1rem; font-weight: 750; }
.cart-item-actions, .cart-item-editor-actions {
  display: flex; align-items: center; justify-content: flex-end;
  flex-wrap: wrap; gap: .5rem;
}
.cart-item-editor { display: grid; gap: .65rem; min-width: 0; max-width: 100%; padding-top: .25rem; }
.cart-item-editor-error:empty { display: none; }
.cart-item-remove { justify-self: end; }
.cart-summary { display: grid; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cart-summary-copy h2, .cart-summary-copy p { margin: 0; }
.cart-summary-copy { display: grid; gap: .25rem; }
.cart-summary-primary-action { display: flex; justify-content: center; }
.cart-catalog-link { display: inline-block; margin-top: .75rem; }
.checkout-form { display: grid; gap: 1rem; }
.checkout-section { padding: 1.15rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.checkout-section h2 { margin-top: 0; }
.checkout-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.checkout-order { display: grid; gap: .7rem; margin-bottom: .7rem; }
.checkout-order-item { padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.checkout-order-item p { margin: .25rem 0 0; color: var(--muted); }
.checkout-order-total { font-weight: 750; }
.checkout-submit-section .button { margin-top: .5rem; }
.order-item-card { min-width: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.order-item-card:last-child { border-bottom: 0; padding-bottom: 0; }
.order-item-card h3 { overflow-wrap: anywhere; }
.customer-message-section { display: grid; gap: 14px; }
.customer-message-section h2 { margin-bottom: 0; }
.customer-message-controls {
  display: grid; grid-template-columns: minmax(120px,.45fr) minmax(220px,1fr);
  gap: 12px; align-items: end;
}
.customer-message-controls label, .customer-message-preview-label {
  min-width: 0; font-weight: 650; font-size: .9rem;
}
.customer-message-section textarea {
  min-height: 260px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.customer-message-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.customer-message-feedback { color: var(--muted); font-size: .9rem; }
.payment-credentials-page { display: grid; gap: 14px; }
.payment-credentials-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.payment-credentials-help { max-width: 760px; margin: -4px 0 2px; }
.payment-credential-form-section { width: min(680px,100%); padding: 16px; }
.payment-credential-form-section h2 { margin-bottom: 10px; }
.payment-credential-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 12px; }
.payment-credential-form label { min-width: 0; font-size: .88rem; font-weight: 650; }
.payment-credential-form input { min-height: 38px; margin-top: 3px; padding: 7px 9px; }
.payment-credential-placeholders { grid-column: 1 / -1; margin: -2px 0 0; font-size: .82rem; }
.payment-credential-form-actions {
  grid-column: 1 / -1; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.payment-credential-form-actions .checkbox { display: flex; align-items: center; gap: 7px; }
.payment-credential-form-actions .checkbox input { width: 18px; min-height: 18px; margin: 0; }
.payment-credential-saved { display: grid; gap: 8px; }
.payment-credential-saved h2 { margin: 4px 0 0; }
.payment-credential-list { display: grid; gap: 8px; min-width: 0; }
.payment-credential-card {
  min-width: 0; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface);
  box-shadow: 0 2px 9px rgba(25,31,45,.035);
}
.payment-credential-card-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 7px;
}
.payment-credential-card h3 { min-width: 0; margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.payment-credential-card .badge { flex: 0 0 auto; padding: 3px 8px; font-size: .76rem; }
.payment-credential-summary { margin: 5px 0 8px; color: var(--muted); overflow-wrap: anywhere; }
.payment-credential-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.payment-credential-actions form { margin: 0; }
.payment-credential-actions .button { min-height: 34px; padding: 5px 9px; font-size: .83rem; }
.payment-credential-reveal { display: grid; gap: 5px; margin-top: 9px; padding: 10px; border-radius: 9px; background: #f6f7f9; }
.payment-credential-reveal-row { display: grid; grid-template-columns: minmax(125px,.35fr) minmax(0,1fr); gap: 8px; }
.payment-credential-reveal-row dt { color: var(--muted); font-weight: 650; }
.payment-credential-reveal-row dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.payment-credential-reveal .button { justify-self: start; margin-top: 3px; }
.payment-credential-reveal-error, .payment-credential-unavailable { margin: 7px 0 0; }
@media (max-width: 640px) {
  .auth-card { padding: 1.25rem; }
  .admin-session { flex-wrap: wrap; }
  .customer-topbar { padding-inline: 12px; }
  .customer-topbar .topbar-main { gap: .5rem; }
  .customer-topbar .brand { font-size: 1.05rem; }
  .customer-header-actions { gap: .35rem; }
  .cart-navigation { padding: .28rem .42rem; font-size: .86rem; }
  .language-switch { gap: .15rem; }
  .cart-item { grid-template-columns: 1fr; }
  .cart-item-image { width: 130px; height: 130px; max-width: 100%; justify-self: center; }
  .cart-item-settings { grid-template-columns: 1fr; }
  .cart-quantity-control { grid-template-columns: 44px minmax(54px,1fr) 44px; }
  .cart-item-actions, .cart-item-editor-actions { align-items: stretch; }
  .cart-item-actions .button, .cart-item-editor-actions .button { max-width: 100%; }
  .product-cart-navigation > *, .cart-item, .cart-item-content, .cart-item-settings { min-width: 0; max-width: 100%; }
  .checkout-grid { grid-template-columns: 1fr; }
  .customer-message-controls { grid-template-columns: 1fr; }
  .customer-message-actions, .customer-message-actions .button { width: 100%; }
  .payment-credential-form { grid-template-columns: 1fr; }
  .payment-credential-form > *, .payment-credential-placeholders,
  .payment-credential-form-actions { grid-column: 1; }
  .payment-credential-actions { align-items: stretch; }
  .payment-credential-actions .button { max-width: 100%; white-space: normal; }
  .payment-credential-reveal-row { grid-template-columns: 1fr; gap: 1px; }
}
.topbar nav a.active,.topbar nav a[aria-current="page"] { background:rgba(255,255,255,.18); }
.notification-badge { display:inline-flex; min-width:1.4rem; height:1.4rem; align-items:center; justify-content:center; border-radius:999px; background:#a53535; color:#fff; font-size:.75rem; padding:0 .3rem; }
.notification-heading { margin-bottom:.85rem; }
.notification-heading p { margin:.2rem 0 0; }
.notification-toolbar,.notification-card-head,.notification-actions { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.notification-toolbar { flex-wrap:wrap; margin-bottom:1rem; }
.notification-filters { display:flex; flex-wrap:wrap; gap:.4rem; }
.notification-filters .active { background:var(--text); border-color:var(--text); color:var(--surface); }
.notification-read-all { margin-left:auto; }
.notification-list { display:grid; gap:.65rem; }
.notification-card { padding:14px 16px; border:1px solid var(--line); border-left:4px solid #8d8179; border-radius:12px; background:var(--surface); box-shadow:0 2px 9px rgba(25,31,45,.035); }
.notification-card.unread { background:#fffaf0; }
.notification-card.severity-warning { border-left-color:#bd7b10; }
.notification-card.severity-error,.notification-card.severity-critical { border-left-color:#a53535; }
.notification-card-head time { flex:0 0 auto; color:var(--muted); font-size:.82rem; }
.notification-badges,.notification-meta,.notification-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem .75rem; }
.notification-card .badge { padding:3px 8px; font-size:.76rem; }
.notification-severity { font-weight:700; }
.notification-meta { margin-top:.55rem; color:var(--muted); font-size:.84rem; }
.notification-message { margin:.55rem 0 0; font-weight:650; overflow-wrap:anywhere; }
.notification-technical { margin-top:.55rem; }
.notification-technical summary { cursor:pointer; color:var(--muted); font-size:.86rem; font-weight:650; }
.notification-details { display:grid; gap:.25rem; margin:.5rem 0 0; padding:.65rem .75rem; border-radius:9px; background:#f6f7f9; }
.notification-details div { display:grid; grid-template-columns:minmax(9rem,auto) 1fr; gap:.6rem; }
.notification-details dt { color:var(--muted); }
.notification-details dd { min-width:0; margin:0; overflow-wrap:anywhere; }
.notification-actions { justify-content:flex-start; margin-top:.65rem; }
.notification-actions form { margin:0; }
@media (max-width:640px) {
  .notification-card-head { align-items:flex-start; }
  .notification-card-head time { white-space:nowrap; }
  .notification-toolbar { align-items:flex-start; }
  .notification-read-all { max-width:100%; margin-left:auto; }
  .notification-details div { grid-template-columns:1fr; gap:0; }
}
