@import url("/ui/tokens.css?v=controls-1");
@import url("/ui/controls.css?v=1");
@import url("/ui/component-search.css?v=2");
@import url("/ui/combobox.css?v=controls-1");
header.public-header {
  border-bottom: 2px solid #cbc9c1;
}
.public-header .brand-lockup strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}
.public-header .header-links {
  font-weight: 700;
  font-size: 14px;
}
.public-main h1,
.public-main h2,
.public-main h3 {
  letter-spacing: -0.015em;
  font-weight: 750;
}
.public-main .hero h1 {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.1;
}
.public-main .hero h1 em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  color: var(--vx-black);
}
.public-main .eyebrow {
  letter-spacing: 0.04em;
  color: var(--vx-muted);
  font-size: 12px;
}
.public-main .card {
  border: 2px solid #dedcd5;
  border-radius: 10px;
}
.public-main .card .secondary,
.public-main .toolbar input,
.public-main .toolbar select,
.public-main .chips button {
  border-width: 2px;
  border-color: #cbc9c1;
}
.public-main .card h3 {
  font-size: 17px;
  font-weight: 750;
}
.public-main .trust-strip {
  border-top: 2px solid #d2d0c8;
  border-bottom: 2px solid #d2d0c8;
}
.public-main .hero-note {
  background: white;
  box-shadow: none;
  border-radius: 8px;
}
.whatsapp-qr {
  display: block;
  width: 280px;
  max-width: 100%;
  padding: 12px;
  margin: 20px 0;
  border: 2px solid var(--vx-border);
  border-radius: 10px;
  background: white;
}
.nav-open {
  overflow: hidden;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--vx-bg);
  color: var(--vx-text);
  font: 15px/1.55 var(--vx-font);
  font-variant-numeric: tabular-nums;
}
body:has(dialog[open]) {
  overflow: hidden;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  border: 1px solid var(--vx-black);
  background: var(--vx-black);
  color: white;
  padding: 9px 15px;
  min-height: 44px;
  border-radius: var(--vx-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  transition:
    background 0.16s,
    transform 0.16s;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
}
button.secondary,
.button.secondary {
  background: var(--vx-surface);
  color: var(--vx-text);
  border-color: var(--vx-border);
}
button.ghost {
  background: transparent;
  border-color: transparent;
  color: inherit;
}
button.danger {
  color: var(--vx-danger);
  background: var(--vx-danger-bg);
  border-color: #e6bbb6;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input,
select,
textarea {
  border: 1px solid var(--vx-border);
  padding: 9px 12px;
  min-height: 44px;
  border-radius: var(--vx-sm);
  background: white;
  max-width: 100%;
  width: 100%;
  color: var(--vx-text);
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--vx-black);
}
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vx-muted);
  margin: 4px 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(28px, 3vw, 42px);
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 18px;
}
p {
  overflow-wrap: anywhere;
}
img {
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--vx-gold);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--vx-muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--vx-gold);
  font-size: 11px;
  font-weight: 700;
}
.skip-link {
  position: fixed;
  top: -90px;
  left: 12px;
  z-index: 500;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-lockup img {
  width: 60px;
  height: 48px;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}
.brand-lockup strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.03em;
}
.brand-lockup small {
  display: block;
  color: var(--vx-muted);
  font-size: 11px;
}
.public-header,
.app-header {
  background: var(--vx-surface);
  border-bottom: 1px solid var(--vx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(24px, calc((100vw - 1280px) / 2));
  min-height: 78px;
}
.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 13px;
}
.header-links a {
  text-decoration: none;
}
.public-main {
  max-width: 1360px;
  margin: auto;
  padding: 0 40px;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 56px;
}
.hero h1 {
  font-size: clamp(42px, 5.5vw, 76px);
  max-width: 650px;
  line-height: 1.03;
  margin: 20px 0 24px;
  letter-spacing: -0.055em;
}
.hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--vx-gold);
}
.hero p {
  max-width: 465px;
  color: var(--vx-muted);
  font-size: 16px;
  line-height: 1.8;
}
.hero .button {
  margin-top: 16px;
}
.hero-visual {
  background: #ece9e1;
  border-radius: var(--vx-radius);
  position: relative;
  min-height: 380px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-visual img {
  width: 100%;
  height: 380px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.hero-note {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: #fffffff2;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 12px;
}
.trust-strip {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--vx-border);
  border-bottom: 1px solid var(--vx-border);
  padding: 18px 0;
  color: var(--vx-muted);
  font-size: 12px;
  gap: 16px;
}
.trust-strip strong {
  color: var(--vx-text);
  margin-right: 8px;
}
.public-main > section:not(.hero) {
  padding: 48px 0;
  scroll-margin-top: 80px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin: 8px 0 0;
  font-size: 34px;
}
.section-heading p {
  max-width: 320px;
  margin: 0;
  font-size: 13px;
  color: var(--vx-muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}
.card {
  position: relative;
  background: var(--vx-surface);
  border-radius: var(--vx-radius);
  overflow: hidden;
  min-width: 0;
}
.card .image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f0efec;
  display: block;
  transition: transform 0.25s;
}
.card:hover .image {
  transform: scale(1.025);
}
.card .content {
  padding: 18px;
}
.card h3 {
  font-size: 16px;
  margin: 9px 0;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.card .muted {
  font-size: 12px;
}
.card .grade {
  font-size: 12px;
  margin: 8px 0;
  color: var(--vx-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--vx-gold-soft);
  color: #715323;
  font-size: 11px;
  font-weight: 650;
  padding: 4px 9px;
  border-radius: 5px;
  line-height: 1.5;
}
.price {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-top: 14px;
}
.old-price {
  color: var(--vx-muted);
  font-size: 12px;
  text-decoration: line-through;
}
.card .secondary {
  width: 100%;
  margin-top: 14px;
  min-height: 40px;
  font-size: 12px;
  background: transparent;
}
.promo-card {
  border: 1px solid #d7c6a7;
}
.promo-card .offer-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--vx-black);
  color: white;
  z-index: 1;
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  border-radius: 4px;
}
.promo-card .content {
  background: #fbf8f1;
}
.toolbar,
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar {
  margin: 24px 0 12px;
}
.toolbar input {
  flex: 2;
  min-width: 200px;
}
.toolbar select {
  flex: 1;
  min-width: 150px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 4px 0 12px;
  scrollbar-width: thin;
}
.chips button {
  white-space: nowrap;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 24px;
  background: white;
  color: var(--vx-muted);
  border-color: var(--vx-border);
  min-height: 40px;
}
.chips button.active {
  background: var(--vx-black);
  color: white;
  border-color: var(--vx-black);
}
.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin: 8px 0 20px;
}
.pagination {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin: 32px 0 0;
}
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  overflow: auto;
  padding-bottom: 12px;
}
.feedback-card {
  position: relative;
  background: white;
  border: 1px solid var(--vx-border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.feedback-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #efeee9;
  cursor: zoom-in;
}
.feedback-media img {
  width: 100%;
  height: 310px;
  object-fit: contain;
  display: block;
}
.feedback-caption {
  padding: 15px;
  margin: 0;
  font-size: 13px;
}
.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #20201ee6;
  color: white;
}
.video-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: white;
  padding: 4px 8px;
  color: var(--vx-black);
  font-size: 10px;
  letter-spacing: 0.12em;
  border-radius: 4px;
}
footer {
  max-width: 1280px;
  margin: auto;
  padding: 30px 0 40px;
  border-top: 1px solid var(--vx-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--vx-muted);
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 28px;
  width: min(960px, calc(100% - 32px));
  max-height: 92dvh;
  overflow: auto;
  box-shadow: var(--vx-shadow);
  color: var(--vx-text);
}
dialog::backdrop {
  background: #151512bf;
}
dialog .close {
  position: static;
  float: none;
  min-height: 44px;
}
.product-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  clear: both;
  padding-top: 18px;
}
.detail-media {
  width: 100%;
  height: 460px;
  object-fit: contain;
  background: #f3f2ee;
  border-radius: 10px;
}
.gallery {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 12px 0;
}
.gallery button {
  padding: 3px;
  flex-shrink: 0;
  min-width: 64px;
  border: 1px solid var(--vx-border);
  background: white;
}
.gallery button[aria-current="true"] {
  border: 2px solid var(--vx-gold);
}
.gallery img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.detail-info h2 {
  font-size: 30px;
  line-height: 1.2;
}
.detail-info .description {
  white-space: pre-line;
  font-size: 13px;
  color: var(--vx-muted);
}
.detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-block: 1px solid var(--vx-border);
  padding: 18px 0;
  margin: 20px 0;
  font-size: 13px;
}
.detail-facts small {
  display: block;
  color: var(--vx-muted);
}
.lightbox-media {
  height: 75dvh;
  width: 100%;
  object-fit: contain;
  display: block;
  background: #181817;
}
.gallery-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
}
video {
  max-width: 100%;
}
/* Inline notices remain in the flow; temporary messages share one compact stack. */
.notice {
  background:var(--vx-success-bg);color:var(--vx-success);padding:14px 18px;border-radius:10px;
}
.notice.error {background:var(--vx-danger-bg);color:var(--vx-danger)}
.vx-toasts {
  position:fixed;top:auto;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));
  z-index:20000;display:flex;flex-direction:column;gap:8px;
  box-sizing:border-box;width:min(410px,calc(100vw - 24px));max-width:calc(100vw - 24px);
  max-height:min(60dvh,480px);overflow:auto;overscroll-behavior:contain;padding:3px;
  scrollbar-width:thin;outline-offset:1px;
}
.vx-desktop > .vx-toasts:not(.vx-toasts-in-modal) {bottom:calc(var(--vx-dock-space,88px) + 8px)}
.vx-toasts:focus-visible {outline:2px solid var(--vx-focus,#145a78);border-radius:14px}
/* The stack reserves only its measured height, so the last controls can scroll above it. */
body:has(> .vx-toasts:not(.vx-toasts-in-modal)) .public-main {padding-bottom:calc(48px + var(--vx-toast-stack-height,0px))}
.vx-toasts.vx-toasts-in-modal {
  position:sticky;top:auto;right:auto;bottom:12px;margin:12px 12px 12px auto;
  width:min(410px,calc(100% - 24px));max-height:min(45dvh,360px);
}
.vx-toast {
  --vx-toast-surface:rgba(239,244,248,.94);--vx-toast-ink:#202a33;--vx-toast-hover:rgba(61,75,89,.11);
  display:grid;grid-template-columns:24px minmax(0,1fr) 44px;align-items:center;gap:10px;
  box-sizing:border-box;width:100%;min-width:0;padding:7px 7px 7px 12px;border:0;border-radius:14px;
  background:var(--vx-toast-surface);color:var(--vx-toast-ink);box-shadow:0 4px 20px rgba(20,31,44,.16);
  font-size:14px;font-weight:500;line-height:1.45;
}
html[data-theme=dark] .vx-toast {--vx-toast-surface:rgba(39,40,50,.95);--vx-toast-ink:#f3f4f7;--vx-toast-hover:rgba(220,225,235,.12);box-shadow:0 4px 20px rgba(0,0,0,.28)}
.vx-toast-icon {display:grid;place-items:center;align-self:start;margin-top:10px;width:24px;height:24px;border-radius:50%;font-size:14px;font-weight:750;line-height:1}
.vx-toast-icon svg {display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.vx-toast[data-kind=success] .vx-toast-icon {color:#175d3a;background:rgba(38,128,79,.13)}
.vx-toast[data-kind=info] .vx-toast-icon {color:#205b83;background:rgba(47,112,159,.13)}
.vx-toast[data-kind=warning] .vx-toast-icon {color:#5d4185;background:rgba(112,78,162,.14)}
.vx-toast[data-kind=error] .vx-toast-icon {color:#9d2632;background:rgba(166,47,57,.13)}
html[data-theme=dark] .vx-toast[data-kind=success] .vx-toast-icon {color:#a8e3bd;background:rgba(93,184,126,.17)}
html[data-theme=dark] .vx-toast[data-kind=info] .vx-toast-icon {color:#afd9f4;background:rgba(93,154,200,.18)}
html[data-theme=dark] .vx-toast[data-kind=warning] .vx-toast-icon {color:#d9c6fa;background:rgba(168,128,221,.19)}
html[data-theme=dark] .vx-toast[data-kind=error] .vx-toast-icon {color:#ffbec1;background:rgba(213,98,111,.19)}
.vx-toast-content {min-width:0;max-height:min(42dvh,300px);overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap;padding:7px 0}
.vx-toast-content:focus-visible {outline:2px solid var(--vx-focus,#145a78);outline-offset:2px;border-radius:4px}
.vx-toast-sr {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.vx-toast > button.vx-toast-close {
  display:grid;place-items:center;align-self:start;box-sizing:border-box;flex:none;
  width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;max-height:44px;
  padding:0;margin:0;border:0;border-radius:10px;background:transparent;color:inherit;box-shadow:none;
  font:400 24px/1 Arial,sans-serif;cursor:pointer;filter:none;
}
.vx-toast > button.vx-toast-close:hover {background:var(--vx-toast-hover);color:inherit;filter:none}
.vx-toast > button.vx-toast-close:focus-visible {outline:2px solid var(--vx-focus,#145a78);outline-offset:1px}
@supports ((backdrop-filter:blur(6px)) or (-webkit-backdrop-filter:blur(6px))) {
  .vx-toasts > .vx-toast:nth-child(-n+2) {-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
}
@media (forced-colors:active) {
  .vx-toast {background:Canvas;color:CanvasText;border:1px solid CanvasText;backdrop-filter:none}
  .vx-toast-icon {background:Canvas!important;color:CanvasText!important;border:1px solid CanvasText}
}
.empty-state {
  padding: 44px 24px;
  border: 1px dashed var(--vx-border);
  border-radius: 12px;
  text-align: center;
  grid-column: 1/-1;
  color: var(--vx-muted);
  background: white;
}
.empty-state h3 {
  color: var(--vx-text);
}
.skeleton {
  min-height: 240px;
  background: linear-gradient(100deg, #eeece7 20%, #f9f8f5 50%, #eeece7 80%);
  background-size: 200% 100%;
  animation: skeleton 1.4s infinite;
  border-radius: 12px;
}
@keyframes skeleton {
  to {
    background-position: -200% 0;
  }
}
.app-header {
  padding: 8px 24px;
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
}
.app-header .brand-lockup img { width: 48px; height: 40px; }
.app-header .actions:last-child { font-size: 12px; gap: 18px; }
.app-header .actions:last-child > a { text-decoration: none; color: var(--vx-muted); }
.app-header #user { padding-right: 18px; border-right: 1px solid var(--vx-border); }
.app-header #logout { min-height: 36px; padding: 6px 12px; }
.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100dvh - 64px);
}
aside {
  background: var(--vx-black);
  color: #e5e3dc;
  padding: 16px 10px 24px;
  position: sticky;
  top: 64px;
  height: calc(100dvh - 64px);
  overflow: auto;
  scrollbar-width: thin;
}
aside button {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  border: 0;
  color: #c8c7c0;
  font-size: 13px;
  min-height: 36px;
  padding: 7px 12px;
  margin: 1px 0;
  font-weight: 500;
}
aside button.active {
  background: #f1e6ce;
  color: #29271f;
  box-shadow: inset 3px 0 #b58b45;
  font-weight: 650;
}
aside .eyebrow {
  color: #a9a598;
  margin: 0 12px 6px;
  font-size: 10px;
}
aside .nav-group + .nav-group { margin-top: 20px; }
aside button:hover { background: #34352f; color: #fff; filter: none; }
aside button.active:hover { background: #eadcbd; color: #29271f; }
.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}
.admin-main {
  min-width: 0;
  padding: 26px 32px 40px;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 22px;
}
.page-heading h1 {
  font-size: 28px;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 4px 0 6px;
  font-weight: 700;
}
.page-heading p {
  margin: 0;
  color: var(--vx-muted);
  font-size: 13px;
}
.panel {
  background: white;
  padding: 20px;
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius);
  margin-bottom: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}
.form-section {
  grid-column: 1/-1;
  margin: 14px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--vx-border);
  font-size: 11px;
  color: var(--vx-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.form-grid label:has(textarea) {
  grid-column: 1/-1;
}
.form-grid label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: end;
}
.form-error {
  color: var(--vx-danger);
  font-size: 13px;
}
.form-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--vx-border);
  border-radius: 12px;
  color: var(--vx-muted);
  font-size: 12px;
}
.stat b {
  display: block;
  font-size: 30px;
  letter-spacing: -0.045em;
  color: var(--vx-text);
  margin: 8px 0 2px;
}
.stat small {
  font-size: 11px;
}
.stat.featured {
  background: var(--vx-black);
  border-color: var(--vx-black);
  color: #cecabf;
}
.stat.featured b {
  color: white;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.dashboard-grid .panel { margin: 0; }
.dashboard-grid h2 {
  font-size: 18px;
  margin: 0 0 10px;
}
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--vx-border);
  font-size: 13px;
}
.metric-row:last-child {
  border: 0;
}
.metric-row b {
  font-size: 14px;
}
.dashboard-grid .panel > button { min-height: 40px; font-size: 12px; }
.status-ok {
  color: var(--vx-success);
  background: var(--vx-success-bg);
}
.status-warn {
  color: var(--vx-warning);
  background: var(--vx-warning-bg);
}
.status-error {
  color: var(--vx-danger);
  background: var(--vx-danger-bg);
}
.status-neutral {
  color: var(--vx-muted);
  background: #f0efeb;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--vx-border);
  border-radius: 12px;
  margin: 14px 0;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--vx-border);
  vertical-align: middle;
}
th {
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--vx-muted);
  background: #f0f1ec;
}
td {
  font-size: 13px;
}
tr:hover td {
  background: #fcfbf8;
}
tr:last-child td {
  border-bottom: 0;
}
td button {
  font-size: 12px;
  padding: 7px 10px;
  min-height: 36px;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  max-width: 360px;
}
.product-cell img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
  background: #f2f1ed;
}
.product-cell small {
  display: block;
  color: var(--vx-muted);
  font-size: 11px;
  margin-top: 4px;
}
.row-menu {
  position: relative;
}
.row-menu summary {
  cursor: pointer;
  padding: 9px 12px;
  border: 1px solid var(--vx-border);
  border-radius: 6px;
  white-space: nowrap;
  list-style: none;
  font-size: 12px;
}
.row-menu[open] {
  min-width: 145px;
}
.row-menu[open] .actions {
  display: grid;
  margin-top: 8px;
  gap: 5px;
}
.row-menu button {
  justify-content: start;
  width: 100%;
  margin: 0;
}
.actions > input {
  flex: 1;
  min-width: 160px;
  max-width: 450px;
}
.admin-main #view > .actions {
  margin-bottom: 20px;
}
.module {
  border: 0;
  width: 100%;
  height: calc(100dvh - 220px);
  min-height: 600px;
}
.upload-box {
  border: 1px dashed #c8c2b3;
  border-radius: 12px;
  background: #faf9f6;
  padding: 22px;
  margin: 16px 0;
  display: grid;
  gap: 12px;
}
.upload-box.dragover {
  border-color: var(--vx-gold);
  background: var(--vx-gold-soft);
}
.upload-preview img,
.upload-preview video {
  height: 160px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.upload-preview p {
  font-size: 12px;
  color: var(--vx-muted);
}
progress {
  accent-color: var(--vx-gold);
  width: 100%;
  height: 8px;
}
.schedule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.schedule-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--vx-bg);
  padding: 8px 12px;
  border-radius: 8px;
}
.schedule-chip button {
  padding: 0 8px;
  min-height: 30px;
}
.mobile-menu,
.nav-scrim {
  display: none;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.confirm-dialog {
  max-width: 460px;
}
.confirm-dialog h2 {
  font-size: 23px;
  margin-top: 10px;
}
.confirm-dialog p {
  color: var(--vx-muted);
  white-space: pre-line;
  font-size: 14px;
}
.confirm-dialog input {
  margin: 8px 0 16px;
}
.confirm-dialog .actions {
  justify-content: flex-end;
  margin-top: 24px;
}
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-main {
    padding: 26px 22px;
  }
  .admin-layout {
    grid-template-columns: 212px minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    gap: 24px;
  }
  .hero-visual,
  .hero-visual img {
    min-height: 300px;
    height: 300px;
  }
  .feedback-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .admin-layout {
    display: block;
  }
  .admin-main {
    padding: 20px 16px 32px;
  }
  .app-header {
    padding: 8px 16px;
  }
  .mobile-menu {
    display: inline-flex;
    padding: 8px 10px;
    min-width: 44px;
  }
  aside {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    width: 270px;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .nav-open aside {
    transform: translateX(0);
  }
  .nav-open .nav-scrim {
    display: block;
    position: fixed;
    inset: 64px 0 0;
    background: #0008;
    border: 0;
    border-radius: 0;
    z-index: 55;
  }
  .app-header .brand-lockup small {
    display: none;
  }
  .app-header #user {
    display: none;
  }
  .app-header .actions {
    gap: 8px;
    font-size: 12px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .public-main {
    padding: 0 22px;
  }
  .hero {
    padding: 36px 0;
    gap: 24px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero-visual,
  .hero-visual img {
    height: 280px;
    min-height: 280px;
  }
  .hero-note {
    font-size: 10px;
  }
  .feedback-grid {
    display: flex;
    scroll-snap-type: x mandatory;
  }
  .feedback-card {
    min-width: 280px;
    max-width: 300px;
    scroll-snap-align: start;
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .detail-media {
    height: 45dvh;
  }
  .public-header {
    padding: 12px 22px;
  }
  .header-links a:not(:last-child) {
    display: none;
  }
  .section-heading p {
    display: none;
  }
  footer {
    margin: 0 22px;
  }
  .table-wrap.mobile-cards {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .mobile-cards table,
  .mobile-cards tbody,
  .mobile-cards tr,
  .mobile-cards td {
    display: block;
    width: 100%;
    background: transparent;
  }
  .mobile-cards tr:first-child {
    display: none;
  }
  .mobile-cards tr {
    margin-bottom: 12px;
    border: 1px solid var(--vx-border);
    border-radius: 10px;
    background: white;
    padding: 8px 14px;
  }
  .mobile-cards td {
    border: 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .mobile-cards td::before {
    content: attr(data-label);
    font-size: 11px;
    color: var(--vx-muted);
    min-width: 70px;
  }
  .mobile-cards td:first-child {
    font-weight: 600;
  }
  .mobile-cards .actions {
    justify-content: end;
  }
  .mobile-cards .row-menu[open] {
    width: 100%;
  }
  .mobile-cards .product-cell {
    min-width: 0;
  }
  .mobile-cards td:has(.queue-identity) {
    display: block;
  }
  .mobile-cards .queue-identity {
    width: 100%;
    min-width: 0;
  }
  .mobile-cards td:has(.queue-identity)::before {
    display: block;
    margin-bottom: 8px;
  }
  .module {
    min-height: calc(100dvh - 210px);
  }
}
@media (max-width: 560px) {
  .public-header {
    gap: 8px;
  }
  .brand-lockup img {
    width: 46px;
    height: 40px;
  }
  .brand-lockup strong {
    font-size: 15px;
  }
  .brand-lockup small {
    font-size: 9px;
  }
  .header-links {
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 0;
  }
  .hero h1 {
    font-size: 49px;
    margin: 16px 0;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-visual {
    display: none;
  }
  .trust-strip {
    gap: 12px;
    font-size: 10px;
    align-items: center;
  }
  .trust-strip strong {
    display: block;
  }
  .public-main > section:not(.hero) {
    padding: 32px 0;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }
  .card {
    border-radius: 8px;
  }
  .card .content {
    padding: 12px;
  }
  .card h3 {
    font-size: 13px;
    min-height: 36px;
  }
  .card .price {
    font-size: 15px;
  }
  .card .tag {
    font-size: 9px;
    padding: 3px 6px;
  }
  .card .grade {
    font-size: 10px;
  }
  .card .secondary {
    font-size: 11px;
    padding: 8px;
    min-height: 36px;
  }
  .toolbar input {
    flex-basis: 100%;
  }
  .toolbar select {
    min-width: 120px;
  }
  .toolbar {
    gap: 8px;
  }
  .feedback-card {
    min-width: 265px;
  }
  .feedback-media img {
    height: 330px;
  }
  .hero .button {
    margin-top: 8px;
  }
  dialog {
    padding: 18px;
    width: calc(100% - 16px);
    max-height: 95dvh;
    border-radius: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px 14px;
  }
  .stat b {
    font-size: 25px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .panel {
    padding: 16px;
  }
  .app-header .brand-lockup strong {
    font-size: 14px;
  }
  .app-header > .actions:last-child > a {
    display: none;
  }
  footer {
    align-items: start;
    flex-direction: column;
  }
  .detail-info h2 {
    font-size: 26px;
  }
  .lightbox-media {
    height: 70dvh;
  }
  .vx-toasts:not(.vx-toasts-in-modal) {right:max(8px,env(safe-area-inset-right));width:calc(100vw - 16px);max-width:calc(100vw - 16px)}
  .mobile-cards td .product-cell {
    max-width: 230px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.product-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #efeee9;
}
.product-image-button:hover {
  filter: none;
}
.feedback-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feedback-admin-preview {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--vx-bg);
  border-radius: 8px;
}
.feedback-admin-grid .panel {
  padding: 16px;
}
.feedback-admin-grid .actions {
  margin-top: 12px;
}
.queue-identity {
  width: min(100%, 460px);
  min-width: 230px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.queue-identity .queue-product-name {
  display: block;
  color: var(--vx-text);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}
.queue-identity small {
  display: block;
  margin-top: 6px;
  color: var(--vx-muted);
}
.queue-identity .queue-group-name {
  font-weight: 600;
}
.queue-description {
  margin-top: 8px;
  color: var(--vx-muted);
  font-size: 12px;
}
.queue-description summary {
  cursor: pointer;
  color: var(--vx-gold, #98702f);
  font-weight: 600;
}
.queue-description p {
  margin: 6px 0 0;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--vx-text);
  line-height: 1.5;
}
@media (max-width: 1100px) {
  .feedback-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .feedback-admin-grid {
    grid-template-columns: 1fr;
  }
}

.feedback-grid {
  display: flex;
  scroll-snap-type: x mandatory;
}
.feedback-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}
.metric-row:last-of-type {
  margin-bottom: 16px;
}
.section-heading .carousel-actions {
  display: flex;
  gap: 8px;
}
.carousel-actions button {
  min-width: 40px;
  padding: 8px;
}
.app-header .brand-lockup {
  display: flex;
}
@media (max-width: 650px) {
  .carousel-actions {
    display: flex;
  }
}

/* Keep long commercial content inside its own layout at narrow widths. */
.module, #view, .form-grid > *, .panel, .actions > * { min-width: 0; }
dialog { max-width: calc(100vw - 24px); max-height: 92dvh; overflow: auto; }
dialog form > button[type="submit"] { margin-top:16px; }
@media (max-width: 650px) {
  input, select, textarea { font-size: 16px; }
  .actions { flex-wrap: wrap; }
  .mobile-cards td:has(.product-cell) { display: block; }
  .mobile-cards td:has(.product-cell)::before { display: block; margin-bottom: 8px; }
  .mobile-cards td .product-cell { max-width: 100%; overflow-wrap: anywhere; }
  .mobile-cards td .actions { min-width: 0; flex-wrap: wrap; }
  .section-heading { gap: 12px; flex-wrap: wrap; }
  .carousel-actions button { min-width: 44px; min-height: 44px; }
}

/* Product galleries must not determine the minimum width of a grid track. */
dialog#modal { box-sizing:border-box; width:min(960px,calc(100vw - 20px)); max-width:calc(100vw - 20px); max-height:94dvh; overscroll-behavior:contain; padding:16px; }
dialog#modal .product-detail { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
dialog#modal .product-detail > *, #detail, .detail-info { min-width:0; max-width:100%; overflow-wrap:anywhere; }
dialog#modal .gallery { width:100%; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; }
dialog#modal .detail-media { display:block; max-width:100%; object-fit:contain; height:min(460px,55dvh); }
dialog#modal .close { min-height:44px; background:var(--vx-surface,#fff); box-shadow:0 1px 6px #0002; }
dialog#modal .gallery-nav button { min-width:44px; min-height:44px; }
.price-brl { font-size:1.05rem; color:var(--vx-text); }
.queue-summary { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 0 10px; background: transparent; border-bottom: 1px solid var(--vx-border); margin: 12px 0 16px; }
.queue-summary span { padding:8px; }
@media(max-width:760px){ dialog#modal .product-detail {grid-template-columns:minmax(0,1fr);gap:20px;} dialog#modal .detail-media{height:40dvh;} dialog#modal .detail-info h2{font-size:24px;} }

.queue-thumbnail{object-fit:contain;border-radius:8px;float:left;margin-right:10px;background:#f3f2ee;}
.queue-summary button[aria-pressed="true"] { background: var(--vx-black); border-color: var(--vx-black); color: white; box-shadow: inset 0 -3px #c5a365; }

dialog#modal .modal-header{position:sticky;top:-16px;z-index:6;display:flex;justify-content:flex-end;background:white;padding:12px 0;margin-top:-12px;}
dialog#modal .modal-header .close{position:static;float:none;}
.queue-preview-media{display:block;width:min(240px,100%);max-height:240px;object-fit:contain;margin:12px 0;}
/* One review per product: gallery and one description, including long mobile content. */
.review-gallery{max-width:100%;min-width:0;margin:16px 0;}
.review-gallery>a{display:block;}
.review-gallery>a>img{display:block;width:100%;height:min(42dvh,360px);object-fit:contain;background:#f5f3ee;border-radius:12px;}
.review-thumbs{display:flex;gap:8px;overflow-x:auto;max-width:100%;padding:8px 0;}
.review-thumbs button{flex:0 0 70px;min-height:60px;padding:3px;}
.review-thumbs img{width:64px;height:56px;object-fit:contain;}
.review-thumbs button[aria-pressed=true]{outline:2px solid var(--vx-gold);}
.review-description{white-space:pre-wrap;overflow-wrap:anywhere;}
.review-move-selection img,.association-candidate img{width:90px;height:90px;object-fit:contain;}
.association-candidate{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0;padding:12px;border:1px solid var(--vx-border);border-radius:8px;}
#editor-content{min-width:0;overflow-wrap:anywhere;}
#queue-operation{padding:16px;background:#f5f3ee;border-radius:10px;font-weight:600;}

.queue-bulk-controls { padding: 8px 0; margin: 0; border-block: 1px solid var(--vx-border); }
.queue-bulk-controls strong { display: block; margin-bottom: .6rem; }
.queue-bulk-result { margin: .75rem 0; overflow-wrap: anywhere; }
.queue-period-controls { flex-wrap: wrap; margin: 1rem 0 .5rem; }
.queue-period-controls input[type=date] { min-width: 9rem; width: auto; }
.queue-bulk-controls button { min-height: 44px; }
input[data-queue-select], #queue-select-page { width: 22px; height: 22px; accent-color: var(--vx-black); vertical-align: middle; }
@media(max-width: 600px) {
 .queue-bulk-controls .actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
 .queue-bulk-controls button { width: 100%; white-space: normal; font-size: 12px; padding: 8px 10px; }
 .queue-period-controls { display: grid; grid-template-columns: 1fr; }
 .queue-period-controls input[type=date] { width: 100%; }
 .mobile-cards td:has([data-queue-select]) { display: flex; align-items: center; gap: .5rem; }
}

/* Commercial setup: bounded destination picker and readable message preview. */
.commercial-settings { margin-bottom:24px; }
.commercial-settings-grid { display:grid;grid-template-columns:minmax(280px,.9fr) minmax(360px,1.1fr);gap:20px;align-items:start; }
.commercial-settings .panel { margin:0; padding:24px; }
.commercial-heading { display:flex;align-items:flex-start;gap:12px;margin-bottom:22px; }
.commercial-step { display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:50%;background:#eee7d8;color:#4f422a;font-weight:750; }
.commercial-heading h2 { margin:0;font-size:21px;line-height:1.4; }
.commercial-heading p { margin:6px 0 0;font-size:14px; }
.commercial-chosen { display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px; }
.commercial-destination-chip { display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:5px 6px 5px 12px;background:#f1eee5;border:1px solid #ded7c5;border-radius:20px;font-size:13px; }
.commercial-destination-chip>span { overflow-wrap:anywhere; }
button.commercial-chip-remove { display:grid;place-items:center;flex:0 0 32px;width:32px;min-height:32px;padding:0;background:transparent;color:#4e473a;border:0;border-radius:50%;font-size:20px; }
button.commercial-chip-remove:hover { background:#e1dacb; }
.commercial-destination-list { max-height:338px;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--vx-border);border-radius:12px;margin-top:12px; }
.commercial-destination-option { display:flex;align-items:center;gap:12px;min-height:66px;padding:12px 14px;cursor:pointer;border-bottom:1px solid var(--vx-border);font-size:14px; }
.commercial-destination-option:last-child { border-bottom:0; }
.commercial-destination-option:hover { background:#faf8f3; }
.commercial-destination-option.is-selected { background:#f4f0e6; }
.commercial-destination-option input { flex:0 0 22px;width:22px;height:22px;margin:0; }
.commercial-destination-name { display:grid;gap:3px;min-width:0;overflow-wrap:anywhere; }
.commercial-destination-name small { color:var(--vx-muted);font-size:12px;font-weight:400; }
.commercial-result-count,.commercial-help { font-size:13px;line-height:1.6;color:var(--vx-muted); }
.commercial-empty { padding:16px; }
.commercial-rate { display:grid;grid-template-columns:1fr 110px 35px;gap:10px;align-items:center; }
.commercial-rate input { text-align:right;font-weight:700; }
.commercial-sections { border:0;padding:0;margin:22px 0 10px;display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.commercial-sections legend { font-size:14px;font-weight:700;margin-bottom:12px; }
.commercial-sections label { display:flex;align-items:center;gap:9px;font-size:13px;cursor:pointer;font-weight:500; }
.commercial-sections input { flex:0 0 20px;margin:0; }
.commercial-advanced { border-top:1px solid var(--vx-border);margin-top:18px;padding-top:14px; }
.commercial-advanced summary { cursor:pointer;font-size:14px;font-weight:650;padding:7px 0; }
.commercial-advanced label { margin:14px 0 8px; }
.commercial-advanced textarea { font:13px/1.65 monospace; }
.commercial-advanced pre { max-width:100%;overflow:auto;font-size:12px; }
.commercial-example { margin-top:22px;padding:18px;background:#f2f3ef;border:1px solid #e3e6dd;border-radius:14px; }
.commercial-example h3 { margin:0;font-size:15px; }
.commercial-message { white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid #dce3d6;border-radius:4px 14px 14px;padding:20px;font-size:14px;line-height:1.7;box-shadow:0 2px 6px #19271c06; }
.commercial-example .commercial-message { max-height:460px;overflow-y:auto; }
.commercial-save-bar { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding:16px 20px;background:#fff;border:1px solid var(--vx-border);border-radius:12px; }
.commercial-save-bar p { margin:0;font-size:13px; }
.commercial-save-bar button { white-space:normal;min-height:46px; }
.commercial-save-status { color:var(--vx-muted); }
.commercial-queue-summary { display:grid;gap:10px;max-width:420px;margin-top:8px; }
.commercial-queue-summary>button { justify-self:start;min-height:36px;padding:6px 12px; }
.commercial-queue-price { color:#383b31;font-weight:650;line-height:1.6; }
.commercial-queue-destinations { display:flex;flex-wrap:wrap;gap:8px; }
.commercial-destination-state { display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;max-width:100%;overflow-wrap:anywhere; }
.commercial-destination-state .badge { font-size:10px; }
.commercial-description-dialog { clear:both;margin-top:18px; }
.commercial-original { white-space:pre-wrap;line-height:1.7;padding:14px;background:#f6f5f1;border-radius:10px; }
.commercial-dialog-actions { display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;position:sticky;bottom:0;background:white;padding:16px 0;margin-top:20px; }
.commercial-recalculation { margin-top:22px;padding-top:12px;border-top:2px solid var(--vx-border); }
@media(max-width:1000px) {
 .commercial-settings-grid { grid-template-columns:minmax(0,1fr); }
 .commercial-settings .panel { padding:20px; }
}
@media(max-width:600px) {
 .commercial-settings .panel { padding:16px; }
 .commercial-heading h2 { font-size:19px; }
 .commercial-sections { grid-template-columns:1fr;gap:14px; }
 .commercial-rate { grid-template-columns:minmax(0,1fr) 95px 30px;gap:6px; }
 .commercial-save-bar { flex-direction:column;align-items:stretch;padding:16px; }
 .commercial-message { padding:15px;font-size:14px; }
 .commercial-example { padding:12px; }
 .commercial-description-dialog .commercial-message { max-height:none; }
 .commercial-destination-chip { max-width:100%; }
 .commercial-chip-remove { min-width:40px;min-height:40px; }
 .commercial-dialog-actions { bottom:0;flex-direction:column; }
 .commercial-dialog-actions button { width:100%; }
}
.commercial-save-bar { position:sticky;top:68px;z-index:4;margin:0 0 18px;box-shadow:0 3px 12px #17161008; }
.commercial-example-prices { white-space:pre-wrap;margin:12px 0;padding:12px;background:#e8ede1;border-radius:8px;font-size:13px;font-weight:650;line-height:1.7;color:#35432a; }
@media(max-width:600px) { .commercial-save-bar { top:68px;gap:10px; } }
@media(max-width:600px) {
 button.commercial-chip-remove { min-width:44px;min-height:44px;flex-basis:44px; }
 .commercial-sections label { min-height:44px; }
 .commercial-queue-summary>button { min-height:44px; }
}
.commercial-queue-routing { display:block;padding:0 0 10px;margin-bottom:12px;border-bottom:1px solid var(--vx-border);background:transparent; }
.commercial-queue-routing p { margin:5px 0;overflow-wrap:anywhere; }
.commercial-queue-routing button { flex-shrink:0; }
@media(max-width:600px) { .commercial-queue-routing { padding:0 0 8px; } }

/* Promotion picker: visual results, explicit selection and responsive controls. */
dialog.promotion-picker-dialog { width:min(1100px,calc(100vw - 24px)); }
.promotion-picker { clear:both; }
.promotion-picker-intro { max-width:800px;margin-bottom:18px; }
.promotion-picker-intro h2 { margin:0;font-size:25px; }
.promotion-picker-intro p { margin:8px 0; }
.promotion-picker-tools { display:grid;grid-template-columns:minmax(0,2fr) minmax(150px,1fr) minmax(150px,1fr);gap:10px; }
.promotion-picker-count { font-size:13px;color:var(--vx-muted);margin:16px 0 10px; }
.promotion-product-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px; }
.promotion-product-grid[aria-busy=true] { opacity:.5; }
button.promotion-product-select { min-width:0;display:flex;flex-direction:column;padding:0;text-align:left;white-space:normal;border:1px solid var(--vx-border);background:#fff;color:var(--vx-text);border-radius:12px;overflow:hidden;font-weight:400; }
button.promotion-product-select:hover { border-color:#a79259;background:#fcfaf5; }
button.promotion-product-select.is-selected { border:2px solid #8b7135;background:#fbf7ec; }
.promotion-product-image { display:grid;place-items:center;width:100%;height:160px;background:#f6f5f0;color:var(--vx-muted);font-size:13px; }
.promotion-product-image img { width:100%;height:100%;object-fit:contain; }
.promotion-product-card-info { display:flex;flex-direction:column;gap:6px;padding:14px;width:100%;flex:1;overflow-wrap:anywhere; }
.promotion-product-card-info>strong { font-size:15px;line-height:1.45; }
.promotion-product-reference { font-size:12px;color:var(--vx-muted); }
.promotion-product-card-info small { font-size:12px; }
.promotion-product-tags { display:flex;flex-wrap:wrap;gap:5px; }
.promotion-product-tags>span:not(.badge) { background:#eeeadf;padding:3px 7px;border-radius:6px;font-size:11px;color:#5b4c2b; }
.promotion-product-brl { margin-top:auto;padding-top:7px;font-size:16px;font-weight:750; }
.promotion-product-select-label { display:block;padding-top:10px;border-top:1px solid #e5e1d5;font-size:13px;font-weight:650;color:#6d5828; }
.promotion-product-identity { display:flex;align-items:center;gap:12px;min-width:0; }
.promotion-product-identity>div:last-child { display:grid;gap:4px;min-width:0;overflow-wrap:anywhere; }
.promotion-product-identity small { display:block;font-size:12px;color:var(--vx-muted); }
.promotion-product-thumb { display:grid;place-items:center;flex:0 0 76px;width:76px;height:76px;border:1px solid var(--vx-border);background:#f6f5f0;border-radius:8px;overflow:hidden;font-size:11px;text-align:center;color:var(--vx-muted); }
.promotion-product-thumb img { width:100%;height:100%;object-fit:contain; }
.promotion-picker-pagination { display:flex;align-items:center;justify-content:center;gap:14px;margin:18px 0; }
.promotion-picker-pagination span { font-size:13px;color:var(--vx-muted); }
.promotion-picker-selection { position:sticky;bottom:0;padding:16px;margin-top:18px;background:#fff;border:1px solid var(--vx-border);border-radius:12px;box-shadow:0 -3px 12px #18160f09;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;z-index:4; }
.promotion-picker-selection button { min-height:46px; }
.promotion-picker-chosen-price { margin:8px 0 0;font-size:13px;font-weight:600; }
.promotion-picker-details { grid-column:1/-1;max-height:42dvh;overflow:auto;border-top:1px solid var(--vx-border);padding-top:8px; }
.promotion-picker-details summary { cursor:pointer;font-size:13px;font-weight:600;padding:8px 0; }
.promotion-picker-hero { display:grid;place-items:center;width:100%;height:220px;background:#f6f5f0;border-radius:10px; }
.promotion-picker-hero img { width:100%;height:100%;object-fit:contain; }
.promotion-picker-thumbs { display:flex;gap:8px;overflow-x:auto;margin:10px 0; }
.promotion-picker-thumbs button { flex:0 0 60px;width:60px;height:60px;padding:3px;background:white;border:1px solid var(--vx-border); }
.promotion-picker-thumbs img { width:100%;height:100%;object-fit:contain; }
.promotion-picker-description { white-space:pre-wrap;font-size:13px;line-height:1.7;margin-top:12px; }
.promotion-picker-empty { grid-column:1/-1;padding:32px;text-align:center;background:#f7f5ef;border-radius:12px; }
.promotion-chosen-header { clear:both;padding:16px;background:#f7f5ef;border-radius:12px;margin:16px 0 22px; }
@media(max-width:800px) {
 .promotion-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .promotion-picker-tools { grid-template-columns:1fr 1fr; }
 .promotion-picker-tools input { grid-column:1/-1; }
}
@media(max-width:500px) {
 .promotion-picker-intro h2 { font-size:22px; }
 .promotion-product-grid { grid-template-columns:minmax(0,1fr); }
 button.promotion-product-select { display:grid;grid-template-columns:112px minmax(0,1fr); }
 .promotion-product-image { height:100%;min-height:170px; }
 .promotion-product-card-info { padding:12px; }
 .promotion-picker-selection { grid-template-columns:minmax(0,1fr);bottom:0;padding:12px; }
 .promotion-picker-selection>button { width:100%; }
 .promotion-picker-selection .promotion-product-thumb { flex-basis:60px;width:60px;height:60px; }
 .promotion-picker-pagination { gap:8px; }
 .promotion-picker-pagination button { padding:10px 12px; }
}
.promotion-product-image { flex-shrink:0;min-height:0;overflow:hidden; }
.promotion-product-image img { display:block;min-height:0;max-height:160px;height:160px; }
.promotion-product-thumb,.promotion-picker-hero { min-height:0;overflow:hidden; }
.promotion-product-thumb img,.promotion-picker-hero img { display:block;min-height:0;max-height:100%; }
@media(max-width:500px) { .promotion-product-image { min-height:170px; } .promotion-product-image img { height:200px;max-height:200px; } }
/* Queue message reassociation: visible selection and local commit feedback. */
.association-tool{border-top:1px solid var(--vx-border);margin-top:20px;padding-top:12px}.association-tool summary{font-weight:700;cursor:pointer}.association-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;max-height:360px;overflow:auto;padding:5px}.association-item{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;text-align:left}.association-item img{width:110px;height:100px;object-fit:contain}.association-item small{max-height:70px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.association-item[aria-pressed=true],.association-candidate.is-selected{outline:3px solid var(--vx-gold,#ad8134);outline-offset:-2px;background:#faf4e8}.association-tool .association-candidate{scroll-margin:16px;align-items:flex-start}.association-candidate-info{flex:1;min-width:130px;overflow-wrap:anywhere}.association-candidate-info strong,.association-candidate-info small{display:block}.association-confirm{width:100%;padding:12px;border:1px solid #c5a76c;border-radius:8px;background:#fff;scroll-margin:16px}.association-confirm h3{margin:0 0 8px}.association-confirm p{margin:8px 0}.association-confirm .association-move{width:100%;min-height:48px;margin-top:12px}.association-confirm .form-error{white-space:pre-wrap;overflow-wrap:anywhere}.review-move-selection p,.association-result p{white-space:pre-wrap;overflow-wrap:anywhere}.association-result{padding:14px;border:2px solid #73834a;border-radius:10px;margin:12px 0;scroll-margin:16px}.association-result img{width:130px;height:110px;object-fit:contain}.association-tool .actions input{min-width:0;max-width:100%}@media(max-width:600px){.association-tool .association-candidate img{width:100px;height:100px}.association-tool .association-candidate>button{width:100%}.association-tool .actions{flex-wrap:wrap}.association-confirm{padding:10px}}

/* Daily workflow components — shared VX tokens, one definition per component and breakpoint. */
.nav-group {
  margin: 0 0 18px;
}
.nav-group[hidden] {
  display: none;
}
.nav-group .eyebrow {
  margin: 12px 14px 6px;
}
#nav button {
  min-height: 44px;
}
#nav button:focus-visible {
  outline: 2px solid #e2c58b;
  outline-offset: -3px;
}
.daily-tasks {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius);
  overflow: hidden;
  background: var(--vx-surface);
}
.daily-tasks button {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  padding: 16px 36px 16px 18px;
  background: var(--vx-surface);
  color: var(--vx-text);
  border: 0;
  border-right: 1px solid var(--vx-border);
  border-radius: 0;
  font-size: 14px;
  gap: 5px;
}
.daily-tasks button:last-child { border-right: 0; }
.daily-tasks button::after { content: "↗"; position: absolute; top: 13px; right: 14px; color: var(--vx-gold); font-size: 19px; font-weight: 400; }
.daily-tasks button:hover { background: #f8f6ef; filter: none; }
.daily-tasks small {
  font-size: 12px;
  font-weight: 400;
  color: var(--vx-muted);
  line-height: 1.5;
}
.queue-filter-panel,.queue-live-panel {
  padding: 16px 18px;
  background: var(--vx-surface);
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius);
  margin-bottom: 14px;
}
.queue-filter-panel h2,.queue-live-panel h2,.queue-bulk-controls h2 {
  font-size: 15px;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.queue-filter-panel>.actions {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 0;
}
.queue-filter-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); gap: 8px 18px; }
.queue-filter-panel > h2, .queue-filter-panel > .queue-period-controls { grid-column: 1/-1; }
.queue-filter-panel>.actions:first-of-type {
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
}
.queue-filter-panel label {
  display: grid;
  gap: 5px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--vx-muted);
}
.queue-filter-panel .queue-period-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--vx-border);
  padding-top: 10px;
  margin: 6px 0 0;
}
.queue-filter-panel .queue-period-controls select { width: auto; min-width: 150px; }
.queue-filter-panel .queue-period-controls > span { flex: 1; }
.queue-live-panel {
  display: grid;
  align-items: center;
  gap: 4px 16px;
  border: 0;
  border-left: 3px solid #b7985b;
  border-radius: 0;
  background: #eceee7;
  flex-wrap: wrap;
  grid-template-columns: minmax(0,1fr) auto;
}
.queue-live-panel h2 {
  margin: 0 auto 0 0;
  font-size: 12px;
}
.queue-live-panel #queue-operation {
  flex-basis: 100%;
  margin: 0;
  color: var(--vx-muted);
  font-size: 13px;
  grid-column: 1;
  padding: 0;
  background: transparent;
}
.queue-maintenance,.queue-filter-actions {
  padding: 12px 16px;
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius);
  margin: 16px 0;
  background: var(--vx-surface);
}
.queue-maintenance summary,.queue-filter-actions summary {
  cursor: pointer;
  font-weight: 600;
}
.queue-maintenance>button,.queue-filter-actions>button {
  margin: 8px 8px 0 0;
}
.queue-maintenance summary {
  color: var(--vx-muted);
}
.queue-bulk-controls p {
  margin: 0;
  font-size: 12px;
}
.selection-primary-actions {
  margin: 14px 0;
}
.selection-danger {
  padding-top: 10px;
  border-top: 1px solid var(--vx-border);
}
.selection-danger summary {
  font-size: 13px;
  cursor: pointer;
  color: var(--vx-danger);
}
.selection-danger button {
  margin-top: 12px;
}
.queue-summary button {
  font-size: 12px;
  min-height: 40px;
  padding: 8px 14px;
  border-color: transparent;
  background: transparent;
  color: var(--vx-muted);
}
#editor {
  padding: 0;
}
.editor-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: var(--vx-surface);
  border-bottom: 1px solid var(--vx-border);
  font-size: 13px;
  color: var(--vx-muted);
}
#editor-content,.dialog-body {
  padding: 24px;
  min-width: 0;
}
#editor-content>h2:first-child {
  margin-top: 0;
}
.form-feedback {
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: var(--vx-sm);
  border: 1px solid var(--vx-border);
  background: var(--vx-bg);
  overflow-wrap: anywhere;
}
.form-feedback.is-error {
  background: var(--vx-danger-bg);
  color: var(--vx-danger);
  border-color: #d99b92;
}
.form-feedback.is-success {
  background: var(--vx-success-bg);
  color: var(--vx-success);
}
.form-feedback.is-pending {
  background: var(--vx-warning-bg);
  color: var(--vx-warning);
}
#editor form>button[type=submit] {
  width: 100%;
  margin-top: 16px;
  min-height: 48px;
}
.form-grid input[readonly] {
  background: var(--vx-bg);
  color: var(--vx-muted);
}
.module-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.module-heading h1 {
  margin: 0 0 8px;
  font-size: 26px;
}
.module-heading p {
  margin: 0;
  max-width: 70ch;
  font-size: 13px;
  color: var(--vx-muted);
}
.quote-detail-item {
  padding: 11px 0;
  border-bottom: 1px solid var(--vx-border);
}
.quote-detail-item img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  float: left;
  margin-right: 14px;
}
.quote-detail-item:after {
  content: '';
  display: block;
  clear: both;
}
:where(button,a,input,select,textarea,summary):focus-visible {
  outline: 3px solid var(--vx-gold);
  outline-offset: 3px;
}
summary {
  min-height: 36px;
}
button[hidden],a[hidden] {
  display: none!important;
}
.editor-header .editor-save {
  margin-left: auto;
  min-height: 44px;
}
.editor-header>strong {
  margin-right: auto;
}
.editor-header:has(.editor-save)>strong {
  font-size: 12px;
}
#view[aria-busy=true] {
  min-height: 160px;
}
#view[aria-busy=true]::before {
  content: 'Carregando esta área…';
  display: block;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--vx-gold-soft);
  font-size: 13px;
  color: var(--vx-text);
}
.queue-selection-bar {
  position: sticky;
  bottom: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin-top: 16px;
  border: 1px solid #bba36b;
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 0 -4px 24px #24231e20;
}
.queue-selection-bar[hidden] {
  display: none;
}
.queue-selection-bar .selection-primary-actions {
  margin: 0;
}
.queue-selection-bar .selection-danger {
  border: 0;
  padding: 0;
}
.queue-selection-bar .selection-danger[open] {
  background: white;
  padding: 12px;
  border: 1px solid var(--vx-border);
  border-radius: 8px;
}
.queue-selection-bar strong {
  font-size: 14px;
}
.admin-main:has(#queue-selection-bar:not([hidden])) {
  padding-bottom: 120px;
}
.commercial-queue-routing summary {
  font-size: 13px;
  cursor: pointer;
  overflow-wrap: anywhere;
  padding: 6px 0;
}
.commercial-queue-routing>div {
  margin: 8px 0;
}
.form-technical {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--vx-border);
  border-radius: 8px;
}
.form-technical label {
  display: grid;
  gap: 6px;
}
.queue-live-panel .queue-operation-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.queue-identity .commercial-destination-state {
  font-size: 12px;
}
@media(max-width:1050px) {
  .daily-tasks {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .queue-filter-panel { grid-template-columns: minmax(0,1fr); }
  .queue-filter-panel>.actions { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .daily-tasks {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .daily-tasks button {
    padding: 13px 28px 13px 12px;
    border-bottom: 1px solid var(--vx-border);
    font-size: 13px;
  }
  .daily-tasks button:nth-child(2n) { border-right: 0; }
  .daily-tasks button:nth-last-child(-n+2) { border-bottom: 0; }
  .daily-tasks button::after { right: 10px; top: 10px; font-size: 16px; }
  .daily-tasks small {
    font-size: 11px;
  }
  .queue-filter-panel,.queue-live-panel {
    padding: 16px;
  }
  .queue-filter-panel>.actions {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .queue-filter-panel>.actions:not(:first-of-type):not(.queue-period-controls) > label:first-child { grid-column: 1/-1; }
  .queue-filter-panel .queue-period-controls {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .queue-filter-panel .queue-period-controls > select, .queue-filter-panel .queue-period-controls > span, .queue-filter-panel .queue-period-controls > button { grid-column: 1/-1; width: 100%; }
  .queue-filter-panel .queue-period-controls > span { font-size: 11px; line-height: 1.4; }
  .queue-filter-panel .queue-period-controls input { min-width: 0; }
  .queue-filter-panel>.actions:first-of-type label {
    min-width: 0;
  }
  .queue-live-panel {
    align-items: flex-start;
    padding: 10px 12px;
    grid-template-columns: minmax(0,1fr);
  }
  .queue-live-panel h2 {
    width: 100%;
    display: none;
  }
  .queue-bulk-controls .selection-primary-actions {
    display: flex;
    flex-direction: column;
  }
  .selection-primary-actions button {
    width: 100%;
  }
  .editor-header {
    padding: 10px 16px;
  }
  #editor-content,.dialog-body {
    padding: 16px;
  }
  .module-heading {
    flex-wrap: wrap;
  }
  .module-heading>a {
    width: 100%;
  }
  .queue-identity {
    min-width: 0;
  }
  .editor-header:has(.editor-save)>strong {
    display: none;
  }
  .editor-header .editor-save {
    margin-left: 0;
    flex: 1;
  }
  .queue-selection-bar {
    bottom: 8px;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 8px;
    padding: 12px;
  }
  .queue-selection-bar .selection-primary-actions {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
  }
  .queue-selection-bar .selection-primary-actions button {
    width: auto;
  }
  .queue-selection-bar .selection-danger summary {
    min-height: 32px;
  }
  .queue-live-panel .queue-operation-actions {
    grid-column: 1;
    grid-row: 2;
  }
  .queue-live-panel #queue-operation {
    grid-column: 1;
  }
  .queue-live-panel .queue-operation-actions button {
    font-size: 12px;
    padding: 8px 12px;
  }
  .queue-summary {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px;
  }
  .queue-summary button {
    font-size: 12px;
    padding: 8px;
  }
  .commercial-queue-routing {
    padding: 0 0 8px;
  }
  .queue-filter-panel {
    padding: 14px;
  }
  .queue-bulk-controls {
    padding: 12px 0;
  }
  .queue-filter-panel h2,.queue-bulk-controls h2 {
    font-size: 15px;
  }
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline:3px solid var(--vx-gold); outline-offset:2px; }

/* Keep daily actions readable when table rows become mobile cards. */
.table-actions > button { margin: 0 6px 6px 0; overflow-wrap: normal; }
.table-actions > .row-menu { display: inline-block; vertical-align: top; }
@media (max-width: 800px) {
  .mobile-cards td.table-actions { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .mobile-cards td.table-actions::before { flex-basis: 100%; }
  .mobile-cards td.table-actions > button { flex: 1 1 auto; min-height: 44px; margin: 0; }
  .mobile-cards td.table-actions > .row-menu { flex-basis: 100%; }
}

.backup-help { margin-top:16px; font-size:13px; color:var(--vx-muted); }
.backup-help summary { cursor:pointer; min-height:40px; }

/* The description field is a stable node throughout polling and failed saves. */
.commercial-description-input { display:block;width:100%;box-sizing:border-box;min-height:320px;resize:vertical;font:inherit;line-height:1.65;white-space:pre-wrap; }
.commercial-description-input[hidden] { display:none; }
.commercial-description-conflict .commercial-message { max-height:240px;overflow:auto; }
.commercial-description-conflict button { margin-top:10px; }
.queue-summary > [data-queue-scope] { flex-basis: 100%; grid-column: 1 / -1; width: 100%; line-height: 1.5; }
