:root {
  color-scheme: light;
  --ink: #241c14;
  --muted: #665b51;
  --paper: #f1e9de;
  --panel: #f7f0e6;
  --raised: #ede0cf;
  --line: #d7c6b2;
  --amber: #b8692b;
  --copper: #8b4513;
  --gold: #d4a574;
  --positive: #4a8f57;
  --warning: #b8851f;
  --danger: #a84242;
  --shadow: 0 10px 26px rgba(70, 43, 18, .07), 0 2px 6px rgba(70, 43, 18, .035);
}

[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
body > header.site-header {
  position: relative;
  z-index: 30;
  width: 100%;
  height: 80px;
  min-height: 80px;
  padding: 0 28px;
  border-bottom: 3px solid var(--gold);
  background: #f3ebe0;
}
.site-header .brand {
  color: #151210;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
}
.site-header .brand span { color: inherit; font-weight: inherit; }
.header-actions { position: relative; display: flex; align-items: center; gap: 24px; }
.header-actions .quiet-link { font-size: 14px; }
.retailer-label { font-size: 17px; }
.account-toggle, .header-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.ui-chevron {
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
}
.header-menu, .retailer-label, .account-toggle { display: none; }
.mobile-account { display: none; }
#mobile-store-card { display: none; }
.portal-signed-in .retailer-label, .portal-signed-in .account-toggle { display: inline-flex; }
.account-summary {
  position: absolute;
  top: 60px;
  right: 0;
  z-index: 40;
  width: min(320px, calc(100vw - 24px));
  padding: 20px;
  border-color: var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(36, 28, 20, .16);
}
.account-summary .secondary { min-width: 100%; margin-top: 14px; }
body > main { width: 100%; max-width: none; padding: 0; }
.auth-card {
  max-width: 580px;
  margin: clamp(32px, 7vh, 90px) auto 70px;
  padding: clamp(26px, 4vw, 42px);
  border-top: 4px solid var(--copper);
}
.auth-card h1 { font-size: clamp(36px, 4vw, 50px); line-height: 1.08; }
.auth-card > p:not(.eyebrow) { max-width: 48ch; }
.auth-card .primary { width: 100%; }
.auth-card a, .claim-status-card a, #claim-card a { color: var(--copper); text-underline-offset: 3px; }
#portal {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  min-height: calc(100dvh - 80px);
}
#portal-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: calc(100dvh - 80px);
  padding: 26px 14px 36px 22px;
  border-right: 1px solid var(--line);
  background: #ede3d5;
}
.store-picker {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: none;
  width: calc(100% - 8px);
  margin: 0 0 28px 6px;
  padding: 16px 38px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5ede2;
  color: transparent;
  font-size: 0;
  box-shadow: none;
}
.store-picker::after {
  content: "";
  position: absolute;
  top: 27px;
  right: 20px;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid var(--ink);
  border-bottom: 1.8px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.store-picker select {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
  appearance: none;
  cursor: pointer;
}
#store-location { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; font-weight: 400; }
#portal-nav { display: grid; gap: 2px; }
#portal-nav button {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  border: 0;
  border-left: 5px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #211a14;
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
#portal-nav button[hidden] { display: none; }
#portal-nav button:hover, #claim-nav:hover { background: #f5eadd; }
#portal-nav button.is-active {
  border-left-color: var(--copper);
  background: #e7d5bf;
  color: var(--copper);
  font-weight: 750;
  box-shadow: inset 0 0 0 1px rgba(139, 69, 19, .12);
}
#claim-nav {
  width: calc(100% - 8px);
  min-height: 54px;
  margin: auto 0 0 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5ede2;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#claim-nav.is-active { border-color: var(--copper); color: var(--copper); font-weight: 750; }
#portal-content {
  min-width: 0;
  padding: 36px 28px 80px 40px;
  background: var(--paper);
}
.portal-heading { align-items: flex-start; gap: 24px; margin: 0 0 24px; }
.portal-heading .eyebrow { display: none; }
.portal-heading h1 {
  font-size: clamp(36px, 3.5vw, 50px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.08;
}
.portal-heading p { margin: 9px 0 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 22px); }
.portal-heading > div:first-child { min-width: 0; }
#portal-message { margin-bottom: 18px; }
.portal-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ede2d4;
}
.portal-subnav[hidden] { display: none; }
.portal-subnav button {
  min-height: 44px;
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.portal-subnav button.is-active { background: var(--panel); color: var(--copper); box-shadow: 0 2px 7px rgba(70, 43, 18, .10); }
.overview-actions { margin-bottom: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #f4ebdf; }
.overview-actions h3 { margin: 0 0 12px; }
.overview-actions h3:not(:first-child) { margin-top: 20px; }
.overview-checklist { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.overview-action-list { display: flex; flex-wrap: wrap; gap: 8px; }
.overview-action-list button { min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--copper); font: inherit; font-weight: 700; cursor: pointer; }
.overview-actions a { color: var(--copper); font-weight: 700; }
.message:empty { display: none; }
.message { min-height: 0; color: var(--danger); font-weight: 600; }
.message.success { color: #347744; }
.card, .portal-section, #claim-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
#managed-stores { display: block; }
#managed-stores .portal-section { display: none; margin: 0; padding: 0; }
#managed-stores .portal-section.is-current { display: block; }
#managed-stores .portal-section > summary {
  padding: 23px 28px 21px;
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: #f3e8db;
  cursor: default;
  pointer-events: none;
}
.portal-section > summary h2 { font-size: 26px; letter-spacing: -.035em; }
.portal-section > summary .summary-chevron { display: none; }
.portal-section-body { padding: 24px 28px 30px; }
.portal-section-body > p:first-child { margin-top: 0; }
#managed-stores .portal-section[data-portal-section="inventory"] > summary { display: none; }
#managed-stores .portal-section[data-portal-section="inventory"] .portal-section-body { padding: 0; }
#claim-card { display: none; padding: 28px; }
#claim-card.is-current { display: block; }
#claim-card > summary { display: none; }
#claim-card > p, #claim-card > form { margin-left: 0; margin-right: 0; }
#claim-card > form { padding-bottom: 0; }
.claim-status-card { padding: 20px 28px; }
.claim-status-card.is-contextual-hidden { display: none; }
.claim-status-card h2 { margin: 0 0 8px; font-size: 22px; }
.claim-status-card .plain-list { margin: 0; }
.claim-status-card .plain-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.claim-status-card .claim-status-name { display: block; margin-bottom: 7px; font-weight: 750; }
.claim-status-card .claim-status-guidance { margin: 7px 0 0; }
.claim-status-card .status-pending { background: #fff0d9; color: #70420f; }
.claim-status-card .status-approved { background: #e8f4e9; color: #2f713d; }
.claim-status-card .status-rejected { background: #f9e8e8; color: #872b2b; }
.claim-status-card .status-revoked { background: #ebe7e2; color: #51473f; }
.portal-grid { display: contents; }
h2, h3 { color: var(--ink); }
.section-heading { align-items: center; margin-bottom: 22px; }
.section-heading h2 { font-size: 24px; }
.section-heading p { font-size: 15px; }
.small, .field-help, .field-note { color: var(--muted); }
label { color: var(--ink); font-size: 14px; font-weight: 650; }
form { gap: 19px; }
.form-grid { gap: 18px; }
input, textarea, select {
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #cdbba6;
  border-radius: 12px;
  background: #fbf6ee;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 110px; }
input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(184, 105, 43, .18);
}
input[type="checkbox"] { width: 19px; height: 19px; min-height: 0; accent-color: var(--copper); }
.primary, .secondary, .destructive {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  font: inherit;
  font-weight: 750;
  line-height: 1.25;
  transition: background .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;
}
.primary { background: var(--copper); color: #fff; }
.primary:hover { background: #71340c; }
.primary:active, .secondary:active { transform: scale(.98); }
.secondary { border: 1px solid #c3aa93; background: transparent; color: var(--copper); }
.secondary:hover { background: #eee0ce; }
.destructive { min-height: 44px; }
button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--amber) !important;
  outline-offset: 3px;
}
button:disabled { opacity: .58; cursor: not-allowed; }
.search-results { gap: 8px; }
.store-choice { min-height: 54px; border-radius: 12px; background: var(--panel); }
.plain-list li { padding: 16px 0; }
.drop-row, .source-row {
  border-color: var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.drop-row:hover { border-color: var(--gold); }
.empty { border-color: var(--line); background: #f3e9dd; }
.status-draft { border: 1px solid var(--amber); background: #fff4e7; color: var(--copper); }
.status-published { border: 1px solid #a2c9aa; background: #e8f4e9; color: #2f713d; }
.status-past { background: var(--raised); }
.status-cancelled { background: #f9e8e8; color: var(--danger); }
.status-pill { padding: 5px 10px; border-radius: 8px; }
.tag, .drop-kind { background: #f4e8db; color: var(--copper); }
.inventory-action { flex: 0 0 auto; margin-top: 8px; }
.inventory-action .primary { min-width: 178px; }
.inventory-tabs {
  display: flex;
  gap: 20px;
  margin: 18px 28px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ede2d4;
}
.inventory-tabs button {
  position: relative;
  min-height: 54px;
  padding: 12px 15px;
  border: 0;
  background: transparent;
  color: #4c4540;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.inventory-tabs button[aria-selected="true"] { color: var(--copper); font-weight: 750; }
.inventory-tabs button[aria-selected="true"] {
  border-radius: 9px;
  background: var(--panel);
  box-shadow: 0 2px 7px rgba(70, 43, 18, .10);
}
.inventory-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--copper);
}
.inventory-panel { margin: 26px 28px 30px; }
#inventory-panel-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.publication-filters {
  display: inline-flex;
  margin: 28px 26px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f1e6d8;
}
.publication-filters button {
  min-width: 170px;
  min-height: 52px;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.publication-filters button[aria-pressed="true"] {
  border-radius: 10px;
  background: #e7d3bc;
  color: var(--copper);
  font-weight: 750;
}
.section-note { margin: 10px 26px 18px; color: var(--muted); font-size: 15px; }
.inventory-table-head, .inventory-row {
  display: grid;
  grid-template-columns: minmax(210px, 2.3fr) minmax(80px, .8fr) minmax(78px, .7fr) minmax(130px, 1fr) minmax(95px, .8fr) 136px;
  align-items: center;
  column-gap: 12px;
}
.inventory-table-head {
  min-height: 58px;
  padding: 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--raised);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}
#inventory-offer-list { display: block; margin: 0; }
.inventory-row {
  width: 100%;
  min-height: 98px;
  padding: 14px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  font-size: 15px;
}
.inventory-row:hover { background: #f2e8da; }
.inventory-row:last-child { border-bottom: 0; }
.inventory-row .inventory-name { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 1px 10px; min-width: 0; }
.inventory-name > strong { grid-column: 2; font-size: 16px; line-height: 1.35; }
.inventory-name > .checkbox-label { display: grid; grid-column: 1; grid-row: 1 / span 2; place-items: center; min-width: 44px; min-height: 44px; }
.inventory-confirmed { grid-column: 2; color: var(--muted); font-size: 12px; }
.inventory-price, .inventory-quantity { font-variant-numeric: tabular-nums; }
.inventory-availability, .inventory-publication { display: grid; gap: 4px; }
.inventory-row .availability-value { display: inline-flex; align-items: center; gap: 9px; }
.inventory-row .availability-dot { display: inline-block; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; }
.availability-in_stock { background: var(--positive); }
.availability-limited { background: var(--warning); }
.availability-out_of_stock { background: var(--danger); }
.availability-unknown { background: #81796f; }
.inventory-publication .status-pill { justify-self: start; }
.inventory-row-actions { display: flex; gap: 5px; }
.inventory-row-actions .secondary { min-height: 44px; padding: 7px 9px; font-size: 13px; }
.inventory-row-actions [data-edit-inventory] { background: var(--copper); border-color: var(--copper); color: white; }
.inventory-row-actions [data-remove-inventory] { color: var(--danger); border-color: transparent; }
.inventory-row .mobile-cell-label { display: none; }
.inventory-draft-footer {
  margin: 0;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: #f3e9dd;
  color: var(--muted);
  font-size: 14px;
}
#inventory-offer-list > .empty { margin: 16px 26px 26px; }
.inventory-import {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f4ebdf;
}
.inventory-import > summary { display: none; }
#inventory-panel-updates .inventory-import { display: grid; gap: 14px; }
#inventory-panel-updates h3 { margin: 0; font-size: 23px; }
#inventory-panel-updates p { margin: 0; }
#inventory-panel-updates .quick-action-buttons { margin: 0; }
#inventory-updates-list { margin-top: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
#inventory-updates-list > p { padding: 14px 20px; color: var(--muted); }
#inventory-updates-list > .empty { margin: 0; padding: 20px; }
#inventory-preview { margin: 14px 0; }
#inventory-preview p { color: var(--ink); }
.inventory-editor-panel { padding: 28px; }
.editor-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.editor-heading h3 { margin: 0; font-size: 25px; }
.editor-heading p { margin: 4px 0 0; }
.inventory-editor-panel > p { margin-top: 22px; font-size: 14px; }
.inventory-editor-panel > form { margin-top: 24px; }
.inventory-editor-panel .message { grid-column: 1 / -1; }
.portal-section[data-portal-section="profile"] .portal-section-body { padding-top: 22px; }
#profile-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 0; }
#profile-form .compact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
#profile-form > label:first-child { margin-bottom: 4px; }
#profile-form > button { justify-self: end; min-width: 160px; }
#profile-message { justify-self: stretch; }
.portal-section[data-portal-section="guide"] a { color: var(--copper); font-weight: 700; }
dialog { border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
dialog header { border-bottom: 1px solid var(--line); padding-bottom: 15px; }
dialog footer { border-top: 1px solid var(--line); padding-top: 15px; }
dialog .icon { min-width: 44px; min-height: 44px; }
dialog .eyebrow { color: var(--copper); }

@media (max-width: 1100px) {
  #portal { grid-template-columns: 250px minmax(0, 1fr); }
  #portal-sidebar { padding-left: 14px; }
  #portal-content { padding-left: 26px; padding-right: 20px; }
  .inventory-table-head, .inventory-row {
    grid-template-columns: minmax(160px, 2fr) 80px 64px minmax(110px, 1fr) 95px 120px;
    gap: 8px;
  }
  .inventory-row { padding-left: 14px; padding-right: 14px; }
  .inventory-table-head { padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 701px) and (max-width: 1270px) {
  .inventory-table-head { display: none; }
  .inventory-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 12px;
    padding: 20px;
  }
  .inventory-name { grid-column: 1 / -1; }
  .inventory-price, .inventory-quantity, .inventory-availability, .inventory-publication { display: grid; gap: 4px; }
  .inventory-publication { grid-column: 1 / -1; grid-row: 2; }
  .inventory-price, .inventory-quantity, .inventory-availability { grid-row: 3; }
  .inventory-row .mobile-cell-label { display: block; color: var(--muted); font-size: 13px; }
  .inventory-row-actions { grid-column: 1 / -1; grid-row: 4; justify-content: flex-end; }
  .inventory-row-actions .secondary { min-height: 44px; min-width: 66px; }
}
@media (max-width: 900px) {
  body > header.site-header { height: 66px; min-height: 66px; padding: 0 20px; }
  .site-header .brand { font-size: 25px; }
  .portal-signed-in .header-menu { display: inline-flex; }
  .header-menu { min-height: 44px; padding: 6px 11px; font-weight: 700; }
  .menu-bars { display: grid; gap: 4px; width: 20px; }
  .menu-bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
  .portal-signed-in .retailer-label, .portal-signed-in .account-toggle { display: none; }
  .header-actions .quiet-link { display: none; }
  #portal { display: block; min-height: calc(100dvh - 66px); }
  #portal-sidebar {
    position: fixed;
    z-index: 45;
    top: 66px;
    bottom: 0;
    left: 0;
    width: min(320px, 86vw);
    min-height: 0;
    padding: 18px 14px 22px;
    overflow-y: auto;
    box-shadow: 14px 0 32px rgba(36, 28, 20, .16);
    transform: translateX(-110%);
    transition: transform .18s ease;
  }
  .portal-menu-open { overflow: hidden; }
  .portal-menu-open #portal-sidebar { transform: translateX(0); }
  #portal-menu-backdrop {
    position: fixed;
    z-index: 44;
    inset: 66px 0 0;
    width: 100%;
    border: 0;
    background: rgba(36, 28, 20, .36);
  }
  #portal-content { padding: 18px 18px 70px; }
  #mobile-store-card { position: relative; display: grid; width: 100%; min-height: 70px; margin: 0 0 26px; padding: 13px 52px 13px 18px; border: 1px solid var(--line); border-left: 4px solid var(--copper); border-radius: 12px; background: #f5ede2; color: var(--ink); font: inherit; text-align: left; }
  #mobile-store-card strong { font-size: 18px; }
  #mobile-store-location { color: var(--muted); font-size: 14px; }
  .mobile-store-chevron { position: absolute; top: 18px; right: 18px; font-size: 27px; line-height: 1; }
  .portal-heading { display: flex; flex-direction: column; gap: 22px; margin-bottom: 24px; }
  .portal-heading h1 { font-size: clamp(34px, 8vw, 46px); }
  .portal-heading p { font-size: 18px; }
  .inventory-action { width: 100%; margin: 0; }
  .inventory-action .primary { width: 100%; min-height: 48px; }
  .account-summary { display: none !important; }
  .mobile-account { display: grid; gap: 10px; margin: auto 6px 0; padding: 24px 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
  .mobile-account span { color: var(--muted); font-size: 14px; }
  .mobile-account button { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--copper); font: inherit; font-weight: 700; }
  .auth-card { width: min(100% - 32px, 580px); margin: 30px auto 60px; }
}
@media (max-width: 700px) {
  .claim-status-card { padding: 18px 20px; }
  .portal-subnav[aria-label="Store Settings sections"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .portal-subnav[aria-label="Store Settings sections"] button { padding: 8px 4px; font-size: 13px; line-height: 1.2; }
  #managed-stores .portal-section > summary { padding: 22px 20px 18px; }
  .portal-section-body { padding: 16px 20px 26px; }
  .portal-section > summary h2 { font-size: 23px; }
  #claim-card { padding: 22px 20px; }
  .inventory-tabs { gap: 0; justify-content: space-between; margin: 16px 16px 0; }
  .inventory-tabs button { min-height: 58px; padding: 8px 8px; font-size: 14px; white-space: nowrap; }
  .inventory-panel { margin: 16px; }
  .publication-filters { display: flex; margin: 18px 14px 0; }
  .publication-filters button { flex: 1; min-width: 0; min-height: 48px; }
  .section-note { margin: 8px 14px 16px; font-size: 14px; }
  .inventory-table-head { display: none; }
  .inventory-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 10px;
    padding: 22px 18px;
    font-size: 15px;
  }
  .inventory-name { grid-column: 1 / -1; align-items: start; }
  .inventory-name > strong { font-size: 18px; }
  .inventory-confirmed { display: none; }
  .inventory-price, .inventory-quantity, .inventory-availability, .inventory-publication { display: grid; gap: 4px; }
  .inventory-publication { grid-column: 1 / -1; grid-row: 2; }
  .inventory-price, .inventory-quantity, .inventory-availability { grid-row: 3; }
  .inventory-row .mobile-cell-label { display: block; color: var(--muted); font-size: 13px; }
  .inventory-row-actions { grid-column: 1 / -1; grid-row: 4; justify-content: flex-end; }
  .inventory-row-actions .secondary { min-height: 44px; min-width: 66px; }
  .inventory-draft-footer { padding: 16px 18px; }
  .inventory-editor-panel { padding: 22px 18px; }
  .editor-heading { flex-direction: column; }
  .editor-heading .secondary { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .section-heading { flex-direction: column; align-items: stretch; }
  .section-heading .primary { align-self: stretch; }
  .drop-row, .source-row:not(.inventory-row) { align-items: stretch; }
  #profile-form > button { justify-self: stretch; }
  #profile-form .compact-grid { grid-template-columns: 1fr; }
  dialog { width: min(100% - 16px, 760px); padding: 20px; }
}
.store-name-workspace, .allocation-workspace { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line, #d9d0c3); }
.store-name-workspace h3 { margin: 0 0 10px; }
.store-name-workspace form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0 8px; }
.store-name-workspace label { flex: 1 1 240px; min-width: 0; }
.store-name-workspace button { min-height: 44px; }
.store-name-workspace #store-name-status { overflow-wrap: anywhere; }
@media (max-width: 600px) { .store-name-workspace button { width: 100%; } }
.allocation-workspace h3, .allocation-workspace h4 { margin: 0 0 10px; }
.allocation-workspace fieldset { border: 0; margin: 16px 0; padding: 0; min-width: 0; }
.allocation-workspace legend { font-weight: 650; margin-bottom: 10px; }
.allocation-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; }
.allocation-methods label { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.allocation-methods input { width: auto; margin-top: 3px; }
.allocation-workspace textarea { min-height: 145px; white-space: pre-wrap; }
.allocation-workspace #allocation-current-details { white-space: pre-wrap; overflow-wrap: anywhere; }
.allocation-suggestion { border: 1px solid var(--line, #d9d0c3); border-radius: 12px; padding: 14px; margin: 12px 0; }
.allocation-suggestion p { white-space: pre-wrap; overflow-wrap: anywhere; }
.allocation-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.allocation-overview-alert { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 16px 0; padding: 14px; border: 1px solid #b88249; border-radius: 12px; background: #fff5e7; }
.allocation-overview-alert.is-hidden { display: none; }
@media (max-width: 600px) { .allocation-actions button { flex: 1 1 100%; } }
@media (max-width: 360px) {
  body > header.site-header { padding: 0 12px; }
  .site-header .brand { font-size: 21px; }
  .header-menu { padding: 6px 9px; font-size: 14px; }
  .inventory-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .inventory-tabs button { min-width: 0; white-space: normal; }
  .inventory-tabs button:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Public-site visual system, adapted for a dense retailer workspace. */
:root {
  --ink: #27231f;
  --muted: #655d54;
  --paper: #f8f5ef;
  --panel: #fffdfa;
  --raised: #eee7dc;
  --line: #d9cfc2;
  --amber: #ca7129;
  --copper: #a65a22;
  --gold: #ca7129;
  --shadow: 0 10px 26px rgba(39, 35, 31, .06);
}
body { font-family: Inter, "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body > header.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .brand { color: var(--charcoal, #252420); }
.auth-card, .card, .portal-section, #claim-card { border-color: var(--line); border-top-color: var(--amber); background: var(--panel); box-shadow: var(--shadow); }
.auth-card { margin-top: clamp(36px, 7vh, 80px); }
.auth-card h1, .portal-heading h1, .portal-section > summary h2, .section-heading h2, .claim-status-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.12;
}
.auth-card h1 { font-size: clamp(38px, 4.4vw, 54px); }
#portal-sidebar { background: #252420; border-right-color: #252420; color: #f8f5ef; }
.store-picker { border-color: #665c51; background: #38342e; }
.store-picker select { color: #fffdfa; }
.store-picker::after { border-color: #f3c39b; }
#store-location { color: #c3b8aa; }
#portal-nav button { color: #f1e9de; }
#portal-nav button:hover, #claim-nav:hover { background: #3a352f; color: #fffdfa; }
#portal-nav button.is-active { border-left-color: var(--amber); color: #ffd1aa; background: #40372f; box-shadow: none; }
#claim-nav { border-color: #665c51; color: #f1e9de; background: #38342e; }
#claim-nav.is-active { border-color: var(--amber); color: #ffd1aa; }
#portal-content { background: var(--paper); }
.portal-heading p { max-width: 68ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; }
.portal-subnav { border-color: var(--line); background: var(--raised); }
.portal-subnav button.is-active { color: var(--copper); background: var(--panel); }
.overview-actions, #managed-stores .portal-section > summary { background: #f5f0e8; }
.overview-action-list button, .store-choice { background: var(--panel); }
input, textarea, select { border-color: #cfc5b8; background: #fffdfa; }
input:focus, textarea:focus, select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(202, 113, 41, .16); }
.primary, .inventory-row-actions [data-edit-inventory] { background: var(--copper); border-color: var(--copper); }
.primary:hover, .inventory-row-actions [data-edit-inventory]:hover { background: #87491b; }
.secondary { border-color: #c9b8a5; color: var(--copper); }
.secondary:hover { background: #f1e7da; }
.inventory-table-head, .inventory-draft-footer { background: var(--raised); }
.inventory-row { background: var(--panel); }
.inventory-row:hover { background: #fbf2e8; }
.inventory-row:focus-within { outline: 2px solid var(--amber); outline-offset: -2px; }
.publication-filters { background: var(--raised); }
.publication-filters button[aria-pressed="true"] { background: var(--panel); color: var(--copper); }
.inventory-import { background: #f7f2eb; }
.message:not(:empty), .form-message:not(:empty) { padding-block: 4px; }
@media (max-width: 900px) {
  #portal-sidebar { border-right: 0; }
  .portal-heading h1 { font-size: clamp(32px, 7vw, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  .inventory-row, #portal-nav button, .portal-subnav button { transition: none; }
}
