:root {
  --paper: #f7f4ef;
  --ink: #1d1c19;
  --muted: #74706a;
  --line: #ded8cf;
  --clay: #9b6a58;
  --olive: #72785e;
  --blue: #405d68;
  --white: #fffdf9;
  --shadow: 0 18px 45px rgba(35, 31, 25, .11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { 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;
}

.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 nav a:hover, .admin-top nav a:hover { color: var(--ink); }
.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;
}
.lang {
  display: flex;
  gap: 7px;
  margin-left: 10px;
}
.lang a {
  padding: 4px 7px;
  border: 1px solid transparent;
  font-size: 12px;
}
.lang a.active {
  border-color: var(--line);
  background: 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;
}
textarea { resize: vertical; }
.native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.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.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;
}

.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;
}
.saatchi-gallery {
  width: min(calc(100% - 32px), 1196px);
  margin: 0 auto 72px;
  column-count: 4;
  column-gap: 44px;
}
.saatchi-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 30px;
  break-inside: avoid;
}
.saatchi-image {
  display: block;
  overflow: hidden;
  background: #eee9e1;
}
.saatchi-image img {
  width: 100%;
  height: auto;
  transition: opacity .2s ease, transform .45s ease;
}
.saatchi-card:hover .saatchi-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;
}
.saatchi-actions {
  position: absolute;
  right: 0;
  top: calc(100% - 84px);
  display: flex;
  gap: 10px;
  align-items: center;
}
.saatchi-actions a,
.icon-heart,
.icon-cart {
  width: auto;
  min-width: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2b2925;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.icon-heart b {
  display: none;
}
.icon-cart {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid #2b2925;
  border-radius: 50%;
  font-size: 17px;
}
.icon-cart.print-cart {
  border-color: #536b2e;
  background: #f5f8ef;
  color: #536b2e;
}
.saatchi-meta {
  padding-top: 8px;
  padding-right: 60px;
  color: #2a2825;
  font-size: 14px;
  line-height: 1.28;
}
.saatchi-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: #8a837a;
  font-size: 13px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(90, 51, 41, .52);
}
.saatchi-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;
}
.saatchi-meta p {
  margin: 0 0 2px;
  color: #57534e;
}
.saatchi-meta .status {
  margin-top: 6px;
}

.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, .print-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.print-note.is-highlighted {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 5px 8px;
  border: 1px solid #d8c7ad;
  border-radius: 999px;
  background: #fbf4e8;
  color: #745638;
  font-size: 12px;
  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-page {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(24px, 5vw, 70px);
}
.painting-media {
  position: relative;
  display: grid;
  gap: 18px;
}
.painting-main-image img,
.painting-media > img {
  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 {
  position: sticky;
  top: 94px;
  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; }
.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;
}
.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: 50;
  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.in {
  opacity: 1;
  transform: translateY(0);
}
.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;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.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: #8b6b56;
  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 {
  width: 148px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e8e1d8;
}
.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 34px;
  border-bottom: 0;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.total-line strong {
  font-size: 28px;
  font-weight: 600;
  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: 56px;
  justify-content: center;
  border-color: #238b20;
  background: #238b20;
  color: #fff;
  border-radius: 4px;
  font-size: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.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-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(--ink);
}
.summary-bullet h3 {
  margin: 0 0 2px;
  font-size: 20px;
  line-height: 1.25;
}
.summary-bullet p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}
.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), 760px);
  margin: 64px auto 86px;
  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 > span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  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;
  color: var(--muted);
}
.checkout-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.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-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;
}
.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 {
  background: #f4eee6;
  outline: none;
}
.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;
}
.empty-cart {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.painting-description, .page-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 70px) clamp(48px, 7vw, 90px);
}
.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;
  filter: brightness(.68) saturate(.85);
}
.profile-hero div { position: relative; }
.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,
.profile-joined {
  margin: 0 0 18px;
  color: var(--ink);
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.profile-kicker {
  font-size: 12px;
}
.profile-joined {
  color: #383633;
  font-size: 13px;
}
.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-panel .settings-grid {
  align-items: end;
}
.profile-links-panel .social-remove {
  min-height: 52px;
}
.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-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;
  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;
  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;
}
.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), 1040px);
  max-height: calc(100vh - 44px);
  margin-inline: auto;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 22px 24px;
  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: 32px;
  line-height: 1.05;
}
.cookie-consent p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.cookie-consent a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cookie-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: start;
}
.cookie-actions .button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 15px;
  font-weight: 750;
  white-space: normal;
  overflow-wrap: anywhere;
}
.cookie-actions .button:first-child {
  grid-column: auto;
}
.cookie-actions .button:nth-child(2) {
  grid-column: auto;
}
.cookie-actions .button:nth-child(3) {
  grid-column: auto;
}
.cookie-actions label {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: span 2;
  min-height: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: normal;
}
.cookie-actions input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.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(0, 1.6fr) minmax(260px, .75fr) minmax(260px, .75fr);
  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;
}
.sales-chart {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 5px;
  height: 250px;
  align-items: end;
  padding: 14px 10px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
}
.chart-day {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 22px;
  min-width: 0;
  height: 100%;
  align-items: end;
  outline: 0;
}
.chart-day span {
  display: block;
  min-height: 4px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, #405d68, #9b6a59);
  transform: scaleY(.08);
  transform-origin: bottom;
  transition: transform .62s cubic-bezier(.2, .8, .2, 1) var(--dash-delay, 0ms);
}
.dashboard-ready .chart-day span {
  transform: scaleY(1);
}
.chart-day small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}
.chart-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 8;
  display: grid;
  min-width: 126px;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(64, 93, 104, .18);
  border-radius: 8px;
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 16px 34px rgba(35, 31, 25, .16);
  color: var(--ink);
  font-style: normal;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 7px);
  transition: opacity .16s ease, transform .16s ease;
  backdrop-filter: blur(10px);
}
.chart-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(64, 93, 104, .18);
  border-bottom: 1px solid rgba(64, 93, 104, .18);
  background: rgba(255, 253, 249, .96);
  transform: translateX(-50%) rotate(45deg);
}
.chart-tooltip em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.chart-tooltip strong {
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
}
.chart-day:hover .chart-tooltip,
.chart-day:focus-visible .chart-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sales-mix,
.inventory-list,
.top-artworks,
.recent-orders {
  display: grid;
  gap: 12px;
}
.mix-row {
  display: grid;
  gap: 8px;
}
.mix-row strong,
.top-artworks strong,
.recent-orders strong {
  display: block;
}
.mix-row span,
.top-artworks small,
.recent-orders small {
  color: var(--muted);
}
.mix-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee7dc;
}
.mix-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #405d68;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1) var(--dash-delay, 0ms);
}
.dashboard-ready .mix-bar i {
  transform: scaleX(1);
}
.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;
}
.analytics-bottom {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.35fr);
  gap: 18px;
}
.top-artworks a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.top-artworks img {
  width: 54px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  background: #eee7dc;
}
.top-artworks span,
.recent-orders span {
  min-width: 0;
}
.recent-orders > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.recent-orders > div:last-child {
  border-bottom: 0;
}
.recent-orders > div > span:last-child {
  display: grid;
  gap: 6px;
  justify-items: end;
}
.recent-orders b {
  font-size: 15px;
}
.recent-orders em {
  font-style: normal;
}
@keyframes dashboard-shimmer {
  0% { transform: translateX(-120%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-hero,
  .analytics-metric,
  .chart-day span,
  .mix-bar i {
    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; }
.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;
}
.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;
}
.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: 6px;
  min-width: 0;
}
.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 {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}
.refund-admin-cell {
  display: grid;
  min-width: 0;
  align-items: start;
}
.refund-admin-cell.is-empty {
  min-height: 36px;
  align-items: center;
}
.refund-admin-cell.is-empty .muted {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border: 1px dashed rgba(64, 93, 104, .22);
  border-radius: 999px;
  background: #fbf8f3;
}
.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;
}
.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;
}
.row-actions form:last-child button {
  color: #8b2f24;
}
.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-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 {
  display: grid;
  gap: 8px;
}
.voucher-use-cell small {
  font-size: 13px;
  line-height: 1.35;
}
.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-admin-form {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}
.shipping-admin-list {
  display: grid;
  gap: 16px;
}
.shipping-admin-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(43, 36, 26, .06);
}
.shipping-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  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: 21px;
  letter-spacing: .01em;
}
.shipping-card-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 650;
}
.shipping-card-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(130px, .7fr) minmax(150px, .75fr) minmax(140px, .7fr);
  gap: 14px;
  align-items: end;
}
.shipping-card-toggle,
.shipping-active {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f3;
  color: var(--muted);
  font-weight: 800;
}
.shipping-card-toggle {
  min-width: 138px;
  justify-content: center;
}
.shipping-card-toggle input,
.shipping-active input {
  width: 18px;
  min-height: 18px;
}
.shipping-actions {
  display: flex;
  justify-content: flex-end;
}
.shipping-save {
  min-width: min(100%, 360px);
  min-height: 54px;
}
.shipping-add-panel {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}
.shipping-template-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.shipping-template-form > label {
  grid-column: span 2;
  min-width: 0;
  color: var(--muted);
  font-weight: 650;
}
.shipping-template-form input {
  min-height: 46px;
  background: #fffdf9;
  border-color: #d8d0c5;
}
.shipping-active {
  min-height: 58px;
}
.shipping-active small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.shipping-submit {
  grid-column: span 2;
  min-height: 58px;
}
.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 .wide {
  grid-column: 1 / -1;
}
.settings-grid input,
.settings-grid textarea {
  min-height: 46px;
  background: #fffdf9;
  border-color: #d8d0c5;
}
.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 > 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;
}
.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;
}
.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(4, 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-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-panel form {
  display: grid;
  gap: 12px;
}
.account-panel label,
.address-edit-form label {
  gap: 5px;
  font-size: 13px;
  line-height: 1.25;
}
.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: #cbd5b7;
  background: #f5f8ef;
  box-shadow: inset 0 0 0 1px rgba(83, 107, 46, .08);
}
.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: #f5f8ef;
  color: #536b2e;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.address-card.is-default .address-card-head span {
  background: #e8efd9;
  color: #4f6a2b;
}
.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-form > label,
.address-form > label,
.address-edit-form > .country-autocomplete,
.address-form > .country-autocomplete {
  grid-column: span 4;
}
.address-edit-form > label:nth-of-type(4),
.address-form > label:nth-of-type(4) {
  grid-column: span 6;
}
.address-edit-form > label:nth-of-type(5),
.address-form > label:nth-of-type(5),
.address-edit-form > label:nth-of-type(6),
.address-form > label:nth-of-type(6),
.address-edit-form > label:nth-of-type(7),
.address-form > label:nth-of-type(7),
.address-edit-form > .country-autocomplete,
.address-form > .country-autocomplete {
  grid-column: span 2;
}
.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 .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;
}
.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;
}
.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;
}
.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: cover;
  background: #e8e1d8;
}
.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-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;
}
.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;
}
.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;
}
.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;
}
.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);
}
.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(6, minmax(0, 1fr));
  }
  .cookie-actions .button:first-child,
  .cookie-actions .button:nth-child(2) {
    grid-column: span 3;
  }
  .cookie-actions .button:nth-child(3) {
    grid-column: 1 / -1;
  }
  .cookie-actions label {
    grid-column: span 2;
  }
}

@media (min-width: 980px) {
  .cookie-consent {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 26px;
    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 {
    gap: 4px;
    margin-left: 0;
  }
  .painting-page {
    grid-template-columns: 1fr;
  }
  .purchase-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saatchi-gallery { column-count: 3; column-gap: 28px; }
  .cart-page { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .checkout-stepper ol { display: none; }
  .checkout-stepper-compact { display: block; }
  .cart-summary-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
  }
  .cart-summary-details summary::-webkit-details-marker { display: none; }
  .cart-summary-details summary::after {
    content: "+";
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .cart-summary-details[open] summary::after { content: "-"; }
  .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,
  .analytics-bottom {
    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-template-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shipping-template-form > label,
  .shipping-submit {
    grid-column: auto;
  }
  .settings-panel {
    grid-template-columns: 1fr;
  }
  .profile-crop-grid {
    grid-template-columns: 1fr;
  }
  .profile-avatar-admin {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .profile-avatar-admin img {
    width: 86px;
  }
  .user-admin-layout {
    grid-template-columns: 1fr;
  }
  .account-grid,
  .address-edit-form,
  .address-form {
    grid-template-columns: repeat(2, minmax(0, 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: span 1;
  }
  .address-edit-form > label:nth-of-type(4),
  .address-form > label:nth-of-type(4),
  .address-edit-form > label:nth-of-type(5),
  .address-form > label:nth-of-type(5),
  .address-edit-form > label:nth-of-type(6),
  .address-form > label:nth-of-type(6),
	  .address-edit-form > label:nth-of-type(7),
	  .address-form > label:nth-of-type(7),
    .address-edit-form > .country-autocomplete,
    .address-form > .country-autocomplete {
	    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, .admin-top {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
  }
  .site-header nav, .admin-top nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }
  .admin-top {
    position: static;
    padding: 14px;
  }
  .admin-top .brand {
    width: 100%;
    white-space: normal;
  }
  .admin-top nav {
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible;
  }
  .admin-top nav a {
    flex: 1 1 calc(50% - 8px);
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 253, 249, .78);
    font-size: 13px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
  .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: 0; }
  .hero { min-height: 64vh; }
  .profile-cover { height: 163px; }
  .artist-profile-card {
    margin-top: -58px;
    padding: 20px;
    display: grid;
  }
  .artist-summary {
    grid-template-columns: 70px 1fr;
    gap: 16px;
  }
  .artist-avatar { width: 70px; }
  .artist-summary h1 { font-size: 24px; }
  .gallery-tabs {
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
  }
  .gallery-tabs form {
    grid-column: 1 / -1;
    margin-left: 0;
  }
  .gallery-tabs label {
    justify-content: space-between;
  }
  .saatchi-gallery {
    column-count: 2;
    column-gap: 18px;
  }
  .saatchi-meta {
    padding-right: 0;
    font-size: 13px;
  }
  .saatchi-actions {
    position: static;
    justify-content: flex-end;
    margin-top: 7px;
  }
  .cookie-consent {
    grid-template-columns: 1fr;
    bottom: 14px;
    padding: 16px;
  }
  .cookie-actions {
    grid-template-columns: 1fr;
  }
  .cookie-actions .button,
  .cookie-actions label {
    grid-column: auto;
  }
  .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-item {
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: start;
  }
  .cart-item img {
    width: 74px;
  }
  .cart-item-controls {
    grid-column: 2;
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .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-page { 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,
  .profile-joined {
    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,
  .recent-orders > div {
    display: grid;
    justify-content: stretch;
  }
  .db-health-grid,
  .db-health-counts {
    grid-template-columns: 1fr;
  }
  .analytics-metrics {
    grid-template-columns: 1fr;
  }
  .sales-chart {
    gap: 3px;
    height: 190px;
    overflow-x: visible;
  }
  .chart-day {
    min-width: 0;
  }
  .chart-tooltip {
    display: none;
  }
  .recent-orders > div > span:last-child {
    justify-items: start;
  }
  .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-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-save {
    width: 100%;
  }
  .shipping-card-grid {
    grid-template-columns: 1fr;
  }
  .shipping-actions {
    justify-content: stretch;
  }
  .shipping-template-form { grid-template-columns: 1fr; }
  .shipping-template-form > label,
  .shipping-submit {
    grid-column: auto;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
.settings-actions .button {
  width: 100%;
}
	  .account-heading,
	  .account-order {
	    grid-template-columns: 1fr;
	    display: grid;
	    justify-items: stretch;
	  }
	  .account-tabs {
	    grid-template-columns: 1fr;
	  }
	  .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;
  }
  .order-artwork-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .order-artwork-card img {
    width: 92px;
    height: 108px;
  }
  .account-grid,
  .address-edit-form,
  .address-form,
  .liked-grid {
    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: 1fr;
	  }
	  .address-action-spacer {
	    display: none;
	  }
	.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);
  }
  .image-item-actions label {
    white-space: normal;
  }
  .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 {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1.25;
    text-transform: uppercase;
  }
  .paintings-table td:nth-child(1)::before { content: "Order"; }
  .paintings-table td:nth-child(2)::before { content: "Painting"; }
  .paintings-table td:nth-child(3)::before { content: "Status"; }
  .paintings-table td:nth-child(4)::before { content: "Price"; }
  .paintings-table td:nth-child(5)::before { content: "Actions"; }
  .orders-table td:nth-child(1)::before { content: "ID"; }
  .orders-table td:nth-child(2)::before { content: "Artwork"; }
  .orders-table td:nth-child(3)::before { content: "Type"; }
  .orders-table td:nth-child(4)::before { content: "Status"; }
  .orders-table td:nth-child(5)::before { content: "Total"; }
  .orders-table td:nth-child(6)::before { content: "Ship"; }
  .orders-table td:nth-child(7)::before { content: "Customer"; }
  .orders-table td:nth-child(8)::before { content: "Refund"; }
  .orders-table td:nth-child(9)::before { content: "Created"; }
  .commission-table td:nth-child(1)::before { content: "Customer"; }
  .commission-table td:nth-child(2)::before { content: "Message"; }
  .commission-table td:nth-child(3)::before { content: "Status"; }
  .commission-table td:nth-child(4)::before { content: "Created"; }
  .users-table td:nth-child(1)::before { content: "User"; }
  .users-table td:nth-child(2)::before { content: "Contact"; }
  .users-table td:nth-child(3)::before { content: "Activity"; }
  .users-table td:nth-child(4)::before { content: "Joined"; }
  .users-table td:nth-child(5)::before { content: "Actions"; }
  .admin-table:not(.paintings-table):not(.orders-table):not(.commission-table):not(.users-table) td:nth-child(1)::before { content: "ID"; }
  .admin-table:not(.paintings-table):not(.orders-table):not(.commission-table):not(.users-table) td:nth-child(2)::before { content: "Artwork"; }
  .admin-table:not(.paintings-table):not(.orders-table):not(.commission-table):not(.users-table) td:nth-child(3)::before { content: "Status"; }
  .admin-table:not(.paintings-table):not(.orders-table):not(.commission-table):not(.users-table) td:nth-child(4)::before { content: "Total"; }
  .admin-table:not(.paintings-table):not(.orders-table):not(.commission-table):not(.users-table) td:nth-child(5)::before { content: "Created"; }
  .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;
  }
  .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,
  .shipping-card-toggle,
  .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; gap: 10px; }
}
