:root {
  --ink: #100b14;
  --night: #21162e;
  --purple: #6e1ca6;
  --violet: #9d35e1;
  --goblin: #91d83f;
  --goblin-dark: #3c7c24;
  --gold: #ffbf2f;
  --orange: #f07a22;
  --parchment: #fff0c5;
  --paper: #fff8e6;
  --danger: #e83735;
  --shadow: 0 22px 60px rgba(16, 11, 20, 0.35);
  color-scheme: dark;
}
.pos-customer { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wholesale-offer { display: block; font-size: 12px; font-weight: 500; line-height: 1.4; white-space: normal; }
.pickup-notice { padding: 12px; border-left: 4px solid var(--gold); background: #251b2c; color: #fff0c5; line-height: 1.5; overflow-wrap: anywhere; }
.cart-delivery label[hidden] { display: none !important; }
.product-card__footer > strong { min-width: 0; overflow-wrap: anywhere; }
.pos-cart input[data-pos-quantity] { width: 100px; min-height: 44px; padding: 8px; color: #100b14; background: #fff; }
@media (max-width: 600px) { .pos-customer { grid-template-columns: minmax(0, 1fr); } }

.inventory-modal { width: min(1000px, calc(100% - 24px)); }
.inventory-modal h2 { font-family: Inter, sans-serif; font-size: 1.375rem; text-shadow: none; margin: 0 0 18px; }
.inventory-modal progress { width: 100%; margin-top: 18px; accent-color: var(--goblin); }
.inventory-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.image-optimizer { border-top: 2px solid #805d25; padding-top: 24px; margin-top: 28px; }
.image-optimizer h2 { font-family: Inter, sans-serif; font-size: 1.4rem; text-shadow: none; }
.image-optimizer__settings { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(150px, 1fr) auto; gap: 16px; align-items: end; margin-bottom: 18px; }
.image-optimizer__settings label { display: grid; gap: 8px; min-width: 0; }
.image-optimizer__settings input { width: 100%; min-width: 0; min-height: 44px; padding: 8px; font: inherit; color: #100b14; background: #fff; }
.image-optimizer__settings input[type="range"] { padding: 0; accent-color: #91d83f; }
.image-optimizer progress { width: 100%; }
.image-optimizer td { overflow-wrap: anywhere; }
@media (max-width: 700px) { .image-optimizer__settings { grid-template-columns: minmax(0, 1fr); } .image-optimizer button { max-width: 100%; white-space: normal; } }
.inventory-modal [data-inventory-commit] { margin-top: 18px; max-width: 100%; white-space: normal; }
.inventory-modal .portal-order__header { display: flex; align-items: flex-start; gap: 14px; }
.inventory-modal .portal-order__header h2 { flex: 1; min-width: 0; font-size: 1.375rem; line-height: 1.3; overflow-wrap: anywhere; }
.inventory-modal [data-inventory-close] { width: 44px; min-width: 44px; flex: 0 0 44px; }
.inventory-modal [data-audit-close] { width: 44px; min-width: 44px; height: 44px; flex: 0 0 44px; }
.audit-result-tools { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(200px, 2fr) auto; gap: 14px; align-items: end; margin-block: 18px; }
.audit-result-tools label { display: grid; gap: 6px; min-width: 0; }
.audit-result-tools input:not([type="checkbox"]), .audit-result-tools select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 2px solid #000; color: var(--ink); background: #fff; font: inherit; }
.audit-result-tools .check-row { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.audit-result-tools input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--goblin-dark); }
.audit-export-tools, .audit-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-block: 14px; }
.audit-export-tools button { max-width: 100%; white-space: normal; }
.audit-legend span { padding: 5px 10px; border-left: 4px solid; font-weight: 700; font-size: 0.875rem; }
.audit-legend__surplus { background: #ffe7c2; color: #8a3d00; border-color: #d66a0b; }
.audit-legend__shortage { background: #ffd8d4; color: #a51916; border-color: #c52b23; }
.audit-detail-table { min-width: 940px; }
.audit-detail-table th:last-child, .audit-detail-table td:last-child { position: static; }
.audit-detail-modal .audit-detail-table .audit-row--surplus td { background: #ffe7c2; color: #642d00; }
.audit-detail-modal .audit-detail-table .audit-row--shortage td { background: #ffd8d4; color: #861b17; }
.audit-detail-table .audit-row--surplus td:first-child { border-left: 4px solid #d66a0b; }
.audit-detail-table .audit-row--shortage td:first-child { border-left: 4px solid #c52b23; }
.audit-detail-table .audit-difference { font-weight: 900; white-space: nowrap; }
.audit-summary { line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 700px) { .audit-result-tools { grid-template-columns: minmax(0, 1fr); } .audit-export-tools { display: grid; grid-template-columns: minmax(0, 1fr); } }
.inventory-modal [data-store-close] { width: 44px; min-width: 44px; height: 44px; flex: 0 0 44px; }
[data-admin-section="stores"] .admin-toolbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-items: end; }
[data-admin-section="stores"] .admin-toolbar label { display: grid; gap: 6px; min-width: 0; }
[data-admin-section="stores"] .admin-toolbar input,
[data-admin-section="stores"] .admin-toolbar select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 2px solid #000; color: var(--ink); background: #fff; font: inherit; }
[data-admin-section="stores"] .admin-table th:last-child,
[data-admin-section="stores"] .admin-table td:last-child { position: static; }
@media (max-width: 600px) {
  [data-admin-section="stores"] .admin-table { display: block; min-width: 0; }
  [data-admin-section="stores"] .admin-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  [data-admin-section="stores"] .admin-table tbody { display: block; }
  [data-admin-section="stores"] .admin-table tr { display: grid; grid-template-columns: 65px minmax(0, 1fr) 55px; gap: 10px; padding: 14px; border-bottom: 2px solid #000; }
  [data-admin-section="stores"] .admin-table td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  [data-admin-section="stores"] .admin-table td:nth-child(3)::before { content: 'Stock: '; }
  [data-admin-section="stores"] .admin-table td:nth-child(4) { grid-column: 2 / -1; }
  [data-admin-section="stores"] .admin-table td:nth-child(4)::before { content: 'Costo: '; }
  [data-admin-section="stores"] .admin-table td:nth-child(5) { grid-column: 2 / -1; }
  [data-admin-section="stores"] .admin-table td[colspan] { grid-column: 1 / -1; }
}
.inventory-modal .admin-table th:last-child, .inventory-modal .admin-table td:last-child { position: static; }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(145, 216, 63, 0.22), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(255, 191, 47, 0.22), transparent 26rem),
    linear-gradient(135deg, #120b18 0%, #23132c 48%, #100b14 100%);
  color: var(--paper);
  font-family: Inter, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(16, 11, 20, 0.82);
  border-bottom: 2px solid rgba(255, 191, 47, 0.22);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 112px;
  height: 56px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.main-nav a {
  color: #ffe7a1;
}

.cart-button,
.filter,
.primary-action,
.secondary-action {
  border: 0;
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 900;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 4px 5px 0 #000;
}

.cart-button strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--purple);
  color: white;
}

.account-header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.account-logout { min-height: 44px; padding: 9px 12px; }
@media (max-width: 400px) {
  .portal-page .site-header { gap: 10px; }
  .account-header-actions { gap: 8px; }
  .account-header-actions .cart-button { padding: 6px 8px; gap: 6px; }
}

.hero {
  overflow: hidden;
}

.hero-banner {
  position: relative;
  display: grid;
  min-height: min(74svh, 780px);
  background: #100b14;
  border-bottom: 4px solid #000;
}

.hero-banner__image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.hero-banner__actions {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 6vw, 70px);
  z-index: 2;
  justify-content: center;
  transform: translateX(-50%);
}

.kicker {
  margin: 0 0 10px;
  color: var(--goblin);
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Bangers, Impact, fantasy;
  letter-spacing: 0;
  line-height: 0.9;
  text-shadow: 5px 5px 0 #000;
}

h1 {
  color: var(--gold);
  font-size: 8rem;
}

h2 {
  color: var(--gold);
  font-size: 5rem;
}

p {
  line-height: 1.7;
}

.hero-copy p:not(.kicker),
.section-heading p,
.section-copy p,
.pos-section p,
.visit-section p {
  color: #f7e8c4;
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  text-transform: uppercase;
  border: 3px solid #000;
  box-shadow: 5px 6px 0 #000;
}

.primary-action {
  background: var(--gold);
  color: var(--ink);
}

.secondary-action {
  background: var(--purple);
  color: white;
}

.catalog-search {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  max-width: 620px;
}

.catalog-search input {
  width: 100%;
  min-width: 0;
  padding: 13px 16px;
  font: inherit;
  border: 3px solid #000;
  background: #fff;
  color: var(--ink);
}

.catalog-facets,
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.catalog-facets fieldset,
.product-tag-group,
.filter-editor-group {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 2px solid var(--gold);
}

.catalog-facets fieldset div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.catalog-facets label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.catalog-facets input,
.product-tag-group input {
  accent-color: #7020a3;
  width: 18px;
  height: 18px;
}

.filter-editor-groups {
  display: grid;
  gap: 16px;
}

.catalog-count {
  font-size: 0.9rem;
}

.product-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 8px 0;
}

.product-labels button,
.product-labels span {
  padding: 0;
  border: 0;
  background: none;
  color: #7020a3;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
  max-width: 100%;
  cursor: pointer;
}

.product-labels button:hover { text-decoration: underline; }

.catalog-empty { grid-column: 1 / -1; }

.catalog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.catalog-pagination button {
  min-width: 40px;
  height: 40px;
  border: 2px solid #000;
  background: var(--parchment);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.catalog-pagination button[aria-current="page"] { background: var(--goblin); font-weight: 900; }
.catalog-pagination button:disabled { opacity: 0.45; cursor: default; }

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #000;
  border-block: 2px solid #000;
}

.intro-band article {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(210px, 24vw, 340px);
  padding: clamp(22px, 4vw, 42px);
  background: linear-gradient(145deg, rgba(255, 240, 197, 0.98), rgba(255, 191, 47, 0.95));
  background-position: center;
  background-size: cover;
  color: var(--ink);
}

.intro-band h2 {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 3rem;
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.65);
}

.intro-band[hidden] {
  display: none;
}

.intro-band--moving {
  display: block;
  overflow: hidden;
}

.intro-track {
  display: flex;
  width: max-content;
  animation: feature-ribbon var(--ribbon-duration, 28s) linear infinite;
}

.intro-group {
  display: flex;
  gap: 2px;
  padding-right: 2px;
}

.intro-group article {
  flex: 0 0 auto;
  width: calc((100vw - 6px) / 3);
}

.intro-band--moving:hover .intro-track,
.intro-band--moving:focus-within .intro-track {
  animation-play-state: paused;
}

@keyframes feature-ribbon {
  to { transform: translateX(-50%); }
}

@media (max-width: 650px) {
  .intro-group article { width: 80vw; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-band--moving { overflow-x: auto; }
  .intro-track { animation: none; }
  .intro-group[aria-hidden="true"] { display: none; }
}

.course-section,
.catalog-section,
.pos-section,
.visit-section {
  padding: clamp(52px, 8vw, 96px) clamp(16px, 5vw, 72px);
}

.courses-heading {
  padding: 30px clamp(16px, 5vw, 72px);
  border-bottom: 2px solid #000;
}

.courses-heading h2 {
  margin: 0;
  color: var(--gold);
  font-size: 2.5rem;
}

.course-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(240px, 360px);
  gap: 34px;
  align-items: center;
  background:
    linear-gradient(rgba(16, 11, 20, 0.76), rgba(16, 11, 20, 0.92)),
    repeating-linear-gradient(135deg, #3a1a4d 0 18px, #26132f 18px 36px);
}

.course-section .section-copy,
.course-section .course-ticket {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.course-section h2 {
  overflow-wrap: anywhere;
}

.course-description {
  white-space: pre-line;
}

.course-contact { display: block; margin-top: 12px; color: var(--ink); font-weight: 700; }
.course-ticket button:disabled { opacity: 0.5; cursor: not-allowed; }
.course-resource-list { display: grid; gap: 10px; margin-top: 12px; }
.course-resource-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; }
.course-resource-row > span { min-width: 0; overflow-wrap: anywhere; }
.course-resource-row button { flex: 0 0 auto; }
.account-library { margin-top: 36px; }
.custom-account { margin-top: 28px; }
.custom-laboratory {
  width: 100%;
  min-width: 0;
  position: relative;
  isolation: isolate;
  aspect-ratio: auto;
  min-height: 600px;
  display: block;
  padding: 24px;
  background: #160e1c url('assets/custom-laboratorio.png') center / cover no-repeat;
  border: 3px solid #000;
  margin-bottom: 28px;
}
.custom-jars {
  position: absolute;
  inset: 42% 18% calc(4% + 20px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 24px;
}
.custom-jar {
  width: 100%;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: end;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease;
}
.custom-jar img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.custom-jar span { display: block; padding: 8px 4px; font: 1.6rem Bangers, Impact, fantasy; text-shadow: 2px 2px #000; overflow-wrap: anywhere; }
.custom-jar:hover,
.custom-jar:focus-visible { filter: brightness(1.25) drop-shadow(0 0 14px #c879ff); transform: translateY(-8px); }
.custom-jar:focus-visible { outline: 2px solid #ffbf2f; outline-offset: 4px; }
.custom-configurator { width: min(560px, 100%); min-width: 0; margin-inline: auto; padding: 24px; border: 2px solid var(--gold); background: rgba(17, 10, 25, 0.94); }
.custom-configurator h3 { margin-top: 0; font-size: 2rem; color: var(--gold); }
.custom-size-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 20px; }
.custom-quote strong { display: block; font-size: 2rem; color: var(--goblin); }
.custom-quote span { display: block; font-size: 0.85rem; }
.custom-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
[data-custom-message]:not(:empty) { padding: 12px; margin: 0; border-left: 3px solid var(--gold); background: #211a29; overflow-wrap: anywhere; }
[data-custom-message][data-state="success"] { border-color: var(--goblin); color: #b4ed7b; }
[data-custom-message][data-state="error"] { border-color: var(--orange); color: #ffce8c; }
.custom-laboratory [hidden] { display: none !important; }
.custom-tier-list { display: grid; gap: 12px; }
.custom-tier { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.portal-form .custom-painted-option { display: flex; align-items: center; gap: 10px; }
.portal-form .custom-painted-option input { width: 20px; height: 20px; min-height: 20px; padding: 0; flex: 0 0 20px; accent-color: var(--goblin); }
.custom-reference { display: block; width: min(240px, 100%); height: 180px; object-fit: contain; background: #fff; margin: 12px 0; }
.reference-preview-button { display: block; width: min(240px, 100%); padding: 0; margin: 12px 0; border: 2px solid var(--gold); background: #fff; cursor: zoom-in; }
.reference-preview-button .custom-reference { width: 100%; margin: 0; }
.reference-preview-button:focus-visible { outline: 3px solid var(--goblin); outline-offset: 3px; }
.reference-preview-dialog { box-sizing: border-box; width: min(960px, calc(100% - 24px)); max-height: 92vh; max-height: 92svh; padding: 16px; border: 2px solid var(--gold); background: #17101f; color: #fff; }
.reference-preview-dialog::backdrop { background: rgba(0, 0, 0, 0.8); }
.reference-preview-dialog button { display: block; margin: 0 0 12px auto; }
.reference-preview-dialog img { display: block; width: 100%; height: min(72vh, 800px); height: min(72svh, 800px); object-fit: contain; }
.cart-delivery { padding: 0 18px 18px; }
.cart-delivery[hidden] { display: none !important; }
.tracking-codes { white-space: pre-line; }
@media (max-width: 650px) {
  .custom-laboratory { min-height: 580px; padding: 12px; }
  .custom-jars { inset: 46% 4% calc(8% + 12px); gap: 8px; }
  .custom-jar span { font-size: 1.3rem; }
  .custom-configurator { padding: 16px; }
  .custom-size-price { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .custom-tier { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .custom-jar { transition: none; }
}
[data-library-viewer] video { display: block; width: 100%; max-height: 70svh; background: #000; }
.editor-panel [hidden] { display: none !important; }

.course-schedule {
  color: var(--gold);
  font-weight: 900;
}

.course-section--photo {
  padding-left: 42%;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
}

.course-section--photo h2 {
  font-size: 3rem;
}

.course-photo {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.course-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(185, 131, 221, 0.3);
}

.course-item-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.course-item-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-item-input input {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1100px) {
  .course-section--photo {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-section--photo .course-ticket {
    max-width: 340px;
  }
}

@media (max-width: 650px) {
  .course-section--photo {
    padding-left: 16px;
    padding-top: 260px;
  }

  .course-photo {
    width: 100%;
    height: 230px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  }

  .course-section--photo h2 {
    font-size: 2.4rem;
  }
}

.course-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.course-details span {
  padding: 10px 14px;
  background: var(--parchment);
  color: var(--ink);
  border: 3px solid #000;
  box-shadow: 3px 4px 0 #000;
  font-weight: 900;
}

.course-ticket {
  min-width: 0;
  max-width: 100%;
  padding: 28px;
  color: var(--ink);
  background: var(--gold);
  border: 5px solid #000;
  box-shadow: 12px 14px 0 #000;
  transform: rotate(2deg);
}

.course-ticket span,
.course-ticket small {
  display: block;
  font-weight: 900;
  text-transform: uppercase;
}

.course-ticket strong {
  display: block;
  margin: 4px 0;
  font-family: Bangers, Impact, fantasy;
  font-size: 4rem;
  white-space: nowrap;
  padding-right: 6px;
  line-height: 0.9;
  text-shadow: 4px 4px 0 rgba(255, 255, 255, 0.65);
}

.course-ticket .primary-action {
  width: 100%;
  margin-top: 24px;
  background: var(--purple);
  color: white;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 520px);
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}
.custom-catalog-link { justify-self: end; max-width: 100%; padding: 14px 18px; text-align: center; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .custom-tier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .custom-tier { grid-template-columns: minmax(0, 1fr); }
  .custom-catalog-link { justify-self: start; }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

.filter {
  min-height: 42px;
  padding: 9px 14px;
  background: var(--parchment);
  color: var(--ink);
  border: 3px solid #000;
  box-shadow: 3px 4px 0 #000;
}

.filter.is-active {
  background: var(--goblin);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1440px;
  margin-inline: auto;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 320px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  border: 4px solid #000;
  box-shadow: 7px 8px 0 #000;
}

.product-art {
  display: grid;
  place-items: center;
  min-height: 0;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.45), transparent 28%),
    linear-gradient(135deg, var(--purple), var(--orange));
  font-size: 4.6rem;
}

.product-art img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f4f4f4;
}

.product-card__body {
  padding: 12px 14px;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.product-card p {
  margin: 0;
  color: #4b3548;
  font-size: 0.95rem;
}

.product-card small {
  display: block;
  margin-top: 10px;
  color: var(--goblin-dark);
  font-weight: 900;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 12px;
}

.product-card__footer strong {
  font-size: 1.25rem;
}

.product-card button {
  min-height: 40px;
  padding: 8px 12px;
  background: var(--purple);
  color: white;
  border: 3px solid #000;
  box-shadow: 3px 4px 0 #000;
  cursor: pointer;
  font-weight: 900;
}

.pos-section {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 430px);
  gap: 32px;
  background: var(--parchment);
  color: var(--ink);
}

.pos-section h2,
.visit-section h2 {
  color: var(--ink);
  text-shadow: 4px 4px 0 rgba(255, 191, 47, 0.75);
}

.pos-section p,
.visit-section p {
  color: #38263b;
}

.pos-section ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pos-section li {
  padding: 14px 16px;
  background: white;
  border: 3px solid #000;
  box-shadow: 4px 5px 0 #000;
  font-weight: 900;
}

.visit-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--goblin);
  color: var(--ink);
}

.visit-section .secondary-action {
  flex: 0 0 auto;
}

.visit-details {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.visit-details p {
  margin: 0;
}

.visit-details strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.visit-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(0, 0, 0, 0.55);
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100vw);
  height: 100svh;
  background: var(--paper);
  color: var(--ink);
  transform: translateX(105%);
  transition: transform 180ms ease;
  box-shadow: var(--shadow);
}

body.cart-open .cart-panel {
  transform: translateX(0);
}

body.cart-open .cart-backdrop {
  display: block;
}

.cart-panel__header,
.cart-panel__footer {
  padding: 20px;
  background: var(--gold);
  border-bottom: 4px solid #000;
}

.cart-panel__footer {
  border-top: 4px solid #000;
  border-bottom: 0;
}

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-panel__header span,
.cart-panel__footer span {
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-panel__header strong,
.cart-panel__footer strong {
  font-size: 1.5rem;
}

.cart-panel__header button {
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: white;
  border: 0;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px;
}

.cart-body {
  min-height: 0;
  overflow-y: auto;
}

.cart-shipping {
  padding: 0 18px 18px;
}

.shipping-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 2px solid var(--ink);
  background: #fff;
  margin-top: 10px;
  cursor: pointer;
}

.shipping-option > input { flex: 0 0 auto; accent-color: #7020a3; margin-top: 4px; }
.shipping-option > span { min-width: 0; overflow-wrap: anywhere; }
.shipping-option span span,
.shipping-option small { display: block; margin-top: 5px; }
.shipping-option small { font-size: 0.8rem; }
.shipping-error { color: #9b1c31; }
.cart-breakdown p { margin: 0 0 6px; font-size: 0.9rem; }
.cart-panel__footer { max-height: 45svh; overflow-y: auto; }
.cart-panel__footer button:disabled { opacity: 0.5; cursor: not-allowed; }
.carrier-tiers { display: grid; gap: 12px; }
.carrier-tier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }

@media (max-width: 540px) {
  .carrier-tier { grid-template-columns: minmax(0, 1fr); }
  .carrier-tier .icon-action { justify-self: end; }
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border: 3px solid #000;
  background: white;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item button {
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--danger);
  color: white;
  cursor: pointer;
  font-weight: 900;
}
.cart-item > div { min-width: 0; }
.cart-quantity { display: inline-grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; width: min(224px, 100%); margin: 10px 0; }
.cart-item .cart-quantity button { width: 44px; height: 44px; background: var(--purple); font-size: 22px; }
.cart-quantity output { min-width: 0; text-align: center; font-weight: 900; overflow-wrap: anywhere; }
.cart-item .cart-quantity button:disabled { opacity: .4; cursor: not-allowed; }
.cart-stock-warning { color: #a22b15; font-weight: 700; }

.cart-panel__footer .primary-action {
  width: 100%;
  margin-top: 14px;
}

@media (max-width: 980px) {
  .course-section,
  .section-heading,
  .pos-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .brand img {
    width: 96px;
    height: 48px;
  }

  .hero-banner {
    min-height: 62svh;
  }

  .hero-banner__image {
    object-position: center top;
  }

  .hero-banner__actions {
    width: min(92vw, 360px);
    bottom: 22px;
  }

  .hero-banner__actions .primary-action,
  .hero-banner__actions .secondary-action {
    flex: 1 1 150px;
  }

  .intro-band,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .visit-section {
    display: grid;
  }

  .visit-actions,
  .visit-section .secondary-action,
  .visit-section .primary-action {
    width: 100%;
  }

  .visit-actions {
    display: grid;
  }
}

.portal-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 16% 0%, rgba(145, 216, 63, 0.22), transparent 24rem),
    linear-gradient(135deg, #120b18 0%, #23132c 48%, #100b14 100%);
}

.portal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px) 0;
}

.auth-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.auth-shell--single {
  grid-template-columns: minmax(280px, 520px);
  justify-content: center;
}

.customer-auth .customer-auth-card h1 {
  margin: 8px 0 26px;
  font-size: 2.75rem;
  line-height: 1.12;
}

.customer-auth-card .kicker { margin: 0; }
.auth-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 26px; border: 2px solid #000; }
.auth-tabs [role="tab"] { min-height: 48px; padding: 10px 8px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 900; cursor: pointer; }
.auth-tabs [role="tab"] + [role="tab"] { border-left: 2px solid #000; }
.auth-tabs [aria-selected="true"] { background: var(--goblin); }
.auth-tabs [role="tab"]:focus-visible { outline: 3px solid var(--purple); outline-offset: -5px; }
.customer-auth [hidden] { display: none !important; }
.customer-auth .google-signin { margin-bottom: 24px; }
.customer-auth [data-google-button] { width: 100%; max-width: 400px; min-height: 40px; margin: 0 auto; }
.customer-auth [data-google-message]:empty { display: none; }
.customer-auth [data-google-message] { margin: 12px 0; font-size: 0.875rem; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: #615968; font-size: 0.8125rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: #ccc4b5; flex: 1; }
.customer-auth .auth-links { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 18px; font-size: 0.8125rem; }
.customer-auth .auth-message:empty { display: none; }
@media (max-width: 600px) {
  .customer-auth .customer-auth-card h1 { font-size: 2.25rem; }
  .customer-auth .auth-tabs [role="tab"] { font-size: 0.875rem; }
}

.portal-card,
.portal-order,
.portal-heading {
  background: var(--paper);
  color: var(--ink);
  border: 4px solid #000;
  box-shadow: 8px 9px 0 #000;
}

.portal-card,
.portal-heading {
  padding: clamp(20px, 4vw, 34px);
}

.portal-card h1,
.portal-heading h1 {
  color: var(--gold);
  font-size: 4rem;
}

.portal-card h2 {
  color: var(--ink);
  font-size: 3rem;
  text-shadow: 4px 4px 0 rgba(255, 191, 47, 0.75);
}

.portal-form,
.admin-order-form,
.ticket-form {
  display: grid;
  gap: 14px;
}

.portal-form label,
.admin-order-form label,
.ticket-form label,
.portal-filter {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.portal-form input,
.admin-order-form input,
.admin-order-form select,
.admin-order-form textarea,
.ticket-form textarea,
.portal-filter select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 3px solid #000;
  font: inherit;
  font-weight: 700;
}

.portal-form textarea,
.admin-order-form textarea,
.ticket-form textarea {
  resize: vertical;
}

.auth-message {
  min-height: 26px;
  margin-top: 14px;
  font-weight: 900;
}

.auth-message[data-type="error"] {
  color: var(--danger);
}

.portal-heading {
  margin-bottom: 24px;
}

.portal-heading p {
  color: #38263b;
}

.portal-heading--admin {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 22px;
  align-items: end;
}

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

.portal-order {
  padding: 20px;
}

.portal-order__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.portal-order__header strong {
  display: block;
  font-size: 1.35rem;
}

.portal-order__header span {
  display: block;
}

.status-pill {
  padding: 8px 12px;
  background: var(--goblin);
  border: 3px solid #000;
  box-shadow: 3px 4px 0 #000;
  font-weight: 900;
  white-space: nowrap;
}

.portal-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.portal-metrics span,
.portal-items span,
.portal-note,
.portal-timeline > div,
.portal-tickets p {
  padding: 11px 12px;
  background: #fff;
  border: 3px solid #000;
  font-weight: 800;
}

.portal-items {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.portal-note {
  margin: 0 0 14px;
  background: var(--parchment);
}

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

.portal-timeline strong,
.portal-timeline span {
  display: block;
}

.portal-timeline p {
  margin: 4px 0 0;
  color: #38263b;
}

.portal-tickets {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ticket-form,
.admin-order-form {
  margin-top: 14px;
}

.ticket-form button,
.admin-order-form button {
  min-height: 46px;
  width: fit-content;
  padding: 10px 16px;
  background: var(--purple);
  color: white;
  border: 3px solid #000;
  box-shadow: 3px 4px 0 #000;
  cursor: pointer;
  font-weight: 900;
}

.ticket-form button:disabled,
.ticket-form textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

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

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

.portal-empty {
  margin: 0;
  padding: 18px;
  background: var(--paper);
  color: var(--ink);
  border: 4px solid #000;
  box-shadow: 6px 7px 0 #000;
  font-weight: 900;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-tabs button,
.icon-action {
  border: 3px solid #000;
  box-shadow: 3px 4px 0 #000;
  cursor: pointer;
  font-weight: 900;
}

.admin-tabs button {
  min-height: 44px;
  padding: 9px 14px;
  background: var(--parchment);
  color: var(--ink);
}

.admin-tabs button.is-active {
  background: var(--goblin);
}

.admin-section {
  display: none;
}

.admin-section.is-active {
  display: grid;
  gap: 18px;
}

.admin-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 2px;
}

.admin-new-button {
  flex: 0 0 auto;
}

.admin-table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 4px solid #000;
  box-shadow: 8px 9px 0 #000;
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  color: var(--ink);
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 3px solid #000;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  background: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
}

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

.admin-table small {
  color: #4b3548;
  font-weight: 800;
}

.admin-thumb {
  width: 92px;
  height: 58px;
  object-fit: cover;
  border: 3px solid #000;
  background: #fff;
}

.icon-action {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  background: var(--purple);
  color: white;
  font-size: 1.2rem;
}

.editor-panel {
  margin-top: 2px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 0;
}

.check-row input {
  width: 22px;
  height: 22px;
}

.product-cover-preview {
  display: grid;
  place-items: center;
  min-height: 170px;
  background: #fff;
  border: 3px solid #000;
  overflow: hidden;
  font-weight: 900;
}

.product-cover-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.stock-log {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.stock-log p {
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  border: 3px solid #000;
  color: var(--ink);
  font-weight: 800;
}

.pos-shell {
  width: min(1320px, calc(100% - 32px));
}

.pos-register-status {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: var(--goblin);
  border: 3px solid #000;
  box-shadow: 4px 5px 0 #000;
  color: var(--ink);
  font-weight: 900;
}

.pos-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
  gap: 20px;
  align-items: start;
}

.pos-close-card {
  grid-column: 1 / -1;
}

.pos-close-toggle {
  grid-column: 1 / -1;
  justify-self: end;
}

.pos-shell [hidden] {
  display: none !important;
}

.pos-search-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.pos-result {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  border: 3px solid #000;
  box-shadow: 3px 4px 0 #000;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.pos-result:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pos-cart {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.pos-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px;
  background: var(--gold);
  color: var(--ink);
  border: 3px solid #000;
  box-shadow: 4px 5px 0 #000;
  font-weight: 900;
}

.pos-total strong {
  font-size: 1.7rem;
}

@media (max-width: 860px) {
  .auth-shell,
  .portal-heading--admin,
  .admin-order-form,
  .pos-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .admin-tabs {
    display: grid;
    justify-content: stretch;
  }

  .admin-new-button {
    width: 100%;
  }

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

@media (max-width: 560px) {
  .portal-metrics {
    grid-template-columns: 1fr;
  }

  .portal-order__header {
    display: grid;
  }

  .status-pill,
  .ticket-form button,
  .admin-order-form button {
    width: 100%;
    text-align: center;
  }
}

/* Keep minimum-content widths inside their grids, especially admin tables. */
.site-header > *,
.portal-shell > *,
.admin-section > *,
.portal-card,
.portal-order,
.portal-form > *,
.admin-order-form > *,
.pos-grid > *,
.cart-item > *,
.custom-tier > *,
.carrier-tier > * { min-width: 0; }

img { max-width: 100%; }
h1, h2, h3, p, label, button, .portal-items, .portal-metrics, .pos-result { overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; }
input, select, textarea { max-width: 100%; }
.portal-form textarea, .portal-form select { width: 100%; min-height: 44px; padding: 10px 12px; border: 3px solid #000; color: var(--ink); background: #fff; font-size: 1rem; }
fieldset { min-width: 0; }
.admin-table-wrap { width: 100%; min-width: 0; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.admin-tabs { margin-bottom: 12px; }
.admin-table td:last-child { position: sticky; right: 0; background: var(--paper); }
.admin-table th:last-child { position: sticky; right: 0; }
.icon-action, .cart-item button, .cart-panel__header button { min-width: 44px; min-height: 44px; }
.admin-order-form .icon-action, .course-item-input .icon-action, .custom-tier .icon-action { width: 44px; height: 44px; padding: 0; flex: 0 0 44px; }
.cart-item { grid-template-columns: minmax(0, 1fr) auto; }
.cart-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.cart-panel { height: 100dvh; }
.cart-panel__footer { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
body.cart-open { overflow: hidden; }
.custom-jar:active { filter: brightness(1.25) drop-shadow(0 0 14px #c879ff); }
.course-ticket { transform: none; }
.course-resource-row { flex-wrap: wrap; }
.course-resource-row > span { flex: 1 1 160px; }
.demo-notice { padding: 8px 16px; background: #e6f4fa; border-bottom: 2px solid #193d4b; color: #193d4b; font-size: 0.875rem; text-align: center; }

@media (max-width: 980px) {
  .auth-shell--single { grid-template-columns: minmax(0, 520px); }
  .hero-banner { min-height: 0; }
  .hero-banner__image { display: block; height: auto; min-height: 0; object-fit: contain; }
  .hero-banner__actions { bottom: 12px; }
  .course-ticket { width: min(360px, 100%); }
  .portal-heading--admin { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  h1 { font-size: 4rem; }
  .hero-banner__actions { width: calc(100% - 24px); max-width: 360px; bottom: 8px; gap: 10px; }
  .hero-banner__actions .primary-action, .hero-banner__actions .secondary-action { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 8px 12px; font-size: 0.8rem; }
  h2 { font-size: 2.75rem; }
  .portal-card h1, .portal-heading h1 { font-size: 3rem; }
  .portal-card h2 { font-size: 2.25rem; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 16px; }
  .main-nav { gap: 20px; max-width: 100%; }
  .main-nav a { flex: 0 0 auto; padding: 8px 0; }
  .account-header-actions { max-width: 210px; gap: 8px; }
  .account-logout { padding: 6px 10px; font-size: 0.8rem; }
  .portal-shell { width: calc(100% - 32px); padding: 26px 0 40px; }
  .portal-card, .portal-heading, .portal-order { padding: 16px; border-width: 3px; box-shadow: 4px 5px 0 #000; }
  .auth-shell, .pos-grid, .admin-order-form { grid-template-columns: minmax(0, 1fr); }
  .portal-heading--admin { gap: 16px; }
  .admin-tabs { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: 100%; gap: 8px; padding: 0 4px 8px 0; }
  .admin-tabs button { flex: 0 0 auto; white-space: nowrap; }
  .admin-toolbar { display: flex; flex-wrap: wrap; align-items: stretch; }
  .admin-toolbar > * { flex: 1 1 180px; }
  .portal-metrics { grid-template-columns: minmax(0, 1fr); }
  .portal-order__header { display: grid; gap: 10px; }
  .status-pill { white-space: normal; }
  .course-section { padding: 32px 20px; gap: 24px; }
  .course-section--photo { padding-top: 260px; }
  .course-section h2 { font-size: 2.5rem; }
  .course-ticket { padding: 20px; box-shadow: 6px 7px 0 #000; }
  .section-copy p, .section-heading p, .visit-section p { font-size: 1rem; }
  .catalog-section { padding: 36px 16px; }
  .section-heading { gap: 18px; grid-template-columns: minmax(0, 1fr); }
  .custom-catalog-link { justify-self: start; width: 100%; font-size: 0.875rem; }
  .courses-heading { padding: 24px 16px; }
  .courses-heading h2 { font-size: 2rem; }
  .filters { gap: 8px; }
  .filter, .catalog-pagination button { min-height: 44px; }
  .custom-laboratory { min-height: 520px; aspect-ratio: auto; }
  .custom-jars { inset: 38% 3% 32px; gap: 6px; }
  .custom-jar span { font-size: 1.1rem; padding: 10px 0; }
  .custom-configurator { width: 100%; padding: 14px; }
  .custom-configurator h3 { font-size: 1.75rem; }
  .custom-form-actions > button { flex: 1 1 150px; }
  .pos-total { flex-wrap: wrap; gap: 8px; }
  .pos-close-toggle { width: 100%; }
  .cart-panel__header, .cart-panel__footer { padding: 14px; }
  .cart-panel__footer { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .cart-items { padding: 12px; }
  .cart-item { padding: 10px; }
  .cart-shipping, .cart-delivery { padding: 0 12px 14px; }
  .portal-form input, .admin-order-form input, .admin-order-form select, .admin-order-form textarea, .ticket-form textarea, .portal-filter select { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cart-panel { transition: none; }
}

.custom-quote { min-width: 0; padding: 12px; border: 1px solid var(--goblin); background: #18111e; }
.custom-quote strong { font-size: 1.75rem; line-height: 1.25; margin: 6px 0; }
.custom-quote span { margin-top: 4px; line-height: 1.4; }
.custom-quote-warning { color: #ffce66; }
.feature-controls { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; color: white; background: var(--ink); }
.feature-controls button { min-width: 44px; height: 44px; border: 2px solid var(--gold); color: white; background: var(--purple); cursor: pointer; padding: 0 10px; }
.feature-controls span { min-width: 44px; text-align: center; }
.catalog-pagination { flex-wrap: wrap; gap: 8px; }
@media (max-width: 680px) {
  .intro-band--carousel { display: block; overflow: hidden; }
  .feature-slide { width: 100%; }
  .feature-slide article { width: 100%; min-height: 0; aspect-ratio: 4 / 3; padding: 24px; }
  .feature-slide h2 { font-size: 2.25rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { min-width: 0; min-height: 320px; border-width: 3px; box-shadow: 3px 4px 0 #000; }
  .product-art { min-height: 0; font-size: 3rem; }
  .product-art img { height: 100%; }
  .product-card__body { padding: 10px; }
  .product-card h3 { font-size: 0.9rem; line-height: 1.3; }
  .product-card p { font-size: 0.8rem; line-height: 1.45; }
  .product-card small { font-size: 0.75rem; }
  .product-labels { gap: 4px; }
  .product-labels button { min-height: 24px; max-width: 100%; padding: 0; border: 0; box-shadow: none; background: none; color: var(--purple); font-size: 0.75rem; text-align: left; }
  .product-card__footer { flex-direction: column; align-items: stretch; gap: 8px; padding: 0 10px 12px; }
  .product-card__footer strong { font-size: 1rem; }
  .product-card__footer button { min-height: 44px; padding: 8px 4px; font-size: 0.8rem; }
}
/* Native dialogs keep record editors separate from the tables. */
.editor-modal { width: min(1040px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 16px; border: 3px solid #130d19; background: #fff8e5; color: #130d19; overflow: auto; border-radius: 4px; }
.editor-modal::backdrop { background: rgb(0 0 0 / 65%); }
.editor-modal__bar { display: flex; justify-content: flex-end; position: sticky; top: 0; z-index: 2; pointer-events: none; }
.editor-modal__bar button { pointer-events: auto; }
.editor-modal .portal-list { margin: 0; }
.editor-modal { color-scheme: light; }
.editor-modal .check-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.editor-modal .check-row input, .editor-modal .checkbox-row input { width: 18px; height: 18px; min-height: 18px; padding: 0; flex: 0 0 18px; }
.editor-modal .portal-order { border: 0; box-shadow: none; padding: 8px; margin: 0; }
.editor-modal h2 { font-size: 28px; margin: 0 0 16px; }
.editor-modal [data-close-editor], .editor-modal [data-close-filter-editor], .editor-modal [data-close-carrier-editor] { display: none; }
.users-pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 20px 0; }
.table-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 250px; }
.table-row-actions .secondary-action { padding: 10px 12px; font-size: 14px; }
.danger-action { color: #fff; background: #a91f37; }
.table-row-actions button:disabled { opacity: 0.5; cursor: not-allowed; }
.checkbox-row { display: flex !important; align-items: center; gap: 8px; }
.checkbox-row input { width: 18px !important; height: 18px; flex: 0 0 18px; }
.auth-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 600px) { .editor-modal { padding: 10px; } .editor-modal .portal-form, .editor-modal .admin-order-form { grid-template-columns: minmax(0, 1fr); } .editor-modal .custom-tier { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Maintenance operations remain compact on narrow admin screens. */
.maintenance-progress { width: 100%; height: 20px; accent-color: #8fd633; }
[data-maintenance-controls] { display: grid; gap: 20px; margin-block: 20px; }
[data-maintenance-controls][hidden], [data-maintenance-tab][hidden] { display: none; }
[data-admin-section="maintenance"] [hidden] { display: none !important; }
[data-maintenance-controls] .portal-form { align-items: end; }
[data-admin-section="maintenance"] h2 { font-size: 28px; overflow-wrap: anywhere; }
[data-admin-section="maintenance"] .portal-form { grid-template-columns: minmax(0, 1fr); }
[data-admin-section="maintenance"] .portal-form label { min-width: 0; }
[data-admin-section="maintenance"] .admin-toolbar { flex-wrap: wrap; }
[data-maintenance-controls] input[type="file"] { min-width: 0; max-width: 100%; }
[data-maintenance-status][data-state="failed"] { color: #ffadad; }
[data-maintenance-status][data-state="completed"] { color: #8fd633; }
.course-reservation-modal { width: min(920px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 20px; }
.course-modal-header, .course-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.course-modal-header h2 { font-family: Inter, sans-serif; font-size: 22px; line-height: 1.3; margin: 0; overflow-wrap: anywhere; text-shadow: none; }
.course-modal-header .icon-action { flex: 0 0 44px; width: 44px; height: 44px; }
.course-reservation-modal .admin-table th:last-child, .course-reservation-modal .admin-table td:last-child { position: static; }
.course-reservation-modal [data-cash-names] { display: grid; gap: 12px; grid-column: 1 / -1; }
.course-reservation-modal form { margin-top: 24px; }
.course-reservation-modal h3, .course-reservation-modal form > p { grid-column: 1 / -1; }
.course-reservation-modal h3 { font: 700 18px/1.4 Inter, sans-serif; text-shadow: none; }
.course-attendees { padding: 0 18px 18px; }
.course-attendees fieldset { display: grid; gap: 12px; min-width: 0; margin: 12px 0; padding: 12px; border: 2px solid currentColor; grid-column: 1 / -1; }
.course-attendees legend { max-width: 100%; overflow-wrap: anywhere; font-weight: 700; }
.course-panel-heading h1 { font-size: 36px; }
.admin-header { grid-template-columns: auto minmax(0, 1fr) auto; }
.admin-header .main-nav { justify-content: flex-start; align-items: center; gap: 24px; min-width: 0; overflow: visible; }
.admin-identity { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-width: 0; }
.admin-identity [data-admin-name] { max-width: 200px; overflow-wrap: anywhere; font-weight: 700; font-size: 14px; }
.admin-identity button { min-height: 44px; padding: 9px 14px; flex-shrink: 0; }
.admin-menu { position: relative; flex: 0 0 180px; text-transform: none; }
.admin-menu summary { cursor: pointer; min-height: 44px; padding: 12px 16px; background: #302434; border: 1px solid #68556d; border-radius: 4px; color: #fff; font-size: 14px; }
.admin-menu summary:focus-visible, .admin-menu-items button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.admin-menu-items { position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; width: 240px; max-height: 65svh; overflow-y: auto; padding: 6px; background: #211b24; border: 1px solid #68556d; border-radius: 4px; box-shadow: 0 8px 24px #0008; }
.admin-menu-items button { display: block; width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 3px; background: transparent; color: #fff; text-align: left; font: 700 14px Inter, sans-serif; cursor: pointer; }
.admin-menu-items button:hover { background: #3c3042; }
.admin-menu-items button.is-active { background: var(--goblin); color: var(--ink); }
.admin-menu-items button[hidden] { display: none; }
.admin-shell { padding-top: 24px; }
.admin-view-title { margin: 0 0 24px; color: #fff; font: 700 26px/1.3 Inter, sans-serif; text-shadow: none; }
@media (max-width: 820px) {
  .admin-header { grid-template-columns: auto minmax(0, 1fr); }
  .admin-header .brand img { width: 80px; height: 44px; }
  .admin-header .main-nav { grid-row: 2; grid-column: 1 / -1; gap: 16px; flex-wrap: wrap; }
  .admin-identity { grid-row: 1; grid-column: 2; gap: 10px; }
  .admin-identity [data-admin-name] { max-width: 140px; }
  .admin-menu { flex-basis: 156px; }
  .admin-menu-items { max-width: calc(100vw - 32px); }
}
@media (max-width: 400px) {
  .admin-header .main-nav { gap: 10px; font-size: 11px; }
  .admin-menu { flex-basis: 140px; }
  .admin-identity [data-admin-name] { max-width: 110px; }
}

.product-card--highlight { animation: promotion-aura 3s ease-in-out infinite alternate; }
.store-intro { background: #18151e; border-bottom: 1px solid #493b50; padding: 44px 24px; }
.admin-product-controls { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(130px, 1fr) minmax(130px, 1fr) 44px; gap: 16px; align-items: end; margin-bottom: 18px; }
.admin-product-controls input, .admin-product-controls select { width: 100%; min-height: 44px; padding: 9px 12px; border: 3px solid #000; background: #fff; color: #160c1e; font: inherit; }
.admin-product-controls label { min-width: 0; }
.admin-product-facets { margin-bottom: 18px; }
.admin-product-tags { display: flex; gap: 4px 10px; flex-wrap: wrap; margin-top: 6px; }
.admin-product-tags button { border: 0; background: none; color: #7020a3; padding: 0; font: 700 12px/1.5 Inter, sans-serif; text-align: left; overflow-wrap: anywhere; }
.admin-product-tags button:hover { text-decoration: underline; }
.admin-product-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin: 16px 0; }
.admin-product-pagination nav { display: flex; gap: 12px; align-items: center; }
.admin-product-bulk-toolbar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 12px 0; }
.admin-product-bulk-toolbar .check-row { padding: 0; }
[data-admin-products] input[type="checkbox"] { width: 18px; height: 18px; accent-color: #7020a3; }
.product-bulk-dialog { width: min(720px, calc(100vw - 24px)); max-height: 90svh; padding: 22px; border: 3px solid #000; color: #160c1e; background: #fff8e5; }
.product-bulk-dialog::backdrop { background: #14091bc9; }
.product-bulk-dialog header { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.product-bulk-dialog h2 { font: 700 22px/1.3 Inter, sans-serif; text-shadow: none; color: #160c1e; }
.product-bulk-dialog .check-row { display: flex; gap: 10px; align-items: center; }
.product-bulk-dialog .check-row input { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; padding: 0; }
.product-bulk-dialog .product-tag-group { border-color: #7020a3; }
.product-bulk-dialog [data-bulk-warning]:empty, .product-bulk-dialog [data-bulk-status]:empty { display: none; }
.product-bulk-dialog [data-price-conflicts]:empty { display: none; }
.product-bulk-dialog [hidden] { display: none !important; }
.product-visibility-button { width: 48px; height: 48px; padding: 10px; flex: 0 0 48px; }
.product-visibility-button img, .bulk-visibility-choice img { width: 24px; height: 24px; }
.product-visibility-button[data-state="on"], .bulk-visibility-choice.is-on { background: #93d52b; color: #160c1e; }
.product-visibility-button[data-state="off"], .bulk-visibility-choice.is-off { background: #ffbf2f; color: #160c1e; }
.product-visibility-button[data-state="mixed"] { background: #e5dce9; color: #160c1e; }
.product-visibility-button:disabled { opacity: 0.5; }
.bulk-visibility-options { display: flex; gap: 12px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.bulk-visibility-options legend { margin-bottom: 10px; }
.product-bulk-dialog .bulk-visibility-choice { display: flex; align-items: center; gap: 8px; padding: 12px; border: 2px solid #000; cursor: pointer; }
.product-bulk-dialog .bulk-visibility-choice input { width: 18px; height: 18px; min-height: 18px; padding: 0; }
.bulk-visibility-choice:has(input:checked) { outline: 3px solid #7020a3; outline-offset: 2px; }
.product-bulk-dialog select { width: 100%; min-height: 44px; padding: 9px 12px; border: 3px solid #000; font: inherit; color: #160c1e; background: white; }
.admin-product-pagination .portal-filter { display: flex; gap: 10px; align-items: center; }
@media (max-width: 750px) {
  .admin-product-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 12px; }
  .admin-product-controls > label:first-child { grid-column: 1 / -1; }
  [data-admin-section="products"] .admin-table td:last-child, [data-admin-section="products"] .admin-table th:last-child { position: static; }
  [data-admin-section="products"] .admin-table td:nth-child(3) { min-width: 220px; }
}
.store-intro__inner { width: 100%; max-width: 1440px; margin: 0 auto; min-width: 0; }
.store-intro { scroll-margin-top: 120px; }
.store-intro h1 { font-size: 48px; line-height: 1.1; }
.store-intro h2 { font: 700 22px/1.4 Inter, sans-serif; color: #fff; text-shadow: none; margin: 12px 0 20px; }
.store-intro p:not(.kicker) { max-width: none; font-size: 17px; line-height: 1.8; color: #e5e0e9; margin: 14px 0; }
.store-intro h1, .store-intro h2, .store-intro p { overflow-wrap: anywhere; white-space: normal; }
.store-intro strong { color: #fff; }
.store-intro .store-intro__closing { color: #ace65e !important; font-weight: 700; margin-bottom: 0 !important; }
@media (max-width: 680px) { .store-intro { padding: 30px 20px; } .store-intro h1 { font-size: 40px; } .store-intro h2 { font-size: 20px; } .store-intro p:not(.kicker) { font-size: 16px; } }
@media (min-width: 900px) { .store-intro { padding: 44px 40px; } }
@media (max-width: 360px) { .store-intro { padding: 24px 16px; } .store-intro h1 { font-size: 34px; } }
@media (max-width: 680px) { .store-intro { scroll-margin-top: 160px; } }
.admin-product-controls { grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(130px, 1fr)) 44px; }
@media (max-width: 900px) { .admin-product-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-product-controls > label:first-child { grid-column: 1 / -1; } .admin-product-controls > label:has([data-product-stock]) { grid-column: 1 / -1; grid-row: 3; padding-right: 56px; } .admin-product-controls > [data-product-search-reset] { grid-column: 2; grid-row: 3; width: 44px; justify-self: end; align-self: end; } }
.custom-basket, .custom-saved { margin-top: 28px; padding-top: 20px; border-top: 1px solid #66516e; scroll-margin-top: 180px; }
.custom-basket-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin: 14px 0; }
.custom-basket .admin-table-wrap, .custom-saved .admin-table-wrap { max-height: 560px; overflow: auto; }
.custom-basket-table thead th { position: sticky; top: 0; z-index: 1; }
.custom-basket-table { min-width: 650px; }
.custom-basket-table td { vertical-align: middle; }
.custom-basket-table td:last-child, .custom-basket-table th:last-child { position: static; }
.custom-basket-table button { white-space: nowrap; }
.custom-basket input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; accent-color: #93d52b; }
.custom-basket-table td:nth-child(3) { min-width: 210px; overflow-wrap: anywhere; }
.basket-thumbnail, .cart-panel .custom-reference, .cart-product-thumbnail { width: 80px; height: 80px; object-fit: contain; margin: 6px 0; background: #fff; border-radius: 4px; }
.custom-basket-table .reference-preview-button, .custom-cart-summary .reference-preview-button { padding: 0; background: transparent; border: 0; box-shadow: none; }
.custom-cart-summary { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 16px 0; }
.custom-cart-summary > span { flex: 1 1 220px; overflow-wrap: anywhere; }
.cart-item > div { min-width: 0; overflow-wrap: anywhere; }
.cart-item .reference-preview-button { padding: 0; background: none; width: 80px; height: 80px; box-shadow: none; }
@media (max-width: 680px) {
  .custom-basket-table { min-width: 0; display: block; }
  .custom-basket-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .custom-basket-table tbody { display: block; }
  .custom-basket-table tbody tr { display: grid; grid-template-columns: 24px 64px minmax(0, 1fr); gap: 8px; padding: 12px 8px; border-bottom: 2px solid #000; }
  .custom-basket-table td { display: block; padding: 0; border: 0; min-width: 0 !important; font-size: 13px; }
  .custom-basket-table td:nth-child(3) { min-width: 0; }
  [data-custom-basket-rows] td:nth-child(4) { grid-column: 2; }
  [data-custom-basket-rows] td:nth-child(4)::before { content: 'Piezas: '; }
  [data-custom-basket-rows] td:nth-child(5) { grid-column: 3; }
  [data-custom-basket-rows] td:nth-child(5)::before { content: 'Subtotal: '; }
  [data-custom-basket-rows] td:nth-child(6) { grid-column: 2 / -1; }
  [data-custom-saved-rows] tr { grid-template-columns: 64px minmax(0, 1fr); }
  [data-custom-saved-rows] td:nth-child(3), [data-custom-saved-rows] td:nth-child(4) { grid-column: 2; }
  [data-custom-saved-rows] td:nth-child(3)::before { content: 'Piezas: '; }
  .custom-basket-table td[colspan] { grid-column: 1 / -1; }
  .custom-basket-table .basket-thumbnail { width: 64px; height: 64px; }
  .custom-basket-table button { max-width: 100%; padding: 8px; font-size: 12px; }
}
.admin-notices { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 10000; display: grid; gap: 8px; pointer-events: none; }
.admin-notice { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 14px 18px; background: #b7efca; color: #103e24; border: 1px solid #2c8651; border-radius: 4px; font: 600 15px/1.5 Inter, sans-serif; box-shadow: 0 4px 16px #0003; pointer-events: auto; opacity: 1; transition: opacity 250ms; overflow-wrap: anywhere; }
.admin-notice.is-error { background: #ffddb3; border-color: #ab5800; color: #562b00; }
.admin-notice.in-dialog { position: sticky; top: 0; order: -1; margin: 0 0 12px; }
.admin-notice.is-leaving { opacity: 0; }
.portal-page .admin-notice > button { border: 0; background: transparent; color: inherit; padding: 0 4px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin: -8px -8px -8px 0; box-shadow: none; font: inherit; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .admin-notice { transition: none; } }
@keyframes promotion-aura {
  from { border-color: #8bdb31; box-shadow: 0 0 0 2px #8bdb31, 0 0 15px #70d62b80; }
  to { border-color: #ff9932; box-shadow: 0 0 0 2px #ff9932, 0 0 18px #ff993280; }
}
.promo-badge { display: inline-block; padding: 4px 7px; margin: 6px 6px 0 0; color: #162509 !important; background: #a7e956; font-weight: 700; }
.product-card__footer .catalog-promo-price { background: #ffbf2f; color: #120a18; padding: 6px 10px; border: 2px solid #000; font-family: 'Bangers', sans-serif; font-size: 28px; line-height: 1.05; }
.catalog-promo-price del { display: block; font-family: Arial, sans-serif; font-size: 13px; color: #4e2537; margin-bottom: 3px; }
.product-card__footer { flex-wrap: wrap; gap: 10px; }
.promotion-dialog { width: min(920px, calc(100vw - 24px)); max-height: 90svh; padding: 22px; border: 3px solid #000; background: #fff8e5; color: #160c1e; }
.promotion-dialog::backdrop { background: #14091bc9; }
.promotion-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.promotion-dialog h2 { font: 700 22px/1.2 Arial, sans-serif; margin: 0; text-shadow: none; color: #160c1e; }
.promotion-dialog .check-row { display: flex; gap: 10px; align-items: center; margin: 0; }
.promotion-dialog .check-row input { width: 20px; height: 20px; min-height: 20px; padding: 0; flex: 0 0 20px; }
[data-admin-section="promotions"] h2 { font: 700 20px/1.4 Arial, sans-serif; text-shadow: none; color: #fff; margin: 24px 0 12px; }
.promotion-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.promotion-form [hidden] { display: none !important; }
.promo-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.promo-selection-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.promo-product-list { max-height: 310px; overflow: auto; border-top: 1px solid #bfb3c2; }
.promo-product-row { display: grid !important; grid-template-columns: 22px 48px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #bfb3c2; }
.promotion-dialog .promo-product-row input { width: 20px; height: 20px; min-height: 20px; padding: 0; }
.promo-product-row strong, .promo-product-row small { display: block; overflow-wrap: anywhere; }
.promo-thumbnail { width: 48px; height: 48px; display: grid; place-items: center; background: #e5dce9; }
.promo-thumbnail img { width: 48px; height: 48px; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .product-card--highlight { animation: none; box-shadow: 0 0 0 2px #8bdb31; } }
@media (max-width: 600px) { .promotion-dialog { padding: 14px; } .promotion-form, .promo-filters { grid-template-columns: minmax(0, 1fr); } .product-card__footer .catalog-promo-price { font-size: 24px; padding: 4px 7px; } }
.pos-price-modal { width: min(560px, calc(100% - 24px)); }
.pos-price-modal .portal-order__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pos-price-modal .portal-order__header h2 { min-width: 0; margin: 0; font-family: Arial, sans-serif; font-size: 1.25rem; font-style: normal; line-height: 1.3; text-shadow: none; }
.pos-price-modal button[data-price-close] { flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; padding: 0; }
.pos-custom-modal { width: min(620px, calc(100% - 24px)); }
.pos-custom-modal .portal-order__header h2 { font-family: Arial, sans-serif; }
.pos-custom-type { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; }
.pos-custom-type img { width: 72px; height: 80px; object-fit: contain; }
.pos-custom-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pos-custom-quote { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid #79643d; }
.pos-cart .cart-item button[data-pos-custom-edit] { width: auto; height: auto; max-width: 100%; padding: 8px 10px; margin: 8px 0; font-size: .875rem; }
.pos-cart .cart-item button.secondary-action { background: var(--purple); }
.patch-history-modal { width: min(1100px, calc(100% - 24px)); }
.patch-history-tools { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(140px, 1fr) minmax(150px, 1fr) auto; align-items: end; gap: 12px; }
.patch-history-tools label { display: grid; gap: 6px; min-width: 0; }
.patch-history-tools input, .patch-history-tools select { width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 2px solid #000; font-size: 1rem; }
.patch-history-modal .admin-pagination { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.patch-history-modal .admin-pagination button:disabled { opacity: .4; cursor: not-allowed; }
.audit-stock-modal { width: min(570px, calc(100% - 24px)); }
.audit-stock-applied { padding: 12px; background: #c9efcf; color: #14351e; border-left: 4px solid #238544; line-height: 1.5; }
.store-contact-modal { width: min(650px, calc(100% - 24px)); }
.reports-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.reports-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.reports-controls label { min-width: 0; }
.reports-controls input, .reports-controls select { width: 100%; min-width: 0; }
.reports-presets { grid-column: 1 / -1; }
.reports-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.report-kpi, .report-panel { background: #fff8e5; color: #1c1523; border: 3px solid #08060a; box-shadow: 5px 5px #08060a; padding: 20px; min-width: 0; }
.report-kpi { display: flex; flex-direction: column; gap: 10px; }
.report-kpi strong { font-size: clamp(1.3rem, 2.3vw, 2.3rem); overflow-wrap: anywhere; }
.report-kpi-main { background: #ffc72c; }
.reports-graphs { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.reports-wide { grid-column: 1 / -1; }
.report-panel { margin-bottom: 20px; }
.report-panel h2 { font-size: 1.4rem; margin: 0 0 16px; }
.reports-chart { width: 100%; height: auto; display: block; }
.reports-chart text { font: 11px Arial, sans-serif; fill: #333; }
.reports-bars { padding: 0; list-style: none; display: grid; gap: 16px; }
.reports-bars li > div:first-child { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.reports-bars span { overflow-wrap: anywhere; }
.reports-bar-track { height: 12px; background: #e4dccb; margin-top: 7px; }
.reports-bar-track span { display: block; height: 100%; background: linear-gradient(90deg, #7024a0, #4b941b); }
.reports-note { line-height: 1.6; margin: 20px 0; }
.reports-error { color: #ffb964; }
.supply-modal { width: min(850px, calc(100% - 24px)); }
.supply-modal [hidden] { display: none !important; }
.reports-controls label.check-row { display: flex; align-items: center; gap: 10px; }
.reports-controls .check-row input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 18px; padding: 0; }
.report-panel h2 { font-family: Inter, sans-serif; color: #281832; text-shadow: none; transform: none; font-weight: 900; letter-spacing: normal; }
.sales-reports button:not(.primary-action):not(.secondary-action):not(.icon-action), [data-admin-section=supply] button:not(.primary-action):not(.secondary-action), [data-admin-section=suppliers] button:not(.primary-action):not(.secondary-action) { background: #6d219f; border: 2px solid #08060a; color: #fff; padding: 9px 12px; font: 700 .875rem Inter, sans-serif; cursor: pointer; }
.sales-reports button:disabled, [data-admin-section=supply] button:disabled { opacity: .45; cursor: default; }
.sales-reports .admin-table th, .sales-reports .admin-table td, [data-admin-section=supply] .admin-table th, [data-admin-section=supply] .admin-table td, .supply-modal .admin-table th, .supply-modal .admin-table td { display: table-cell !important; }
[data-supply-rows] input[type=number] { width: 100px; padding: 8px; background: #fff; color: #111; }
[data-admin-section=supply] .admin-table { min-width: 900px; }
.sales-reports .admin-table { min-width: 600px; }
@media (max-width: 900px) { .reports-controls, .reports-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reports-graphs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .reports-controls, .reports-metrics { grid-template-columns: minmax(0, 1fr); } .report-panel { padding: 12px; } }
.cash-detail-modal { width: min(1100px, calc(100% - 24px)); }
.cash-detail-modal .admin-table { min-width: 720px; }
.cash-detail-modal .admin-table input[type=number] { width: 110px; }
.cash-detail-modal .portal-metrics { margin: 16px 0; }
.cash-history { border-top: 2px solid #24152e; padding: 12px 0; }
.cash-product-results { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; }
.pos-product-thumb { width: 76px; height: 76px; object-fit: contain; background: #fff; border: 1px solid #555; }
.pos-result .pos-product-thumb { float: left; margin-right: 10px; }
.pos-cart .cart-item button[data-pos-admin-restore] { width: auto; height: auto; padding: 8px; }
.pos-cart .cart-item label { display: inline-flex; align-items: center; gap: 8px; margin: 8px 12px 8px 0; flex-wrap: wrap; }
.pos-cart input[data-pos-admin-price] { width: 120px; padding: 8px; border: 2px solid #111; background: #fff; color: #111; font: inherit; }
.pos-cart .cart-item button[data-pos-admin-restore] { background: #6b209b; }
.pos-shell [hidden], .cash-detail-modal [hidden] { display: none !important; }
.visit-details a { color: inherit; overflow-wrap: anywhere; }
.visit-section [hidden] { display: none !important; }
.patch-history-modal .admin-table { min-width: 800px; }
.patch-history-modal td:first-child { overflow-wrap: anywhere; }
.patch-history-modal details p { font-size: .875rem; }
@media (max-width: 680px) { .patch-history-tools { grid-template-columns: minmax(0, 1fr); } }
.pos-cart .cart-item button[data-pos-price], .pos-cart .cart-item button[data-pos-price-clear] { display: inline-flex; align-items: center; justify-content: center; width: auto; height: auto; max-width: 100%; padding: 8px 10px; margin: 8px 4px 8px 0; font-size: .875rem; line-height: 1.3; }
