h1 { font-family: var(--f-child); }

.artbook-page {
  --paper: #f4efe3;
  --ink: #3e392f;
  --accent: #bd4939;
  --f-cn-child: var(--f-child);
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  background: #f8f6f1;
  font-family: var(--f-child);
}
@media (min-width: 1180px) {
  .artbook-page { min-width: 1180px; }
}
.artbook-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.artbook-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  font: 10px/1 var(--f-en-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.artbook-topbar a { color: inherit; text-decoration: none; transition: opacity .2s; }
.artbook-topbar a:hover { opacity: .55; }
.artbook-brand { display: flex; gap: 10px; align-items: center; color: #657eab !important; }
.artbook-brand:first-letter { font-size: 16px; }
.artbook-edition { color: #b1aa9e; }
.artbook-back { color: #817b70 !important; }
.artbook-back span { margin-left: 5px; font-size: 14px; }

.artbook-scale-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.artbook-scale-inner {
  width: 1140px;
  transform-origin: top center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.artbook-stage {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 16px 20px 42px;
  box-sizing: border-box;
}
.artbook-engine {
  width: 1080px;
  height: 675px;
  filter: drop-shadow(0 22px 22px rgba(69, 58, 43, .16));
  transform: translateX(-270px);
  transition: transform 920ms cubic-bezier(.22, 1, .36, 1);
}
.artbook-is-open .artbook-engine { transform: translateX(0); }
.artbook-engine.stf__parent,
.artbook-engine .stf__wrapper,
.artbook-engine .stf__block { box-sizing: border-box; }
.artbook-engine.stf__parent { transform: translateX(-270px) translateZ(0); }
.artbook-is-open .artbook-engine.stf__parent { transform: translateX(0) translateZ(0); }
.artbook-engine .stf__wrapper { position: relative; width: 100%; }
.artbook-engine .stf__block { perspective: 2200px; }

.book-page {
  overflow: hidden;
  cursor: pointer;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-user-select: none;
  user-select: none;
}
.paper-page {
  background:
    linear-gradient(90deg, rgba(120, 100, 70, .035) 1px, transparent 1px) 0 0 / 5px 100%,
    radial-gradient(ellipse at 22% 8%, rgba(255, 255, 255, .64), transparent 42%),
    radial-gradient(ellipse at 88% 88%, rgba(181, 161, 126, .09), transparent 45%),
    var(--paper);
}
.book-page.--left {
  border-radius: 24px 2px 5px 28px / 18px 2px 20px 16px;
  box-shadow: inset -24px 0 30px -28px rgba(58, 49, 36, .72);
}
.book-page.--right {
  border-radius: 2px 24px 28px 5px / 2px 18px 16px 20px;
  box-shadow: inset 24px 0 30px -28px rgba(58, 49, 36, .72);
}
.book-page.--hard { backface-visibility: hidden; }

.cover-page {
  border-radius: 8px 14px 14px 8px;
  background: #477caa;
  box-shadow: 7px 0 0 #d7ceb8, 10px 0 0 #b8ad93;
}
.cover-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-edge {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 9px;
  background: repeating-linear-gradient(90deg, #eee5d1 0 1px, #cbbfa7 1px 2px);
  box-shadow: inset 2px 0 3px rgba(65, 54, 39, .18);
}
.inside-cover-page { cursor: w-resize; }
.inside-cover {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 84%, rgba(94, 79, 56, .08)),
    repeating-linear-gradient(90deg, rgba(140, 116, 78, .025) 0 2px, transparent 2px 5px);
}

.title-leaf {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #52483b;
}
.title-doodles { position: absolute; inset: 0; width: 100%; height: 100%; }
.doodle-sun circle { fill: #f7c84c; stroke: #e08c32; stroke-width: 5; }
.doodle-sun path { fill: none; stroke: #e08c32; stroke-width: 6; stroke-linecap: round; }
.doodle-cloud { fill: none; stroke: #70b9c2; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .72; }
.doodle-vine { fill: none; stroke: #57994e; stroke-width: 7; stroke-linecap: round; }
.doodle-leaves { fill: #79ac55; stroke: #4f9149; stroke-width: 2.5; }
.doodle-peas path { fill: #98be5d; stroke: #4f9149; stroke-width: 4; }
.doodle-peas circle { fill: #d5df78; stroke: #6e9f4f; stroke-width: 2; }
.doodle-squiggle { fill: none; stroke: #5ca8b4; stroke-width: 4; stroke-linecap: round; opacity: .8; }
.doodle-star { fill: #ee7c76; stroke: #ce5f5b; stroke-width: 3; stroke-linejoin: round; transform-origin: 462px 340px; transform: rotate(8deg); }

.title-card {
  position: absolute;
  z-index: 1;
  top: 174px;
  left: 62px;
  width: 438px;
  min-height: 278px;
  padding: 34px 34px 31px;
  background:
    linear-gradient(92deg, rgba(255,255,255,.12), transparent 34% 68%, rgba(167,116,29,.07)),
    #f3d66f;
  box-shadow: 4px 7px 0 rgba(123, 91, 43, .12);
  clip-path: polygon(1% 4%, 98% 0, 100% 95%, 3% 100%, 0 13%);
  transform: rotate(-1.6deg);
  text-align: left;
}
.title-card::before {
  position: absolute;
  top: -10px;
  left: 144px;
  width: 118px;
  height: 30px;
  content: "";
  background: rgba(237, 147, 116, .58);
  box-shadow: inset 0 0 0 1px rgba(161, 92, 71, .08);
  transform: rotate(2.5deg);
}
.title-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5b726f;
  font: 600 11px/1 var(--f-child);
  letter-spacing: .14em;
}
.title-kicker span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  letter-spacing: 0;
  transform: rotate(-8deg);
}
.title-eyebrow {
  margin: 22px 0 5px;
  color: #6f6251;
  font: 400 18px/1.2 var(--f-child);
  letter-spacing: .22em;
}
.title-leaf h1 {
  width: max-content;
  max-width: 100%;
  margin: 6px 0 13px -4px;
  color: #bd4939;
  font: 400 60px/1.05 var(--f-cn-child);
  letter-spacing: .015em;
  white-space: nowrap;
}
.title-leaf h1 span { display: inline-block; transform-origin: 50% 80%; }
.title-leaf h1 span:nth-child(4n + 1) { transform: translateY(2px) rotate(-2.4deg); }
.title-leaf h1 span:nth-child(4n + 2) { transform: translateY(-3px) rotate(1.8deg); }
.title-leaf h1 span:nth-child(4n + 3) { transform: translateY(2px) rotate(-1deg); }
.title-leaf h1 span:nth-child(4n) { transform: translateY(-1px) rotate(2.4deg); }
.title-card p {
  margin: 0;
  color: #675a49;
  font: 400 16px/1.6 var(--f-child);
  letter-spacing: .04em;
}
.title-crayon-line {
  display: block;
  width: 164px;
  height: 7px;
  margin: 10px 0 0 2px;
  background: repeating-linear-gradient(172deg, #dd7364 0 4px, #c95b50 4px 7px, transparent 7px 9px);
  clip-path: polygon(0 34%, 100% 0, 98% 70%, 2% 100%);
  opacity: .74;
}
.title-year-stamp {
  position: absolute;
  right: 42px;
  bottom: 84px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 11px 15px 9px;
  border: 2px solid rgba(95, 112, 102, .62);
  color: #64756d;
  transform: rotate(-3deg);
}
.title-year-stamp small { font: 600 9px/1 var(--f-child); letter-spacing: .15em; }
.title-year-stamp strong { margin-top: 5px; font: 500 22px/1 var(--f-child); letter-spacing: .04em; }
.title-signature {
  position: absolute;
  left: 111px;
  bottom: 38px;
  color: #8b7b68;
  font: 400 13px/1 var(--f-child);
  letter-spacing: .12em;
  transform: rotate(1.5deg);
}

.artwork-sheet { position: absolute; inset: 0; margin: 0; padding: 9% 9% 12%; }
.artwork-image {
  position: relative;
  display: flex;
  width: 100%;
  height: 73%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}
.artwork-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: .95;
  mix-blend-mode: multiply;
  filter: saturate(.9) contrast(.94) brightness(1.04) sepia(.025);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 .35%, #000 99.65%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 .35%, #000 99.65%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 .35%, #000 99.65%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 .35%, #000 99.65%, transparent 100%);
  mask-composite: intersect;
}
.artwork-sheet.without-caption .artwork-image { height: 88%; }
.artwork-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 28% 34%, #f19a85 0 8%, transparent 8.5%),
    radial-gradient(circle at 68% 42%, #f0c762 0 11%, transparent 11.5%),
    linear-gradient(145deg, transparent 47%, #6aa68b 48% 52%, transparent 53%),
    #eee8dc;
}
.artwork-placeholder.tone-rain { filter: hue-rotate(35deg); }
.artwork-placeholder.tone-lilac { filter: hue-rotate(82deg); }
.artwork-placeholder.tone-night { filter: hue-rotate(145deg) saturate(.8); }
.artwork-placeholder.tone-green { filter: hue-rotate(-35deg); }
.artwork-sheet figcaption { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; height: 23%; padding-top: 5%; }
.artwork-sheet strong { font: 600 21px var(--f-cn-serif); letter-spacing: .04em; }
.artwork-sheet small { color: #9b9284; font: 14px var(--f-en-serif); letter-spacing: .1em; }
.folio { position: absolute; bottom: 4%; color: #aaa191; font: 12px var(--f-en-serif); letter-spacing: .12em; }
.artwork-left .folio { right: 5%; }
.artwork-right .folio { left: 5%; }
.empty-artbook-page { display: flex; align-items: center; justify-content: center; color: #a69b88; font: 18px var(--f-cn-hand); letter-spacing: .12em; }
.blank-artwork-page { cursor: w-resize; }
.back-cover-page { background-color: #e9e0ce; }
.back-cover-mark { position: absolute; right: 38px; bottom: 32px; color: #a69b88; font: 11px var(--f-en-serif); letter-spacing: .1em; }

.artbook-controls {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}
.book-control {
  width: 34px;
  height: 34px;
  border: 1px solid #cbc3b4;
  border-radius: 50%;
  background: transparent;
  color: #736d63;
  cursor: pointer;
  transition: color .2s, background .2s, transform .12s;
}
.book-control:hover:not(:disabled) { color: #f7f3e9; background: #756f64; }
.book-control:active:not(:disabled) { transform: scale(.94); }
.book-control:disabled { cursor: default; opacity: .28; }
.page-status { display: flex; align-items: center; gap: 10px; color: #9f9789; font: 10px var(--f-en-mono); letter-spacing: .12em; }
.page-status i { width: 32px; height: 1px; background: #cec6b8; }
.artbook-keyhint { margin: 10px 0 0; color: #aaa294; font: 10px var(--f-en-mono); letter-spacing: .06em; }
.artbook-keyhint button { padding: 0; border: 0; border-bottom: 1px solid #c8bfaf; color: inherit; background: transparent; cursor: pointer; font: inherit; }

@media (prefers-reduced-motion: reduce) {
  .artbook-engine,
  .book-control { transition-duration: .01ms !important; }
}

/* ================= Viewport Switching: Desktop vs Mobile ================= */
.artbook-desktop-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.artbook-mobile-view {
  display: none;
}

@media (max-width: 768px) {
  .artbook-topbar {
    display: none;
  }
  .artbook-edition {
    display: none;
  }
  .artbook-desktop-view {
    display: none !important;
  }
  .artbook-mobile-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
  }
}

/* ================= Mobile Dedicated Card & Slider ================= */
.mobile-book-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.mobile-slider-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.mobile-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.38s cubic-bezier(0.25, 1, 0.45, 1);
  will-change: transform;
}

.mobile-slide {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  box-sizing: border-box;
}

.mobile-card {
  position: relative;
  width: min(88vw, 380px);
  height: min(112vw, 510px, calc(100dvh - 170px));
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 18px 36px -10px rgba(69, 58, 43, 0.22),
    0 4px 12px rgba(69, 58, 43, 0.08);
  box-sizing: border-box;
  background-color: var(--paper);
}

.mobile-cover-card {
  background: #000;
}
.mobile-cover-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-paper-card {
  border: 1px solid rgba(215, 206, 192, 0.65);
  background:
    linear-gradient(90deg, rgba(120, 100, 70, .035) 1px, transparent 1px) 0 0 / 5px 100%,
    radial-gradient(ellipse at 22% 8%, rgba(255, 255, 255, .64), transparent 42%),
    radial-gradient(ellipse at 88% 88%, rgba(181, 161, 126, .09), transparent 45%),
    var(--paper);
}

/* Title slide */
.mobile-title-card {
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: inline-size;
  padding: 0;
}
.mobile-title-card .title-leaf {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  flex: none;
}
.mobile-title-card .title-card {
  top: 25.78%;
  left: 11.48%;
  width: 81.11%;
  min-height: 41.18%;
  padding: 6.3% 6.3% 5.74%;
}
.mobile-title-card .title-card::before {
  top: -1.48%;
  left: 26.85%;
  width: 21.85%;
  height: 4.44%;
}
.mobile-title-card .title-kicker { gap: 1.85cqw; font-size: 2.04cqw; }
.mobile-title-card .title-kicker span { width: 5.19cqw; height: 5.19cqw; border-width: max(1px, .37cqw); }
.mobile-title-card .title-eyebrow { margin: 4.07cqw 0 .93cqw; font-size: 3.33cqw; }
.mobile-title-card .title-leaf h1 { margin: 1.11cqw 0 2.41cqw -.74cqw; font-size: 11.11cqw; }
.mobile-title-card .title-card p { font-size: 2.96cqw; }
.mobile-title-card .title-crayon-line { width: 30.37cqw; height: 1.3cqw; margin-top: 1.85cqw; }
.mobile-title-card .title-year-stamp {
  right: 7.78%;
  bottom: 12.44%;
  padding: 2.04cqw 2.78cqw 1.67cqw;
  border-width: max(1px, .37cqw);
}
.mobile-title-card .title-year-stamp small { font-size: 1.67cqw; }
.mobile-title-card .title-year-stamp strong { margin-top: .93cqw; font-size: 4.07cqw; }
.mobile-title-card .title-signature { left: 20.56%; bottom: 5.63%; font-size: 2.41cqw; }
.mobile-title-card .title-doodles { width: 100%; height: 100%; }
.m-title-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.m-title-eyebrow {
  color: #928775;
  font: 10px var(--f-en-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.m-title-h1 {
  margin: 14px 0 10px;
  color: #2f2921;
  font: 400 36px/1.1 var(--f-cn-child);
  letter-spacing: .04em;
}
.m-title-p {
  margin: 0 0 24px;
  color: #6d6455;
  font: 400 13px/1.6 var(--f-child);
  letter-spacing: .06em;
}
.m-title-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 14px 7px;
  border: 1px dashed #be5545;
  border-radius: 4px;
  background: rgba(190, 85, 69, .04);
  color: #b54736;
}
.m-title-stamp span {
  font: 8px var(--f-en-mono);
  letter-spacing: .16em;
  opacity: .8;
}
.m-title-stamp strong {
  margin-top: 2px;
  font: 700 16px/1 var(--f-en-mono);
  letter-spacing: .08em;
}
.m-title-sig {
  margin-top: 24px;
  font: 11px var(--f-en-mono);
  color: #9f9686;
  letter-spacing: .06em;
}

/* Artwork slide */
.mobile-artwork-card {
  display: flex;
  flex-direction: column;
  padding: 20px 18px 20px;
}
.m-artwork-image-box {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.m-artwork-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(69, 58, 43, 0.12));
}
.m-artwork-meta-box {
  margin-top: 12px;
  text-align: center;
}
.m-artwork-title {
  display: block;
  color: #2c251d;
  font: 500 16px/1.3 var(--f-child);
  letter-spacing: .04em;
}
.m-artwork-sub {
  margin-top: 4px;
  color: #8c8273;
  font: 11px var(--f-en-mono);
  letter-spacing: .08em;
}
.m-artwork-folio {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: #b3a998;
  font: 10px var(--f-en-mono);
}

/* Back cover slide */
.mobile-back-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.m-back-inner {
  text-align: center;
}
.m-back-mark {
  color: #8c8273;
  font: 15px var(--f-child);
  letter-spacing: .12em;
}
.m-back-note {
  margin-top: 10px;
  color: #b3a998;
  font: 11px var(--f-en-mono);
  letter-spacing: .1em;
}

/* Mobile Controls */
.mobile-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}
.mobile-control-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #cbc3b4;
  border-radius: 50%;
  background: transparent;
  color: #736d63;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background .2s, color .2s, transform .12s;
}
.mobile-control-btn:active:not(:disabled) {
  transform: scale(.92);
  background: #756f64;
  color: #f7f3e9;
}
.mobile-control-btn:disabled {
  opacity: .25;
  cursor: default;
}
.mobile-page-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9f9789;
  font: 11px var(--f-en-mono);
  letter-spacing: .12em;
  min-width: 80px;
  justify-content: center;
}
.mobile-status-line {
  width: 24px;
  height: 1px;
  background: #cec6b8;
}
.mobile-keyhint {
  margin: 8px 0 0;
  color: #aaa294;
  font: 10px var(--f-en-mono);
  letter-spacing: .06em;
}
.mobile-keyhint button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid #c8bfaf;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 768px) {
  .mobile-book-container {
    max-width: none;
    height: 100%;
  }
  .mobile-slider-viewport,
  .mobile-slider-track,
  .mobile-slide {
    height: 100%;
  }
  .mobile-controls,
  .mobile-keyhint { display: none; }
}

/* Artbook upload */
.upload-page { min-height: 100vh; padding: 36px clamp(20px, 5vw, 72px) 72px; color: #4d493f; background: #f3efe5; }
.upload-header { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid #c9c1b2; color: #877e6e; font: 11px var(--f-en-mono); letter-spacing: .12em; }
.upload-header a { color: inherit; text-decoration: none; }
.upload-header-actions { display: flex; align-items: center; gap: 18px; }
.upload-header-actions form { margin: 0; }
.upload-header-actions button { border: 0; border-bottom: 1px solid #a99f90; padding: 2px 0; color: inherit; background: none; font: inherit; letter-spacing: inherit; cursor: pointer; }
.upload-shell { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); gap: clamp(40px, 7vw, 110px); max-width: 1280px; margin: 70px auto 0; }
.upload-intro { position: sticky; top: 48px; align-self: start; }
.upload-step { color: #9b8068; font: 10px var(--f-en-mono); letter-spacing: .16em; }
.upload-intro h1 { margin: 24px 0 20px; color: #5c5549; font: 400 clamp(42px, 5vw, 72px)/1.13 var(--f-child); letter-spacing: -.04em; }
.upload-intro p { max-width: 340px; color: #8b8376; font: 14px/1.8 var(--f-child); }
.upload-workspace { min-width: 0; }
.photo-picker { display: grid; place-items: center; min-height: 220px; padding: 32px; border: 1px dashed #aaa08f; border-radius: 4px; background: rgba(255,255,255,.28); text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.photo-picker:hover { border-color: #7f765f; background: rgba(255,255,255,.5); }
.photo-picker:focus-within { outline: 2px solid #6f7457; outline-offset: 3px; }
.photo-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.picker-mark { color: #81785f; font: 300 42px/1 var(--f-child); }
.photo-picker strong { margin-top: 12px; font: 400 20px var(--f-child); }
.photo-picker small { margin-top: 8px; color: #9b9385; font: 10px var(--f-en-mono); letter-spacing: .06em; }
.upload-batch-options { margin: 16px 0 32px; color: #817a6e; font-size: 12px; }
.upload-batch-options input { accent-color: #73785a; }
.upload-list { display: grid; gap: 18px; }
.upload-item { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 22px; padding: 18px; border: 1px solid #d0c8ba; background: rgba(255,255,255,.35); }
.upload-item.is-complete { border-color: #aeb39a; }
.upload-preview { position: relative; display: grid; aspect-ratio: 1; overflow: hidden; place-items: center; background: #ddd6c8; }
.upload-preview img { width: 100%; height: 100%; object-fit: contain; transition: transform .18s ease; }
.upload-rotate { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 5px; }
.upload-rotate button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #4f4a40; background: rgba(250,247,239,.9); box-shadow: 0 2px 8px rgba(57,49,39,.14); font-size: 18px; cursor: pointer; backdrop-filter: blur(6px); }
.upload-rotate svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.upload-fields { min-width: 0; }
.upload-fileline { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.upload-filename { overflow: hidden; color: #665f54; font: 12px var(--f-en-mono); text-overflow: ellipsis; white-space: nowrap; }
.upload-state { flex: none; color: #918878; font: 10px var(--f-en-mono); }
.upload-state[data-kind="success"] { color: #667047; }
.upload-state[data-kind="error"] { color: #a2534d; }
.upload-fields label { display: grid; gap: 6px; color: #837b6e; font-size: 11px; }
.upload-fields input[type="text"], .upload-fields input[type="month"] { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid #bdb4a4; border-radius: 0; padding: 8px 2px; color: #4d493f; background: transparent; font: 14px var(--f-child); }
.upload-fields input:focus { outline: 0; border-color: #69704f; }
.upload-meta-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.upload-progress { height: 2px; margin-top: 18px; overflow: hidden; background: #d8d1c5; }
.upload-progress i { display: block; width: 0; height: 100%; background: #73795a; transition: width .2s; }
.upload-error { min-height: 1.3em; margin: 8px 0 0; color: #a2534d; font-size: 11px; }
.upload-remove { float: right; border: 0; padding: 4px 0; color: #9a716b; background: none; font: 10px var(--f-en-mono); cursor: pointer; }
.upload-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #c9c1b2; }
.upload-actions p { margin: 0; color: #827a6c; font-size: 12px; }
.upload-actions button { border: 1px solid #656a4f; padding: 13px 18px; color: #f5f1e7; background: #656a4f; font: 13px var(--f-child); cursor: pointer; }
.upload-actions button:disabled { border-color: #bbb3a5; color: #918b80; background: #d5cec1; cursor: not-allowed; }

@media (max-width: 760px) {
  .upload-page { padding: 24px 18px 48px; }
  .upload-shell { grid-template-columns: 1fr; gap: 34px; margin-top: 44px; }
  .upload-intro { position: static; }
  .upload-intro h1 { margin-top: 18px; font-size: 46px; }
  .photo-picker { min-height: 170px; }
  .upload-item { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 13px; }
  .upload-rotate { right: 4px; bottom: 4px; gap: 3px; }
  .upload-rotate button { width: 38px; height: 38px; }
  .upload-meta-fields { grid-template-columns: 1fr; gap: 12px; }
  .upload-fileline, .upload-actions { align-items: flex-start; flex-direction: column; }
  .upload-state { white-space: normal; }
  .upload-actions button { width: 100%; }
  .upload-fields input[type="text"], .upload-fields input[type="month"] { min-height: 44px; font-size: 16px; }
  .upload-remove { min-height: 40px; padding: 10px 0; }
  .upload-actions { position: sticky; bottom: 0; z-index: 3; margin-right: -18px; margin-left: -18px; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); background: rgba(243,239,229,.96); backdrop-filter: blur(10px); }
  .upload-actions button { min-height: 48px; font-size: 15px; }
}

/* Artbook password gate */
.upload-login-page { display: grid; min-height: 100vh; place-items: center; padding: 28px 18px; background: radial-gradient(circle at 50% 15%, rgba(255,255,255,.72), transparent 42%), #f3efe5; }
.upload-login-card { width: min(100%, 470px); padding: 40px clamp(24px, 6vw, 54px) 48px; border: 1px solid #c9c1b2; background: rgba(250,247,239,.78); box-shadow: 0 24px 70px rgba(74,65,50,.09); }
.upload-login-back { color: #877e6e; font: 10px var(--f-en-mono); letter-spacing: .08em; text-decoration: none; }
.upload-login-kicker { display: block; margin-top: 54px; color: #9b8068; font: 10px var(--f-en-mono); letter-spacing: .16em; }
.upload-login-mark { margin: 30px 0 16px; color: #858a68; font-size: 28px; }
.upload-login-card h1 { margin: 0; color: #5c5549; font: 400 38px/1.25 var(--f-child); }
.upload-login-card > p { margin: 14px 0 32px; color: #8b8376; font: 13px/1.8 var(--f-child); }
.upload-login-form label { display: block; color: #837b6e; font-size: 11px; }
.upload-login-form input { width: 100%; margin-top: 8px; border: 0; border-bottom: 1px solid #a9a08f; border-radius: 0; padding: 11px 2px; color: #4d493f; background: transparent; font: 16px var(--f-en-sans); }
.upload-login-form input:focus { outline: 0; border-color: #656a4f; box-shadow: 0 1px 0 #656a4f; }
.upload-login-form input[aria-invalid="true"] { border-color: #a2534d; }
.upload-login-error { min-height: 1.5em; margin: 9px 0 16px; color: #a2534d; font-size: 11px; }
.upload-login-form button { width: 100%; border: 1px solid #656a4f; padding: 14px 18px; color: #f5f1e7; background: #656a4f; font: 13px var(--f-child); cursor: pointer; }
