:root {
  --ink: #191714;
  --muted: #6f6961;
  --paper: #f7f3ec;
  --white: #ffffff;
  --line: rgba(25, 23, 20, 0.13);
  --gold: #9b7540;
  --gold-light: #d8c5a4;
  --danger: #8c2f26;
  --shadow: 0 24px 80px rgba(35, 28, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

.brand-logo {
  display: block;
  width: 158px;
  height: 58px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.86rem;
}

.header-nav a {
  color: var(--muted);
}

.header-nav a:hover {
  color: var(--ink);
}

.cart-button {
  appearance: none;
  padding: 0.72rem 1rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.cart-button span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  margin-left: 0.4rem;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.72rem;
}

.hero {
  display: grid;
  min-height: 670px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw;
}

.hero h1,
.section-heading h2,
.drawer-header h2,
.modal-card h2,
.staff-intro h1,
.staff-pass-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.04;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3.1rem, 6vw, 6.8rem);
}

.hero-description {
  max-width: 610px;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.modal-actions,
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.add-button[aria-pressed="true"],
.add-button[aria-pressed="true"]:hover,
.add-button[aria-pressed="true"]:focus-visible {
  border-color: #77736e;
  background: #77736e;
  color: var(--white);
}

.button-light {
  background: transparent;
  color: var(--ink);
}

.full-width {
  width: 100%;
}

.hero-art {
  align-self: center;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eee4d3;
}

.archive-sale-artwork {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-section {
  padding: 7rem 4vw;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 4vw;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.42);
}

.footer-branding p {
  margin: 0;
}

.footer-branding p:last-child {
  margin-top: 0.65rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.footer-contact {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem 2rem;
}

.footer-contact a,
.footer-hours {
  padding-bottom: 0.25rem;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.footer-contact a {
  border-bottom: 1px solid var(--gold);
}

.footer-hours {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1500px;
  margin: 0 auto 2.4rem;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
}

.catalog-controls {
  display: grid;
  max-width: 1500px;
  margin: 0 auto 2.4rem;
  grid-template-columns: 1.5fr repeat(3, 1fr) auto;
  gap: 0.7rem;
}

.catalog-controls label,
.lookup-card label,
.receipt-field {
  display: grid;
  gap: 0.45rem;
}

.catalog-controls label > span,
.lookup-card label > span,
.receipt-field > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: rgba(255,255,255,0.72);
  color: var(--ink);
}

input,
select {
  min-height: 48px;
  padding: 0 0.9rem;
}

textarea {
  min-height: 110px;
  padding: 0.9rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(155, 117, 64, 0.1);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(143, 45, 45, 0.1);
}

.product-grid {
  display: grid;
  max-width: 1500px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.15rem;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.54);
}

.product-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.7;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #e9e2d7;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.product-image-wrap:focus-visible {
  z-index: 1;
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.product-card:hover .product-image {
  transform: scale(1.025);
}

.sale-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.55rem 0.7rem;
  background: rgba(255,255,255,0.9);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.image-zoom-hint {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.52rem 0.68rem;
  background: rgba(20, 17, 13, 0.76);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.image-count-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: rgba(20, 17, 13, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.image-count-badge.hidden,
.image-viewer-nav.hidden { display: none; }

.image-count-badge.with-sold { top: 3.7rem; }

.product-image-wrap:hover .image-zoom-hint,
.product-image-wrap:focus-visible .image-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  overflow: hidden;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
}

.image-viewer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(14, 12, 10, 0.92);
  cursor: zoom-out;
  backdrop-filter: blur(8px);
}

.image-viewer-stage {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  max-width: 1600px;
  max-height: 1100px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  pointer-events: none;
}

.image-viewer-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(20, 17, 13, 0.76);
  color: #fff;
  cursor: pointer;
  font-size: 0;
  place-items: center;
  pointer-events: auto;
  transform: translateY(-50%);
}

.image-viewer-nav::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
}

.image-viewer-previous { left: 0.5rem; }
.image-viewer-next { right: 0.5rem; }
.image-viewer-previous::before { transform: translate(-50%, -50%) rotate(-135deg); }
.image-viewer-next::before { transform: translate(-50%, -50%) rotate(45deg); }

.image-viewer-nav:hover,
.image-viewer-nav:focus-visible {
  border-color: var(--gold-light);
  background: #18130d;
  outline: none;
}

.image-viewer-nav:disabled {
  cursor: default;
  opacity: 0.25;
}

.image-viewer-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(20, 17, 13, 0.82);
  color: #fff;
  cursor: pointer;
  font: 300 1.8rem/1 Arial, sans-serif;
  place-items: center;
  pointer-events: auto;
  transition: background 180ms ease, border-color 180ms ease;
}

.image-viewer-close:hover,
.image-viewer-close:focus-visible {
  border-color: var(--gold-light);
  background: #18130d;
  outline: none;
}

.image-viewer-caption {
  position: absolute;
  bottom: 0;
  left: 50%;
  max-width: min(90%, 720px);
  padding: 0.65rem 1rem;
  background: rgba(20, 17, 13, 0.72);
  color: #fff;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.image-viewer-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.03em;
}

.image-viewer-counter {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.image-viewer-dots {
  display: flex;
  margin-top: 0.35rem;
  gap: 0.3rem;
  justify-content: center;
}

.image-viewer-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.image-viewer-dots span.active { background: #fff; }

.product-content {
  padding: 1.25rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-name {
  margin: 0.7rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 400;
}

.product-description {
  min-height: 48px;
  margin: 0.75rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.spec-list {
  display: grid;
  margin: 0;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-list > div {
  padding: 0.8rem 0;
}

.spec-list > div + div {
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-list dd {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
}

.price-block {
  display: grid;
  margin: 1.1rem 0;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.25rem 0.8rem;
}

.sale-price {
  font-size: 1.35rem;
}

.original-price {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: line-through;
}

.savings {
  grid-column: 1 / -1;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
}

.steps-grid {
  display: grid;
  max-width: 1500px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps-grid article {
  min-height: 250px;
  padding: 2rem;
  border-right: 1px solid var(--line);
}

.steps-grid article:last-child {
  border-right: 0;
}

.steps-grid article > span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.steps-grid h3 {
  margin: 4rem 0 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 400;
}

.steps-grid p {
  margin: 0;
  color: var(--muted);
}

.empty-state {
  padding: 3rem 1rem;
  color: var(--muted);
  text-align: center;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}

.drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-backdrop,
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 13, 0.46);
  opacity: 0;
  transition: opacity 180ms ease;
}

.drawer.open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(520px, 100%);
  height: 100%;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header,
.staff-pass-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2,
.modal-card h2,
.staff-pass-header h2 {
  font-size: 2.4rem;
}

.icon-button {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
}

#cart-drawer .icon-button {
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
}

.cart-row {
  display: grid;
  padding: 1.15rem 0;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.cart-row img {
  width: 92px;
  height: 112px;
  object-fit: cover;
  background: #e8dfd2;
}

.cart-row-main {
  display: grid;
  gap: 0.6rem;
}

.cart-row h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 400;
}

.cart-row p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.cart-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-row-bottom strong {
  margin-left: auto;
}

.text-button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  text-decoration: underline;
}

.cart-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.18rem;
}

.fine-print {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 2rem 1rem;
}

.modal-backdrop {
  opacity: 1;
}

.modal > .modal-backdrop {
  position: fixed;
}

.modal-card {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  padding: 2.2rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.reference-block {
  display: grid;
  margin: 1.6rem 0;
  place-items: center;
}

.reference-block span {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.reference-block strong {
  margin-top: 0.2rem;
  font-family: "Courier New", monospace;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  letter-spacing: 0.06em;
}

.qr-shell {
  display: grid;
  min-height: 320px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--white);
}

.qr-shell img {
  width: min(320px, 90%);
}

.pass-meta {
  display: grid;
  padding: 1.1rem 0;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.pass-meta strong {
  color: var(--ink);
}

.pass-meta span:last-child {
  text-align: right;
}

.pass-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.pass-summary div > div {
  display: grid;
}

.pass-summary span {
  color: var(--muted);
  font-size: 0.76rem;
}

.staff-body {
  min-height: 100vh;
}

.staff-main {
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.staff-body.staff-unlocked .staff-main {
  padding-top: 24px;
}

#staff-workspace:not(.hidden) {
  display: block;
  min-height: calc(100dvh - 76px);
  padding: 0 0 2rem;
}

.staff-workspace-bar {
  display: flex;
  align-items: stretch;
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}

.staff-tabs {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.staff-tab {
  position: relative;
  min-width: max-content;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.staff-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
}

.staff-tab:focus-visible {
  z-index: 1;
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

.staff-tab-workspace {
  min-height: calc(100dvh - 121px);
}

.staff-tab-panel[hidden] {
  display: none !important;
}

.staff-login {
  width: min(560px, 100%);
  margin: 4rem auto 0;
}

.staff-login h1 {
  font-size: clamp(2.7rem, 7vw, 4.8rem);
}

.staff-login > p:not(.eyebrow),
.security-note {
  color: var(--muted);
}

.security-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  line-height: 1.6;
}

.staff-tool-grid {
  display: contents;
}

.staff-tool,
.catalog-manager {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 0;
  background: transparent;
}

.staff-tool h2,
.catalog-manager h2 {
  margin: 0.25rem 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}

.staff-tool .button,
.product-form .button {
  margin-top: 1rem;
}

.product-form,
.product-form label {
  display: grid;
  gap: 0.75rem;
}

.product-form {
  gap: 1rem;
}

.image-upload-field {
  display: grid;
  gap: 0.75rem;
}

.image-upload-field > span {
  font-size: 0.9rem;
}

.image-dropzone {
  position: relative;
  display: grid;
  min-height: 240px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(155, 117, 64, 0.7);
  outline: none;
  background: rgba(255,255,255,0.46);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.image-dropzone:hover,
.image-dropzone:focus-visible,
.image-dropzone.is-dragging {
  border-color: var(--gold);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 0 0 3px rgba(155, 117, 64, 0.1);
}

.image-dropzone[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(143, 45, 45, 0.1);
}

.image-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.image-drop-prompt {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.image-drop-prompt strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.image-drop-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 0.35rem;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
}

.image-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
}

.image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 420px;
  object-fit: contain;
  background: var(--paper-deep);
}

.image-preview-remove {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(20,20,20,0.18);
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 3px 14px rgba(0,0,0,0.12);
}

.image-preview-remove:hover,
.image-preview-remove:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.price-inputs,
.product-detail-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.price-inputs.price-inputs-single {
  grid-template-columns: 1fr;
}

.success-text {
  margin: 1rem 0 0;
  color: #3d6841;
  font-size: 0.84rem;
}

.catalog-import-panel {
  display: grid;
  margin-top: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 0;
  background: transparent;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.catalog-import-panel h2 {
  margin: 0.25rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}

.catalog-import-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.import-steps {
  display: grid;
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  gap: 0.65rem;
  color: var(--muted);
}

.catalog-import-actions,
.catalog-import-form,
.catalog-import-form label {
  display: grid;
  gap: 0.75rem;
}

.catalog-import-actions {
  align-content: start;
}

.catalog-import-form {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.catalog-import-form label > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-import-review {
  display: grid;
  grid-column: 1 / -1;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.catalog-import-review-header,
.catalog-import-review-actions,
.catalog-import-confirm-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-import-review-header h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.catalog-import-review-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
}

.catalog-import-review-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.catalog-import-review-table th,
.catalog-import-review-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.catalog-import-review-table th {
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-import-confirm-label {
  justify-content: flex-start;
  font-size: 0.84rem;
}

.catalog-import-confirm-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.catalog-import-review-actions {
  justify-content: flex-end;
}

.catalog-manager {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem 1rem;
}

.catalog-manager .manager-controls {
  grid-column: 1;
  grid-row: 2 / 5;
  margin: 0;
  align-self: start;
}

.catalog-manager .section-heading {
  display: block;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--line);
}

.catalog-manager .manager-bulk-bar {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.catalog-manager .form-message {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.catalog-manager .managed-products,
.catalog-manager .empty-state {
  grid-column: 2;
  grid-row: 3;
}

.catalog-manager .manager-pagination {
  grid-column: 2;
  grid-row: 4;
}

.catalog-manager .manager-filter-grid {
  grid-template-columns: 1fr;
}

.catalog-manager .manager-search-field {
  grid-column: auto;
}

.catalog-manager .manager-control-footer {
  align-items: stretch;
  flex-direction: column;
}

.catalog-manager .manager-view-toggle {
  width: 100%;
}

.catalog-manager .manager-view-toggle button {
  flex: 1;
  min-width: 0;
}

.catalog-manager .managed-products {
  gap: 0.5rem;
}

.catalog-manager .managed-product {
  grid-template-columns: auto 60px minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
}

.catalog-manager .managed-product img {
  width: 60px;
  height: 60px;
}

.catalog-manager .section-heading h2 {
  margin-bottom: 0.25rem;
}

.catalog-manager .section-heading .muted {
  margin: 0;
  font-size: 0.78rem;
}

.manager-controls {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}

.manager-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.manager-filter-grid label {
  display: grid;
  gap: 0.45rem;
}

.manager-filter-grid label > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manager-search-field {
  grid-column: span 2;
}

.manager-control-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.manager-view-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.manager-view-toggle button {
  min-width: 82px;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.manager-view-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.manager-bulk-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}

.manager-select-page-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.manager-select-page-label input,
.managed-product-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

#manager-selected-count {
  color: var(--muted);
  font-size: 0.8rem;
}

.manager-bulk-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-left: auto;
}

.manager-bulk-actions .button {
  margin: 0;
}

.button-danger {
  border-color: rgba(140, 47, 38, 0.45);
  background: transparent;
  color: var(--danger);
}

.button-danger:hover,
.button-danger:focus-visible {
  border-color: var(--danger);
  background: var(--danger);
  color: var(--white);
}

.managed-products {
  display: grid;
  gap: 0.75rem;
}

.managed-product {
  position: relative;
  display: grid;
  grid-template-columns: auto 76px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}

.managed-product-archived {
  border-color: rgba(155, 117, 64, 0.48);
  background: rgba(216, 197, 164, 0.15);
}

.managed-product-archived > img {
  filter: grayscale(0.45);
  opacity: 0.78;
}

.managed-product-select {
  display: grid;
  place-items: center;
}

.managed-product img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  background: var(--paper-deep);
}

.managed-product div {
  display: grid;
  gap: 0.3rem;
}

.managed-product span {
  color: var(--muted);
  font-size: 0.82rem;
}

.managed-product-specs {
  display: none;
}

.managed-product-description {
  color: var(--ink) !important;
  line-height: 1.35;
}

.managed-archive-badge {
  display: inline-flex;
  margin-left: 0.45rem;
  padding: 0.22rem 0.42rem;
  background: var(--gold-light);
  color: var(--ink) !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.58rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.managed-feature-badge {
  display: inline-flex;
  margin-left: 0.45rem;
  padding: 0.22rem 0.42rem;
  background: var(--gold);
  color: var(--white) !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.58rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.managed-product-actions {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem !important;
}

.managed-product-actions .button {
  margin: 0;
}

.managed-products-card-view {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.managed-products-card-view .managed-product {
  display: flex;
  min-width: 0;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.managed-products-card-view .managed-product-select {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 18px rgba(25, 23, 20, 0.16);
}

.managed-products-card-view .managed-product > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
}

.managed-products-card-view .managed-product-copy {
  padding: 1rem;
}

.managed-products-card-view .managed-product-copy > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.managed-products-card-view .managed-product-specs {
  display: inline;
}

.managed-products-card-view .managed-product-actions {
  margin-top: auto;
  padding: 0 1rem 1rem;
}

.managed-products-card-view .managed-product-actions .button {
  flex: 1;
}

.manager-pagination {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.manager-pagination span {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.manager-pagination .button {
  margin: 0;
}

.edit-product-card {
  width: min(960px, 100%);
}

.edit-image-grid {
  display: grid;
  margin-top: 1.5rem;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
}

.edit-current-image-wrap {
  display: grid;
  gap: 0.75rem;
}

.edit-current-image-wrap > span,
.image-upload-field > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edit-current-image-wrap img {
  width: 100%;
  height: 240px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: var(--paper-deep);
}

.edit-image-dropzone,
.edit-image-dropzone .image-preview,
.edit-image-dropzone .image-preview img {
  min-height: 240px;
}

.edit-product-actions {
  justify-content: flex-end;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.lookup-card,
.staff-pass {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.62);
}

.staff-pass {
  margin: 0 clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem);
}

.lookup-card .button {
  margin-top: 1rem;
}

.error-text {
  margin: 1rem 0 0;
  color: var(--danger);
  font-size: 0.84rem;
}

.status-badge {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-badge[data-status="completed"] {
  background: #dceadc;
}

.status-badge[data-status="expired"] {
  background: #eadedc;
}

.integrity-banner {
  margin-top: 1.2rem;
  padding: 1rem;
  font-size: 0.82rem;
}

.integrity-warning {
  border: 1px solid rgba(155,117,64,0.32);
  background: rgba(155,117,64,0.08);
}

.integrity-danger {
  border: 1px solid rgba(140,47,38,0.32);
  background: rgba(140,47,38,0.08);
  color: var(--danger);
}

.staff-details-grid {
  display: grid;
  margin-top: 1.2rem;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.staff-details-grid > div {
  display: grid;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.staff-details-grid > div:last-child {
  border-right: 0;
}

.staff-details-grid span {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.staff-details-grid strong {
  margin-top: 0.25rem;
}

.staff-item-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.staff-item-thumbnail {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  background: var(--paper);
  object-fit: cover;
}

.staff-item-thumbnail-missing {
  display: grid;
  color: var(--muted);
  place-items: center;
}

.staff-item-row h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.staff-item-row p,
.staff-item-row span {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.gallery-upload-field {
  display: grid;
  gap: 0.45rem;
}

.gallery-selection { min-height: 1.1em; }

.edit-gallery-section {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.edit-gallery-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.edit-gallery-heading > div { display: grid; gap: 0.3rem; }

.gallery-add-button { position: relative; overflow: hidden; }
.gallery-add-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.edit-gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  margin-top: 0.85rem;
  gap: 0.75rem;
}

.edit-gallery-item {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.edit-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.edit-gallery-actions { display: flex; padding: 0.4rem; gap: 0.35rem; }
.edit-gallery-actions button { flex: 1; min-width: 0; padding: 0.45rem; }
.edit-gallery-empty { margin: 0.75rem 0 0; }

.staff-item-row .staff-item-alert {
  margin-top: 0.45rem;
  color: #74591f;
  font-weight: 700;
}

.staff-item-row .staff-item-alert-sold {
  color: #9b2c2c;
}

.sold-filter-check {
  display: flex !important;
  min-height: 48px;
  align-items: center;
  align-self: end;
  gap: 0.55rem !important;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.48);
  cursor: pointer;
}

.sold-filter-check input {
  width: 17px;
  min-height: auto;
  margin: 0;
}

.sold-filter-check > span {
  white-space: nowrap;
}

.managed-sold-badge {
  display: inline-block;
  padding: 0.18rem 0.38rem;
  background: #701f36;
  color: #fff !important;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sold-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.55rem 0.7rem;
  background: #701f36;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.add-button.sold-button:disabled {
  border-color: #aaa;
  background: #aaa;
  color: #f7f7f7;
  cursor: not-allowed;
  opacity: 1;
}

.staff-insights,
.staff-pass-overview {
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.staff-insights h2,
.staff-pass-overview h2 {
  margin: 0.25rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}

.insights-heading {
  align-items: end;
}

.insights-heading label,
.insights-controls label,
.pass-overview-controls label {
  display: grid;
  gap: 0.4rem;
}

.insights-heading label > span,
.insights-controls label > span,
.pass-overview-controls label > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-indexer-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.insights-summary {
  display: grid;
  margin: 1.5rem 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
}

.insights-summary > div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.insights-summary > div:last-child {
  border-right: 0;
}

.insights-summary span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insights-summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
}

.insights-session-ticker small {
  color: var(--muted);
  font-size: 0.72rem;
}

.insights-session-ticker small b {
  color: var(--ink);
}

.insights-points-note {
  margin: -0.25rem 0 1rem;
}

.insights-controls,
.pass-overview-controls {
  display: grid;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
  grid-template-columns: minmax(240px, 1fr) minmax(170px, 240px);
}

.pass-overview-controls {
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 200px) auto;
}

.pass-overview-controls .button {
  min-height: 45px;
}

.staff-pass-overview {
  border-top: 1px solid var(--line);
}

.staff-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
}

.staff-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.staff-data-table th,
.staff-data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.staff-data-table th {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.staff-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.staff-data-table td > span:not(.status-badge),
.staff-data-table td > strong + span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.staff-data-table .button {
  padding: 0.55rem 0.8rem;
  white-space: nowrap;
}

.pass-overview-table td:nth-child(3) {
  min-width: 260px;
}

.privacy-main {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.privacy-hero {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.privacy-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1;
}

.privacy-hero > p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
}

.privacy-main > section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.privacy-main > section h2 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 400;
}

.privacy-main > section p {
  margin: 0.75rem 0 0;
  color: #413d38;
}

.privacy-main > section a {
  border-bottom: 1px solid var(--gold);
}

.privacy-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.privacy-table th,
.privacy-table td {
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.privacy-table th:last-child,
.privacy-table td:last-child {
  border-right: 0;
}

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

.privacy-table th {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-table code {
  font-size: 0.78rem;
}

.privacy-footer {
  margin-top: 0;
}

.receipt-field {
  margin-top: 1.3rem;
}

@media (max-width: 1000px) {
  .header-nav a:not(.staff-link) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    width: 100%;
  }

  .catalog-controls {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-details-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .insights-summary > div:nth-child(3) {
    border-right: 0;
  }

  .insights-summary > div:nth-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }

  .staff-tool-grid {
    grid-template-columns: 1fr;
  }

  .catalog-import-panel {
    grid-template-columns: 1fr;
  }

  .manager-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-manager {
    display: block;
  }

  .catalog-manager .manager-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-manager .manager-search-field {
    grid-column: span 2;
  }

  .catalog-manager .manager-control-footer {
    align-items: center;
    flex-direction: row;
  }

  .catalog-manager .manager-view-toggle {
    width: auto;
  }

  .staff-details-grid > div:nth-child(2) {
    border-right: 0;
  }

  .staff-details-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 650px) {
  #staff-workspace:not(.hidden) {
    display: block;
    min-height: calc(100dvh - 66px);
    padding: 0 0 max(2rem, env(safe-area-inset-bottom));
  }

  .staff-workspace-bar {
    margin: 0 -1rem;
    min-height: 48px;
    border-right: 0;
    border-left: 0;
  }

  .staff-tabs {
    width: 100%;
    border-left: 0;
  }

  .staff-tab {
    flex: 1 0 auto;
    min-height: 48px;
    padding: 0.75rem 1rem;
  }

  .staff-tab-workspace {
    min-height: calc(100dvh - 114px);
    margin: 0 -1rem;
  }

  .insights-heading {
    align-items: stretch;
    gap: 1rem;
  }

  .insights-summary {
    grid-template-columns: 1fr 1fr;
  }

  .insights-summary > div,
  .insights-summary > div:nth-child(3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .insights-summary > div:nth-child(even) {
    border-right: 0;
  }

  .insights-summary > div:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .insights-controls,
  .pass-overview-controls {
    grid-template-columns: 1fr;
  }

  .staff-data-table,
  .staff-data-table tbody,
  .staff-data-table tr,
  .staff-data-table td {
    display: block;
  }

  .staff-data-table thead {
    display: none;
  }

  .staff-data-table tr {
    padding: 0.75rem;
    border-bottom: 1px solid var(--line);
  }

  .staff-data-table tbody tr:last-child {
    border-bottom: 0;
  }

  .staff-data-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border: 0;
    text-align: right;
  }

  .staff-data-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .staff-data-table td:first-child,
  .pass-overview-table td:nth-child(3) {
    display: block;
    min-width: 0;
    text-align: left;
  }

  .catalog-manager .manager-controls {
    position: static;
  }

  .catalog-manager .manager-filter-grid {
    grid-template-columns: 1fr;
  }

  .catalog-manager .manager-search-field {
    grid-column: auto;
  }

  .catalog-manager .manager-control-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-manager .manager-view-toggle {
    width: 100%;
  }

  .catalog-manager .managed-product {
    grid-template-columns: auto 64px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .catalog-manager .managed-product img {
    width: 64px;
    height: 64px;
  }

  .catalog-import-review-table,
  .catalog-import-review-table tbody,
  .catalog-import-review-table tr,
  .catalog-import-review-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .catalog-import-review-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .catalog-import-review-table tr {
    padding: 0.65rem;
    border-bottom: 1px solid var(--line);
  }

  .catalog-import-review-table td {
    display: grid;
    padding: 0.45rem;
    border: 0;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .catalog-import-review-table td::before {
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .catalog-import-review-table td:nth-child(1)::before { content: "Row"; }
  .catalog-import-review-table td:nth-child(2)::before { content: "Image"; }
  .catalog-import-review-table td:nth-child(3)::before { content: "Serial"; }
  .catalog-import-review-table td:nth-child(4)::before { content: "Item"; }
  .catalog-import-review-table td:nth-child(5)::before { content: "Regular"; }
  .catalog-import-review-table td:nth-child(6)::before { content: "Entered"; }
  .catalog-import-review-table td:nth-child(7)::before { content: "Final sale"; }
  .catalog-import-review-table td:nth-child(8)::before { content: "Rounding"; }

  .catalog-import-review-header,
  .catalog-import-review-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-import-review-actions .button {
    width: 100%;
  }

  .site-header {
    min-height: 66px;
    padding: 0 1rem;
  }

  .brand > span:last-child {
    display: none;
  }

  .header-nav {
    gap: 0.6rem;
  }

  .hero-copy {
    padding: 5rem 1rem;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .catalog-section {
    padding: 5rem 1rem;
  }

  .site-footer {
    align-items: flex-start;
    padding: 2.5rem 1rem;
    flex-direction: column;
  }

  .footer-contact {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .footer-contact-row {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
  }

  .manager-filter-grid {
    grid-template-columns: 1fr;
  }

  .manager-search-field {
    grid-column: auto;
  }

  .manager-control-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .manager-bulk-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .manager-bulk-actions {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }

  .manager-bulk-actions .button {
    flex: 1;
  }

  .manager-view-toggle {
    width: 100%;
  }

  .manager-view-toggle button {
    flex: 1;
  }

  .manager-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .manager-pagination span {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .catalog-controls,
  .product-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid article {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .steps-grid article:last-child {
    border-bottom: 0;
  }

  .steps-grid h3 {
    margin-top: 2.2rem;
  }

  .product-description {
    min-height: auto;
  }

  .image-zoom-hint {
    opacity: 1;
    transform: none;
  }

  .image-viewer {
    padding: 0.5rem;
  }

  .image-viewer-stage {
    width: 100%;
    height: 100%;
  }

  .image-viewer-close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .image-viewer-caption {
    bottom: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .image-viewer-nav {
    width: 44px;
    height: 44px;
  }

  .modal-card {
    padding: 1.4rem;
  }

  .pass-meta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pass-meta span:last-child {
    text-align: center;
  }

  .modal-actions,
  .status-actions {
    flex-direction: column;
  }

  .modal-actions .button,
  .status-actions .button {
    width: 100%;
  }

  .staff-main {
    width: calc(100% - 2rem);
    padding: 0 0 3rem;
  }

  .staff-details-grid {
    grid-template-columns: 1fr;
  }

  .staff-details-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .staff-details-grid > div:last-child {
    border-bottom: 0;
  }

  .price-inputs,
  .product-detail-inputs,
  .edit-image-grid {
    grid-template-columns: 1fr;
  }

  .managed-product {
    grid-template-columns: auto 64px 1fr;
  }

  .managed-product img {
    width: 64px;
    height: 64px;
  }

  .managed-product-actions {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .managed-product .button {
    width: 100%;
  }

  .staff-item-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .staff-item-thumbnail {
    width: 48px;
    height: 48px;
  }

  .staff-item-row > strong {
    grid-column: 2;
  }
}

@media print {
  body > *:not(.modal) {
    display: none !important;
  }

  .modal {
    position: static;
    display: block !important;
    padding: 0;
  }

  .modal-backdrop,
  .modal-close,
  .modal-actions {
    display: none !important;
  }

  .modal-card {
    width: 100%;
    box-shadow: none;
  }
}
