:root {
  --paper: #f7f4ef;
  --ink: #1d1c19;
  --muted: #706b65;
  --line: #ded8cf;
  --clay: #93604f;
  --olive: #72785e;
  --blue: #405d68;
  --white: #fffdf9;
  --surface: #fffdf9;
  --surface-soft: #fbf8f3;
  --surface-muted: #f2eee7;
  --accent: #93604f;
  --error: #8b2f24;
  --serif: Georgia, "Times New Roman", serif;
  --shadow: 0 18px 45px rgba(35, 31, 25, .11);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --paper: #11100e;
  --ink: #f4efe6;
  --muted: #b8ad9f;
  --line: #3a332b;
  --clay: #d79a7d;
  --olive: #aab778;
  --blue: #8db9c7;
  --white: #1b1815;
  --surface: #1b1815;
  --surface-soft: #211d19;
  --surface-muted: #29231e;
  --accent: #d79a7d;
  --error: #f0aea4;
  --shadow: 0 20px 54px rgba(0, 0, 0, .42);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select {
  font: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(64, 93, 104, .32);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.safari-autofill-trap {
  display: none;
}

.site-header, .admin-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 239, .88);
  border-bottom: 1px solid rgba(222, 216, 207, .75);
  backdrop-filter: blur(18px);
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.site-header nav, .admin-top nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
}
.site-header.is-authenticated nav {
  margin-left: 0;
}
.session-indicator {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, var(--line));
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(35, 31, 25, .08);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.session-indicator::after {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 8px;
  height: 8px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--olive);
  content: "";
}
.session-indicator:hover {
  border-color: color-mix(in srgb, var(--clay) 58%, var(--line));
  box-shadow: 0 11px 24px rgba(35, 31, 25, .12);
  transform: translateY(-1px);
}
.site-header nav a:hover, .admin-top nav a:hover { color: var(--ink); }
.nav-logout-form {
  margin: 0;
}
.nav-logout-form button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.nav-logout-form button:hover { color: var(--ink); }
.theme-toggle {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(29, 28, 25, .16);
  border-radius: 999px;
  background: rgba(255, 253, 249, .78);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(35, 31, 25, .08);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 28, 25, .28);
  box-shadow: 0 14px 30px rgba(35, 31, 25, .12);
}
.theme-toggle-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  box-shadow: inset 5px -5px 0 currentColor;
  transition: box-shadow .2s ease, transform .2s ease;
}
html[data-theme="dark"] .theme-toggle-icon {
  box-shadow: inset 0 0 0 5px currentColor;
  transform: rotate(35deg);
}
.site-menu-toggle,
.mobile-cart-link,
.admin-menu-toggle {
  display: none;
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.cart-link span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
}
.currency-switcher {
  flex: 0 0 auto;
}
.currency-switcher label {
  display: inline-block;
}
.currency-switcher select {
  min-height: 24px;
  padding: 2px 18px 2px 8px;
  border: 1px solid rgba(29, 28, 25, .16);
  border-radius: 999px;
  background: rgba(255, 253, 249, .78);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  cursor: pointer;
}
.lang {
  position: relative;
  margin-left: 6px;
  flex: 0 0 auto;
}
.lang summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(29, 28, 25, .16);
  border-radius: 999px;
  background: rgba(255, 253, 249, .78);
  box-shadow: 0 10px 28px rgba(35, 31, 25, .08);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.lang[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}
.lang-current {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.lang-label {
  font-size: 13px;
  color: var(--muted);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 35;
  min-width: 190px;
  padding: 8px;
  border: 1px solid rgba(29, 28, 25, .12);
  border-radius: 8px;
  background: rgba(255, 253, 249, .98);
  box-shadow: 0 22px 55px rgba(35, 31, 25, .16);
}
.lang:not([open]) .lang-menu {
  display: none;
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}
.lang-menu a span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.lang-menu a strong {
  font-weight: 600;
}
.lang-menu a:hover,
.lang-menu a.active {
  background: #f2eee7;
  color: var(--ink);
}
.lang-menu a.active span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: min(76vh, 760px);
  display: grid;
  align-items: end;
  padding: clamp(36px, 7vw, 84px);
  overflow: hidden;
  background: #171513;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .66;
  filter: saturate(.86);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 9, 8, .68), rgba(10, 9, 8, .12) 70%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fffaf1;
}
.hero-copy p, .kicker {
  margin: 0 0 12px;
  color: #8f6a55;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
}
.hero-copy p {
  color: #dfd4c4;
}
.hero-copy h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 10vw, 124px);
  line-height: .92;
  letter-spacing: 0;
}
.hero-copy div {
  max-width: 570px;
  font-size: clamp(17px, 2vw, 22px);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}
select, input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 6px;
}
input[type="file"] {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
}
input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 11px;
  border: 1px solid rgba(29, 28, 25, .18);
  border-radius: 5px;
  background: #f4efe7;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
textarea { resize: vertical; }
.site-header .currency-switcher select {
  width: auto;
  min-width: 62px;
  height: 22px;
  min-height: 0;
  padding: 1px 18px 1px 7px;
  border-radius: 999px;
  background-color: rgba(255, 253, 249, .78);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 10px) 9px, calc(100% - 6px) 9px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}
.native-select {
  display: none !important;
}
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px 10px 15px;
  border: 1px solid #d9d1c7;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(249, 246, 240, .98));
  color: var(--ink);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 10px 22px rgba(35, 31, 25, .06);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: #bfb3a6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 14px 28px rgba(35, 31, 25, .1);
}
.custom-select-trigger:focus-visible {
  outline: 2px solid rgba(64, 93, 104, .22);
  outline-offset: 2px;
}
.custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-arrow {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.custom-select.open .custom-select-arrow {
  transform: rotate(225deg) translateY(-2px);
}
.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  max-height: 280px;
  overflow: auto;
  padding: 7px;
  border: 1px solid #d5ccc0;
  border-radius: 10px;
  background: rgba(255, 253, 249, .98);
  box-shadow: 0 22px 50px rgba(35, 31, 25, .18);
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  backdrop-filter: blur(12px);
}
.custom-select-menu[hidden] {
  display: none;
}
.custom-select.open .custom-select-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.custom-select-option {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.custom-select-option:hover,
.custom-select-option:focus-visible {
  outline: 0;
  background: #f2ede5;
}
.custom-select-option.selected {
  background: #233238;
  color: #fffaf1;
}
.custom-select.disabled {
  opacity: .58;
}
.currency-switcher .custom-select {
  width: auto;
  min-width: 58px;
}
.currency-switcher .custom-select-trigger {
  width: auto;
  min-width: 58px;
  max-width: 72px;
  min-height: 22px;
  gap: 5px;
  padding: 2px 7px 2px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 249, .78);
  box-shadow: none;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
}
.currency-switcher .custom-select-trigger:hover,
.currency-switcher .custom-select.open .custom-select-trigger {
  box-shadow: none;
}
.currency-switcher .custom-select-arrow {
  width: 6px;
  height: 6px;
  border-width: 1.5px;
}
.currency-switcher .custom-select-menu {
  top: calc(100% + 4px);
  left: auto;
  right: 0;
  min-width: 64px;
  padding: 4px;
  border-radius: 8px;
}
.currency-switcher .custom-select-option {
  min-height: 22px;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1;
}

.gallery-promo {
  display: grid;
  place-items: center;
  min-height: 28px;
  background: #151412;
  color: #fffaf1;
  font-size: 13px;
  letter-spacing: .01em;
}
.profile-cover {
  height: 207px;
  overflow: hidden;
  background: #d9d0c4;
}
.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(.85) contrast(.98);
}
.artist-profile-card {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 32px), 1196px);
  min-height: 154px;
  margin: -86px auto 0;
  padding: 30px 58px;
  display: flex;
  justify-content: space-between;
  gap: 34px;
  background: rgba(255, 252, 246, .58);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(35, 31, 25, .16);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}
.artist-summary {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}
.artist-avatar {
  width: 94px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 12px 30px rgba(35, 31, 25, .14);
}
.artist-summary h1 {
  margin: 0 0 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 27px;
  line-height: 1.15;
  text-shadow: 0 1px 14px rgba(255, 252, 246, .5);
}
.artist-summary p {
  max-width: 660px;
  margin: 0 0 7px;
  color: rgba(35, 34, 31, .9);
  font-size: 14px;
  line-height: 1.5;
  text-shadow: 0 1px 16px rgba(255, 252, 246, .58);
}
.artist-summary a {
  color: #25231f;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow: 0 1px 12px rgba(255, 252, 246, .64);
}
.gallery-tabs {
  width: min(calc(100% - 32px), 1196px);
  margin: 28px auto 28px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0;
  align-items: center;
}
.gallery-tabs > a {
  display: grid;
  place-items: center;
  min-height: 36px;
  background: #f0f2f3;
  border: 1px solid #e8ecef;
  color: #666;
  font-size: 14px;
}
.gallery-tabs > a:first-child {
  border-radius: 7px 0 0 7px;
}
.gallery-tabs > a:nth-child(2) {
  border-radius: 0 7px 7px 0;
}
.gallery-tabs > a.active {
  background: #fff;
  color: #1f1e1b;
  box-shadow: 0 2px 8px rgba(35, 31, 25, .11);
}
.gallery-tabs form {
  margin-left: 20px;
}
.gallery-tabs label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}
.gallery-tabs select {
  width: 132px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 4px;
  background: #fff;
}
.collection-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(calc(100% - 32px), 1196px);
  margin: -10px auto 30px;
}
.collection-filter a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbf8f3;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.collection-filter a.active {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
}
.collection-filter small {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #eee7dc;
  color: var(--ink);
  font-size: 11px;
}
.collection-intro,
.collection-group-head {
  width: min(calc(100% - 32px), 1196px);
  margin: 0 auto 24px;
}
.collection-intro {
  padding: 22px 0 8px;
  border-top: 1px solid var(--line);
}
.collection-intro span,
.collection-group-head span {
  display: block;
  margin-bottom: 7px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.collection-intro h2,
.collection-group-head h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
}
.collection-intro .prose,
.collection-group-head .prose {
  max-width: 760px;
}
.collection-intro p,
.collection-group-head p {
  max-width: 760px;
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}
.collection-group {
  margin: 0 0 46px;
}
.collection-chip {
  width: fit-content;
  margin: 4px 0 4px -12px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbf8f3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.gallery-art-grid {
  width: min(calc(100% - 32px), 1196px);
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 34px 44px;
  align-items: start;
}
.gallery-art-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
}
.gallery-art-image {
  display: block;
  overflow: hidden;
  background: #eee9e1;
}
.gallery-art-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity .2s ease, transform .45s ease;
}
.gallery-art-card:hover .gallery-art-image img {
  opacity: .94;
  transform: scale(1.015);
}
.gallery-sale-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  background: rgba(255, 252, 246, .78);
  box-shadow: 0 10px 26px rgba(35, 31, 27, .12);
  backdrop-filter: blur(12px);
  color: #5a3329;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}
.gallery-art-actions {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.gallery-art-actions .add-cart-form {
  display: contents;
}
.checkout-actions .add-cart-form {
  display: grid;
}
.gallery-art-actions a,
.icon-heart,
.icon-cart {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 999px;
  background: rgba(255, 253, 249, .78);
  color: #2b2925;
  box-shadow: 0 10px 26px rgba(35, 31, 25, .12);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.icon-heart b {
  display: none;
}
.icon-cart {
  font-size: 17px;
}
.icon-cart.print-cart {
  border-color: #536b2e;
  background: #f5f8ef;
  color: #536b2e;
}
.gallery-art-meta {
  padding-top: 8px;
  padding-right: 0;
  color: #2a2825;
  font-size: 14px;
  line-height: 1.28;
}
.gallery-art-meta strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.gallery-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.gallery-price strong {
  margin-bottom: 0;
}
.gallery-price.is-sale strong {
  color: #5a3329;
}
.gallery-price del {
  color: var(--muted);
  font-size: 13px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(90, 51, 41, .52);
}
.gallery-price-inquiry {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  margin: 0 0 6px;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.gallery-price-inquiry span {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: .2em;
}
.commission-artwork-context {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  background: rgba(215, 154, 125, .1);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}
.gallery-art-meta h2 {
  margin: 0 0 2px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}
.gallery-art-meta p {
  margin: 0 0 2px;
  color: #57534e;
}
.art-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 6px;
}
.art-price-row .status {
  margin: 0;
  font-size: 11px;
  min-height: 24px;
  padding: 2px 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 42px);
  padding: clamp(26px, 4vw, 58px);
}
.art-card {
  min-width: 0;
}
.art-image {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8e1d8;
}
.art-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease, filter .7s ease;
}
.art-card:hover .art-image img {
  transform: scale(1.035);
  filter: saturate(1.03);
}
.art-meta, .art-price {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-top: 15px;
}
.art-meta h2 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.15;
}
.art-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.print-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 4px 0 0 -11px;
  padding: 4px 8px;
  border: 1px solid #e5dbcd;
  border-radius: 999px;
  background: #faf6f0;
  color: #8c6d52;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}
.print-note.is-highlighted {
  border-color: #d8c7ad;
  background: #fbf4e8;
  color: #745638;
  font-weight: 800;
}
.heart {
  min-width: 54px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--clay);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.heart:hover { transform: translateY(-1px); background: #fff8f0; }
.heart.liked span { content: "♥"; }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.status.sold { color: #7b3732; }
.status.reserved { color: var(--olive); }
.art-price strong { font-size: 16px; }

.painting-browser {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.painting-browser-link {
  position: absolute;
  top: 50%;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(35, 31, 25, .18);
  border-radius: 50%;
  background: rgba(255, 253, 249, .58);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(35, 31, 25, .1);
  opacity: .64;
  pointer-events: auto;
  text-decoration: none;
  transform: translateY(-50%);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
  backdrop-filter: blur(12px);
}
.painting-browser-link.left {
  left: -50px;
}
.painting-browser-link.right {
  right: -50px;
}
.painting-browser-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.painting-browser-link svg {
  display: block;
  width: 18px;
  height: 18px;
  overflow: visible;
}
.painting-browser-link.right svg {
  transform: translateX(1.5px);
}
.painting-browser-link.left svg {
  transform: translateX(-1.5px);
}
.painting-browser-link path {
  fill: none;
  stroke: rgba(35, 31, 25, .66);
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.painting-browser-link:hover,
.painting-browser-link:focus-visible {
  opacity: 1;
  background: rgba(255, 253, 249, .88);
  outline: 0;
  transform: translateY(-50%) translateX(0);
}
.painting-browser-link.left:hover,
.painting-browser-link.left:focus-visible {
  transform: translateY(-50%) translateX(3px);
}
.painting-browser-link.right:hover,
.painting-browser-link.right:focus-visible {
  transform: translateY(-50%) translateX(-3px);
}

.painting-shell {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 70px);
}
.painting-back-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
}
.painting-back-link span {
  font-size: 16px;
  line-height: 1;
}
.painting-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.painting-media {
  position: relative;
  display: grid;
  gap: 18px;
  min-width: 0;
}
.painting-main-image {
  min-width: 0;
  overflow: hidden;
}
.painting-main-image img,
.painting-media > img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #e6ded3;
}
.painting-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}
.painting-thumbnails button {
  height: 86px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
}
.painting-thumbnails button[aria-current="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.painting-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.painting-media .mockup {
  max-height: 520px;
  object-fit: cover;
}
.purchase-panel {
  align-self: center;
  position: static;
  min-width: 0;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.purchase-panel h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.5vw, 58px);
  line-height: 1;
  overflow-wrap: break-word;
}
.detail-heart { margin-bottom: 20px; }
dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 9px 16px;
  margin: 22px 0;
}
dt { color: var(--muted); }
dd { margin: 0; }
.price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0;
}
.price-block > * {
  min-width: 0;
}
.price-block strong { font-size: 28px; }
.price-block del { color: var(--muted); }
.price-block.small strong { font-size: 20px; }
.painting-price-inquiry {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.painting-price-inquiry span {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: .2em;
}
.original-unavailable-note {
  margin: -8px 0 16px;
  padding: 12px 14px;
  border: 1px solid #d8c7ad;
  border-radius: 8px;
  background: #fbf4e8;
  color: #745638;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}
.print-purchase-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cbd5b7;
  border-radius: 8px;
  background: #f7f9f1;
}
.print-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.print-card-head span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8efd9;
  color: #4f6a2b;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.print-card-head strong {
  font-size: 15px;
}
.print-purchase-card .price-block {
  margin: 0;
}
.print-detail-line {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.checkout-form {
  display: grid;
  gap: 12px;
}
.checkout-actions {
  display: grid;
  gap: 12px;
}
.button, .inline-form button, .actions button, .row-actions button {
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  padding: 11px 16px;
  cursor: pointer;
  text-align: center;
}
.button.ghost {
  background: transparent;
  color: var(--ink);
}
.cart-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: 320px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.cart-toast .cart-toast-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-left: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 253, 249, .36);
  border-radius: 999px;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.cart-toast .cart-toast-link:hover {
  background: rgba(255, 253, 249, .12);
}
.cart-toast.is-success {
  background: #263f35;
}
.cart-toast.is-error {
  background: #7b3732;
}
.cart-toast.in {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cart-page {
  width: min(calc(100% - 28px), 1260px);
  margin: 18px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 20px;
  align-items: start;
  transition: opacity .16s ease, filter .16s ease;
}
.checkout-flow .checkout-stepper {
  grid-column: 1 / -1;
}
.checkout-stepper {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(42, 35, 27, .05);
}
.checkout-stepper ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checkout-stepper a,
.checkout-stepper .step-disabled {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  background: #fbfaf7;
}
.checkout-stepper span span,
.checkout-stepper a span {
  width: 26px;
  height: 26px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #cfc3b5;
  font-size: 12px;
  font-weight: 800;
}
.checkout-stepper strong {
  min-width: 0;
  font-size: 13px;
}
.checkout-stepper .is-current a,
.checkout-stepper .is-current .step-disabled {
  border-color: #2f4f5f;
  color: var(--ink);
  background: #eef5f3;
}
.checkout-stepper .is-current a span,
.checkout-stepper .is-current .step-disabled span {
  background: #2f4f5f;
  color: #fff;
}
.checkout-stepper .is-complete a {
  color: var(--ink);
}
.checkout-stepper .is-complete a span {
  background: #6b8a7a;
  border-color: #6b8a7a;
  color: #fff;
}
.checkout-stepper-compact {
  display: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 700;
  text-wrap: balance;
}
.cart-page.is-updating,
.stripe-mock-page.is-updating,
.page-narrow.is-updating,
.checkout-success.is-updating {
  opacity: .62;
  filter: saturate(.9);
  pointer-events: none;
}
.cart-heading {
  margin: 0 0 18px;
}
.cart-heading span,
.summary-head span,
.checkout-section-title {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cart-main h1 {
  margin: 0 0 20px;
  font-family: inherit;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
}
.cart-heading h1 {
  margin: 2px 0 0;
}
.cart-items-form {
  display: grid;
  gap: 16px;
}
.checkout-login-panel,
.cart-items-form,
.checkout-step-form,
.payment-review {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(29, 28, 25, .08);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.checkout-login-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}
.checkout-login-panel strong {
  display: block;
  font-size: 18px;
}
.checkout-login-panel p {
  margin: 2px 0 0;
  color: var(--ink);
  line-height: 1.35;
}
.checkout-login-panel .login-button {
  min-width: 138px;
  min-height: 34px;
  padding: 5px 18px;
  border-color: var(--ink);
  border-radius: 4px;
  background: #fff;
  text-transform: uppercase;
}
.cart-list {
  display: grid;
  gap: 14px;
}
.cart-item {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(29, 28, 25, .12);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.cart-item img {
  box-sizing: border-box;
  width: 148px;
  aspect-ratio: 3 / 4;
  padding: 8px;
  object-fit: contain;
  background: #f3eee7;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.cart-item h2 {
  margin: 0 0 5px;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.2;
}
.cart-item p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 14px;
}
.cart-item-copy {
  min-width: 0;
  align-self: center;
}
.cart-item-controls {
  min-width: 118px;
  display: grid;
  justify-items: end;
  align-content: space-between;
  gap: 10px;
}
.cart-item label {
  font-size: 13px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 750;
}
.cart-item label input {
  width: 72px;
  text-align: center;
}
.cart-item input[readonly] {
  background: #f2eee7;
}
.cart-item button {
  border: 0;
  background: transparent;
  color: #7b3732;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-summary {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.cart-summary-details summary {
  display: none;
}
.cart-summary-details[open] .cart-summary-body {
  display: grid;
  gap: 18px;
}
.summary-head {
  margin-bottom: 2px;
}
.cart-summary h2 {
  margin: 0;
  font-family: inherit;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.2;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  border-bottom: 0;
}
.secondary-line {
  color: var(--muted);
  font-size: 14px;
}
.discount-line strong {
  color: #7b3732;
}
.total-line {
  align-items: center;
  padding: 0 0 24px;
  border-bottom: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.total-line strong {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.summary-currency-note {
  margin: 0;
  color: #3d3a35;
  font-size: 15px;
  line-height: 1.45;
}
.summary-checkout-button {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  border-color: #231f1a;
  background: #231f1a;
  color: #fffaf1;
  border-radius: 4px;
  font-size: 16px;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(35, 31, 26, .16);
}
.summary-checkout-button:hover {
  border-color: var(--clay);
  background: var(--clay);
  color: #fffaf1;
}
.voucher-collapse {
  border-top: 1px solid rgba(29, 28, 25, .1);
  border-bottom: 1px solid rgba(29, 28, 25, .1);
}
.voucher-collapse summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}
.voucher-collapse summary::-webkit-details-marker {
  display: none;
}
.voucher-collapse summary span {
  color: var(--muted);
}
.voucher-collapse summary strong {
  font-size: 13px;
}
.voucher-collapse summary::after {
  content: "";
  width: 24px;
  height: 24px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-4px);
}
.voucher-collapse[open] summary::after {
  transform: rotate(225deg) translateY(-4px);
}
.cart-voucher-form {
  display: grid;
  gap: 10px;
  padding: 0 0 16px;
}
.cart-voucher-form label {
  color: var(--muted);
  font-weight: 650;
}
.cart-voucher-form .voucher-input-row {
  display: block;
}
.voucher-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.voucher-buttons .button {
  min-height: 42px;
  min-width: 150px;
}
.cart-summary-details,
.summary-bullets,
.summary-help {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 12px;
  background: #fff;
}
.summary-help {
  padding-bottom: clamp(16px, 2vw, 22px);
}
.summary-bullets {
  display: grid;
  gap: 0;
}
.summary-bullet {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 14px 0;
}
.summary-bullet:first-child {
  padding-top: 0;
}
.summary-bullet:last-child {
  padding-bottom: 0;
}
.summary-bullet-icon {
  width: 34px;
  height: 34px;
  margin-top: 3px;
  color: var(--clay);
}
.summary-bullet h3 {
  margin: 0 0 3px;
  color: #2f2b25;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
}
.summary-bullet p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.summary-help h2 {
  margin: 0 0 20px;
  font-size: 22px;
}
.summary-help div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.summary-help .button {
  min-height: 58px;
  justify-content: center;
  border-color: var(--ink);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  text-transform: uppercase;
}
.voucher-buttons .subtle {
  border-color: transparent;
  color: #7b3732;
}
.voucher-status {
  margin: 0;
  font-size: 13px;
}
.voucher-status.success {
  color: var(--blue);
}
.voucher-status.error {
  color: #8b2f24;
}
.stripe-mock-page {
  width: min(calc(100% - 32px), 1180px);
  margin: 42px auto 72px;
  transition: opacity .16s ease, filter .16s ease;
}
.checkout-success {
  width: min(calc(100% - 32px), 860px);
  margin: 64px auto 86px;
  text-align: center;
}
.checkout-success .checkout-stepper {
  margin: 0 0 18px;
}
.checkout-success .checkout-stepper-compact {
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink);
}
.checkout-success .checkout-stepper ol {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.checkout-success .checkout-stepper li,
.checkout-success .checkout-stepper a,
.checkout-success .checkout-stepper .step-disabled {
  min-width: 0;
}
.checkout-success .checkout-stepper a,
.checkout-success .checkout-stepper .step-disabled {
  height: 100%;
  justify-content: center;
  text-align: center;
}
.checkout-success-card {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.checkout-success .success-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 13px;
  margin-bottom: 14px;
  border: 1px solid rgba(139, 107, 86, .24);
  border-radius: 999px;
  background: #fffaf4;
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}
.checkout-success h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 72px);
}
.checkout-success p {
  max-width: 560px;
  margin: 0 auto 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.checkout-success small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.checkout-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.checkout-success-actions .button {
  min-width: 180px;
  justify-content: center;
}
.mock-checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 26px;
  align-items: start;
}
.mock-checkout-main,
.mock-payment-card,
.mock-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.mock-checkout-main {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
}
.mock-stripe-top,
.mock-brand-row,
.mock-totals div,
.mock-line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mock-stripe-top {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.mock-stripe-top span {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid #cfd9dc;
  border-radius: 999px;
  background: #f4f8f8;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mock-stripe-top strong {
  font-size: 20px;
  color: #6259ff;
}
.mock-brand-row p {
  margin: 0 0 4px;
  color: var(--muted);
  font-weight: 700;
}
.mock-brand-row h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}
.mock-brand-row > strong {
  font-size: clamp(28px, 4vw, 44px);
  white-space: nowrap;
}
.mock-note {
  margin: 0;
  color: var(--muted);
  max-width: 740px;
}
.mock-panel {
  padding: 18px;
  box-shadow: none;
}
.mock-panel h2,
.mock-payment-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.mock-lines {
  display: grid;
  gap: 12px;
}
.mock-line-item {
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
}
.mock-line-item img {
  width: 70px;
  aspect-ratio: 4 / 5;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 4px;
  background: #e8e1d8;
}
.mock-line-item div {
  min-width: 0;
  flex: 1;
}
.mock-line-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.25;
}
.mock-line-item p,
.mock-line-item small,
.mock-address dd,
.mock-panel p,
.mock-panel small {
  margin: 0;
  color: var(--muted);
}
.mock-line-item strong {
  white-space: nowrap;
}
.mock-line-item small {
  display: block;
  margin-top: 7px;
  color: #8b2f24;
}
.mock-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mock-address {
  grid-template-columns: 92px 1fr;
  margin: 0;
}
.mock-address dt {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .03em;
}
.mock-address dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-weight: 650;
}
.mock-payment-panel {
  position: sticky;
  top: 92px;
}
.mock-payment-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}
.mock-payment-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 650;
}
.mock-payment-card .two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mock-payment-card input {
  background: #f7f4ef;
  color: var(--ink);
}
.mock-totals {
  display: grid;
  gap: 0;
  margin: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mock-totals div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mock-totals div:last-child {
  border-bottom: 0;
}
.mock-total {
  font-size: 18px;
}
.mock-total strong {
  font-size: 22px;
}
.shipping-form {
  display: grid;
  gap: 16px;
  margin-top: 0;
}
.checkout-step-form {
  max-width: none;
}
.checkout-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.checkout-nav .button {
  min-width: 190px;
}
.checkout-nav-back-only {
  justify-content: flex-start;
}
.order-pay-form {
  display: flex;
  justify-content: flex-start;
  margin: 2px 0 0;
}
.order-pay-form .button {
  min-width: 190px;
  justify-content: center;
}
.order-summary-pay-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  justify-content: center;
}
.order-summary-pay-form .button {
  width: 100%;
}
.order-summary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  justify-items: stretch;
}
.order-summary-actions .order-summary-pay-form {
  margin: 0;
  padding: 0;
  border: 0;
}
.order-summary-actions > form {
  display: grid;
  width: 100%;
  justify-self: stretch;
}
.order-summary-actions .order-cancel-form {
  margin: 0;
}
.order-summary-actions .button {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: center;
}
.order-price-card .order-summary-actions,
.order-price-card .order-summary-actions > form,
.order-price-card .order-summary-actions .button {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.order-price-card .order-summary-actions > form {
  display: block;
}
.order-price-card .order-summary-actions button.button {
  display: flex;
  min-width: 0;
}
.payment-countdown {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  margin-bottom: 20px;
  padding: 13px 14px;
  border: 1px solid rgba(139, 107, 86, .24);
  border-radius: 6px;
  background: #fbf8f3;
  text-align: center;
}
.payment-countdown span {
  color: #8b6b56;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.payment-countdown strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}
.payment-countdown small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.payment-countdown.is-expired strong {
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.inline-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-left: 3px;
  padding: 2px 10px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: inherit;
  font-weight: 850;
  text-decoration: none;
}
.inline-action-link:hover {
  background: rgba(47, 79, 95, .08);
}
.checkout-address-form .checkout-nav .button:not(.ghost) {
  width: 100%;
  min-height: 56px;
  background: var(--ink);
  border-color: var(--ink);
  border-radius: 3px;
  color: #fff;
  text-transform: uppercase;
}
.payment-review {
  display: grid;
  gap: 16px;
}
.payment-review-items {
  display: grid;
  gap: 10px;
}
.payment-review-items h3 {
  margin: 0;
  font-size: 15px;
}
.payment-review-items > div {
  display: grid;
  gap: 10px;
}
.payment-review-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}
.payment-review-item img {
  width: 74px;
  height: 86px;
  object-fit: contain;
  padding: 6px;
  border: 1px solid rgba(43, 36, 26, .12);
  background: #fff;
}
.payment-review-item strong {
  display: block;
  margin-bottom: 7px;
  font-size: 17px;
  line-height: 1.2;
}
.payment-review-item p {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
  align-items: center;
  margin: 0;
}
.payment-review-item small {
  color: var(--muted);
}
.payment-review-item em {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.checkout-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  letter-spacing: .08em;
}
.checkout-section-title span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #2f4f5f;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
}
.country-autocomplete input {
  padding-right: 36px;
}
.country-autocomplete {
  position: relative;
}
.country-autocomplete .field-label {
  display: block;
  margin-bottom: 6px;
}
.checkout-address-form .country-autocomplete .field-label,
.checkout-address-form [data-address-region-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.country-suggest-menu {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.country-suggest-menu[hidden] {
  display: none;
}
.country-suggest-menu button {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.country-suggest-menu button:hover,
.country-suggest-menu button:focus-visible {
  background: #f4eee6;
  outline: 2px solid rgba(64, 93, 104, .24);
  outline-offset: -2px;
}
.shipping-method-summary {
  padding: 12px 14px;
  border: 1px solid #bfcbd0;
  border-radius: 6px;
  background: #f7faf9;
  color: var(--ink);
  font-weight: 700;
}
.shipping-method-summary.is-pending {
  color: var(--muted);
  font-weight: 650;
}
.shipping-form .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checkout-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.checkout-field {
  min-width: 0;
}
.checkout-field.field-full {
  grid-column: 1 / -1;
}
.checkout-field input,
.checkout-field select,
.checkout-address-form .country-autocomplete input,
.checkout-address-form [data-address-region-field] input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.checkout-field input::placeholder,
.checkout-address-form .country-autocomplete input::placeholder,
.checkout-address-form [data-address-region-field] input::placeholder {
  color: #9d9d9d;
  opacity: 1;
}
.checkout-country-field {
  position: relative;
}
.checkout-country-field input[name="location_picker"] {
  padding-right: 42px;
}
.checkout-country-field::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: solid var(--ink);
  border-width: 0 1.5px 1.5px 0;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}
.region-field[hidden] {
  display: none;
}
.region-field[hidden] + .checkout-field {
  grid-column: 2;
}
.checkout-opt-in {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #3c3833;
  line-height: 1.28;
}
.checkout-opt-in input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}
.checkout-opt-in a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.shipping-method-summary {
  display: none;
}
.shipping-form p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.checkout-policy-note {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
  line-height: 1.45;
}
.checkout-policy-note a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cart-page.is-empty {
  grid-template-columns: 1fr;
}
.cart-page.is-empty .cart-main {
  grid-column: 1 / -1;
}
.empty-cart {
  padding: 36px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(42, 35, 27, .03);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 460px;
  margin: 20px auto;
}
.empty-cart.pending-order-recovery {
  max-width: 680px;
}
.empty-cart p {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 18px;
}
.empty-cart .button {
  min-width: 180px;
}
.pending-order-recovery h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  text-align: center;
}
.pending-order-recovery p {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}
.pending-order-recovery .checkout-nav {
  justify-content: center;
  width: 100%;
  gap: 12px;
  flex-wrap: wrap;
}
.pending-order-pay-form {
  margin: 0;
}

.painting-description, .page-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 70px) clamp(48px, 7vw, 90px);
}
.painting-description {
  position: relative;
  margin-top: 8px;
  padding-top: 34px;
  border-top: 1px solid rgba(35, 31, 25, .14);
  color: #3f382f;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  line-height: 1.72;
}
.painting-description::before {
  content: "“";
  position: absolute;
  top: -14px;
  left: clamp(24px, 5vw, 70px);
  color: rgba(151, 99, 77, .34);
  font-size: 86px;
  line-height: 1;
}
.painting-description p {
  padding-left: 30px;
  border-left: 2px solid rgba(151, 99, 77, .26);
}
.prose {
  font-size: 18px;
}
.prose p { margin: 0 0 1.1em; }
.prose h2 {
  margin-top: 36px;
  font-family: Georgia, "Times New Roman", serif;
}

.profile-hero {
  position: relative;
  min-height: 52vh;
  display: grid;
  align-items: end;
  padding: clamp(32px, 6vw, 74px);
  color: white;
  overflow: hidden;
}
.profile-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.68) saturate(.85);
}
.profile-hero div {
  position: relative;
  transform: translateY(-18px);
}
.profile-hero div.reveal {
  transform: translateY(-2px);
}
.profile-hero div.reveal.in {
  transform: translateY(-18px);
}
.profile-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 9vw, 108px);
}
.profile-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 680px);
  gap: clamp(28px, 4vw, 56px);
  width: min(calc(100% - 48px), 990px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) 0;
  align-items: start;
}
.profile-notice {
  width: min(calc(100% - 40px), 1180px);
  margin: 28px auto 0;
}
.avatar {
  width: 132px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 18px;
}
.profile-aside h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
}
.profile-kicker {
  margin: 0 0 18px;
  color: var(--ink);
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-kicker {
  font-size: 12px;
}
.profile-social-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.profile-social-links .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 14px;
}
.profile-story {
  min-width: 0;
}
.profile-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: 0;
  margin: 0 0 clamp(24px, 4vw, 40px);
  border-bottom: 2px solid #c8c3bb;
}
.profile-tabs button {
  appearance: none;
  position: relative;
  border: 0;
  padding: 0 34px 13px 0;
  background: transparent;
  color: #aaa9a7;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}
.profile-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 42px;
  bottom: -2px;
  height: 2px;
  background: transparent;
}
.profile-tabs button.active {
  color: var(--ink);
}
.profile-tabs button.active::after {
  background: var(--ink);
}
.profile-tab-panel {
  max-width: 680px;
  color: #343331;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.56;
}
.profile-tab-panel:not(.active) {
  display: none;
}
.profile-tab-panel p {
  margin-bottom: 1.15em;
}
.commission-card {
  width: min(calc(100% - 48px), 990px);
  margin: 0 auto clamp(42px, 6vw, 70px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #b8b0a5;
  border-radius: 8px;
  background: rgba(255, 253, 249, .58);
  text-align: center;
}
.commission-card h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.18;
}
.commission-card p {
  max-width: 620px;
  margin: 0 auto 18px;
  color: #3b3935;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.55;
}
.commission-card .button {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.modal-open {
  overflow: hidden;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(29, 28, 25, .48);
}
.modal-backdrop[hidden] {
  display: none;
}
.commission-modal {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: clamp(22px, 3.2vw, 34px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 26px 80px rgba(14, 12, 10, .28);
}
.commission-modal h2 {
  margin: 0 42px 10px 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}
.commission-modal > p {
  margin: 0 0 18px;
  color: #111;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.42;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 7px;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
}
.modal-close::before {
  transform: rotate(45deg);
}
.modal-close::after {
  transform: rotate(-45deg);
}
.commission-form {
  display: grid;
  gap: 12px;
}
.commission-form label {
  display: grid;
}
.commission-form input,
.commission-form textarea {
  width: 100%;
  border: 1px solid #aaa9a5;
  border-radius: 6px;
  padding: 13px 15px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}
.commission-form textarea {
  min-height: 120px;
  resize: vertical;
}
.commission-form input::placeholder,
.commission-form textarea::placeholder {
  color: #777572;
}
.commission-form small {
  margin-top: -4px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}
.commission-form .button {
  min-height: 48px;
  margin-top: 2px;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.commission-legal {
  margin: 0;
  color: #3a3835;
  font-size: 13px;
  line-height: 1.45;
}
.commission-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.premium-confirm {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(29, 28, 25, .46);
  backdrop-filter: blur(10px);
}
.premium-confirm[hidden] {
  display: none;
}
.premium-confirm-dialog {
  width: min(100%, 430px);
  padding: clamp(20px, 4vw, 26px);
  border: 1px solid rgba(222, 216, 207, .92);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, .98), rgba(248, 244, 237, .98));
  box-shadow: 0 22px 64px rgba(16, 14, 12, .26);
}
.premium-confirm-dialog > span {
  display: block;
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.premium-confirm-dialog h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}
.premium-confirm-dialog p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.premium-confirm-dialog div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.premium-confirm-dialog .button {
  min-height: 44px;
  padding: 9px 14px;
}
.premium-confirm-dialog .danger-button {
  border-color: #7b3732;
  background: #7b3732;
  color: #fffdf9 !important;
}
.profile-links-panel {
  margin: 22px 0;
}
.profile-links-grid {
  display: grid;
  gap: 12px;
}
.profile-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  align-items: end;
}
.profile-link-url {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-weight: 650;
}
.profile-link-url input {
  min-height: 46px;
  background: #fffdf9;
  border-color: #d8d0c5;
}
.profile-links-panel .social-remove {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid #d8d0c5;
  border-radius: 7px;
  background: #fffdf9;
  color: var(--muted);
}
.profile-links-panel .social-remove input {
  width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
  flex: 0 0 auto;
}
.profile-links-panel .social-remove span {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-crop-panel {
  margin-bottom: 4px;
}
.profile-avatar-panel {
  margin-bottom: 18px;
}
.profile-avatar-admin {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px 18px;
  align-items: center;
}
.profile-avatar-admin img {
  grid-row: span 2;
  width: 112px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #eee7dc;
}
.profile-avatar-admin label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}
.profile-avatar-admin input {
  min-height: 46px;
  background: #fffdf9;
  border-color: #d8d0c5;
}
.profile-avatar-admin small {
  color: var(--muted);
}
.profile-hero-placement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.profile-hero-placement {
  display: grid;
  gap: 12px;
  min-width: 0;
  align-content: start;
}
.profile-hero-placement > label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}
.profile-hero-placement > label input {
  min-height: 46px;
  background: #fffdf9;
  border-color: #d8d0c5;
}
.profile-hero-placement .position-picker {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
}
.profile-hero-placement-grid > small {
  grid-column: 1 / -1;
  color: var(--muted);
}
.profile-crop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.position-picker {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.position-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.position-picker-head strong {
  font-size: 16px;
}
.position-picker-head span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.position-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ded5c8;
  cursor: grab;
  user-select: none;
}
.position-frame:active {
  cursor: grabbing;
}
.position-frame:focus-visible {
  outline: 2px solid rgba(64, 93, 104, .28);
  outline-offset: 3px;
}
.position-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.profile-cover-preview {
  aspect-ratio: 16 / 5;
}
.profile-hero-preview {
  aspect-ratio: 16 / 7;
}
.position-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1px solid rgba(255, 253, 249, .95);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(35, 31, 25, .42), 0 8px 18px rgba(35, 31, 25, .24);
  pointer-events: none;
}
.position-crosshair::before,
.position-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(255, 253, 249, .95);
}
.position-crosshair::before {
  left: 50%;
  top: -8px;
  width: 1px;
  height: 36px;
}
.position-crosshair::after {
  left: -8px;
  top: 50%;
  width: 36px;
  height: 1px;
}
.position-picker p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}
.site-footer button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.site-footer a:hover,
.site-footer button:hover {
  color: var(--ink);
}
.legal-page {
  padding-top: clamp(34px, 6vw, 74px);
}
.legal-page h1 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
}
.legal-page .kicker {
  color: #7e5848;
}
.auction-terms-page {
  width: min(100% - 36px, 980px);
  padding-bottom: clamp(54px, 8vw, 100px);
}
.auction-terms-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
}
.auction-terms-heading h1 {
  max-width: 780px;
  margin-bottom: 18px;
}
.auction-terms-heading p:not(.kicker) {
  max-width: 720px;
  margin: 0 0 12px;
  color: var(--muted);
}
.auction-terms-heading small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}
.auction-terms-sections {
  display: grid;
}
.auction-terms-sections > section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.auction-terms-sections > section > span {
  padding-top: 4px;
  color: var(--clay);
  font-size: 10px;
  font-weight: 850;
}
.auction-terms-sections h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}
.auction-terms-sections p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}
.auction-terms-related {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 24px;
  font-size: 12px;
  font-weight: 750;
}
.cookie-consent {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: 22px;
  z-index: 100;
  width: min(calc(100% - 32px), 720px);
  max-height: calc(100vh - 44px);
  margin-inline: auto;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(222, 216, 207, .85);
  border-radius: 12px;
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 24px 70px rgba(35, 31, 25, .22);
  backdrop-filter: blur(18px);
}
.cookie-consent[hidden] {
  display: none;
}
.cookie-consent span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cookie-consent h2 {
  margin: 3px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.05;
}
.cookie-consent p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.cookie-consent a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  align-content: start;
  min-width: 260px;
}
.cookie-actions .button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 750;
  white-space: normal;
  overflow-wrap: anywhere;
}
.cookie-options {
  grid-column: 1 / -1;
}
.cookie-options summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, .7);
  color: #4c4740;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  list-style: none;
}
.cookie-options summary::-webkit-details-marker {
  display: none;
}
.cookie-options > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(222, 216, 207, .8);
  border-radius: 10px;
  background: rgba(247, 244, 239, .72);
}
.cookie-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: normal;
}
.cookie-options input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.cookie-options .button {
  margin-top: 2px;
}

.admin-body, .login-screen { background: #f1eee8; }
.admin-body {
  overflow-x: clip;
}
.admin-main {
  padding: 32px clamp(18px, 4vw, 54px) 70px;
}
.admin-main,
.admin-main *,
.admin-top,
.admin-top * {
  min-width: 0;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.metric, .notice, .login-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
}
.admin-main > .notice {
  margin: 0 0 22px;
  padding: 14px 16px;
  font-size: 14px;
}
.metric span { color: var(--muted); text-transform: uppercase; font-size: 12px; }
.metric strong { display: block; font-size: 42px; }
.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf9 0%, #f7f1e8 100%);
  box-shadow: var(--shadow);
}
.dashboard-hero,
.analytics-metric {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .48s ease var(--dash-delay, 0ms),
    transform .48s ease var(--dash-delay, 0ms),
    box-shadow .2s ease;
}
.dashboard-ready .dashboard-hero,
.dashboard-ready .analytics-metric {
  opacity: 1;
  transform: translateY(0);
}
.analytics-metric {
  position: relative;
  overflow: hidden;
}
.analytics-metric::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .62) 44%, transparent 78%);
  transform: translateX(-120%);
  pointer-events: none;
}
.dashboard-ready .analytics-metric::after {
  animation: dashboard-shimmer .9s ease var(--dash-delay, 0ms) both;
}
.dashboard-hero span,
.analytics-panel .panel-head span {
  display: block;
  margin-bottom: 5px;
  color: #9b6a59;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dashboard-hero h2,
.analytics-panel h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}
.dashboard-hero h2 {
  font-size: clamp(34px, 4.4vw, 58px);
}
.dashboard-hero p {
  max-width: 620px;
  margin: 9px 0 0;
  color: var(--muted);
}
.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.analytics-metric,
.analytics-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.db-health {
  margin: 0 0 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(64, 93, 104, .08), rgba(155, 106, 89, .06)),
    var(--white);
}
.db-health-main,
.db-health-grid,
.db-health-counts {
  display: grid;
  gap: 12px;
}
.db-health-main {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin-bottom: 14px;
}
.db-health-main span {
  display: block;
  margin-bottom: 5px;
  color: #9b6a59;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.db-health-main h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.08;
}
.db-health-main p {
  margin: 7px 0 0;
  color: var(--muted);
}
.db-health-main > strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(64, 93, 104, .16);
  border-radius: 999px;
  background: #f4f8f5;
  color: #2f6c48;
  font-size: 13px;
}
.db-health-main i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(47, 108, 72, .12);
}
.db-health.is-down .db-health-main > strong {
  background: #fbefec;
  color: #a3422f;
}
.db-health.is-down .db-health-main i {
  box-shadow: 0 0 0 5px rgba(163, 66, 47, .12);
}
.db-health-grid {
  grid-template-columns: minmax(110px, .45fr) minmax(180px, .7fr) minmax(0, 1.2fr);
  margin-bottom: 12px;
}
.db-health-grid > span,
.db-health-counts > span {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(64, 93, 104, .12);
  border-radius: 8px;
  background: rgba(255, 253, 249, .72);
}
.db-health-grid small,
.db-health-counts small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.db-health-grid b,
.db-health-counts strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.db-health-counts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.db-health-counts strong {
  font-size: 24px;
  line-height: 1;
}
.analytics-metric {
  min-height: 124px;
  padding: 16px;
}
.analytics-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.analytics-metric strong {
  display: block;
  margin: 10px 0 5px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1;
}
.analytics-metric small,
.muted-copy {
  color: var(--muted);
}
.analytics-layout {
  display: grid;
  grid-template-columns: minmax(260px, .7fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.analytics-panel {
  padding: 18px;
}
.analytics-panel .panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.analytics-panel .panel-head strong {
  white-space: nowrap;
  font-size: 20px;
}
.analytics-panel .panel-head a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.inventory-list {
  display: grid;
  gap: 12px;
}
.inventory-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.inventory-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.inventory-list strong {
  font-size: 22px;
}
@keyframes dashboard-shimmer {
  0% { transform: translateX(-120%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .reveal,
  [data-gallery-reveal],
  .dashboard-hero,
  .analytics-metric {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .analytics-metric::after {
    display: none;
  }
}
.admin-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}
.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
}
.admin-section-head h1 {
  margin: 0 0 4px;
  font-size: clamp(36px, 4vw, 54px);
}
.admin-section-head p {
  margin: 0;
  color: var(--muted);
}
.orders-head {
  align-items: center;
}
.orders-head h2 {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.1;
}
.orders-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbf8f3;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 0;
}
.admin-table th, .admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}
.admin-table img {
  width: 54px;
  height: 64px;
  object-fit: cover;
  border-radius: 3px;
  background: #e8e1d8;
}
.admin-table small { display: block; color: var(--muted); }
.paintings-table {
  min-width: 1080px;
  table-layout: fixed;
}
.paintings-table .order-col { width: 76px; }
.paintings-table .painting-col { width: 360px; }
.paintings-table .status-col { width: 132px; }
.paintings-table .price-col { width: 132px; }
.paintings-table .actions-col { width: auto; }
.paintings-table tr.is-updating {
  opacity: .56;
  pointer-events: none;
}
.order-cell span {
  display: inline-flex;
  min-width: 42px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.painting-list-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.painting-list-item strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.painting-list-item small {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.translation-warning-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  margin-top: 6px;
  padding: 4px 8px;
  border: 1px solid #d7a982;
  border-radius: 999px;
  background: #fff5ec;
  color: #84431f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbf8f3;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-sold {
  background: #f1ece6;
  color: #695f55;
}
.status-reserved {
  background: #f5eddf;
  color: #80633d;
}
.status-archived {
  background: #eceeee;
  color: #667071;
}
.status-pending {
  background: #f4f8f8;
  color: var(--blue);
}
.status-payment_failed {
  background: #f4e9e6;
  color: #8b3b31;
}
.status-paid,
.status-packaging {
  background: #f5f8ef;
  color: #536b2e;
}
.status-waiting_pickup {
  background: #f7f0e3;
  color: #7a613d;
}
.status-shipped,
.status-delivered {
  background: #eaf3ee;
  color: #3f6a53;
}
.status-delayed {
  background: #f5eddf;
  color: #80633d;
}
.status-canceled {
  background: #f4e9e6;
  color: #8b3b31;
}
.status-refunded,
.status-refund-refunded {
  background: #eef4ee;
  color: #4f693a;
}
.status-refund-requested,
.status-refund-processing {
  background: #f7f0e3;
  color: #7a613d;
}
.status-refund-rejected,
.status-refund-failed {
  background: #f4e9e6;
  color: #8b3b31;
}
.orders-table-wrap {
  overflow: visible;
}
.orders-table {
  min-width: 1320px;
  table-layout: fixed;
  font-size: 14px;
}
.orders-table .order-id-col { width: 86px; }
.orders-table .order-artwork-col { width: 150px; }
.orders-table .order-type-col { width: 78px; }
.orders-table .order-status-col { width: 178px; }
.orders-table .order-money-col { width: 82px; }
.orders-table .order-customer-col { width: 190px; }
.orders-table .order-refund-col { width: 360px; }
.orders-table .order-date-col { width: 126px; }
.orders-table th,
.orders-table td {
  padding: 10px 12px;
  vertical-align: middle;
}
.orders-table th {
  font-size: 13px;
}
.orders-table td {
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.orders-table td:nth-child(8) {
  vertical-align: top;
}
.orders-table small {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.25;
}
.order-id {
  display: block;
  font-size: 15px;
}
.order-artwork-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.25;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.order-product-type {
  display: block;
  font-weight: 700;
}
.admin-order-list {
  display: grid;
  gap: 14px;
}
.admin-order-card {
  display: grid;
  grid-template-columns: minmax(135px, .55fr) minmax(245px, 1.08fr) minmax(140px, .55fr) minmax(245px, 1fr) minmax(210px, .82fr);
  grid-template-areas:
    "orderid artwork money customer status"
    "refund refund refund customer status";
  gap: 16px 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.admin-order-id,
.admin-order-money {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.admin-order-id {
  grid-area: orderid;
  align-content: start;
}
.admin-order-id small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.admin-order-id .status-pill {
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: .08em;
  line-height: 1.2;
  white-space: normal;
}
.admin-order-artwork {
  grid-area: artwork;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.admin-order-artwork > span {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.admin-order-status {
  grid-area: status;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(64, 93, 104, .12);
  border-radius: 8px;
  background: #fbf8f3;
}
.admin-order-artwork img {
  width: 54px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 3px solid #111;
  border-radius: 4px;
  background: #e8e1d8;
  box-shadow: 0 8px 18px rgba(35, 31, 25, .12);
}
.admin-order-artwork strong,
.admin-order-artwork small {
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-order-artwork strong {
  line-height: 1.25;
}
.admin-order-artwork small {
  color: var(--muted);
  line-height: 1.35;
}
.admin-order-money {
  grid-area: money;
  gap: 10px;
}
.admin-order-money span {
  display: grid;
  gap: 2px;
}
.admin-order-money small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-order-money strong {
  font-size: 16px;
}
.admin-order-customer-wrap,
.admin-order-refund {
  min-width: 0;
}
.admin-order-customer-wrap {
  grid-area: customer;
}
.admin-order-refund {
  grid-area: refund;
}
.admin-order-status > .button {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  justify-content: center;
}
.orders-table .status-pill {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: .1em;
}
.refund-admin-cell .status-pill {
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  justify-content: center;
  line-height: 1.2;
  letter-spacing: .04em;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.order-status-form {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.order-status-form select {
  width: 100%;
}
.order-status-form .custom-select-trigger {
  min-height: 34px;
  padding: 7px 9px 7px 10px;
  border-radius: 7px;
  font-size: 13px;
  box-shadow: none;
}
.order-status-form .custom-select-menu {
  min-width: 210px;
}
.order-status-form .button {
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
  justify-content: center;
}
.admin-order-customer {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.admin-order-customer strong,
.admin-order-customer small,
.admin-order-customer address {
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-order-customer address {
  margin: 4px 0 0;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}
.admin-order-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  align-items: end;
  gap: 22px;
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf9 0%, #fbf8f3 100%);
}
.admin-order-detail-copy,
.admin-order-detail-summary {
  display: grid;
  min-width: 0;
}
.admin-order-detail-copy {
  align-content: start;
  gap: 7px;
}
.admin-order-detail-kicker {
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.admin-order-detail-hero h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.08;
}
.admin-order-detail-hero p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.admin-order-detail-summary {
  grid-template-columns: repeat(2, 148px);
  align-items: stretch;
  justify-content: end;
  gap: 12px;
}
.admin-order-detail-status,
.admin-order-detail-total {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  justify-items: end;
  min-height: 76px;
  padding: 11px 13px;
  border: 1px solid rgba(64, 93, 104, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}
.admin-order-detail-status {
  gap: 7px;
}
.admin-order-detail-total {
  gap: 7px;
}
.admin-order-detail-status small,
.admin-order-detail-total small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-order-detail-total strong {
  font-size: 24px;
  line-height: 1.1;
}
.admin-order-detail-status .status-pill,
.admin-order-detail-total strong {
  align-self: center;
}
.admin-countdown-wrap {
  margin-bottom: 18px;
}
.admin-countdown-wrap .payment-countdown {
  margin: 0;
}
.admin-order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 18px;
}
.admin-order-detail-card {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(35, 31, 25, .06);
}
.admin-order-card-head {
  display: grid;
  gap: 4px;
}
.admin-order-card-head span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.admin-order-card-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}
.admin-detail-list {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0 16px;
  align-items: start;
  margin: 0;
}
.admin-detail-list dt {
  min-height: 35px;
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(64, 93, 104, .12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-detail-list dd {
  min-width: 0;
  min-height: 35px;
  margin: 0;
  padding: 7px 0 10px;
  border-bottom: 1px solid rgba(64, 93, 104, .12);
  overflow-wrap: anywhere;
  font-weight: 650;
  line-height: 1.45;
}
.admin-token-value {
  display: block;
  padding: 9px 10px;
  border: 1px solid rgba(64, 93, 104, .16);
  border-radius: 6px;
  background: #fbf8f3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}
.admin-order-line-list {
  display: grid;
  gap: 12px;
}
.admin-order-line-list article {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) minmax(132px, auto);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
}
.admin-order-line-list img {
  width: 82px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 3px solid #111;
  border-radius: 6px;
  background: #fff;
}
.admin-order-line-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.admin-order-line-copy strong {
  font-size: 16px;
  line-height: 1.25;
}
.admin-order-product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
  align-items: center;
}
.admin-order-line-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 132px;
  text-align: right;
}
.admin-order-line-meta b {
  font-size: 16px;
}
.product-type-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(43, 36, 26, .18);
  border-radius: 999px;
  color: var(--ink);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.product-type-print {
  background: #eef4ee;
}
.product-type-original {
  background: #f6eadf;
}
.admin-order-line-list strong,
.admin-order-line-list small,
.admin-order-line-list b {
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-order-actions {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.admin-order-action-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(64, 93, 104, .14);
  border-radius: 8px;
  background: #fbf8f3;
}
.admin-action-panel-head {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(64, 93, 104, .1);
}
.admin-action-panel-head span {
  color: var(--clay);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.admin-action-panel-head strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}
.admin-order-status-panel .button {
  width: 100%;
  justify-content: center;
}
.admin-order-actions .refund-card {
  width: 100%;
}
.admin-order-actions .refund-admin-cell.is-empty {
  min-height: 0;
}
.admin-order-contact-editor {
  gap: 16px;
}
.admin-order-contact-editor summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.admin-order-contact-editor summary::-webkit-details-marker {
  display: none;
}
.admin-order-contact-editor summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border: 1px solid rgba(64, 93, 104, .18);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.admin-order-contact-editor[open] summary::after {
  transform: rotate(225deg);
}
.admin-order-contact-editor > .muted {
  margin: -6px 0 0;
}
.admin-order-contact-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.admin-order-contact-form label,
.admin-order-contact-confirm label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.admin-order-contact-form label.wide,
.admin-order-contact-actions {
  grid-column: span 3;
}
.admin-order-contact-form input,
.admin-order-contact-confirm input {
  width: 100%;
  min-width: 0;
  text-transform: none;
  letter-spacing: 0;
}
.admin-order-contact-actions {
  display: flex;
  justify-content: flex-end;
}
.admin-order-contact-confirm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(64, 93, 104, .14);
  border-radius: 8px;
  background: #fbf8f3;
}
.admin-order-contact-confirm > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.admin-order-contact-confirm span {
  color: var(--clay);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.admin-order-contact-confirm strong,
.admin-order-contact-audit strong {
  color: var(--ink);
}
.admin-order-contact-confirm small,
.admin-order-contact-audit small {
  color: var(--muted);
}
.admin-order-contact-audit {
  display: grid;
  gap: 10px;
}
.admin-order-contact-audit h3 {
  margin: 0;
  font-size: 18px;
}
.admin-order-contact-audit article {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(64, 93, 104, .12);
  border-radius: 8px;
  background: #fffaf4;
}
.admin-order-contact-audit article > div {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.admin-order-contact-audit article > div small {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.admin-order-contact-audit article > div span {
  color: var(--clay);
  font-weight: 850;
}
.admin-order-contact-audit article > div b {
  min-width: 0;
  color: var(--ink);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.admin-order-contact-audit article > div em {
  color: var(--muted);
  font-style: normal;
}
.refund-admin-cell {
  display: grid;
  min-width: 0;
  align-items: start;
}
.refund-admin-cell.is-empty {
  min-height: 0;
}
.refund-card {
  display: grid;
  width: min(100%, 390px);
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(64, 93, 104, .14);
  border-left: 4px solid #9b6a59;
  border-radius: 8px;
  background: #fffdf9;
}
.refund-card-failed {
  border-left-color: #8b3b31;
  background: #fffafa;
}
.refund-card-requested,
.refund-card-processing {
  border-left-color: #b08a4b;
}
.refund-card-refunded {
  border-left-color: #4f693a;
}
.refund-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(64, 93, 104, .1);
}
.refund-summary strong {
  font-size: 14px;
  white-space: nowrap;
}
.refund-notes {
  display: grid;
  gap: 6px;
}
.refund-admin-cell .muted {
  color: var(--muted);
  font-size: 12px;
}
.refund-admin-cell small {
  display: grid;
  grid-template-columns: minmax(90px, .72fr) minmax(0, 1fr);
  gap: 8px;
  max-width: 100%;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.refund-admin-cell small span {
  color: #8c8173;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.refund-admin-cell small strong {
  color: #5f574e;
  font-weight: 650;
}
.refund-admin-cell small.error strong {
  color: #8b3b31;
}
.refund-actions {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(84px, .52fr);
  gap: 6px;
}
.refund-actions .button {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
.orders-table time {
  display: inline-block;
  max-width: 112px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}
.orders-table td:last-child small {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.price-cell {
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}
.user-stat {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 6px 6px 0;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbf8f3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.users-table td:first-child strong {
  display: block;
}
.create-admin-panel {
  display: grid;
  gap: 18px;
  margin: 0 0 18px;
}
.create-admin-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}
.create-admin-panel summary::-webkit-details-marker {
  display: none;
}
.create-admin-panel summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-right: 8px;
  border: solid rgba(43, 36, 26, .78);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.create-admin-panel[open] summary::after {
  transform: rotate(225deg);
}
.create-admin-copy {
  min-width: 0;
  padding-right: 8px;
}
.create-admin-form {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.create-admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.create-admin-fields label {
  min-width: 0;
  color: var(--muted);
  font-weight: 650;
}
.create-admin-fields input {
  min-height: 46px;
  background: #fffdf9;
  border-color: #d8d0c5;
}
.create-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.create-admin-actions p {
  max-width: 460px;
  margin: 0;
}
.create-admin-actions .button {
  min-width: min(100%, 240px);
  min-height: 46px;
  flex: 0 0 auto;
}
.user-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr);
  gap: 18px;
  align-items: start;
}
.settings-panel.user-admin-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 0;
}
.user-admin-form .settings-grid {
  align-items: end;
}
.user-admin-form .toggle-row {
  grid-column: 1 / -1;
  min-height: 76px;
}
.user-admin-form .button {
  min-height: 46px;
}
.user-admin-side {
  display: grid;
  gap: 18px;
}
.admin-mini-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
}
.admin-mini-card strong {
  display: block;
  margin-bottom: 4px;
}
.admin-mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.admin-link-list {
  display: grid;
  gap: 8px;
}
.admin-link-list a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  text-decoration: none;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.actions form, .row-actions form { margin: 0; }
.actions button, .actions a,
.row-actions button, .row-actions a {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.row-actions a,
.row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  white-space: nowrap;
}
.row-actions a {
  background: #231f1a;
  border-color: #231f1a;
  color: #fffaf1;
  text-decoration: none;
}
.paintings-table td:last-child .row-actions {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.paintings-table .row-actions .painting-bio-action {
  flex: 1 1 170px;
  min-width: 0;
  max-width: 100%;
  height: auto;
  padding-inline: 8px;
  line-height: 1.25;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}
.row-actions form:last-child button {
  color: #8b2f24;
}
.collections-table .row-actions {
  display: flex;
  flex-wrap: nowrap;
  min-width: max-content;
}
.collections-table .row-actions form {
  display: inline-flex;
}
.collections-table .row-actions a,
.collections-table .row-actions button {
  width: auto;
}
.collection-order-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.collection-order-actions form {
  margin: 0;
}
.collection-order-actions button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf9;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}
.collection-order-actions button:hover {
  border-color: var(--clay);
  color: var(--clay);
}
.collection-painting-picker {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
}
.collection-painting-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}
.collection-painting-picker-head span,
.collection-painting-picker-head small {
  color: var(--muted);
}
.collection-painting-picker-head span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.collection-painting-picker-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
}
.collection-painting-picker-head small {
  max-width: 420px;
  line-height: 1.4;
}
.collection-painting-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.collection-painting-option {
  display: grid;
  grid-template-columns: 18px 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #ded5c8;
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink);
}
.collection-painting-option input {
  width: 18px;
  min-height: 18px;
}
.collection-painting-option img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 6px;
  background: #f5efe6;
}
.collection-painting-option span {
  min-width: 0;
}
.collection-painting-option strong,
.collection-painting-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collection-painting-option small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
}
.collection-painting-option.is-locked {
  opacity: .62;
  background: #f2eee7;
}
.collection-painting-option.is-locked input {
  cursor: not-allowed;
}
.collection-painting-option.is-locked strong {
  color: #6f665c;
}
.collection-painting-option.is-locked small {
  color: #8b5f55;
}
.admin-form {
  display: grid;
  gap: 20px;
  max-width: 1100px;
}
.admin-form fieldset {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 18px;
}
.form-grid, .inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.voucher-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: end;
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.voucher-form > label {
  grid-column: span 2;
  min-width: 0;
  color: var(--muted);
  font-weight: 650;
}
.voucher-form input,
.voucher-form select {
  min-height: 46px;
  background: #fffdf9;
  border-color: #d8d0c5;
}
.voucher-active {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
}
.voucher-active input {
  width: 18px;
  min-height: 18px;
}
.voucher-active small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.voucher-submit {
  grid-column: span 4;
  min-height: 58px;
}
.voucher-admin-list {
  display: grid;
  gap: 16px;
}
.voucher-admin-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.voucher-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.voucher-card-head span:first-child {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.voucher-card-head strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  letter-spacing: .02em;
}
.voucher-card-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.voucher-use-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbf8f3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.voucher-use-pill strong {
  display: inline;
  margin: 0 3px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0;
}
.voucher-card-grid {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(120px, .7fr) minmax(340px, 1.5fr) minmax(190px, .9fr);
  gap: 14px;
  align-items: end;
}
.table-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.table-field input,
.table-field select {
  min-height: 42px;
  padding: 8px 10px;
  background: #fffdf9;
  border-color: #d8d0c5;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}
.voucher-window-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.voucher-use-cell {
  min-width: 0;
}
.status-available {
  background: #f5f8ef;
  color: #536b2e;
}
.voucher-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.voucher-card-actions form {
  margin: 0;
}
.voucher-card-actions button {
  min-width: 132px;
}
.danger-button {
  color: #8b2f24 !important;
}
.admin-section {
  margin-top: 34px;
}
.shipping-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf9 0%, #f5f0e8 100%);
  box-shadow: var(--shadow);
}
.shipping-hero span,
.shipping-add-panel > div > span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.shipping-hero h2,
.shipping-add-panel h2 {
  margin: 5px 0 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}
.shipping-hero p,
.shipping-add-panel p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.shipping-hero strong {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid #d9e0c9;
  border-radius: 999px;
  background: #f5f8ef;
  color: #536b2e;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.shipping-panel {
  display: grid;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(43, 36, 26, .06);
}
.shipping-admin-form {
  margin-bottom: 34px;
}
.shipping-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.shipping-panel-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.shipping-panel-head h2 {
  margin: 2px 0 0;
}
.shipping-panel-head p {
  max-width: 700px;
  margin: 4px 0 0;
  color: var(--muted);
}
.shipping-panel-head strong {
  display: block;
  font-size: 17px;
}
.shipping-panel-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}
.shipping-admin-list {
  display: grid;
  gap: 16px;
}
.shipping-admin-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
}
.shipping-card-head {
  display: block;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.shipping-card-head span:first-child {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.shipping-card-head strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  letter-spacing: .01em;
}
.shipping-card-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 500;
}
.shipping-card-grid,
.shipping-template-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.shipping-card-grid .table-field,
.shipping-template-grid > label {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 70px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
}
.shipping-card-grid .table-field span {
  display: block;
}
.shipping-card-grid input,
.shipping-template-grid input {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 9px 11px;
  border-color: #d8d0c5;
  border-radius: 7px;
  background: #fffdf9;
  font-size: 14px;
  line-height: 1.2;
}
.shipping-card-grid .shipping-name-field,
.shipping-template-grid > .shipping-name-field {
  grid-column: span 4;
  order: 1;
}
.shipping-card-grid .shipping-country-field,
.shipping-template-grid > .shipping-country-field {
  grid-column: 1 / -1;
  order: 2;
}
.shipping-card-grid .shipping-region-field,
.shipping-template-grid > .shipping-region-field,
.shipping-card-grid .shipping-money-field,
.shipping-template-grid > .shipping-money-field,
.shipping-card-grid .shipping-currency-field,
.shipping-template-grid > .shipping-currency-field {
  grid-column: span 2;
  order: 1;
}
.shipping-card-toggle,
.shipping-template-grid > .shipping-template-active {
  grid-column: span 2;
  order: 1;
}
.shipping-toggle-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #d8d0c5;
  border-radius: 7px;
  background: #fffdf9;
}
.shipping-toggle-control strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}
.shipping-toggle-control input {
  width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
  flex: 0 0 auto;
}
.shipping-actions {
  display: flex;
  justify-content: flex-end;
}
.shipping-panel-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.shipping-save {
  min-width: min(100%, 260px);
  min-height: 46px;
}
.shipping-add-panel {
  margin-top: 34px;
}
.shipping-template-form {
  display: grid;
  gap: 18px;
}
.shipping-submit {
  min-width: min(100%, 220px);
  min-height: 46px;
}
.settings-form {
  display: grid;
  gap: 18px;
  max-width: 1180px;
}
.settings-panel {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.settings-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--clay);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.settings-panel h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.1;
}
.settings-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}
.settings-grid.single {
  grid-template-columns: minmax(0, 1fr);
}
.settings-grid label {
  min-width: 0;
  color: var(--muted);
  font-weight: 650;
}
.settings-grid .setting-field,
.stripe-hold-grid .setting-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-weight: 650;
}
.setting-field-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 20px;
}
.setting-field-heading > label {
  display: block;
  min-width: 0;
  color: inherit;
  font: inherit;
  line-height: 1.35;
}
.settings-panel .setting-help {
  appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--muted) 48%, transparent);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.settings-panel .setting-help:hover,
.settings-panel .setting-help:focus-visible,
.settings-panel .setting-help.is-open {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.settings-panel .setting-tooltip {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  left: 0;
  width: min(320px, calc(100vw - 52px));
  display: block;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  background: #211e1a;
  color: #fffdf9;
  box-shadow: 0 14px 34px rgba(29, 25, 20, .22);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: left;
  text-transform: none;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.setting-help:hover + .setting-tooltip,
.setting-help:focus-visible + .setting-tooltip,
.setting-help.is-open + .setting-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.setting-toggle-field .toggle-row {
  width: 100%;
}
.setting-toggle-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.setting-toggle-copy .setting-field-heading > label {
  color: var(--ink);
  font-weight: 800;
}
.settings-grid .field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.settings-grid .wide {
  grid-column: 1 / -1;
}
.settings-grid input,
.settings-grid textarea {
  min-height: 46px;
  background: #fffdf9;
  border-color: #d8d0c5;
}
.stripe-settings-panel { align-items: start; }
.stripe-settings-content { display: grid; gap: 21px; min-width: 0; }
.stripe-settings-group { display: grid; gap: 12px; min-width: 0; }
.stripe-settings-group + .stripe-settings-group { padding-top: 20px; border-top: 1px solid var(--line); }
.stripe-settings-group h3 {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}
.stripe-key-list { display: grid; min-width: 0; border-top: 1px solid var(--line); }
.stripe-key-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  align-items: start;
  gap: 15px;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.stripe-key-name { min-width: 0; padding-top: 11px; color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.35; }
.stripe-key-control { display: grid; gap: 5px; min-width: 0; }
.stripe-key-control input {
  min-width: 0;
  min-height: 44px;
  border-color: #d8d0c5;
  background: #fffdf9;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}
.stripe-key-control small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.4; }
.stripe-hold-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; min-width: 0; }
.stripe-hold-grid label,
.stripe-hold-grid .setting-field { min-width: 0; color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.35; }
.stripe-hold-grid input,
.stripe-hold-grid select,
.stripe-hold-grid .custom-select { width: 100%; min-width: 0; }
.stripe-hold-grid input,
.stripe-hold-grid select { min-height: 44px; border-color: #d8d0c5; background: #fffdf9; }
.stripe-hold-scope { grid-column: 1 / -1; }
.settings-actions {
  display: flex;
  justify-content: flex-end;
}
.settings-actions .button {
  min-width: 240px;
  min-height: 54px;
}
.auth-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: clamp(30px, 6vw, 86px) 18px;
}
.auth-card {
  width: min(100%, 520px);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, .94);
  box-shadow: var(--shadow);
}
.auth-card[data-submit-pending="true"] button[aria-busy="true"] {
  cursor: wait;
  opacity: .72;
}
.auth-card > span,
.account-heading span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.auth-card h1,
.account-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1;
}
.auth-card label,
.account-panel label,
.address-edit-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}
.auth-card input,
.account-panel input,
.address-edit-form input {
  min-height: 48px;
  background: #fffdf9;
  border-color: #d8d0c5;
}
.auth-remember-row {
  min-height: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.auth-remember-row input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--ink);
}
.verify-card .code-input {
  font-size: 28px;
  font-weight: 850;
  letter-spacing: .22em;
  text-align: center;
}
.auth-card p {
  margin: 0;
}
.auth-card a,
.reset-link-note + p a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.form-message {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbf8f3;
  color: var(--muted);
  font-weight: 700;
}
.form-message.success {
  border-color: #d9e0c9;
  background: #f5f8ef;
  color: #536b2e;
}
.form-message.error {
  border-color: #e2b9ae;
  background: #fff4ef;
  color: #8b2f24;
  margin-bottom: 20px;
}
.form-message.error + section,
.form-message.error + div,
.form-message.error + form,
.form-message.error + .checkout-login-panel {
  margin-top: 20px;
}
.cart-recovery-message {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 20px;
}
.cart-recovery-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.cart-recovery-action {
  margin: 0;
}
.cart-recovery-message .button,
.cart-recovery-action .button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 13px;
  font-size: 13px;
}
.account-page {
  width: min(100% - 36px, 1160px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) 0;
  transition: opacity .16s ease, filter .16s ease;
}
.account-page.is-updating {
  opacity: .62;
  filter: saturate(.9);
  pointer-events: none;
}
.account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf9 0%, #f5f0e8 100%);
  box-shadow: var(--shadow);
}
.account-heading p {
  margin: 5px 0 0;
  color: var(--muted);
}
.account-heading h1 {
  font-size: clamp(28px, 3.2vw, 40px);
}
.account-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3eee6;
}
.account-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 6px;
  color: #6a645d;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s ease, box-shadow .18s ease, color .18s ease;
}
.account-tabs a.active {
  background: #fffdf9;
  box-shadow: 0 6px 18px rgba(43, 36, 26, .08);
  color: var(--ink);
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.account-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(43, 36, 26, .06);
}
.account-panel.full {
  margin-top: 16px;
}
.account-panel h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
  letter-spacing: 0;
}
.account-bidder-panel {
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.account-bidder-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  align-content: center;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-left: 3px solid var(--olive);
  background: var(--surface-soft);
}
.account-bidder-check {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--olive) 62%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--olive) 12%, var(--surface));
}
.account-bidder-check::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 7px;
  width: 8px;
  height: 13px;
  border-right: 2px solid var(--olive);
  border-bottom: 2px solid var(--olive);
  transform: rotate(45deg);
}
.account-bidder-heading > div > span,
.account-bidder-scope > span,
.account-bidder-row dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}
.account-bidder-heading h2 { margin-top: 2px; font-size: 24px; }
.account-bidder-heading p { max-width: 440px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-bidder-list { display: grid; min-width: 0; }
.account-bidder-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(250px, 1.1fr) auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 17px 20px;
  border-top: 1px solid var(--line);
}
.account-bidder-row:first-child { border-top: 0; }
.account-bidder-scope { display: grid; min-width: 0; gap: 2px; }
.account-bidder-scope strong { overflow-wrap: anywhere; font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.3; }
.account-bidder-row dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.account-bidder-row dl > div { display: grid; min-width: 0; }
.account-bidder-row dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 700; }
.account-bidder-row .button { min-width: 118px; padding: 9px 12px; font-size: 11px; }
.account-auction-bids {
  gap: 16px;
}
.account-auction-bids-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.account-auction-bids-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.account-auction-bids-heading h2 {
  margin-top: 3px;
}
.account-auction-bid-list {
  display: grid;
  gap: 10px;
}
.account-auction-bid-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(230px, .55fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}
.account-auction-bid-image {
  display: grid;
  place-items: center;
  width: 92px;
  min-height: 112px;
  padding: 7px;
  border: 1px solid #201d19;
  background: #fff;
}
.account-auction-bid-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 104px;
  object-fit: contain;
}
.account-auction-bid-main {
  display: grid;
  align-content: center;
  gap: 13px;
  min-width: 0;
}
.account-auction-bid-title {
  display: grid;
  gap: 5px;
  justify-items: start;
}
.account-auction-bid-title h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}
.account-auction-bid-title a {
  color: inherit;
  text-decoration: none;
}
.account-bid-standing {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.account-bid-standing.is-leading {
  border-color: color-mix(in srgb, var(--olive) 55%, var(--line));
  color: var(--olive);
}
.account-bid-standing.is-payment {
  border-color: color-mix(in srgb, var(--clay) 58%, var(--line));
  color: var(--clay);
}
.account-auction-bid-main dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.account-auction-bid-main dl > div {
  min-width: 0;
}
.account-auction-bid-main dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.account-auction-bid-main dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
}
.account-auction-bid-side {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 9px;
  min-width: 0;
}
.account-auction-bid-side .auction-clock {
  min-height: 0;
  padding: 10px 12px;
}
.account-auction-bid-side .button {
  width: 100%;
}
.account-password-panel {
  align-content: start;
  gap: 0;
}
.account-password-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  list-style: none;
  cursor: pointer;
}
.account-password-panel summary::-webkit-details-marker {
  display: none;
}
.account-password-panel summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .18s ease;
}
.account-password-panel[open] summary {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.account-password-panel[open] summary::after {
  transform: rotate(225deg) translateY(-3px);
}
.account-password-panel summary strong {
  display: block;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
}
.account-password-panel summary small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.account-danger-panel {
  grid-column: 1 / -1;
  border-color: rgba(139, 47, 36, .22);
  background: #fffaf7;
}
.account-danger-panel summary strong {
  color: #7d2b22;
}
.account-delete-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 47, 36, .16);
  border-radius: 8px;
  background: rgba(255, 253, 249, .72);
  color: #5c5047;
  font-size: 14px;
  line-height: 1.48;
}
.account-delete-copy p {
  margin: 0;
}
.account-panel form {
  display: grid;
  gap: 12px;
}
.account-panel label,
.address-edit-form label {
  gap: 5px;
  font-size: 13px;
  line-height: 1.25;
}
.account-field-help {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}
.account-panel input,
.address-edit-form input {
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 7px;
  font-size: 15px;
  line-height: 1.25;
}
.account-panel .button,
.address-card .button {
  min-height: 44px;
  padding-block: 10px;
}
.account-panel .shipping-active {
  min-height: 44px;
  padding: 9px 11px;
}
.account-panel .shipping-active strong {
  font-size: 14px;
}
.address-list,
.order-list {
  display: grid;
  gap: 12px;
}
.address-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
}
.address-card.is-default {
  border-color: rgba(29, 28, 25, .24);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(35, 31, 25, .07), inset 0 0 0 1px rgba(29, 28, 25, .05);
}
.address-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.address-card-head strong {
  font-size: 17px;
}
.address-card-head span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2eee7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.address-card.is-default .address-card-head span {
  background: var(--ink);
  color: var(--white);
}
.address-add-panel {
  margin-top: 14px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}
.address-add-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 16px;
  list-style: none;
  cursor: pointer;
}
.address-add-panel summary::-webkit-details-marker {
  display: none;
}
.address-add-panel summary::after {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .18s ease;
}
.address-add-panel[open] summary {
  border-bottom: 1px solid var(--line);
}
.address-add-panel[open] summary::after {
  transform: rotate(225deg) translateY(-3px);
}
.address-add-panel summary strong {
  color: var(--ink);
  font-size: 17px;
}
.address-add-panel .address-form {
  padding: 16px;
}
.address-edit-form,
.address-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: end;
}
.address-edit-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.address-edit-fields > label,
.address-edit-fields > .country-autocomplete,
.address-edit-fields > .address-meta-field {
  grid-column: span 4;
}
.address-edit-fields > .address-line-field,
.address-edit-fields > .address-location-field,
.address-edit-fields > .address-country-field {
  grid-column: span 6;
}
.address-edit-fields:disabled input {
  opacity: 1;
  border-color: transparent;
  background: #f5f1eb;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  cursor: default;
}
.address-edit-form.is-editing .address-card-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.address-edit-form > label,
.address-form > label,
.address-edit-form > .country-autocomplete,
.address-form > .country-autocomplete {
  grid-column: span 4;
}
.address-edit-form > .address-meta-field,
.address-form > .address-meta-field {
  grid-column: span 4;
}
.address-edit-form > .address-line-field,
.address-form > .address-line-field,
.address-edit-form > .address-location-field,
.address-form > .address-location-field,
.address-edit-form > .address-country-field,
.address-form > .address-country-field {
  grid-column: span 6;
}
.address-edit-form .country-autocomplete .field-label,
.address-form .country-autocomplete .field-label,
.address-edit-form [data-address-region-label],
.address-form [data-address-region-label] {
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}
.address-edit-form .country-autocomplete input,
.address-form .country-autocomplete input {
  width: 100%;
  min-height: 42px;
  padding: 9px 36px 9px 11px;
  border-radius: 7px;
  font-size: 15px;
  line-height: 1.25;
}
.address-form h3,
.address-edit-form .address-card-head {
  grid-column: 1 / -1;
  margin: 0;
}
.address-edit-form .shipping-active,
.address-form .shipping-active {
  grid-column: span 3;
  display: inline-flex;
  flex-direction: row;
  min-height: 42px;
  align-self: end;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  gap: 10px;
  color: var(--ink);
}
.address-edit-form button,
.address-form button {
  grid-column: span 3;
  align-self: end;
  width: 100%;
}
.address-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 14px;
  justify-content: end;
  align-items: end;
}
.address-actions[hidden] {
  display: none;
}
.address-actions .button,
.address-actions button {
  grid-column: auto;
  width: 100%;
  min-width: 0;
}
.address-action-spacer {
  display: block;
}
.address-edit-form .shipping-active input,
.address-form .shipping-active input {
  flex: 0 0 17px;
  width: 17px;
  min-height: 17px;
  margin: 0;
}
.address-edit-form .shipping-active span,
.address-form .shipping-active span {
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
}
.address-edit-form .shipping-active strong,
.address-form .shipping-active strong {
  font-size: 13px;
  letter-spacing: 0;
}
.account-empty {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbf8f3;
  color: var(--muted);
  font-size: 15px;
}
.account-order {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}
.account-order img {
  width: 86px;
  height: 86px;
  object-fit: cover;
}
.account-order p,
.account-order small {
  margin: 0;
  color: var(--muted);
}
.account-order > div:last-child {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.account-order .order-detail-link {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
}
.order-detail-panel {
  gap: 18px;
}
.guest-order-page {
  gap: 20px;
}
.guest-order-detail-panel {
  gap: 20px;
}
.guest-order-detail-panel .order-detail-grid {
  align-items: stretch;
}
.guest-order-detail-panel .order-detail-items,
.guest-order-detail-panel .order-artwork-card,
.guest-order-detail-panel .order-price-card {
  height: 100%;
}
.order-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.order-detail-head h2 {
  margin-top: 6px;
}
.order-detail-head p {
  margin: 6px 0 0;
  color: var(--muted);
}
.back-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.admin-order-back-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
}
.admin-order-back-link span {
  font-size: 16px;
  line-height: 1;
}
.order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}
.order-detail-items {
  display: grid;
  gap: 12px;
}
.order-artwork-card,
.order-price-card,
.order-address-grid section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 10px 24px rgba(35, 31, 25, .04);
}
.order-artwork-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
}
.order-artwork-card img {
  width: 118px;
  height: 138px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(43, 36, 26, .12);
  background: #fff;
}
.order-artwork-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}
.order-artwork-card p,
.order-artwork-card small {
  margin: 0 0 6px;
  color: var(--muted);
}
.order-artwork-card .order-product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
  align-items: center;
}
.order-artwork-card .order-product-row small {
  margin: 0;
}
.order-price-card {
  display: grid;
  gap: 0;
  padding: 16px;
}
.order-price-card h3,
.order-address-grid h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.order-detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.guest-order-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.order-detail-meta div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
}
.order-detail-meta span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.order-detail-meta strong {
  overflow-wrap: anywhere;
}
.order-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.order-address-grid section {
  padding: 16px;
}
.order-address-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.guest-order-private-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
}
.guest-order-private-card .checkout-policy-note {
  max-width: 760px;
  margin: 0;
}
.guest-order-detail-panel .order-price-card .summary-line {
  gap: 14px;
}
.guest-order-detail-panel .order-price-card .summary-line span {
  min-width: 0;
}
.guest-order-detail-panel .order-price-card .summary-line strong {
  white-space: nowrap;
}
.guest-order-detail-panel .order-price-card .total-line {
  align-items: baseline;
}
.guest-order-detail-panel .order-price-card .total-line span {
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.25;
}
.guest-order-detail-panel .order-price-card .total-line strong {
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1;
}
.order-status-card,
.guest-order-status-card {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}
.order-status-card > div > span,
.guest-order-status-card > div > span {
  color: var(--clay);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.order-status-card h3,
.guest-order-status-card h3 {
  margin: 4px 0 0;
  font-size: 20px;
}
.order-status-list,
.guest-order-status-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.order-status-list li,
.guest-order-status-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.order-status-list li > span,
.guest-order-status-list li > span {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border: 2px solid var(--clay);
  border-radius: 999px;
  background: #fffdf9;
}
.order-status-list strong,
.guest-order-status-list strong {
  display: block;
  line-height: 1.25;
}
.order-status-list p,
.guest-order-status-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.order-status-date,
.guest-order-status-date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.return-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}
.return-panel > div > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.return-panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.return-panel p,
.return-panel blockquote {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.return-panel blockquote {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}
.return-form {
  display: grid;
  gap: 12px;
}
.return-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 750;
}
.return-form textarea {
  min-height: 118px;
  resize: vertical;
}
.liked-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.liked-card {
  display: grid;
  gap: 8px;
}
.liked-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.liked-card span {
  color: var(--muted);
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.check input { width: auto; }
.painting-editor {
  max-width: 1480px;
}
.draft-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(64, 93, 104, .22);
  border-radius: 8px;
  background: #f7faf8;
  color: var(--ink);
  font-size: 14px;
}
.draft-status[hidden] {
  display: none;
}
.draft-status > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.draft-status .button {
  min-height: 36px;
  padding: 8px 12px;
}
.save-card .admin-upload-status {
  margin: 0 0 4px;
  padding: 10px 12px;
  font-size: 13px;
}
.editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.editor-main {
  display: grid;
  gap: 22px;
}
.editor-panel, .preview-card, .save-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(35, 31, 25, .07);
}
.editor-panel {
  padding: 22px;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.panel-heading span, .preview-card > span {
  display: block;
  margin-bottom: 4px;
  color: var(--clay);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.panel-heading h2, .preview-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.1;
}
.panel-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.language-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.language-tabs {
  display: grid;
  gap: 16px;
}
.language-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
}
.language-tab-list button {
  min-width: 56px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  letter-spacing: .08em;
  cursor: pointer;
}
.language-tab-list button.active,
.language-tab-list button[aria-selected="true"] {
  border-color: rgba(64, 93, 104, .22);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(35, 31, 25, .07);
}
.profile-language-panel {
  margin: 18px 0 22px;
}
.language-card {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
}
.language-card[hidden] {
  display: none;
}
.language-card legend {
  padding: 0 8px;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .1em;
}
.language-card textarea {
  min-height: 188px;
}
.translation-tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.translation-tool .button {
  min-height: 38px;
  padding: 8px 12px;
}
.translation-tool small {
  color: var(--muted);
  text-align: right;
}
.editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.editor-grid .wide {
  grid-column: 1 / -1;
}
.commerce-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}
.commerce-grid > label {
  grid-column: auto;
  min-width: 0;
}
.commerce-grid > .sale-field {
  grid-column: auto;
}
.commerce-grid > .toggle-row {
  grid-column: 1 / -1;
  min-height: 76px;
}
.painting-editor label {
  color: var(--muted);
  font-weight: 650;
}
.painting-editor input,
.painting-editor select,
.painting-editor textarea {
  min-height: 46px;
  border-color: #d8d0c5;
  background: #fffdf9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.painting-editor input:focus,
.painting-editor select:focus,
.painting-editor textarea:focus {
  outline: 2px solid rgba(64, 93, 104, .18);
  border-color: var(--blue);
}
.logs-panel {
  align-items: center;
}
.logs-panel form {
  display: flex;
  justify-content: flex-end;
}
.log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.log-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
}
.log-filters a.active {
  border-color: rgba(64, 93, 104, .42);
  background: #eef3f2;
  color: var(--blue);
}
.log-list {
  display: grid;
  gap: 14px;
  max-width: 1180px;
}
.log-entry {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(35, 31, 25, .06);
}
.log-entry-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.log-entry-head strong {
  overflow-wrap: anywhere;
}
.log-type {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fbf0ec;
  color: #8b3d2d;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.log-source {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3f2;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.log-source-cli .log-source {
  background: #f4f0e9;
  color: #7b6544;
}
.log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.log-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fbf8f3;
}
.log-entry details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.log-entry summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 750;
}
.log-entry pre {
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #1f2426;
  color: #f8f4ee;
  font-size: 12px;
  line-height: 1.5;
}
.toggle-row {
  min-height: 110px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
}
.toggle-row input {
  width: 18px;
  min-height: 18px;
}
.toggle-row small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.painting-images-panel {
  display: grid;
  gap: 16px;
}
.painting-upload-field {
  display: grid;
  gap: 7px;
}
.painting-image-list {
  display: grid;
  gap: 10px;
}
.empty-gallery-note {
  padding: 16px;
  border: 1px dashed #cfc5b9;
  border-radius: 8px;
  color: var(--muted);
  background: #fbf8f3;
}
.painting-image-item {
  display: grid;
  grid-template-columns: 24px 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}
.painting-image-item.is-primary {
  border-color: rgba(64, 93, 104, .48);
  box-shadow: inset 4px 0 0 var(--blue);
}
.painting-image-item.is-dragging {
  opacity: .58;
}
.painting-image-item.is-marked-delete {
  opacity: .48;
}
.image-drag-handle {
  color: var(--muted);
  font-weight: 850;
  text-align: center;
  cursor: grab;
}
.painting-image-item img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 6px;
  background: #e8e1d8;
}
.image-item-meta {
  min-width: 0;
}
.image-item-meta strong,
.image-item-meta small {
  display: block;
  overflow-wrap: anywhere;
}
.image-item-meta small {
  color: var(--muted);
  font-weight: 500;
}
.image-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.image-item-actions button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbf8f3;
  cursor: pointer;
}
.image-item-actions button:disabled {
  opacity: .35;
  cursor: default;
}
.image-item-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.image-item-actions input {
  min-height: 18px;
  width: 18px;
}
.editor-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}
.preview-card, .save-card {
  padding: 18px;
}
.preview-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin: 12px 0 16px;
  border-radius: 6px;
  background: #e8e1d8;
}
.preview-card p {
  margin: 8px 0;
  color: var(--muted);
}
.preview-card strong {
  display: block;
  margin-top: 12px;
  font-size: 24px;
}
.save-card {
  display: grid;
  gap: 10px;
}
.save-card .button {
  width: 100%;
}
.save-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card {
  width: min(100%, 420px);
  display: grid;
  gap: 16px;
}
.hint, .error { color: var(--muted); margin: 0; }
.error { color: #8b2f2a; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .cookie-actions {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .cookie-options {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .cookie-consent {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: center;
  }
}

@media (max-width: 1360px) {
  .site-header, .admin-top {
    gap: 16px;
    padding-inline: 24px;
  }
  .site-header nav, .admin-top nav {
    gap: 13px;
  }
  .lang {
    margin-left: 0;
  }
  .admin-order-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "orderid money"
      "artwork artwork"
      "customer customer"
      "status status"
      "refund refund";
  }
  .admin-order-contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-order-contact-form label.wide,
  .admin-order-contact-actions {
    grid-column: span 2;
  }
}

@media (max-width: 1180px) {
  .admin-top {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 24px;
  }
  .admin-top .brand {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .admin-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 249, .9);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(35, 31, 25, .08);
  }
  .admin-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
  }
  .admin-top.is-menu-open .admin-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .admin-top.is-menu-open .admin-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .admin-top.is-menu-open .admin-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .admin-top nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 24px;
    z-index: 100;
    width: min(520px, calc(100vw - 48px));
    max-height: calc(100dvh - 88px);
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    margin-left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(35, 31, 25, .14);
  }
  .admin-top.is-menu-open nav {
    display: grid;
  }
  .admin-top nav a,
  .admin-top nav .admin-nav-logout-form button {
    min-width: 0;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 5px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.2;
    white-space: normal;
  }
  .admin-top nav a:hover {
    background: #f3eee5;
  }
  .admin-top nav .admin-nav-logout-form,
  .admin-top nav .admin-nav-logout-form button {
    width: 100%;
  }
  .admin-top nav .admin-nav-logout-form button:hover {
    background: #f3eee5;
  }
}

@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-art-grid { gap: 28px; }
  .admin-order-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "orderid money"
      "artwork artwork"
      "customer customer"
      "status status"
      "refund refund";
  }
  .painting-page {
    grid-template-columns: 1fr;
  }
  .purchase-panel {
    position: static;
  }
  .cart-page { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .checkout-stepper ol { display: none; }
  .checkout-stepper-compact {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .checkout-success {
    margin: 30px auto 54px;
  }
  .checkout-success .checkout-stepper { text-align: center; }
  .checkout-success-card {
    padding: 26px 18px;
  }
  .checkout-success-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .checkout-success-actions .button {
    width: 100%;
    min-width: 0;
  }
  .cart-summary-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
  }
  .cart-summary-details summary::-webkit-details-marker { display: none; }
  .cart-summary-details summary::after {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    margin-right: 4px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-2px);
  }
  .cart-summary-details[open] summary::after {
    transform: rotate(225deg) translateY(-2px);
  }
  .cart-summary-details:not([open]) .cart-summary-body { display: none; }
  .cart-summary .summary-head { display: none; }
  .mock-checkout-shell { grid-template-columns: 1fr; }
  .mock-payment-panel { position: static; }
  .cart-item { grid-template-columns: 88px minmax(0, 1fr); }
  .cart-item img { width: 88px; }
  .cart-item-controls {
    grid-column: 2;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-items: start;
  }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-tab-panel {
    font-size: 19px;
  }
  .painting-browser-link {
    top: 50%;
    bottom: auto;
    width: 34px;
    height: 34px;
    max-width: none;
    padding: 0;
  }
  .painting-browser-link.left,
  .painting-browser-link.right {
    transform: translateY(-50%);
  }
  .painting-browser-link.left {
    left: -17px;
  }
  .painting-browser-link.right {
    right: -17px;
  }
  .painting-browser-link.left:hover,
  .painting-browser-link.left:focus-visible,
  .painting-browser-link.right:hover,
  .painting-browser-link.right:focus-visible {
    transform: translateY(-50%);
  }
  .admin-grid, .form-grid, .inline-form { grid-template-columns: 1fr 1fr; }
  .analytics-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .db-health-grid,
  .db-health-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-layout {
    grid-template-columns: 1fr;
  }
  .voucher-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voucher-form > label,
  .voucher-submit {
    grid-column: auto;
  }
  .voucher-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .voucher-window-fields {
    grid-column: 1 / -1;
  }
  .shipping-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shipping-card-grid .table-field,
  .shipping-card-grid .shipping-name-field,
  .shipping-card-grid .shipping-region-field,
  .shipping-card-grid .shipping-money-field,
  .shipping-card-grid .shipping-currency-field,
  .shipping-card-toggle,
  .shipping-template-grid > .shipping-template-active {
    grid-column: span 1;
  }
  .shipping-card-grid .shipping-country-field {
    grid-column: 1 / -1;
  }
  .shipping-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shipping-template-grid > label,
  .shipping-template-grid > .shipping-name-field,
  .shipping-template-grid > .shipping-region-field,
  .shipping-template-grid > .shipping-money-field,
  .shipping-template-grid > .shipping-currency-field {
    grid-column: auto;
  }
  .shipping-template-grid > .shipping-country-field {
    grid-column: 1 / -1;
  }
  .settings-panel {
    grid-template-columns: 1fr;
  }
  .create-admin-panel {
    grid-template-columns: 1fr;
  }
  .create-admin-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-crop-grid {
    grid-template-columns: 1fr;
  }
  .profile-avatar-admin {
    grid-template-columns: 1fr;
  }
  .profile-avatar-admin img {
    width: 86px;
    grid-row: auto;
  }
  .user-admin-layout {
    grid-template-columns: 1fr;
  }
  .account-grid,
  .address-edit-form,
  .address-form,
  .address-edit-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-bidder-panel { grid-template-columns: 1fr; }
  .account-bidder-heading {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .account-auction-bid-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .account-auction-bid-image {
    width: 82px;
  }
  .account-auction-bid-side {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(170px, .45fr);
    grid-template-rows: auto;
  }
  .address-edit-form > label,
  .address-form > label,
  .address-edit-form > .country-autocomplete,
  .address-form > .country-autocomplete,
  .address-edit-form .shipping-active,
  .address-form .shipping-active,
  .address-edit-form button,
  .address-form button {
    grid-column: span 1;
  }
  .address-edit-form > .address-meta-field,
  .address-form > .address-meta-field,
  .address-edit-form > .address-line-field,
  .address-form > .address-line-field,
  .address-edit-form > .address-location-field,
  .address-form > .address-location-field,
  .address-edit-form > .address-country-field,
  .address-form > .address-country-field,
  .address-edit-fields > label,
  .address-edit-fields > .country-autocomplete,
  .address-edit-fields > .address-meta-field,
  .address-edit-fields > .address-line-field,
  .address-edit-fields > .address-location-field,
  .address-edit-fields > .address-country-field {
    grid-column: span 1;
  }
	  .address-actions {
	    grid-template-columns: repeat(3, minmax(0, 1fr));
	  }
	  .liked-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .editor-shell { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .painting-image-item {
    grid-template-columns: 24px 76px minmax(0, 1fr);
  }
  .painting-image-item img {
    width: 76px;
    height: 76px;
  }
  .image-item-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
  .commerce-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commerce-grid > label,
  .commerce-grid > .sale-field {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
  }
  .site-header nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }
  .site-header {
    padding: 12px 14px;
  }
  .site-header .brand {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    font-size: 23px;
    text-overflow: ellipsis;
  }
  .site-header .session-indicator {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    margin-left: 0;
  }
  .admin-order-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "orderid"
      "artwork"
      "money"
      "customer"
      "status"
      "refund";
    gap: 12px;
    padding: 14px;
  }
  .admin-order-contact-form,
  .admin-order-contact-confirm {
    grid-template-columns: 1fr;
  }
  .admin-order-contact-form label.wide,
  .admin-order-contact-actions {
    grid-column: auto;
  }
  .admin-order-contact-actions {
    display: grid;
  }
  .admin-order-contact-actions .button,
  .admin-order-contact-confirm .button {
    width: 100%;
  }
  .admin-order-contact-audit article > div small {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .admin-order-contact-audit article > div em {
    display: none;
  }
  .admin-order-artwork {
    grid-template-columns: 68px minmax(0, 1fr);
  }
  .admin-order-artwork img {
    width: 68px;
  }
  .mobile-cart-link {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    width: 42px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 249, .9);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(35, 31, 25, .08);
  }
  .mobile-cart-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }
  .mobile-cart-link span {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 1px solid var(--paper);
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
  }
  .site-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 249, .9);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(35, 31, 25, .08);
  }
  .site-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
  }
  .site-header.is-menu-open .site-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .site-header.is-menu-open .site-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .site-header.is-menu-open .site-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .site-header nav {
    display: none;
  }
  .site-header nav {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    overflow-x: visible;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 253, 249, .97);
    box-shadow: 0 18px 42px rgba(35, 31, 25, .12);
  }
  .site-header.is-menu-open nav {
    display: grid;
  }
  .site-header nav > a,
  .site-header nav > .nav-logout-form {
    grid-column: 1 / -1;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 7px;
    color: var(--ink);
    font-size: 14px;
  }
  .site-header nav > a:hover {
    background: #f3eee5;
  }
  .site-header nav > .nav-logout-form button {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 7px;
    text-align: left;
  }
  .site-header nav > .nav-logout-form {
    padding: 0;
  }
  .site-header nav > .nav-logout-form button:hover {
    background: #f3eee5;
  }
  .site-header nav .cart-link {
    display: none;
  }
  .site-header nav .currency-switcher {
    grid-column: 1;
    width: fit-content;
    margin-top: 6px;
  }
  .site-header nav .currency-switcher label,
  .site-header nav .currency-switcher .custom-select {
    width: fit-content;
    min-width: 0;
  }
  .site-header nav .currency-switcher select {
    width: auto;
    min-width: 56px;
    max-width: 64px;
    height: 26px;
    padding: 2px 17px 2px 8px;
    background-position: calc(100% - 10px) 11px, calc(100% - 6px) 11px;
    font-size: 9px;
  }
  .site-header nav .currency-switcher .custom-select-trigger {
    min-width: 58px;
    max-width: 68px;
    min-height: 30px;
    padding: 5px 8px 5px 10px;
    border-radius: 999px;
    font-size: 10px;
  }
  .site-header nav .currency-switcher .custom-select-menu {
    min-width: 68px;
  }
  .site-header nav > .lang {
    grid-column: 2;
    display: block;
    justify-self: end;
    margin: 6px 0 0;
  }
  .site-header nav > .lang summary {
    min-height: 30px;
    gap: 5px;
    padding: 4px 8px 4px 5px;
    box-shadow: none;
  }
  .site-header nav > .lang summary::after {
    width: 6px;
    height: 6px;
  }
  .site-header nav > .lang .lang-current {
    min-width: 33px;
    height: 22px;
    padding: 0 7px;
    font-size: 10px;
  }
  .site-header nav > .lang .lang-label {
    display: none;
  }
  .site-header nav > .lang .lang-menu {
    right: 0;
    min-width: 176px;
    max-width: min(176px, calc(100vw - 44px));
  }
  .site-header nav > .lang .lang-menu a {
    grid-column: auto;
    min-height: 0;
    display: flex;
    padding: 8px 9px;
    font-size: 13px;
  }
  .cart-toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
  }
  .cart-toast .cart-toast-link {
    flex: 0 0 auto;
    margin-left: 0;
  }
  .admin-top { padding: 12px 14px; }
  .admin-top .brand {
    max-width: none;
    white-space: nowrap;
  }
  .admin-top nav {
    right: 14px;
    width: calc(100vw - 28px);
    grid-template-columns: 1fr;
  }
  .admin-main {
    padding: 22px 14px 46px;
  }
  .admin-main > h1 {
    overflow-wrap: anywhere;
    font-size: clamp(32px, 11vw, 42px);
    line-height: 1.05;
  }
  .lang { margin-left: auto; }
  .lang-label { display: none; }
  .lang-menu {
    left: auto;
    right: 0;
  }
  .hero { min-height: 64vh; }
  .profile-cover { height: 163px; }
  .artist-profile-card {
    width: calc(100% - 28px);
    max-width: calc(100vw - 28px);
    margin-top: -58px;
    padding: 20px;
    display: grid;
    gap: 18px;
    overflow: hidden;
  }
  .artist-summary {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
  }
  .artist-avatar { width: 70px; }
  .artist-summary h1 {
    font-size: 24px;
    overflow-wrap: anywhere;
  }
  .artist-summary p {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .gallery-tabs {
    width: calc(100% - 28px);
    max-width: calc(100vw - 28px);
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
    overflow: hidden;
  }
  .gallery-tabs form {
    grid-column: 1 / -1;
    margin-left: 0;
    min-width: 0;
  }
  .gallery-tabs label {
    justify-content: space-between;
    min-width: 0;
  }
  .collection-filter {
    width: calc(100% - 28px);
    max-width: calc(100vw - 28px);
    margin-top: -2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .collection-filter::-webkit-scrollbar {
    display: none;
  }
  .collection-filter a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .gallery-art-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    column-count: initial;
    column-gap: 0;
  }
  .gallery-art-card {
    display: block;
    margin: 0;
  }
  .gallery-art-meta {
    padding-right: 0;
    font-size: 13px;
  }
  .gallery-art-actions {
    position: absolute;
    right: 10px;
    top: 10px;
    width: auto;
    justify-content: flex-end;
    margin-top: 0;
  }
  .cookie-consent {
    grid-template-columns: 1fr;
    bottom: 14px;
    max-height: min(58vh, 490px);
    gap: 10px;
    padding: 13px;
    overscroll-behavior: contain;
  }
  .cookie-consent span {
    font-size: 10px;
    letter-spacing: .1em;
  }
  .cookie-consent h2 {
    margin-bottom: 6px;
    font-size: 20px;
  }
  .cookie-consent p {
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.38;
  }
  .cookie-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    min-width: 0;
  }
  .cookie-actions .button {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .cookie-actions .button,
  .cookie-options {
    grid-column: auto;
  }
  .cookie-options {
    grid-column: 1 / -1;
  }
  .cookie-options summary {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .cookie-options > div {
    gap: 6px;
    margin-top: 7px;
    padding: 8px;
  }
  .cookie-options label {
    min-height: 30px;
    font-size: 12px;
  }
  .mock-brand-row,
  .mock-line-item {
    align-items: flex-start;
  }
  .mock-brand-row {
    display: grid;
  }
  .mock-detail-grid,
  .mock-payment-card .two-col {
    grid-template-columns: 1fr;
  }
  .mock-line-item {
    grid-template-columns: 62px minmax(0, 1fr);
    display: grid;
  }
  .mock-line-item strong {
    grid-column: 2 / -1;
  }
  .cart-page {
    width: min(calc(100% - 20px), 1260px);
    margin-top: 12px;
  }
  .cart-summary-details[open] .cart-summary-body {
    width: 100%;
    box-sizing: border-box;
  }
  .summary-checkout-button {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    display: inline-flex;
  }
  .summary-help {
    padding-bottom: 14px;
  }
  .cart-items-form,
  .checkout-step-form,
  .payment-review {
    padding: 16px;
  }
  .cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
  }
  .cart-item img {
    width: 82px;
    padding: 6px;
  }
  .cart-item h2 {
    font-size: 17px;
    line-height: 1.18;
  }
  .cart-item p {
    font-size: 13px;
    line-height: 1.35;
  }
  .cart-item-controls {
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .cart-item label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .cart-item label input {
    width: 58px;
    min-height: 36px;
  }
  .cart-item-controls strong {
    justify-self: center;
    text-align: center;
  }
  .cart-item button {
    justify-self: end;
    min-height: 36px;
  }
  .cart-items-form .checkout-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .checkout-step-form .checkout-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cart-items-form .checkout-nav .button,
  .checkout-step-form .checkout-nav .button {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    padding-inline: 10px;
    justify-content: center;
    line-height: 1.15;
  }
  .payment-review + .checkout-step-form .checkout-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .payment-review + .checkout-step-form .checkout-nav.checkout-nav-back-only {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .payment-review + .checkout-step-form .checkout-nav .button {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    padding-inline: 10px;
    justify-content: center;
    line-height: 1.15;
    white-space: nowrap;
  }
  .payment-review-item {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }
  .payment-review-item img {
    width: 62px;
    height: 76px;
    padding: 5px;
  }
  .payment-review-item strong {
    font-size: 15px;
  }
  .payment-review-item em {
    grid-column: 2;
    justify-self: start;
    font-size: 14px;
  }
  .order-pay-form {
    justify-content: stretch;
  }
  .order-pay-form .button {
    width: 100%;
    min-width: 0;
  }
  .cart-recovery-message {
    align-items: stretch;
    flex-direction: column;
  }
  .cart-recovery-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
  }
  .cart-recovery-message .button,
  .cart-recovery-action .button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    justify-content: center;
  }
  .pending-order-recovery .checkout-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
  }
  .pending-order-recovery .checkout-nav .button,
  .pending-order-pay-form,
  .pending-order-pay-form .button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  .shipping-form .two-col { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; }
  .art-meta h2 { font-size: 23px; }
  .painting-shell { padding-inline: 18px; }
  .purchase-panel { padding: 20px; }
  dl { grid-template-columns: 1fr; }
  .profile-layout {
    width: min(calc(100% - 36px), 680px);
    padding: 34px 0;
  }
  .profile-aside {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
  }
  .profile-aside .avatar {
    grid-row: span 4;
    width: 86px;
    margin: 0;
  }
  .profile-aside h2,
  .profile-aside p {
    margin-bottom: 6px;
  }
  .profile-kicker {
    font-size: 12px;
  }
  .profile-tabs {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 28px;
  }
  .profile-tabs button {
    padding-right: 16px;
    font-size: 16px;
  }
  .profile-tabs button::after {
    right: 16px;
  }
  .profile-tab-panel {
    font-size: 16px;
    line-height: 1.55;
  }
  .commission-card {
    padding: 24px 18px;
  }
  .commission-modal {
    width: min(100%, 520px);
    padding: 22px 18px;
  }
  .commission-modal h2 {
    font-size: 30px;
  }
  .commission-modal > p {
    font-size: 16px;
  }
  .commission-form input,
  .commission-form textarea {
    padding: 12px 14px;
    font-size: 16px;
  }
  .premium-confirm-dialog div {
    grid-template-columns: 1fr;
  }
  .admin-grid, .form-grid, .inline-form { grid-template-columns: 1fr; }
  .dashboard-hero,
  .db-health-main,
  .analytics-panel .panel-head {
    display: grid;
    justify-content: stretch;
  }
  .db-health-grid,
  .db-health-counts {
    grid-template-columns: 1fr;
  }
  .analytics-metrics {
    grid-template-columns: 1fr;
  }
  .cart-recovery-message {
    display: grid;
    justify-items: stretch;
  }
  .cart-recovery-message > span,
  .cart-recovery-actions {
    width: 100%;
    min-width: 0;
  }
  .voucher-form { grid-template-columns: 1fr; }
  .voucher-form > label,
  .voucher-submit {
    grid-column: auto;
  }
  .voucher-admin-card {
    padding: 14px;
  }
  .voucher-card-head,
  .voucher-card-actions {
    display: grid;
    justify-content: stretch;
  }
  .voucher-card-status {
    justify-content: flex-start;
  }
  .voucher-card-grid,
  .voucher-window-fields {
    grid-template-columns: 1fr;
  }
  .voucher-window-fields {
    grid-column: auto;
  }
  .voucher-card-actions button {
    width: 100%;
  }
  .shipping-hero,
  .shipping-card-head {
    display: grid;
    justify-content: stretch;
  }
  .shipping-hero strong,
  .shipping-card-toggle,
  .shipping-template-grid > .shipping-template-active,
  .shipping-save {
    width: 100%;
  }
  .shipping-card-grid {
    grid-template-columns: 1fr;
  }
  .shipping-panel-head {
    display: grid;
  }
  .shipping-card-grid .table-field,
  .shipping-card-grid .shipping-name-field,
  .shipping-card-grid .shipping-country-field,
  .shipping-card-grid .shipping-region-field,
  .shipping-card-grid .shipping-money-field,
  .shipping-card-grid .shipping-currency-field,
  .shipping-card-toggle {
    grid-column: 1 / -1;
  }
  .shipping-actions {
    justify-content: stretch;
  }
  .shipping-template-grid { grid-template-columns: 1fr; }
  .shipping-template-grid > label,
  .shipping-template-grid > .shipping-name-field,
  .shipping-template-grid > .shipping-country-field,
  .shipping-template-grid > .shipping-region-field,
  .shipping-template-grid > .shipping-money-field,
  .shipping-template-grid > .shipping-currency-field {
    grid-column: auto;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .stripe-key-row { grid-template-columns: 1fr; gap: 7px; }
  .stripe-key-name { padding-top: 0; }
  .stripe-hold-grid { grid-template-columns: 1fr; }
  .stripe-hold-scope { grid-column: auto; }
  .collection-painting-picker-head {
    display: grid;
  }
  .profile-link-row {
    grid-template-columns: 1fr;
  }
  .profile-hero-placement-grid {
    grid-template-columns: 1fr;
  }
  .create-admin-fields {
    grid-template-columns: 1fr;
  }
  .create-admin-actions {
    display: grid;
    justify-content: stretch;
  }
  .create-admin-actions .button {
    width: 100%;
  }
.settings-actions .button {
  width: 100%;
}
	  .account-heading,
	  .account-order {
	    grid-template-columns: 1fr;
	    display: grid;
	    justify-items: stretch;
	  }
	  .account-tabs {
	    grid-template-columns: repeat(5, minmax(108px, 1fr));
        overflow-x: auto;
        scroll-snap-type: x proximity;
	  }
      .account-tabs a {
        scroll-snap-align: start;
      }
	  .account-order > div:last-child {
    justify-items: start;
  }
  .order-detail-head,
  .order-detail-grid,
  .order-detail-meta,
  .order-address-grid,
  .return-panel {
    grid-template-columns: 1fr;
    display: grid;
  }
  .admin-order-detail-hero,
  .admin-order-detail-grid,
  .admin-order-actions,
  .admin-order-line-list article {
    display: grid;
    grid-template-columns: 1fr;
  }
  .admin-order-detail-summary,
  .admin-order-line-meta {
    justify-items: start;
  }
  .admin-order-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .admin-order-detail-status,
  .admin-order-detail-total {
    justify-items: start;
  }
  .admin-order-line-meta {
    min-width: 0;
    text-align: left;
  }
  .admin-order-detail-total {
    justify-items: start;
  }
  .admin-detail-list {
    grid-template-columns: 1fr;
  }
  .admin-detail-list dd {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  .admin-order-line-list img {
    width: 96px;
  }
  .order-artwork-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .order-artwork-card img {
    width: 78px;
    height: 96px;
    padding: 6px;
  }
  .order-artwork-card strong {
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.2;
  }
  .order-price-card {
    padding: 14px;
  }
  .guest-order-detail-head {
    gap: 12px;
  }
  .guest-order-detail-head .status-pill {
    width: fit-content;
  }
  .guest-order-meta {
    grid-template-columns: 1fr;
  }
  .guest-order-private-card {
    display: grid;
    gap: 14px;
  }
  .order-status-list li,
  .guest-order-status-list li {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 0;
  }
  .order-status-date,
  .guest-order-status-date {
    grid-column: 2;
    margin-top: -2px;
    white-space: normal;
  }
  .account-grid,
  .address-edit-form,
  .address-form,
  .address-edit-fields,
  .liked-grid {
    grid-template-columns: 1fr;
  }
  .account-bidder-row { grid-template-columns: 1fr; gap: 12px; }
  .account-bidder-row .button { width: 100%; }
  .account-auction-bids-heading {
    align-items: stretch;
  }
  .account-auction-bids-heading .button {
    align-self: center;
    width: auto;
  }
  .account-auction-bid-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }
  .account-auction-bid-image {
    width: 72px;
    min-height: 90px;
  }
  .account-auction-bid-main dl {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-auction-bid-main dl > div:last-child {
    grid-column: 1 / -1;
  }
  .account-auction-bid-side {
    grid-template-columns: 1fr;
  }
  .address-edit-form > label,
  .address-form > label,
  .address-edit-form > .country-autocomplete,
  .address-form > .country-autocomplete,
  .address-edit-form .shipping-active,
  .address-form .shipping-active,
	  .address-edit-form button,
	  .address-form button {
	    grid-column: 1 / -1;
	  }
	  .address-actions {
	    grid-template-columns: repeat(3, minmax(0, 1fr));
	  }
	  .address-view-actions {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }
	  .address-view-actions .address-action-spacer {
	    display: none;
	  }
	  .address-view-actions [data-address-edit] {
	    grid-column: 2;
	  }
	  .address-actions .button,
	  .address-actions button {
	    height: 52px;
	    min-height: 52px;
	    padding: 6px;
	    font-size: 13px;
	    line-height: 1.2;
	    overflow-wrap: normal;
	  }
	  .address-action-spacer {
	    display: block;
	  }
	.language-grid, .commerce-grid, .editor-grid { grid-template-columns: 1fr; }
.painting-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  }
.painting-thumbnails button {
    height: 74px;
  }
.commerce-grid > label,
.commerce-grid > .sale-field {
    grid-column: auto;
  }
  .painting-image-item {
    grid-template-columns: 20px 68px minmax(0, 1fr);
    gap: 10px;
  }
  .painting-image-item img {
    width: 68px;
    height: 68px;
  }
  .image-item-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 36px 36px minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 8px;
  }
  .image-item-actions label {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fbf8f3;
    white-space: normal;
    line-height: 1.25;
  }
  .image-item-actions input {
    margin: 0;
  }
  .panel-heading { display: grid; }
  .admin-list-toolbar,
  .admin-section-head {
    display: grid;
    justify-content: stretch;
  }
  .admin-table-wrap,
  .orders-table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }
  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table tr,
  .admin-table th,
  .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    font-size: 14px;
  }
  .admin-table colgroup,
  .admin-table thead {
    display: none;
  }
  .admin-table tbody {
    display: grid;
    gap: 12px;
  }
  .admin-table tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(43, 36, 26, .06);
  }
  .admin-table td {
    display: grid;
    grid-template-columns: minmax(84px, .42fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }
  .admin-table td:last-child {
    border-bottom: 0;
  }
  .admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1.25;
    text-transform: uppercase;
  }
  .admin-table td.admin-empty-cell {
    display: block;
    padding: 16px;
    color: var(--muted);
    text-align: center;
  }
  .admin-table td.admin-empty-cell::before {
    content: none;
  }
  .painting-list-item {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }
  .painting-list-item img {
    width: 54px;
    height: 64px;
  }
  .painting-list-item strong,
  .painting-list-item small,
  .orders-table time,
  .orders-table td:last-child small {
    max-width: none;
    white-space: normal;
  }
  .refund-card {
    width: 100%;
  }
  .refund-admin-cell small {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .row-actions,
  .actions,
  .refund-actions,
  .voucher-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .row-actions a,
  .row-actions button,
  .actions a,
  .actions button,
  .voucher-card-actions button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
  .paintings-table .row-actions .painting-bio-action {
    width: 100%;
    min-height: 40px;
  }
  .collections-table .row-actions {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .collections-table .row-actions a,
  .collections-table .row-actions button {
    width: auto;
    white-space: nowrap;
  }
  .status-pill,
  .price-cell,
  .user-stat {
    white-space: normal;
  }
  .order-status-form .custom-select-menu {
    min-width: 100%;
  }
  .settings-panel,
  .editor-panel,
  .shipping-admin-card,
  .voucher-admin-card,
  .metric,
  .notice,
  .login-card {
    padding: 14px;
  }
  .admin-form fieldset {
    min-inline-size: 0;
    padding: 14px;
  }
  .toggle-row,
  .shipping-active,
  .voucher-active {
    align-items: flex-start;
    white-space: normal;
  }
  .button,
  .inline-form button,
  .actions button,
  .row-actions button {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .site-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 24px 16px 28px;
    text-align: center;
  }
  .site-footer > span {
    color: #6d665d;
    font-size: 13px;
  }
  .site-footer nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
  }
  .site-footer a,
  .site-footer button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 249, .74);
    color: #4c4740;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.15;
    text-align: center;
  }
  .site-footer button {
    width: 100%;
  }
  .site-footer button[data-cookie-settings] {
    grid-column: 1 / -1;
  }
}

.cart-item.is-reserved-by-other img,
.cart-item.is-reserved-by-other .cart-item-copy,
.cart-item.is-reserved-by-other .cart-item-controls label,
.cart-item.is-reserved-by-other .cart-item-controls strong {
  opacity: 0.45;
  filter: grayscale(90%);
}
.cart-item.is-reserved-by-other .cart-item-status-error {
  color: #8b2f24;
  font-weight: 700;
  font-size: 13px;
  margin-top: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.not-found-page {
  min-height: calc(100vh - 210px);
  display: grid;
  place-items: center;
  padding: 76px 20px;
}

.not-found-panel {
  width: min(100%, 620px);
  text-align: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 253, 249, .82);
  padding: 38px 20px 42px;
}

.not-found-panel span {
  display: block;
  color: #7a7167;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.not-found-panel > strong {
  display: block;
  margin-top: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
  line-height: .95;
  font-weight: 400;
  color: var(--ink);
}

.not-found-panel h1 {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.not-found-panel p {
  max-width: 440px;
  margin: 16px auto 0;
  color: #5e574f;
  font-size: 16px;
  line-height: 1.65;
}

.not-found-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.not-found-actions .button {
  min-width: 150px;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .admin-body,
html[data-theme="dark"] .login-screen {
  background: var(--paper);
  color: var(--ink);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .admin-top {
  background: rgba(17, 16, 14, .88);
  border-bottom-color: rgba(58, 51, 43, .78);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .currency-switcher select,
html[data-theme="dark"] .site-header .currency-switcher select,
html[data-theme="dark"] .lang summary,
html[data-theme="dark"] .session-indicator,
html[data-theme="dark"] .mobile-cart-link,
html[data-theme="dark"] .site-menu-toggle,
html[data-theme="dark"] .admin-menu-toggle {
  background: rgba(31, 27, 23, .9);
  border-color: rgba(244, 239, 230, .14);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .session-indicator::after {
  border-color: var(--paper);
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .lang summary:hover,
html[data-theme="dark"] .mobile-cart-link:hover {
  border-color: rgba(215, 154, 125, .44);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .3);
}

html[data-theme="dark"] .cart-link span,
html[data-theme="dark"] .lang-current,
html[data-theme="dark"] .mobile-cart-link span {
  background: var(--ink);
  color: var(--paper);
}

html[data-theme="dark"] .site-menu-toggle span,
html[data-theme="dark"] .admin-menu-toggle span {
  background: var(--ink);
}

html[data-theme="dark"] .site-header.is-menu-open nav,
html[data-theme="dark"] .admin-top.is-menu-open nav {
  background: rgba(23, 20, 17, .98);
  border-color: rgba(244, 239, 230, .12);
  box-shadow: 0 24px 58px rgba(0, 0, 0, .42);
}
html[data-theme="dark"] .admin-top.is-menu-open nav { background: var(--surface); }

html[data-theme="dark"] .site-header nav > a:hover,
html[data-theme="dark"] .site-header nav > .nav-logout-form button:hover,
html[data-theme="dark"] .admin-top nav a:hover,
html[data-theme="dark"] .admin-top nav .admin-nav-logout-form button:hover {
  background: rgba(215, 154, 125, .12);
}

html[data-theme="dark"] .lang-menu,
html[data-theme="dark"] .custom-select-menu,
html[data-theme="dark"] .country-suggest-menu {
  background: rgba(27, 24, 21, .98);
  border-color: rgba(244, 239, 230, .13);
  box-shadow: 0 24px 58px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .lang-menu a:hover,
html[data-theme="dark"] .custom-select-option:hover,
html[data-theme="dark"] .custom-select-option:focus-visible,
html[data-theme="dark"] .country-suggest-menu button:hover,
html[data-theme="dark"] .country-suggest-menu button:focus-visible {
  background: rgba(215, 154, 125, .12);
}

html[data-theme="dark"] .custom-select-option.selected {
  background: rgba(141, 185, 199, .18);
  color: var(--ink);
}

html[data-theme="dark"] select,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .custom-select-trigger,
html[data-theme="dark"] .checkout-field input,
html[data-theme="dark"] .checkout-field select,
html[data-theme="dark"] .checkout-address-form .country-autocomplete input,
html[data-theme="dark"] .checkout-address-form [data-address-region-field] input,
html[data-theme="dark"] .commission-form input,
html[data-theme="dark"] .commission-form textarea,
html[data-theme="dark"] .painting-editor input,
html[data-theme="dark"] .painting-editor select,
html[data-theme="dark"] .painting-editor textarea,
html[data-theme="dark"] .account-panel input,
html[data-theme="dark"] .profile-link-url input,
html[data-theme="dark"] .profile-avatar-admin input,
html[data-theme="dark"] .profile-hero-placement > label input {
  background: #171513;
  border-color: rgba(244, 239, 230, .16);
  color: var(--ink);
  box-shadow: none;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] .checkout-field input::placeholder,
html[data-theme="dark"] .checkout-address-form .country-autocomplete input::placeholder,
html[data-theme="dark"] .checkout-address-form [data-address-region-field] input::placeholder,
html[data-theme="dark"] .commission-form input::placeholder,
html[data-theme="dark"] .commission-form textarea::placeholder {
  color: rgba(244, 239, 230, .42);
}

html[data-theme="dark"] input[readonly],
html[data-theme="dark"] input:disabled,
html[data-theme="dark"] textarea:disabled,
html[data-theme="dark"] select:disabled {
  background: #211d19;
  color: rgba(244, 239, 230, .62);
}

html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] textarea:-webkit-autofill,
html[data-theme="dark"] select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #171513 inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}

html[data-theme="dark"] input[type="file"]::file-selector-button {
  background: #27211c;
  border-color: rgba(244, 239, 230, .16);
  color: var(--ink);
}

html[data-theme="dark"] .button,
html[data-theme="dark"] .inline-form button,
html[data-theme="dark"] .actions button,
html[data-theme="dark"] .row-actions button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

html[data-theme="dark"] .button.ghost,
html[data-theme="dark"] .summary-help .button,
html[data-theme="dark"] .checkout-login-panel .login-button,
html[data-theme="dark"] .row-actions button:not(.danger-button),
html[data-theme="dark"] .actions button:not(.danger-button) {
  background: transparent;
  color: var(--ink);
  border-color: rgba(244, 239, 230, .26);
}

html[data-theme="dark"] .button:hover,
html[data-theme="dark"] .inline-form button:hover,
html[data-theme="dark"] .actions button:hover,
html[data-theme="dark"] .row-actions button:hover {
  border-color: var(--clay);
}

html[data-theme="dark"] .danger-button,
html[data-theme="dark"] .premium-confirm-dialog .danger-button {
  background: #8e3f34;
  border-color: #b75a4c;
  color: #fff8f1;
}

html[data-theme="dark"] .artist-profile-card,
html[data-theme="dark"] .gallery-promo-card,
html[data-theme="dark"] .gallery-tabs > a,
html[data-theme="dark"] .gallery-tabs select,
html[data-theme="dark"] .collection-filter a,
html[data-theme="dark"] .collection-chip,
html[data-theme="dark"] .painting-browser-link,
html[data-theme="dark"] .purchase-panel,
html[data-theme="dark"] .original-unavailable-note,
html[data-theme="dark"] .print-purchase-card,
html[data-theme="dark"] .commission-card,
html[data-theme="dark"] .checkout-stepper,
html[data-theme="dark"] .checkout-login-panel,
html[data-theme="dark"] .cart-items-form,
html[data-theme="dark"] .checkout-step-form,
html[data-theme="dark"] .cart-item,
html[data-theme="dark"] .cart-summary-details,
html[data-theme="dark"] .summary-help,
html[data-theme="dark"] .summary-bullets,
html[data-theme="dark"] .payment-review,
html[data-theme="dark"] .payment-review-item,
html[data-theme="dark"] .empty-cart,
html[data-theme="dark"] .checkout-success-card,
html[data-theme="dark"] .mock-checkout-main,
html[data-theme="dark"] .mock-payment-card,
html[data-theme="dark"] .mock-panel,
html[data-theme="dark"] .commission-modal,
html[data-theme="dark"] .premium-confirm-dialog,
html[data-theme="dark"] .cookie-consent,
html[data-theme="dark"] .cookie-options > div,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .analytics-metric,
html[data-theme="dark"] .analytics-panel,
html[data-theme="dark"] .db-health,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .admin-table,
html[data-theme="dark"] .orders-table-wrap,
html[data-theme="dark"] .orders-table,
html[data-theme="dark"] .admin-order-card,
html[data-theme="dark"] .admin-order-detail-hero,
html[data-theme="dark"] .admin-order-detail-card,
html[data-theme="dark"] .admin-order-detail-summary,
html[data-theme="dark"] .admin-order-actions,
html[data-theme="dark"] .admin-order-line-list article,
html[data-theme="dark"] .settings-panel,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .account-heading,
html[data-theme="dark"] .account-tabs,
html[data-theme="dark"] .account-panel,
html[data-theme="dark"] .account-order,
html[data-theme="dark"] .account-auction-bid-card,
html[data-theme="dark"] .address-card,
html[data-theme="dark"] .address-add-panel,
html[data-theme="dark"] .order-artwork-card,
html[data-theme="dark"] .order-price-card,
html[data-theme="dark"] .order-address-grid section,
html[data-theme="dark"] .order-detail-meta div,
html[data-theme="dark"] .guest-order-private-card,
html[data-theme="dark"] .order-status-card,
html[data-theme="dark"] .guest-order-status-card,
html[data-theme="dark"] .return-panel,
html[data-theme="dark"] .editor-panel,
html[data-theme="dark"] .preview-card,
html[data-theme="dark"] .save-card,
html[data-theme="dark"] .voucher-form,
html[data-theme="dark"] .voucher-admin-card,
html[data-theme="dark"] .shipping-hero,
html[data-theme="dark"] .shipping-panel,
html[data-theme="dark"] .shipping-admin-card,
html[data-theme="dark"] .language-card,
html[data-theme="dark"] .translation-tool,
html[data-theme="dark"] .profile-language-panel,
html[data-theme="dark"] .profile-links-panel .social-remove,
html[data-theme="dark"] .profile-hero-placement,
html[data-theme="dark"] .profile-hero-preview,
html[data-theme="dark"] .collection-painting-picker,
html[data-theme="dark"] .collection-painting-option,
html[data-theme="dark"] .collections-form,
html[data-theme="dark"] .voucher-card,
html[data-theme="dark"] .not-found-panel {
  background: var(--surface);
  border-color: rgba(244, 239, 230, .13);
  color: var(--ink);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .gallery-tabs > a.active,
html[data-theme="dark"] .collection-filter a.active,
html[data-theme="dark"] .account-tabs a.active,
html[data-theme="dark"] .language-tab-list button.active,
html[data-theme="dark"] .language-tab-list button[aria-selected="true"],
html[data-theme="dark"] .checkout-stepper .is-current a,
html[data-theme="dark"] .checkout-stepper .is-current .step-disabled {
  background: rgba(141, 185, 199, .16);
  border-color: rgba(141, 185, 199, .42);
  color: var(--ink);
}

html[data-theme="dark"] .checkout-stepper a,
html[data-theme="dark"] .checkout-stepper .step-disabled {
  background: var(--surface-soft);
  border-color: rgba(244, 239, 230, .13);
  color: var(--muted);
}

html[data-theme="dark"] .checkout-stepper a span,
html[data-theme="dark"] .checkout-stepper span span {
  border-color: rgba(244, 239, 230, .18);
}

html[data-theme="dark"] .checkout-stepper .is-complete a,
html[data-theme="dark"] .checkout-stepper .is-complete a span,
html[data-theme="dark"] .status.available,
html[data-theme="dark"] .status-pill.status-paid,
html[data-theme="dark"] .form-message.success {
  background: rgba(170, 183, 120, .14);
  border-color: rgba(170, 183, 120, .36);
  color: #dbe8ad;
}

html[data-theme="dark"] .form-message.error,
html[data-theme="dark"] .cart-item.is-reserved-by-other .cart-item-status-error,
html[data-theme="dark"] .status.sold,
html[data-theme="dark"] .status-pill.status-cancelled,
html[data-theme="dark"] .status-pill.status-failed {
  background: rgba(183, 90, 76, .14);
  border-color: rgba(183, 90, 76, .34);
  color: #f0aea4;
}

html[data-theme="dark"] .status.reserved,
html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .order-product-type,
html[data-theme="dark"] .admin-order-money span,
html[data-theme="dark"] .checkout-success .success-eyebrow,
html[data-theme="dark"] .shipping-method-summary {
  background: rgba(215, 154, 125, .13);
  border-color: rgba(215, 154, 125, .32);
  color: #efc3ad;
}

html[data-theme="dark"] .checkout-address-form .checkout-nav .button:not(.ghost),
html[data-theme="dark"] .summary-checkout-button {
  background: var(--clay);
  border-color: var(--clay);
  color: #11100e;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .checkout-address-form .checkout-nav .button:not(.ghost):hover,
html[data-theme="dark"] .summary-checkout-button:hover {
  background: #efb294;
  border-color: #efb294;
  color: #11100e;
}

html[data-theme="dark"] .gallery-art-image,
html[data-theme="dark"] .painting-main-image,
html[data-theme="dark"] .painting-media > img,
html[data-theme="dark"] .painting-thumbnails button,
html[data-theme="dark"] .cart-item img,
html[data-theme="dark"] .payment-review-item img,
html[data-theme="dark"] .order-artwork-card img,
html[data-theme="dark"] .admin-order-artwork img,
html[data-theme="dark"] .admin-order-line-list img,
html[data-theme="dark"] .mock-line-item img,
html[data-theme="dark"] .painting-image-item,
html[data-theme="dark"] .profile-avatar-admin img,
html[data-theme="dark"] .profile-cover-preview {
  background: #0e0d0c;
  border-color: rgba(244, 239, 230, .16);
}

html[data-theme="dark"] .gallery-art-actions a,
html[data-theme="dark"] .icon-heart,
html[data-theme="dark"] .icon-cart,
html[data-theme="dark"] .heart,
html[data-theme="dark"] .gallery-sale-badge {
  background: rgba(27, 24, 21, .88);
  border-color: rgba(244, 239, 230, .16);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
}

html[data-theme="dark"] .gallery-art-meta {
  color: var(--ink);
}

html[data-theme="dark"] .kicker,
html[data-theme="dark"] .legal-page .kicker {
  color: #efc3ad;
}

html[data-theme="dark"] .print-card-head span {
  background: rgba(170, 183, 120, .16);
  color: #dbe8ad;
}

html[data-theme="dark"] .original-unavailable-note {
  background: rgba(215, 154, 125, .13);
  border-color: rgba(215, 154, 125, .32);
  color: #efc3ad;
}

html[data-theme="dark"] .gallery-art-meta h2,
html[data-theme="dark"] .gallery-art-meta h2 a,
html[data-theme="dark"] .gallery-art-meta > .art-price-row > strong,
html[data-theme="dark"] .gallery-price strong {
  color: var(--ink);
}

html[data-theme="dark"] .gallery-price.is-sale strong {
  color: #efc3ad;
}

html[data-theme="dark"] .gallery-price del {
  color: rgba(244, 239, 230, .46);
  text-decoration-color: rgba(244, 239, 230, .32);
}

html[data-theme="dark"] .gallery-art-meta .gallery-price-inquiry {
  color: rgba(244, 239, 230, .68);
}

html[data-theme="dark"] .gallery-price-inquiry span {
  color: var(--ink);
  text-decoration-color: #d79a7d;
}

html[data-theme="dark"] .address-edit-fields:disabled input,
html[data-theme="dark"] .account-empty {
  border-color: rgba(244, 239, 230, .12);
  background: var(--surface-soft);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

html[data-theme="dark"] .painting-price-inquiry {
  color: rgba(244, 239, 230, .74);
}

html[data-theme="dark"] .painting-price-inquiry span {
  color: var(--ink);
  text-decoration-color: #d79a7d;
}

html[data-theme="dark"] .commission-artwork-context {
  background: rgba(215, 154, 125, .14);
  border-left-color: #d79a7d;
  color: var(--ink);
}

html[data-theme="dark"] .print-note {
  background: rgba(215, 154, 125, .13);
  border-color: rgba(215, 154, 125, .32);
  color: #efc3ad;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .print-note.is-highlighted {
  background: rgba(170, 183, 120, .14);
  border-color: rgba(170, 183, 120, .36);
  color: #dbe8ad;
}

html[data-theme="dark"] .icon-cart.print-cart,
html[data-theme="dark"] .account-panel .shipping-active,
html[data-theme="dark"] .painting-image-item.is-primary {
  background: rgba(170, 183, 120, .13);
  border-color: rgba(170, 183, 120, .34);
  color: #dbe8ad;
}

html[data-theme="dark"] .gallery-art-meta p,
html[data-theme="dark"] .artist-summary p,
html[data-theme="dark"] .gallery-price,
html[data-theme="dark"] .print-note,
html[data-theme="dark"] .cart-item p,
html[data-theme="dark"] .checkout-login-panel p,
html[data-theme="dark"] .summary-help,
html[data-theme="dark"] .summary-bullet p,
html[data-theme="dark"] .summary-currency-note,
html[data-theme="dark"] .checkout-success p,
html[data-theme="dark"] .mock-panel p,
html[data-theme="dark"] .commission-modal > p,
html[data-theme="dark"] .commission-card p,
html[data-theme="dark"] .cookie-consent p,
html[data-theme="dark"] .account-heading p,
html[data-theme="dark"] .account-panel p,
html[data-theme="dark"] .account-order p,
html[data-theme="dark"] .account-order small,
html[data-theme="dark"] .order-artwork-card p,
html[data-theme="dark"] .order-artwork-card small,
html[data-theme="dark"] .order-address-grid p,
html[data-theme="dark"] .order-status-list p,
html[data-theme="dark"] .guest-order-status-list p,
html[data-theme="dark"] .admin-order-customer address,
html[data-theme="dark"] .admin-order-artwork small,
html[data-theme="dark"] .admin-order-money small,
html[data-theme="dark"] .painting-list-item small,
html[data-theme="dark"] .collection-painting-option small,
html[data-theme="dark"] .not-found-panel p,
html[data-theme="dark"] .profile-tab-panel p {
  color: var(--muted);
}

html[data-theme="dark"] .gallery-art-meta .print-note {
  color: #efc3ad;
}

html[data-theme="dark"] .gallery-art-meta .print-note.is-highlighted {
  color: #dbe8ad;
}

html[data-theme="dark"] .summary-bullet h3,
html[data-theme="dark"] .summary-help h2,
html[data-theme="dark"] .payment-review-items h3,
html[data-theme="dark"] .payment-review-item strong,
html[data-theme="dark"] .payment-review-item em,
html[data-theme="dark"] .commission-card h2,
html[data-theme="dark"] .commission-modal h2,
html[data-theme="dark"] .checkout-policy-note a {
  color: var(--ink);
}

html[data-theme="dark"] .summary-bullet-icon {
  color: var(--clay);
}

html[data-theme="dark"] .summary-bullet + .summary-bullet {
  border-top: 1px solid rgba(244, 239, 230, .1);
}

html[data-theme="dark"] .voucher-collapse,
html[data-theme="dark"] .mock-totals,
html[data-theme="dark"] .mock-totals div {
  border-color: rgba(244, 239, 230, .12);
}

html[data-theme="dark"] .voucher-status.success {
  color: #9fd1de;
}

html[data-theme="dark"] .voucher-status.error,
html[data-theme="dark"] .voucher-buttons .subtle,
html[data-theme="dark"] .cart-item button {
  color: #f0aea4;
}

html[data-theme="dark"] .checkout-policy-note,
html[data-theme="dark"] .payment-countdown {
  background: var(--surface-soft);
  border-color: rgba(244, 239, 230, .13);
  color: var(--muted);
}

html[data-theme="dark"] .checkout-opt-in {
  color: var(--muted);
}

html[data-theme="dark"] .checkout-opt-in a {
  color: var(--ink);
}

html[data-theme="dark"] .payment-countdown span {
  color: var(--clay);
}

html[data-theme="dark"] .payment-countdown strong {
  color: var(--ink);
}

html[data-theme="dark"] .payment-review-item small,
html[data-theme="dark"] .payment-countdown small {
  color: var(--muted);
}

html[data-theme="dark"] .commission-modal {
  background:
    radial-gradient(circle at top left, rgba(215, 154, 125, .1), transparent 34%),
    var(--surface);
}

html[data-theme="dark"] .commission-modal .button,
html[data-theme="dark"] .commission-form .button {
  background: var(--clay);
  border-color: var(--clay);
  color: #11100e;
}

html[data-theme="dark"] .artist-summary h1,
html[data-theme="dark"] .artist-summary p,
html[data-theme="dark"] .artist-summary a {
  text-shadow: none;
}

html[data-theme="dark"] .artist-summary a {
  color: var(--ink);
}

html[data-theme="dark"] .painting-description {
  border-color: rgba(244, 239, 230, .16);
}

html[data-theme="dark"] .painting-description p {
  border-left-color: rgba(215, 154, 125, .42);
  color: #dfd3c5;
}

html[data-theme="dark"] .profile-tabs {
  border-bottom-color: rgba(244, 239, 230, .18);
}

html[data-theme="dark"] .profile-tabs button {
  color: rgba(244, 239, 230, .52);
}

html[data-theme="dark"] .profile-tabs button.active,
html[data-theme="dark"] .profile-tab-panel {
  color: var(--ink);
}

html[data-theme="dark"] .profile-tab-panel {
  background: transparent;
  border-color: rgba(244, 239, 230, .16);
}

html[data-theme="dark"] .modal-backdrop,
html[data-theme="dark"] .premium-confirm,
html[data-theme="dark"] .cookie-consent {
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] .premium-confirm,
html[data-theme="dark"] .modal-backdrop {
  background: rgba(4, 4, 4, .68);
}

html[data-theme="dark"] .cookie-options summary,
html[data-theme="dark"] .site-footer a,
html[data-theme="dark"] .site-footer button,
html[data-theme="dark"] .language-tab-list button,
html[data-theme="dark"] .image-item-actions button,
html[data-theme="dark"] .collection-order-actions button {
  background: rgba(31, 27, 23, .84);
  border-color: rgba(244, 239, 230, .15);
  color: var(--ink);
}

html[data-theme="dark"] .site-footer {
  border-top-color: rgba(244, 239, 230, .13);
}

html[data-theme="dark"] .admin-table th,
html[data-theme="dark"] .orders-table th {
  color: #dccfc0;
}

html[data-theme="dark"] .translation-warning-pill {
  background: rgba(215, 154, 125, .14);
  border-color: rgba(215, 154, 125, .34);
  color: #efc3ad;
}

html[data-theme="dark"] .refund-admin-cell small span {
  color: #dccfc0;
}

html[data-theme="dark"] .refund-admin-cell small strong {
  color: var(--ink);
}

html[data-theme="dark"] .refund-admin-cell small.error strong,
html[data-theme="dark"] .collection-painting-option.is-locked small {
  color: #f0aea4;
}

html[data-theme="dark"] .collection-painting-option.is-locked {
  background: rgba(244, 239, 230, .06);
}

html[data-theme="dark"] .collection-painting-option.is-locked strong {
  color: #dccfc0;
}

html[data-theme="dark"] .admin-table td,
html[data-theme="dark"] .orders-table td,
html[data-theme="dark"] .orders-table th,
html[data-theme="dark"] .admin-table th,
html[data-theme="dark"] .summary-line,
html[data-theme="dark"] .payment-review-line,
html[data-theme="dark"] .order-detail-head,
html[data-theme="dark"] .order-status-list li,
html[data-theme="dark"] .guest-order-status-list li,
html[data-theme="dark"] .admin-order-line-list article {
  border-color: rgba(244, 239, 230, .12);
}

html[data-theme="dark"] .cart-toast {
  border-color: rgba(244, 239, 230, .14);
  background: #0f0e0d;
  color: var(--ink);
}

html[data-theme="dark"] .cart-toast.is-success {
  background: #22362d;
}

html[data-theme="dark"] .cart-toast.is-error {
  background: #55261f;
}

html[data-theme="dark"] .not-found-panel {
  border-top-color: rgba(244, 239, 230, .34);
  border-bottom-color: rgba(244, 239, 230, .34);
}

html[data-theme="dark"] .not-found-panel span {
  color: var(--clay);
}

html[data-theme="dark"] ::selection {
  background: rgba(215, 154, 125, .36);
  color: var(--ink);
}

@media (max-width: 680px) {
  .site-header .theme-toggle,
  .admin-top .theme-toggle {
    margin-left: auto;
  }
}

/* Auctions */
.status.auction,
.status-pill.status-auction,
.auction-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--clay) 55%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--clay) 12%, var(--surface));
  color: var(--clay);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}
.auction-status.status-live,
.auction-status.status-live_now {
  border-color: color-mix(in srgb, var(--olive) 58%, var(--line));
  background: color-mix(in srgb, var(--olive) 14%, var(--surface));
  color: var(--olive);
}
.auction-status.status-awaiting_payment { color: var(--blue); }
.auction-status.status-sold,
.auction-status.status-unsold,
.auction-status.status-canceled { color: var(--muted); border-color: var(--line); background: var(--surface-muted); }
.gallery-auction-link { display: grid; gap: 1px; color: var(--ink); }
.gallery-auction-link span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.gallery-auction-link strong { font-size: 15px; }
.painting-auction-cta {
  display: grid;
  gap: 12px;
  margin: 18px 0 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.painting-auction-cta > span { color: var(--clay); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.painting-auction-cta p { margin: 0; color: var(--muted); }
.painting-auction-cta .button { width: 100%; }

.auction-index,
.auction-detail,
.auction-payment-page {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 50px 0 90px;
}
.auction-index-heading { display: grid; gap: 10px; max-width: 720px; margin-bottom: 40px; }
.auction-index-heading > span,
.section-head > span,
.auction-description > span,
.auction-payment-summary > div > span,
.auction-winner-panel > span,
.auction-title-row > p,
.admin-card-heading small,
.auction-editor summary small,
.bidder-hold-summary small {
  color: var(--clay);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auction-index-heading h1,
.auction-title-row h1 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.08; }
.auction-index-heading h1 { font-size: clamp(34px, 5vw, 62px); }
.auction-index-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.auction-empty {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.auction-empty p { margin: 0; color: var(--muted); }
.auction-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; }
.auction-index.has-single-active .auction-index-heading,
.auction-card-grid.is-single {
  width: min(100%, 1120px);
  margin-inline: auto;
}
.auction-card-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.auction-card-grid.is-single:not(.is-results) .auction-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(350px, .85fr);
  align-items: stretch;
  gap: clamp(30px, 4vw, 58px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.auction-card-grid.is-single:not(.is-results) .auction-card-body {
  align-content: center;
  padding: clamp(8px, 2vw, 24px) 0;
}
.auction-card-grid.is-single:not(.is-results) .auction-card-body h2 {
  font-size: clamp(28px, 3vw, 38px);
}
.auction-card-grid.is-results.is-single { width: min(100%, 480px); }
.auction-card { min-width: 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.auction-card-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-muted);
}
.auction-card-image img { width: 100%; height: 100%; padding: 20px; object-fit: contain; transition: transform .45s ease; }
.auction-card:hover .auction-card-image img { transform: scale(1.018); }
.auction-card-image .auction-status {
  position: absolute;
  top: 22px;
  left: 22px;
}
.auction-card-body { display: grid; gap: 18px; padding-top: 18px; }
.auction-card-body h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.auction-card-body p { margin: 0; color: var(--muted); font-size: 13px; }
.auction-card-price { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.auction-card-price span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.auction-card-price strong { font-size: 18px; }
.auction-card-body > .button { width: 100%; }
.auction-results { margin-top: 84px; padding-top: 38px; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 3px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-size: 29px; font-weight: 500; }

.auction-clock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 16px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}
.auction-clock-copy {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}
.auction-clock-copy > span {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}
.auction-clock-copy > small {
  color: color-mix(in srgb, var(--white) 72%, transparent);
  font-size: 11px;
  line-height: 1.35;
}
.auction-clock-copy time { display: block; }
.auction-clock > strong {
  justify-self: end;
  font-size: clamp(24px, 2.4vw, 34px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}
.auction-clock.is-urgent { border-color: var(--clay); background: var(--clay); }
.auction-clock.is-ended { opacity: .72; }
.auction-card .auction-clock { min-height: 74px; padding: 13px 15px; }
.auction-card .auction-clock > strong { font-size: 22px; }

.auction-detail > .back-link,
.auction-payment-page > .back-link { margin-bottom: 26px; }
.auction-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .8fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: start;
}
.auction-artwork { display: grid; min-width: 0; background: var(--surface-muted); }
.auction-artwork > img {
  width: 100%;
  max-height: 74vh;
  min-height: 520px;
  padding: clamp(22px, 4vw, 58px);
  object-fit: contain;
}
.auction-artwork-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.auction-bid-panel { position: sticky; top: 106px; display: grid; gap: 22px; min-width: 0; }
.auction-title-row { display: grid; gap: 9px; }
.auction-title-row h1 { overflow-wrap: anywhere; font-size: clamp(34px, 4vw, 52px); }
.auction-title-row > p { margin: 0; color: var(--muted); }
.auction-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.auction-numbers > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.auction-numbers span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.auction-numbers strong { overflow-wrap: anywhere; font-size: 17px; font-variant-numeric: tabular-nums; }
.auction-shipping-rates {
  margin-top: -6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.auction-shipping-rates > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px 3px;
  cursor: pointer;
  list-style: none;
}
.auction-shipping-rates > summary::-webkit-details-marker { display: none; }
.auction-shipping-rates > summary > span:first-child { display: grid; gap: 3px; min-width: 0; }
.auction-shipping-rates > summary small { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.auction-shipping-rates > summary strong { overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.4; }
.auction-shipping-rates > div { padding: 0 3px 13px; }
.auction-shipping-rates ul { display: grid; margin: 0; padding: 0; border-top: 1px dashed var(--line); list-style: none; }
.auction-shipping-rates li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.auction-shipping-rates li span { min-width: 0; overflow-wrap: anywhere; color: var(--muted); }
.auction-shipping-rates li strong { flex: 0 0 auto; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.auction-shipping-rates p,
.auction-shipping-fallback { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.auction-shipping-fallback { padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.auction-leading-note,
.auction-state-message {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--olive);
  background: color-mix(in srgb, var(--olive) 12%, var(--surface));
  color: var(--ink);
  font-size: 13px;
}
.auction-state-message { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); }
.auction-bid-form,
.auction-setup-form,
.auction-verification-panel,
.auction-access-panel,
.auction-winner-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.auction-bid-form label,
.auction-setup-form label { display: grid; gap: 8px; }
.auction-bid-form label > span,
.auction-setup-form label > span { font-size: 11px; font-weight: 800; text-transform: uppercase; }
.auction-bid-form label > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.auction-bid-form input {
  width: 100%;
  min-width: 0;
  padding: 13px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
}
.auction-bid-form label > div > strong { padding: 0 13px; color: var(--muted); font-size: 12px; }
.auction-bid-form > small,
.auction-setup-form small { color: var(--muted); font-size: 11px; }
.auction-bid-form > small a { text-decoration: underline; }
.auction-bid-form .button,
.auction-setup-form .button,
.auction-verification-panel .button,
.auction-winner-panel .button { width: 100%; }
.auction-verification-panel p,
.auction-access-panel p,
.auction-winner-panel p { margin: 0; color: var(--muted); font-size: 13px; }
.auction-access-panel > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.bidder-authorization-panel { gap: 16px; }
.bidder-authorization-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 14px; align-items: baseline; }
.bidder-authorization-copy > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.bidder-authorization-copy > strong { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.bidder-authorization-copy > p { grid-column: 1 / -1; color: var(--ink); line-height: 1.55; }
.auction-terms-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
}
.auction-terms-consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--olive);
}
.auction-terms-consent span {
  font-size: 11px;
  line-height: 1.55;
}
.auction-terms-consent a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bidder-payment-shell { display: grid; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.bidder-payment-shell[hidden] { display: none; }
.bidder-payment-element { min-height: 118px; padding: 12px; border: 1px solid var(--line); background: var(--surface-soft); }
.bidder-authorization-status { min-height: 20px; padding-left: 10px; border-left: 2px solid var(--blue); color: var(--ink) !important; line-height: 1.45; }
.bidder-authorization-status.is-error { border-color: var(--error); color: var(--error) !important; }
.bidder-authorization-status.is-success { border-color: var(--olive); color: var(--ink) !important; }
.bidder-authorization-panel > small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.auction-verification-panel.is-error { border-color: color-mix(in srgb, var(--error) 48%, var(--line)); }
.auction-rule-note { margin: -8px 0 0; color: var(--muted); font-size: 11px; }
.auction-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, .7fr);
  gap: clamp(34px, 6vw, 90px);
  margin-top: 72px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}
.auction-description { margin: 0; padding: 0; }
.auction-description > p { max-width: 760px; }
.auction-history ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.auction-history li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 61px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.auction-history li time { grid-column: 2 / -1; color: var(--muted); font-size: 10px; }
.auction-history li div { display: grid; min-width: 0; }
.auction-history li small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.auction-history li .auction-bid-country {
  overflow-wrap: anywhere;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
  text-transform: none;
}
.auction-history li b { font-size: 13px; font-variant-numeric: tabular-nums; }
.auction-bid-rank { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 10px; }
.auction-history li.is-leading .auction-bid-rank { border-color: var(--olive); background: var(--olive); color: var(--white); }
.auction-history .auction-no-bids { display: block; padding: 18px 0; color: var(--muted); }

.auction-payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.auction-shipping-form { display: grid; gap: 20px; }
.auction-shipping-form .section-head p { margin: 4px 0 0; color: var(--muted); }
.auction-payment-submit { width: 100%; }
.auction-payment-summary {
  position: sticky;
  top: 106px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.auction-payment-summary > img { width: 150px; height: 180px; padding: 9px; border: 1px solid var(--ink); object-fit: contain; background: var(--surface-soft); }
.auction-payment-summary > div { display: grid; gap: 14px; min-width: 0; }
.auction-payment-summary h2 { margin: 0; overflow-wrap: anywhere; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.auction-payment-summary dl { display: grid; gap: 8px; margin: 0; }
.auction-payment-summary dl > div { display: flex; justify-content: space-between; gap: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.auction-payment-summary dt { color: var(--muted); font-size: 11px; }
.auction-payment-summary dd { margin: 0; font-size: 12px; font-weight: 750; }
.auction-payment-summary .auction-clock { grid-column: 1 / -1; }

.admin-auction-layout {
  display: grid;
  gap: 18px;
  max-width: 1320px;
  margin-inline: auto;
}
.admin-auction-layout > .admin-section-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(35, 31, 25, .06);
}
.auction-editor > summary,
.bidder-hold-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 17px 22px;
  cursor: pointer;
  list-style: none;
  transition: background .18s ease;
}
.auction-editor > summary:hover,
.bidder-hold-summary:hover { background: var(--surface-soft); }
.auction-editor > summary::-webkit-details-marker,
.bidder-hold-summary::-webkit-details-marker { display: none; }
.auction-editor summary > span:first-child { display: grid; }
.auction-editor summary strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.details-chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin: 0 5px 5px 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
details[open] > summary .details-chevron { transform: translateY(4px) rotate(225deg); }
.auction-editor .admin-auction-form { padding: 0 22px 22px; border-top: 1px solid var(--line); }
.auction-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; padding-top: 22px; }
.auction-form-grid > label { display: grid; align-content: start; gap: 7px; min-width: 0; }
.auction-form-grid > label > span { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.auction-form-grid input,
.auction-form-grid select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); }
.auction-form-grid input[readonly],
.auction-form-grid select:disabled { background: var(--surface-muted); color: var(--muted); }
.auction-form-grid small { color: var(--muted); font-size: 10px; }
.auction-form-grid .custom-select-menu {
  position: static;
  width: 100%;
  margin-top: 8px;
  transform: translateY(-4px);
}
.auction-form-grid .custom-select.open .custom-select-menu {
  transform: translateY(0);
}
.auction-form-grid .field-span-2,
.auction-form-grid .field-wide { grid-column: span 2; }
.money-input { display: grid; grid-template-columns: minmax(0, 1fr) 86px; }
.money-input input { border-radius: 4px 0 0 4px; }
.money-input select { border-left: 0; border-radius: 0 4px 4px 0; }
.auction-editor .admin-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.auction-admin-audit { padding: 22px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 52%, var(--surface)); }
.auction-admin-audit-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.auction-admin-audit-heading h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.auction-admin-audit-heading p { margin: 0; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.auction-admin-audit-heading p strong { margin-right: 3px; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.auction-admin-audit-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 28px; }
.auction-admin-audit-column { min-width: 0; }
.auction-admin-audit-column + .auction-admin-audit-column { padding-left: 28px; border-left: 1px solid var(--line); }
.auction-admin-audit-grid h4 { margin: 0 0 11px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.auction-admin-event-list { display: grid; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.auction-admin-event-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.auction-admin-event-list strong { min-width: 0; overflow-wrap: anywhere; }
.auction-admin-event-list b { font-variant-numeric: tabular-nums; }
.auction-admin-event-list span,
.auction-admin-event-list time { color: var(--muted); font-size: 10px; }
.auction-admin-event-list a { justify-self: end; text-decoration: underline; }
.auction-admin-bid-list { gap: 9px; border-top: 0; }
.auction-admin-bid-list > li {
  display: block;
  padding: 13px 14px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(35, 31, 25, .035);
}
.auction-admin-bid-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.auction-admin-bid-rank {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  font-size: 11px !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.auction-admin-bid-identity { display: grid; gap: 2px; min-width: 0; }
.auction-admin-bid-user {
  display: grid;
  gap: 1px;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.auction-admin-bid-user > strong { overflow: hidden; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.auction-admin-bid-user > span {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 550;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
  text-underline-offset: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auction-admin-bid-user.is-unlinked > span { text-decoration: none; }
.auction-admin-bid-user[href]:hover > strong,
.auction-admin-bid-user[href]:focus-visible > strong { text-decoration: underline; text-underline-offset: 2px; }
.auction-admin-bid-identity time { overflow-wrap: anywhere; font-size: 9px; }
.auction-admin-bid-value { display: grid; justify-items: end; gap: 4px; min-width: 92px; }
.auction-admin-bid-value b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.auction-admin-bid-status { min-height: 20px; padding: 3px 7px; font-size: 8px !important; }
.auction-admin-bid-status.status-valid,
.auction-admin-bid-status.status-won { border-color: color-mix(in srgb, var(--olive) 58%, var(--line)); background: color-mix(in srgb, var(--olive) 14%, var(--surface)); color: var(--olive); }
.auction-admin-bid-status.status-forfeited { border-color: var(--line); background: var(--surface-muted); color: var(--muted); }
.auction-admin-bid-origin {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 0;
  min-width: 0;
  margin: 11px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.auction-admin-bid-origin > div {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding-right: 12px;
}
.auction-admin-bid-origin > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.auction-admin-bid-origin > .is-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
  align-items: baseline;
  padding: 7px 0 0;
  border-top: 1px dashed var(--line);
  border-left: 0;
}
.auction-admin-bid-origin dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}
.auction-admin-bid-origin dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}
.auction-admin-bid-origin dd small {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
}
.auction-admin-bid-origin code {
  white-space: normal;
  overflow-wrap: anywhere;
  color: inherit;
  font-size: inherit;
  font-weight: 500;
}
.auction-admin-list { padding: 0; }
.auction-admin-list > .admin-card-heading {
  margin: 0;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.admin-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.admin-card-heading h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.admin-card-heading > strong { display: grid; place-items: center; min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; }
.auction-admin-rows { display: grid; }
.auction-admin-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.auction-admin-row:last-child { border-bottom: 0; }
.auction-admin-row > img { width: 104px; height: 92px; padding: 6px; border: 1px solid var(--ink); object-fit: contain; background: var(--surface-soft); }
.auction-admin-main { display: grid; gap: 14px; min-width: 0; }
.auction-admin-main > div { display: flex; align-items: center; gap: 10px; }
.auction-admin-main h3 { margin: 0; overflow-wrap: anywhere; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; }
.auction-admin-main dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding-top: 11px; border-top: 1px solid var(--line); }
.auction-admin-main dl > div { display: grid; min-width: 0; padding: 0 13px; border-left: 1px solid var(--line); }
.auction-admin-main dl > div:first-child { padding-left: 0; border-left: 0; }
.auction-admin-main dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.auction-admin-main dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 700; line-height: 1.4; }
.auction-admin-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 280px; gap: 8px; }
.auction-admin-actions form { display: contents; }
.auction-admin-actions > :first-child { grid-column: 1 / -1; }
.auction-admin-actions .button { display: grid; place-items: center; width: 100%; min-height: 38px; padding: 8px 10px; border-radius: 4px; font-size: 10px; line-height: 1.2; }
.bidder-hold-operations { padding: 0; }
.bidder-hold-summary > div { min-width: 0; }
.bidder-hold-summary h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.15; }
.bidder-hold-summary p { max-width: 680px; margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.auction-summary-controls { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.auction-summary-controls > strong { display: grid; place-items: center; min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; font-size: 13px; }
.bidder-hold-content { padding: 20px 22px 22px; border-top: 1px solid var(--line); }
.bidder-hold-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}
.bidder-hold-metrics > div { display: grid; align-content: center; min-width: 0; min-height: 78px; padding: 13px 16px; border-right: 1px solid var(--line); }
.bidder-hold-metrics > div:last-child { border-right: 0; }
.bidder-hold-metrics span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.bidder-hold-metrics strong { margin-top: 4px; overflow-wrap: anywhere; color: var(--ink); font-size: 21px; font-variant-numeric: tabular-nums; }
.bidder-hold-alerts {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px 20px;
  align-items: start;
  margin-bottom: 24px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.bidder-hold-alerts > strong { font-size: 11px; text-transform: uppercase; }
.bidder-hold-alerts p,
.bidder-hold-alerts ul { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.bidder-hold-alerts ul { display: grid; gap: 5px; padding-left: 17px; }
.bidder-hold-alerts.has-alerts { border-color: color-mix(in srgb, var(--error) 45%, var(--line)); }
.bidder-hold-alerts.has-alerts li { color: var(--ink); }
.bidder-hold-ledger > h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.bidder-hold-rows { display: grid; border-top: 1px solid var(--line); }
.bidder-hold-row {
  display: grid;
  grid-template-columns: minmax(155px, .75fr) minmax(210px, 1.2fr) minmax(300px, 1.5fr) minmax(130px, .65fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.bidder-hold-identity,
.bidder-hold-artwork,
.bidder-hold-action { display: grid; gap: 5px; min-width: 0; }
.bidder-hold-identity > strong,
.bidder-hold-artwork > strong { min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.bidder-hold-identity > small,
.bidder-hold-artwork > a { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.bidder-hold-artwork > a { text-decoration: underline; }
.bidder-hold-artwork code { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.bidder-terms-evidence {
  display: grid;
  gap: 2px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}
.bidder-terms-evidence strong {
  color: var(--olive);
  font-size: 9px;
}
.bidder-terms-evidence.is-missing {
  color: var(--error);
}
.bidder-hold-deadlines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0; }
.bidder-hold-deadlines > div { display: grid; min-width: 0; }
.bidder-hold-deadlines dt { color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.bidder-hold-deadlines dd { min-height: 16px; margin: 1px 0 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 650; }
.bidder-hold-action { justify-items: stretch; }
.bidder-hold-action p { margin: 0; overflow-wrap: anywhere; color: var(--error); font-size: 9px; line-height: 1.45; }
.bidder-hold-action form,
.bidder-hold-action .button { width: 100%; }
.bidder-hold-action .button { min-height: 36px; padding: 8px 10px; font-size: 9px; }
.auction-status.status-authorized { border-color: color-mix(in srgb, var(--olive) 58%, var(--line)); background: color-mix(in srgb, var(--olive) 14%, var(--surface)); color: var(--olive); }
.auction-status.status-release_pending,
.auction-status.status-requires_action { color: var(--blue); }
.auction-status.status-failed { border-color: color-mix(in srgb, var(--error) 50%, var(--line)); background: color-mix(in srgb, var(--error) 12%, var(--surface)); color: var(--error); }
.auction-status.status-released,
.auction-status.status-expired,
.auction-status.status-cancelled { color: var(--muted); border-color: var(--line); background: var(--surface-muted); }
html[data-theme="dark"] .auction-admin-actions .button.danger-button {
  border-color: #b75a4c;
  background: #8e3f34;
  color: #fff8f1 !important;
}

html[data-theme="dark"] .auction-card-image,
html[data-theme="dark"] .auction-artwork { background: #181511; }
html[data-theme="dark"] .auction-clock { border-color: #eee5d9; background: #eee5d9; color: #181511; }
html[data-theme="dark"] .auction-clock-copy > small { color: #685f55; }
html[data-theme="dark"] .auction-clock.is-urgent { border-color: var(--clay); background: var(--clay); color: #17120f; }
html[data-theme="dark"] .auction-history li,
html[data-theme="dark"] .auction-description,
html[data-theme="dark"] .auction-rule-note { color: var(--ink); }

@media (max-width: 1050px) {
  .auction-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auction-detail-grid { grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: 32px; }
  .auction-artwork > img { min-height: 430px; }
  .auction-payment-grid { grid-template-columns: 1fr; }
  .auction-payment-summary { position: static; grid-template-columns: 130px minmax(0, 1fr); }
  .auction-payment-summary > img { width: 130px; height: 156px; }
  .auction-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auction-form-grid .field-span-2 { grid-column: 1 / -1; }
  .auction-form-grid .field-wide { grid-column: auto; }
  .auction-admin-row { grid-template-columns: 88px minmax(0, 1fr); }
  .auction-admin-row > img { width: 88px; height: 80px; }
  .auction-admin-actions { grid-column: 1 / -1; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auction-admin-actions > :first-child { grid-column: auto; }
  .bidder-hold-row { grid-template-columns: minmax(150px, .7fr) minmax(210px, 1fr) minmax(280px, 1.4fr); }
  .bidder-hold-action { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 190px; align-items: center; }
  .bidder-hold-action form { grid-column: 2; }
}

@media (max-width: 900px) {
  .auction-index.has-single-active .auction-index-heading,
  .auction-card-grid.is-single { width: min(100%, 620px); }
  .auction-card-grid.is-single:not(.is-results) .auction-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 0;
    border-top: 0;
  }
  .auction-card-grid.is-single:not(.is-results) .auction-card-body {
    padding: 18px 0 0;
  }
  .auction-card-grid.is-single:not(.is-results) .auction-card-body h2 {
    font-size: 24px;
  }
}

@media (max-width: 760px) {
  .auction-index,
  .auction-detail,
  .auction-payment-page { width: min(100% - 28px, 680px); padding: 28px 0 62px; }
  .auction-index-heading { margin-bottom: 26px; }
  .auction-index-heading h1 { font-size: 38px; }
  .auction-index-heading p { font-size: 14px; }
  .auction-card-grid { grid-template-columns: 1fr; gap: 30px; }
  .auction-card-image { aspect-ratio: 1 / 1; }
  .auction-card-image img { padding: 18px; }
  .auction-results { margin-top: 55px; }
  .auction-detail-grid { grid-template-columns: 1fr; gap: 26px; }
  .auction-artwork > img { min-height: 0; max-height: 68vh; aspect-ratio: 1 / 1; padding: 20px; }
  .auction-bid-panel { position: static; gap: 17px; }
  .auction-title-row h1 { font-size: 37px; }
  .auction-numbers strong { font-size: 15px; }
  .auction-lower-grid { grid-template-columns: 1fr; gap: 42px; margin-top: 48px; padding-top: 30px; }
  .auction-payment-summary { grid-template-columns: 92px minmax(0, 1fr); padding: 13px; }
  .auction-payment-summary > img { width: 92px; height: 118px; }
  .auction-payment-summary h2 { font-size: 21px; }
  .auction-payment-summary .auction-clock { grid-column: 1 / -1; }
  .admin-auction-layout { gap: 14px; }
  .auction-editor > summary,
  .bidder-hold-summary { min-height: 64px; padding: 15px 16px; }
  .auction-editor .admin-auction-form { padding: 0 16px 16px; }
  .auction-form-grid { grid-template-columns: 1fr; gap: 14px; padding-top: 16px; }
  .auction-form-grid .field-span-2,
  .auction-form-grid .field-wide { grid-column: auto; }
  .auction-admin-audit { padding: 18px 16px; }
  .auction-admin-audit-heading { margin-bottom: 15px; }
  .auction-admin-audit-grid { grid-template-columns: 1fr; gap: 22px; }
  .auction-admin-audit-column + .auction-admin-audit-column { padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .auction-admin-bid-list > li { padding: 12px; }
  .auction-editor .admin-form-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auction-editor .admin-form-actions .button { width: 100%; }
  .auction-admin-list > .admin-card-heading { padding: 16px; }
  .admin-card-heading h2 { font-size: 25px; }
  .auction-admin-row { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .auction-admin-row > img { width: 76px; height: 76px; }
  .auction-admin-main { display: contents; }
  .auction-admin-main > div { grid-column: 2; align-self: center; align-items: start; flex-direction: column; gap: 6px; }
  .auction-admin-main h3 { font-size: 20px; }
  .auction-admin-main dl { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 13px; padding-top: 13px; }
  .auction-admin-main dl > div { padding: 0 0 0 14px; }
  .auction-admin-main dl > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .auction-admin-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auction-admin-actions > :first-child { grid-column: 1 / -1; }
  .bidder-hold-operations { padding: 0; }
  .bidder-hold-summary h2 { font-size: 23px; }
  .auction-summary-controls { gap: 14px; }
  .bidder-hold-content { padding: 16px; }
  .bidder-hold-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bidder-hold-metrics > div { min-height: 66px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .bidder-hold-metrics > div:nth-child(2n) { border-right: 0; }
  .bidder-hold-metrics > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .bidder-hold-alerts { grid-template-columns: 1fr; gap: 7px; }
  .bidder-hold-row { grid-template-columns: 1fr; gap: 12px; }
  .bidder-hold-deadlines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bidder-hold-action { grid-column: auto; grid-template-columns: 1fr; }
  .bidder-hold-action form { grid-column: auto; }
}

@media (max-width: 480px) {
  .bidder-hold-summary p { display: none; }
  .auction-admin-bid-head { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; }
  .auction-admin-bid-rank { width: 30px; height: 30px; }
  .auction-admin-bid-value { min-width: 82px; }
  .auction-admin-bid-value b { font-size: 14px; }
}

@media (max-width: 340px) {
  .auction-admin-bid-origin { grid-template-columns: 1fr; }
  .auction-admin-bid-origin > div,
  .auction-admin-bid-origin > div + div,
  .auction-admin-bid-origin > .is-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 0;
    border-left: 0;
  }
  .auction-admin-bid-origin > div + div,
  .auction-admin-bid-origin > .is-wide { padding-top: 7px; border-top: 1px dashed var(--line); }
  .auction-access-panel > div { grid-template-columns: 1fr; }
  .auction-editor .admin-form-actions,
  .auction-admin-actions { grid-template-columns: 1fr; }
  .auction-admin-actions > :first-child { grid-column: auto; }
}

/* Focused social bio pages */
.bio-link-body {
  min-height: 100vh;
  background: var(--paper);
}
.bio-link-main {
  width: min(calc(100% - 32px), 580px);
  margin: 0 auto;
  padding: 16px 0 46px;
}
.bio-link-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}
.bio-link-brand {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
}
.bio-link-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bio-link-controls .lang {
  margin: 0;
}
.bio-link-controls .lang-label {
  display: none;
}
.bio-link-controls .lang-menu {
  right: 0;
}
.bio-link-artist {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 8px 26px;
  text-align: center;
}
.bio-link-artist > a {
  display: block;
  border-radius: 50%;
}
.bio-link-artist img {
  width: 82px;
  height: 82px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  object-fit: cover;
}
.bio-link-artist h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
}
.bio-link-artist p {
  max-width: 430px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.bio-link-feature {
  min-width: 0;
}
.bio-link-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eee8df;
}
.bio-link-image img {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: contain;
}
.bio-link-copy {
  display: grid;
  gap: 14px;
  padding: 22px 4px 4px;
}
.bio-link-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bio-link-title-row > span,
.bio-link-section-label,
.bio-link-price > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.bio-link-copy h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.05;
}
.bio-link-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 9px;
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.bio-link-meta span {
  color: color-mix(in srgb, var(--muted) 60%, transparent);
}
.bio-link-description,
.bio-link-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}
.bio-link-note {
  padding: 12px 14px;
  border-left: 3px solid var(--clay);
  background: color-mix(in srgb, var(--clay) 9%, var(--surface));
  color: var(--ink);
  font-size: 13px;
}
.bio-artwork-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}
.bio-artwork-status.status-available {
  border-color: color-mix(in srgb, var(--olive) 52%, var(--line));
  background: color-mix(in srgb, var(--olive) 10%, var(--surface));
  color: var(--olive);
}
.bio-link-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bio-link-price strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.bio-auction-stats {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(72px, .5fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.bio-auction-stats > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bio-auction-stats span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.2;
  text-transform: uppercase;
}
.bio-auction-stats strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.bio-link-feature .auction-clock {
  min-height: 70px;
  margin-top: 0;
}
.bio-link-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.bio-link-primary-actions {
  margin-top: 18px;
}
.bio-link-section-label {
  margin: 0 0 2px 2px;
}
.bio-link-action {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(35, 31, 25, .055);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.3;
  text-align: left;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.bio-link-action > span:last-child {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
}
.bio-link-action:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ink) 32%, var(--line));
  box-shadow: 0 13px 28px rgba(35, 31, 25, .09);
}
.bio-link-action.is-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.bio-link-action.is-primary > span:last-child {
  border-color: color-mix(in srgb, var(--white) 40%, transparent);
}
.bio-link-footer {
  width: min(calc(100% - 32px), 580px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.bio-link-footer > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bio-link-footer button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.bio-link-footer a:hover,
.bio-link-footer button:hover {
  color: var(--ink);
}
.bio-link-missing {
  display: grid;
  gap: 13px;
  padding: 44px 0 70px;
  text-align: center;
}
.bio-link-missing > span {
  color: var(--clay);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.bio-link-missing h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.08;
}
.bio-link-missing p {
  margin: 0 auto 10px;
  color: var(--muted);
}
html[data-theme="dark"] .bio-link-image {
  background: #181511;
}
html[data-theme="dark"] .bio-link-action {
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}
html[data-theme="dark"] .bio-link-action:hover {
  box-shadow: 0 15px 32px rgba(0, 0, 0, .32);
}

@media (max-width: 600px) {
  .bio-link-main {
    width: min(calc(100% - 24px), 580px);
    padding-top: 12px;
  }
  .bio-link-toolbar {
    padding: 0 2px;
  }
  .bio-link-controls .theme-toggle,
  .bio-link-controls .lang summary {
    min-height: 36px;
    height: 36px;
  }
  .bio-link-artist {
    grid-template-columns: 66px minmax(0, 1fr);
    justify-items: start;
    gap: 14px;
    padding: 23px 4px 22px;
    text-align: left;
  }
  .bio-link-artist img {
    width: 66px;
    height: 66px;
  }
  .bio-link-artist h2 {
    font-size: 22px;
  }
  .bio-link-artist p {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.42;
  }
  .bio-link-image {
    padding: 0;
  }
  .bio-link-image img {
    inset: 13px;
    width: calc(100% - 26px);
    height: calc(100% - 26px);
  }
  .bio-link-copy {
    gap: 12px;
    padding-top: 18px;
  }
  .bio-link-copy h1 {
    font-size: 32px;
  }
  .bio-link-title-row {
    align-items: flex-start;
  }
  .bio-link-description {
    font-size: 13px;
  }
  .bio-auction-stats {
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(60px, .65fr));
  }
  .bio-auction-stats > div {
    padding: 10px 8px;
  }
  .bio-auction-stats strong {
    font-size: 14px;
  }
  .bio-link-list {
    margin-top: 24px;
  }
  .bio-link-primary-actions {
    margin-top: 16px;
  }
  .bio-link-footer {
    width: min(calc(100% - 24px), 580px);
    align-items: flex-start;
    padding-bottom: 24px;
  }
  .bio-link-footer > div {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
}

@media (max-width: 680px) {
  .auction-card-image .auction-status {
    top: 16px;
    left: 16px;
  }
  .auction-terms-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .auction-terms-heading .button {
    width: 100%;
  }
  .auction-terms-sections > section {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .auction-terms-heading .button,
  .cookie-consent,
  .premium-confirm {
    display: none !important;
  }
  .auction-terms-page {
    width: 100%;
    padding: 0;
  }
  .auction-terms-heading,
  .auction-terms-sections > section {
    break-inside: avoid;
  }
}
