:root {
  color-scheme: light;
  --ink: #152322;
  --muted: #5c6c68;
  --paper: #fffdf8;
  --mint: #dcefe7;
  --green: #17644d;
  --coral: #f39a7b;
  --line: #d8dfdb;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: #edf5f1; }
.shell { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr); }
.shell.homepage-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.art { padding: 52px; background: var(--green); color: white; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.art::after { content: ""; position: absolute; width: 430px; height: 430px; border: 80px solid rgba(255,255,255,.10); border-radius: 45% 55% 60% 40%; right: -180px; bottom: -120px; transform: rotate(18deg); }
.brand { font-weight: 750; letter-spacing: -.02em; font-size: 20px; }
.art h1 { max-width: 620px; font-size: clamp(42px, 5.3vw, 78px); line-height: .98; letter-spacing: -.055em; margin: 70px 0 24px; }
.art p { font-size: 18px; line-height: 1.6; max-width: 480px; color: #d9eee6; }
.mini { display: flex; gap: 24px; font-size: 14px; color: #d9eee6; z-index: 1; }
.panel { padding: 52px clamp(32px, 7vw, 100px); background: var(--paper); display: flex; align-items: center; }
.card { width: 100%; max-width: 610px; margin: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; color: var(--green); font-size: 12px; font-weight: 800; }
h2 { font-size: 36px; letter-spacing: -.035em; margin: 12px 0 10px; }
.lead { color: var(--muted); line-height: 1.6; margin-bottom: 34px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 28px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; }
.option label { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: block; cursor: pointer; transition: .2s; }
.option input:checked + label { border: 2px solid var(--green); background: var(--mint); padding: 19px; }
.option input:focus-visible + label { outline: 3px solid var(--green); outline-offset: 3px; }
.age-choice { min-width: 0; margin: 20px 0 16px; padding: 0; border: 0; }
.age-choice legend { margin: 0 0 10px; padding: 0; font-size: 26px; font-weight: 750; letter-spacing: -.035em; }
.age-choice .options { margin: 0; }
.age-choice .option label { min-height: 72px; display: flex; align-items: center; }
.age-choice .option strong { line-height: 1.3; }
.age-choice + .fine[hidden] { display: none; }
.shape { display: block; border: 2px solid var(--green); margin-bottom: 15px; opacity: .75; }
.portrait { width: 34px; height: 46px; }
.landscape { width: 46px; height: 34px; }
.option strong, .option span { display: block; }
.option span { color: var(--muted); font-size: 13px; margin-top: 5px; }
button { width: 100%; border: 0; border-radius: 13px; padding: 16px 22px; background: var(--coral); color: #301c15; font-size: 16px; font-weight: 800; cursor: pointer; }
button:hover { filter: brightness(.97); }
button:disabled { opacity: .5; cursor: wait; }
.demo-new-order { margin-top: 18px; background: white; border: 2px solid var(--green); color: var(--green); }
.fine { text-align: center; color: var(--muted); font-size: 12px; margin-top: 15px; }
.cancel-order-note { text-align: center; color: var(--muted); font-size: 14px; margin: 12px 0 8px; }
.status-card { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: white; box-shadow: 0 18px 60px rgba(23,100,77,.08); }
.status-pill { display: inline-flex; border-radius: 999px; padding: 8px 12px; background: var(--mint); color: var(--green); font-weight: 800; font-size: 12px; letter-spacing: .06em; }
.reference { font-family: ui-monospace, monospace; font-size: 26px; margin: 18px 0 6px; }
.details { margin: 25px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.notice { padding: 14px 16px; background: #fff1eb; border-radius: 12px; color: #70402f; font-size: 14px; margin-bottom: 18px; }
.error { color: #9b2c20; margin-top: 12px; }
.drop-zone { position: relative; min-height: 180px; border: 2px dashed #9ab9ad; border-radius: 15px; display: grid; place-items: center; text-align: center; overflow: hidden; background: #f6faf8; margin-bottom: 10px; transition: .2s; }
.drop-zone.dragging { background: var(--mint); border-color: var(--green); }
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.file-picker { width: 100%; min-height: 180px; display: grid; place-items: center; cursor: pointer; }
.file-input:focus-visible + .file-picker { outline: 3px solid var(--green); outline-offset: -3px; }
.file-input:disabled + .file-picker { opacity: .5; cursor: not-allowed; }
.drop-zone strong, .drop-zone span { display: block; }
.drop-zone span { color: var(--muted); font-size: 12px; margin-top: 6px; }
.drop-zone img { width: 100%; height: 230px; object-fit: contain; background: #e7eeea; }
.drop-zone img[data-image-viewer="enabled"] { cursor: zoom-in; }
.image-lightbox { width: min(96vw, 1500px); height: min(94vh, 1100px); padding: 0; border: 0; border-radius: 16px; background: #101716; color: white; overflow: hidden; }
.image-lightbox::backdrop { background: rgba(5, 13, 11, .86); }
.lightbox-toolbar { min-height: 70px; padding: 12px 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; background: #172522; }
.lightbox-controls { display: flex; gap: 8px; }
.lightbox-controls button { width: auto; min-width: 88px; padding: 11px 14px; }
.zoom-viewport { width: 100%; height: calc(100% - 70px); min-width: 0; min-height: 0; overflow: hidden; position: relative; cursor: grab; touch-action: none; outline: none; }
.zoom-viewport.is-panning { cursor: grabbing; }
.zoom-viewport:focus-visible { box-shadow: inset 0 0 0 3px var(--coral); }
.zoom-viewport img { display: block; position: absolute; inset: 0; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; transform-origin: center; user-select: none; -webkit-user-drag: none; will-change: transform; }
.detected { color: var(--green); font-size: 13px; font-weight: 700; margin: 8px 0 18px; }
.input-warning { padding: 14px 16px; margin: 0 0 18px; border: 2px solid #8b5a00; border-radius: 12px; background: #fff1b8; color: #553700; font-size: 14px; font-weight: 700; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.45; margin: 13px 0; color: #334642; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.offline-banner { margin-bottom: 14px; border: 2px solid #8b5a00; background: #fff1b8; color: #553700; border-radius: 10px; padding: 10px 12px; text-align: center; font-weight: 900; font-size: 12px; letter-spacing: .06em; }
.review-actions { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-actions button { margin-top: 10px; }
.review-actions .secondary { background: white; border: 2px solid var(--green); color: var(--green); }
.review-actions form { margin-top: 16px; display: grid; gap: 8px; }
.review-actions [hidden] { display: none !important; }
.approval-choice { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.approval-choice h3 { margin: 0 0 10px; font-size: 20px; }
.additional-version-choice { margin-top: 28px; padding: 0 18px 18px; border: 1px solid #bedacf; border-radius: 12px; background: #f6fbf8; }
.alternative-heading { margin: 0 -18px 16px; padding: 14px 18px; border-radius: 11px 11px 0 0; background: var(--mint); color: var(--green); font-size: 19px; }
.review-actions select, .review-actions textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px; font: inherit; }
.status-card > form > input[type="text"], .status-card > form > select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px; margin: 6px 0 14px; font: inherit; background: white; }
.review-actions textarea { min-height: 90px; resize: vertical; }
.included { padding: 12px 14px; border-radius: 10px; background: #f2f7f0; line-height: 1.45; }
.home-contact {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 20px 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
.home-contact a { color: var(--green); text-underline-offset: 2px; overflow-wrap: anywhere; }
#order-form > label[for="customer-email"] { display: block; margin: 0 0 8px; }
#customer-email {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #aebbb5;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
#customer-email:focus-visible { border-color: var(--green); outline: 3px solid var(--green); outline-offset: 2px; }
@media (max-width: 820px) { .shell { grid-template-columns: 1fr; } .art { min-height: 430px; padding: 32px; } .art h1 { margin-top: 50px; } .panel { padding: 42px 24px; } }
@media (max-width: 820px) { .home-contact { padding: 16px 16px 4px; } }
.owner-review { max-width: 1400px; margin:auto; padding:40px; }
.protected-preview { margin:18px 0 28px; text-align:center; }
#mask-preview { display:block; width:100%; max-width:850px; height:auto; margin:0 auto; object-fit:contain; }
#mask-preview[data-image-viewer="enabled"] { cursor:zoom-in; }
.background-diagnostic-key { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:10px 0; color:var(--muted); font-size:14px; }
.background-diagnostic-key span { display:inline-block; width:16px; height:16px; border-radius:4px; }
.background-key-uniform { background:rgba(23,100,77,.55); }
.background-key-mixed { background:rgba(214,40,40,.62); }
#background-diagnostic-summary, #background-selection-diagnostic { padding:10px 12px; border-radius:9px; background:#f4f7f5; }
#background-selection-diagnostic[data-state="mixed"] { background:#fff0eb; color:#7a2d21; font-weight:700; }
#background-selection-diagnostic[data-state="uniform"] { background:#e8f4ee; color:#14523f; }
.background-canvas-controls { display:flex; align-items:center; justify-content:center; gap:12px; margin:14px 0; }
.background-canvas-controls button { width:auto; min-width:120px; padding:10px 16px; }
.background-canvas-controls span { min-width:54px; text-align:center; font-weight:700; }
.background-canvas-viewport { max-width:100%; max-height:75vh; overflow:auto; border:1px solid var(--line); border-radius:12px; background:#f6faf8; }
#background-canvas { display:block; width:100%; max-width:1100px; height:auto; margin:16px auto; cursor:crosshair; }
#background-canvas[data-zoom="150"], #background-canvas[data-zoom="200"], #background-canvas[data-zoom="250"] { max-width:none; }
#background-canvas[data-zoom="150"] { width:150%; }
#background-canvas[data-zoom="200"] { width:200%; }
#background-canvas[data-zoom="250"] { width:250%; }
.owner-order-card { background:white; padding:24px; border:2px solid var(--line); border-radius:14px; margin:0 0 24px; }
.owner-order-card h2 { margin:0 0 14px; font-size:28px; overflow-wrap:anywhere; }
.payment-badge { display:inline-block; margin:0 0 20px; padding:12px 18px; border-radius:8px; background:#fff1b8; color:#553700; font-weight:800; font-size:18px; }
.payment-badge[data-status="PAID"] { background:#dcefe7; color:#14523f; }
.payment-badge[data-status="NOT_PAID"], .payment-badge[data-status="REFUNDED"] { background:#fce4de; color:#7a2d21; }
.owner-order-details { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:12px 24px; margin:0; }
.owner-order-details dt { font-weight:700; }
.owner-order-details dd { margin:0; overflow-wrap:anywhere; }
@media (max-width:600px) { .owner-order-details { grid-template-columns:1fr; gap:6px; } .owner-order-details dd { margin-bottom:12px; } }
.artifact-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.artifact-grid figure { margin:0; background:white; padding:14px; border-radius:14px; }
.artifact-grid img { width:100%; aspect-ratio:4/3; object-fit:contain; cursor:zoom-in; }
.owner-review pre { white-space:pre-wrap; background:white; padding:20px; border-radius:14px; }
.release-state { background:white; padding:20px; border-radius:14px; margin-bottom:20px; }
.release-actions { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; align-items:end; }
.release-actions button { margin:0; }
.release-actions select { width:100%; border:1px solid var(--line); border-radius:10px; padding:11px; font:inherit; }
#quality-summary { display:grid; grid-template-columns:max-content 1fr; gap:8px 18px; background:white; padding:20px; border-radius:14px; }
#quality-summary dt { font-weight:700; }
#quality-summary dd { margin:0; }
@media (max-width:760px) { .release-actions,.artifact-grid { grid-template-columns:1fr; } }
@media (max-width:760px) { .lightbox-toolbar { align-items: stretch; flex-direction: column; } .lightbox-controls { display: grid; grid-template-columns: 1fr 1fr; } .zoom-viewport { height: calc(100% - 132px); } }

/* Homepage-only left-panel artwork and typography. */
.home-art {
  isolation: isolate;
  min-height: 100vh;
  padding: clamp(18px, 2.4vw, 38px);
  color: #17251c;
  background: #fff9e8;
}
.home-art::after { content: none; }
.home-art__background {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.home-art__content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 760px;
  min-height: calc(100vh - 2 * clamp(18px, 2.4vw, 38px));
  margin: auto;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.3vh, 18px);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
}
.home-art__logo {
  display: block;
  width: min(68%, 330px);
  height: auto;
  flex: 0 0 auto;
  margin: -10px auto -24px;
}
.home-art h1 {
  max-width: 100%;
  margin: 0;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.35vw, 48px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.home-art .home-art__artist-callout {
  width: 100%;
  max-width: 620px;
  margin: 0;
  padding: 7px 4px;
  border-top: 1px solid #78915a;
  border-bottom: 1px solid #78915a;
  color: #17251c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(10px, 1.1vw, 14px);
  font-weight: 600;
  letter-spacing: .18em;
}
.home-art__copy { width: 100%; max-width: 620px; padding: 4px 8px; border-radius: 5px; background: rgba(255, 250, 232, .68); }
.home-art .home-art__copy p {
  width: 100%;
  max-width: none;
  margin: 5px 0;
  color: #20241e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(14px, 1.45vw, 19px);
  line-height: 1.32;
}
.home-art__coming-soon {
  width: 100%;
  max-width: 600px;
  padding: 8px 14px 10px;
  border: 1px solid #9aa86d;
  border-radius: 5px;
  background: rgba(255, 250, 230, .78);
}
.home-art__coming-soon h2 {
  margin: 0 0 3px;
  color: #07513d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.25vw, 31px);
  font-weight: 600;
  line-height: 1.1;
}
.home-art .home-art__coming-soon p {
  max-width: none;
  margin: 2px 0;
  color: #20241e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(12px, 1.22vw, 16px);
  line-height: 1.25;
}
.home-art__details {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  color: #33251c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(10px, 1.1vw, 14px);
  line-height: 1.2;
}
.home-art__details span { min-width: 0; padding: 5px 7px; overflow-wrap: anywhere; }
.home-art__details span + span { border-left: 1px solid #78915a; }
/* Keep the homepage's two desktop panels equal while fitting its copy and controls. */
.homepage-shell > .panel { min-width: 0; padding: 44px clamp(24px, 4vw, 64px); }
.homepage-shell > .panel .card { min-width: 0; max-width: 640px; }
.homepage-shell > .panel h2 { font-size: clamp(28px, 2.55vw, 36px); line-height: 1.12; }
.homepage-shell > .panel .lead { font-size: clamp(14px, 1.25vw, 16px); }
.homepage-shell > .panel .options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.homepage-shell > .panel .option label { min-width: 0; padding: clamp(12px, 1.45vw, 18px); overflow-wrap: anywhere; }
.homepage-shell > .panel .option input:checked + label { padding: calc(clamp(12px, 1.45vw, 18px) - 1px); }
.homepage-shell .age-choice legend { font-size: clamp(22px, 2vw, 26px); line-height: 1.15; }
.homepage-shell .age-choice .option strong { font-size: clamp(13px, 1.15vw, 16px); }
.homepage-shell .age-choice .options { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.homepage-shell .age-choice .option label { min-height: 56px; justify-content: flex-start; gap: 12px; }
.homepage-shell .age-choice .option label::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 2px solid #70817b;
  border-radius: 50%;
  background: white;
}
.homepage-shell .age-choice .option input:checked + label::before {
  border-color: var(--green);
  background: radial-gradient(circle, var(--green) 0 5px, white 5.5px);
}
@media (max-width: 960px) {
  .shell.homepage-shell { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .home-art { min-height: max(680px, 100svh); padding: 18px; }
  .home-art__content { width: min(100%, 350px); min-height: 644px; gap: 10px; }
  .home-art__logo { width: min(64%, 280px); margin: -4px auto -18px; }
  .home-art h1 { width: 100%; font-size: clamp(24px, 6.2vw, 28px); white-space: normal; }
  .home-art .home-art__artist-callout { font-size: 10px; letter-spacing: .13em; }
  .home-art .home-art__copy p { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
  .home-art .home-art__coming-soon p { font-size: 13px; }
  .home-art__details { font-size: 11px; }
}

/* Public homepage information section; keep every rule scoped to this section. */
.home-info {
  width: 100%;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 5vw, 56px);
  background: #edf5f1;
}
.home-info__inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid #d8dfdb;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 16px 42px rgba(23, 100, 77, .08);
}
.home-info h2 {
  max-width: 850px;
  margin: 0 0 14px;
  color: #152322;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.home-info__intro {
  max-width: 900px;
  margin: 0;
  color: #40534e;
  font-size: 17px;
  line-height: 1.7;
}
.home-info__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.home-info__card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #d8dfdb;
  border-radius: 16px;
  background: #f5f8f2;
}
.home-info__card h3,
.home-info__faq-title {
  margin: 0 0 12px;
  color: #17644d;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.home-info__card p,
.home-info__card li,
.home-info__faq p {
  color: #354742;
  font-size: 15px;
  line-height: 1.65;
}
.home-info__card p { margin: 0; }
.home-info__card ol { margin: 0; padding-left: 21px; }
.home-info__card li + li { margin-top: 8px; }
.home-info__faq-title { margin-top: 36px; font-size: 25px; }
.home-info__faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.home-info__faq details {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #d8dfdb;
  border-radius: 13px;
  background: white;
}
.home-info__faq summary {
  color: #17644d;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}
.home-info__faq p { margin: 12px 0 0; }
.home-info__faq a { color: #17644d; text-underline-offset: 2px; }
@media (max-width: 820px) {
  .home-info { padding: 28px 16px; }
  .home-info__inner { padding: 24px 20px; border-radius: 18px; }
  .home-info__cards { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
}
@media (max-width: 600px) {
  .home-info__faq { grid-template-columns: 1fr; }
  .home-info__faq-title { margin-top: 28px; }
  .home-info__card { padding: 18px; }
  .home-info__intro { font-size: 16px; }
}
