/* Proof Table v2.1 production shell. The legacy CSS remains above this file as a
   rollback-safe baseline; this layer owns the selected Light Table Studio UI. */
:root {
  --proof-shadow: 0 18px 42px rgba(75, 46, 31, .11), 0 2px 8px rgba(75, 46, 31, .06);
  --proof-shadow-raised: 0 22px 52px rgba(75, 46, 31, .16), 0 5px 14px rgba(75, 46, 31, .08);
  --ease-proof: cubic-bezier(.2, .78, .22, 1);
  --frame-family-accent: var(--proof-pink);
  --frame-family-secondary: var(--proof-blue);
  --frame-family-wash: rgba(255, 143, 189, .09);
}

html { color-scheme: light; overflow-x: clip; }
body {
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 226, 111, .23), transparent 22rem),
    radial-gradient(circle at 92% 12%, rgba(143, 211, 255, .2), transparent 25rem),
    #f7eee5;
}

::selection { color: var(--proof-ink); background: var(--proof-blue); }
html { scrollbar-color: rgba(75,46,31,.32) transparent; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: rgba(75,46,31,.28); background-clip: padding-box; }
input, textarea { caret-color: var(--pink-deep); }

.app-header {
  min-height: 64px;
  padding: 10px clamp(16px, 3vw, 42px);
  border-bottom: 1px solid var(--proof-hairline);
  background: rgba(255, 253, 249, .94);
}
.brand-logo { height: 40px; filter: none; }
.brand-tag {
  border: 1px solid var(--proof-hairline);
  border-radius: 8px;
  color: var(--proof-muted);
  background: var(--proof-paper);
  box-shadow: none;
  transform: none;
  letter-spacing: .02em;
}
.header-tools { display: flex; align-items: center; gap: 8px; }
.header-action, .privacy-trigger {
  min-height: 44px;
  border: 1px solid var(--proof-hairline);
  background: var(--proof-paper);
  box-shadow: 0 4px 12px rgba(75, 46, 31, .06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.header-action { border-radius: 12px; }
.privacy-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  color: var(--proof-ink);
  cursor: pointer;
}
.privacy-trigger img { width: 32px; height: 32px; object-fit: contain; }
.header-action:hover, .privacy-trigger:hover { border-color: rgba(75,46,31,.34); box-shadow: 0 7px 18px rgba(75,46,31,.1); transform: translateY(-1px); }

.progress-wrap {
  width: min(840px, calc(100% - 32px));
  margin: 12px auto 14px;
  padding: 0 12px;
  position: relative;
}
.progress-list { gap: 0; position: relative; }
.progress-list::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 8.33%; right: 8.33%; top: 15px;
  height: 1px;
  background: var(--proof-hairline);
}
.progress-list::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: 8.33%; top: 13px;
  width: 83.34%; height: 5px;
  border-radius: 999px;
  background: var(--proof-blue);
  transform: scaleX(0);
  transform-origin: left;
}
.progress-wrap.rail-approved .progress-list::after { animation: proof-rail-sweep 620ms var(--ease-proof) forwards; }
@keyframes proof-rail-sweep { to { transform: scaleX(1); } }
.progress-item { position: relative; z-index: 1; gap: 4px; color: var(--proof-muted); font-size: .68rem; }
.progress-dot {
  position: relative;
  width: 30px; height: 30px;
  border: 1px solid rgba(75,46,31,.24);
  background: var(--proof-paper);
  box-shadow: 0 3px 9px rgba(75,46,31,.07);
}
.progress-item.current .progress-dot {
  border-color: rgba(75,46,31,.45);
  background: var(--proof-pink);
  box-shadow: 0 0 0 4px rgba(255,143,189,.22), 0 6px 15px rgba(75,46,31,.12);
  animation: active-proof-breathe 2.3s ease-in-out infinite;
}
.progress-item.complete .progress-dot { border-color: transparent; box-shadow: none; background: transparent; }
.step-proof-stamp { position: absolute; inset: -5px; width: 40px; height: 40px; object-fit: contain; transform: rotate(-7deg); }
@keyframes active-proof-breathe { 50% { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(255,143,189,.14), 0 8px 17px rgba(75,46,31,.12); } }

.workspace {
  width: min(1420px, calc(100% - 32px));
  min-height: calc(100dvh - 156px);
  margin: 0 auto 16px;
  grid-template-columns: minmax(0, 1.4fr) minmax(380px, .72fr);
  gap: clamp(14px, 1.5vw, 22px);
}

/* v0.24.0 — the shell reads as one physical proof desk, not two unrelated cards. */
@media (min-width: 1100px) {
  body {
    background:
      radial-gradient(circle at 7% 4%, rgba(255,226,111,.3), transparent 24rem),
      radial-gradient(circle at 95% 9%, rgba(143,211,255,.23), transparent 28rem),
      linear-gradient(90deg, rgba(255,255,255,.24), transparent 26%, transparent 74%, rgba(255,255,255,.2)),
      var(--proof-desk);
  }
  .workspace {
    grid-template-columns: minmax(0, 1.58fr) minmax(410px, .72fr);
    padding: 10px;
    gap: 10px;
    border: 1px solid rgba(75,46,31,.13);
    border-radius: 26px;
    background: rgba(255,253,249,.3);
    box-shadow: 0 30px 80px rgba(75,46,31,.08);
  }
  .stage-shell { border-radius: 16px 10px 10px 16px; }
  .control-sheet { border-radius: 10px 16px 16px 10px; }
  .control-sheet::before {
    content: 'POLARA / PROOF CONTROLS';
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-height: 29px;
    padding: 0 24px;
    border-bottom: 1px solid var(--proof-hairline);
    color: var(--proof-muted);
    background: #f8f1ea;
    font: 800 .59rem/1 var(--font-ui);
    letter-spacing: .11em;
  }
  .control-scroll { padding-top: 22px; }
  .stage-shell::before { inset: 10px; }
  .stage-shell::after { inset: 20px; }
  .stage-docket { top: 24px; }
  .stage-footline { bottom: 24px; }
}
.stage-shell, .control-sheet {
  border: 1px solid var(--proof-hairline);
  background: var(--proof-paper);
  box-shadow: var(--proof-shadow);
}
.stage-shell {
  height: clamp(530px, calc(100dvh - 156px), 810px);
  border-radius: 20px;
  padding: clamp(14px, 2vw, 26px);
  isolation: isolate;
}
.stage-shell::before {
  inset: 14px;
  border: 1px solid rgba(75,46,31,.07);
  border-radius: 14px;
  background: none;
  opacity: 1;
}
.stage-shell::after {
  content: '';
  position: absolute;
  inset: 24px;
  pointer-events: none;
  background:
    linear-gradient(var(--frame-family-accent), var(--frame-family-accent)) 0 0/18px 1px no-repeat,
    linear-gradient(var(--frame-family-accent), var(--frame-family-accent)) 0 0/1px 18px no-repeat,
    linear-gradient(var(--frame-family-secondary), var(--frame-family-secondary)) 100% 100%/18px 1px no-repeat,
    linear-gradient(var(--frame-family-secondary), var(--frame-family-secondary)) 100% 100%/1px 18px no-repeat;
}
.stage-docket,
.stage-footline {
  display: none;
  position: absolute;
  z-index: 4;
  left: 34px;
  right: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
  color: var(--proof-muted);
  font: 800 .67rem/1.2 var(--font-ui);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.stage-docket { top: 28px; }
.stage-footline { bottom: 28px; justify-content: flex-end; }
.stage-docket strong { color: var(--proof-ink); font-weight: 800; }
.stage-docket::after,
.stage-footline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--proof-hairline);
}
.stage-docket::after { top: calc(100% + 8px); }
.stage-footline::before { bottom: calc(100% + 8px); }
.control-sheet { max-height: calc(100dvh - 156px); border-radius: 20px; }
.control-scroll { padding: 26px 24px 138px; scroll-padding-block: 18px 156px; }

@media (min-width: 1180px) {
  .workspace { min-height: calc(100dvh - 156px); align-items: start; }
  .stage-shell { height: clamp(560px, calc(100dvh - 128px), 840px); }
  .control-sheet { height: calc(100dvh - 156px); max-height: calc(100dvh - 156px); }
}

.control-panel { animation: panel-proof-in 260ms var(--ease-proof) both; }
@keyframes panel-proof-in { from { opacity: .01; transform: translateY(10px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.panel-title { max-width: 15ch; font-size: clamp(1.55rem, 2.2vw, 2rem); line-height: 1.02; letter-spacing: -.025em; }
.panel-copy { margin: 10px 0 22px; color: var(--proof-muted); font-weight: 600; line-height: 1.55; }
.section-label { margin: 20px 0 8px; color: var(--proof-ink); font-size: .76rem; letter-spacing: .02em; }
.tray-head h3 { margin: 0; font-size: 1rem; }

.start-visual { min-height: 100%; grid-template-columns: minmax(0, 1fr) minmax(190px, .58fr); padding: clamp(20px, 5vw, 66px); }
.start-copy h1 { max-width: 620px; font-size: clamp(3rem, 7vw, 6rem); line-height: .88; }
.start-copy p { max-width: 58ch; color: var(--proof-muted); font-weight: 600; }
.hero-strip {
  width: min(68%, 190px);
  padding: 10px;
  border: 1px solid var(--proof-hairline);
  border-radius: 12px;
  background: var(--proof-paper);
  box-shadow: var(--proof-shadow-raised);
  transform: rotate(3deg);
}
.hero-photo { border: 0; border-radius: 7px; background: linear-gradient(135deg, #ffc5dc, #9ed9ff 58%, #d7c8ff); }

.proof-buddy {
  position: absolute;
  z-index: 8;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  width: clamp(82px, 10vw, 136px);
  margin: 0;
  pointer-events: none;
}
.proof-buddy img { display: block; width: 100%; filter: drop-shadow(0 11px 14px rgba(75,46,31,.18)); }
.proof-buddy[data-state="camera"] { right: auto; left: clamp(10px, 2vw, 22px); }
.proof-buddy[data-state="review"] {
  width: clamp(70px, 8vw, 108px);
  right: clamp(8px, 1.5vw, 18px);
  bottom: clamp(34px, 4vw, 54px);
}
.hero-stack::before,
.hero-stack::after {
  content: '';
  position: absolute;
  z-index: 3;
  width: 64px;
  height: 18px;
  border: 1px solid rgba(75,46,31,.08);
  background: rgba(255,226,111,.68);
  box-shadow: 0 5px 12px rgba(75,46,31,.08);
  pointer-events: none;
}
.hero-stack::before { left: 2%; top: 2%; transform: rotate(-11deg); }
.hero-stack::after { right: 0; bottom: 8%; transform: rotate(8deg); }
.proof-buddy[data-state="reveal"] { opacity: 0; }

.choice-btn, .mini-btn, .slot-tab, .slot-card, .tpl-btn, .sticker-btn {
  border-width: 1px;
  border-color: var(--proof-hairline);
  box-shadow: none;
}
.choice-btn { border-radius: 12px; background: #fffaf5; }
.choice-btn.active { border-color: rgba(75,46,31,.45); background: var(--proof-pink); box-shadow: 0 5px 14px rgba(255,143,189,.23); }
.choice-btn:hover, .mini-btn:hover { transform: translateY(-1px); border-color: rgba(75,46,31,.38); }
.choice-btn, .mini-btn, .slot-tab, .slot-card, .tpl-btn, .sticker-btn, .btn,
.header-action, .privacy-trigger, .social-link { touch-action: manipulation; }
.choice-btn:active:not(:disabled), .mini-btn:active:not(:disabled), .slot-tab:active:not(:disabled),
.slot-card:active:not(:disabled), .tpl-btn:active:not(:disabled), .sticker-btn:active:not(:disabled),
.btn:active:not(:disabled), .header-action:active:not(:disabled), .privacy-trigger:active:not(:disabled),
.social-link:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.privacy-note { border: 0; border-radius: 12px; background: #f5eee8; color: var(--proof-muted); }

.camera-stage { width: min(100%, 620px); height: min(100%, 680px); }
.capture-bay {
  position: relative;
  width: min(100%, 500px);
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: var(--proof-paper);
  box-shadow: var(--proof-mat-shadow);
}
.capture-bay-head,
.capture-bay-foot {
  position: absolute;
  z-index: 9;
  left: 0;
  right: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  color: var(--proof-muted);
  font: 800 .72rem/1.2 var(--font-ui);
  background: rgba(255,253,249,.96);
}
.capture-bay-head { top: 0; border-bottom: 1px solid var(--proof-hairline); }
.capture-bay-foot { bottom: 0; border-top: 1px solid var(--proof-hairline); }
.capture-bay-label { color: var(--proof-ink); font-family: var(--font-display); }
#cameraBayCounter { font-variant-numeric: tabular-nums; }
#cameraBayStatus { display: inline-flex; align-items: center; gap: 7px; }
#cameraBayStatus::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--proof-butter);
}
#cameraWrap {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  justify-self: center;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #2c221e;
}
#cameraWrap::before,
#cameraWrap::after {
  content: '';
  position: absolute;
  z-index: 6;
  right: 0;
  left: 0;
  height: 50%;
  pointer-events: none;
  background: var(--proof-paper);
  transform: scaleY(0);
}
#cameraWrap::before { top: 0; transform-origin: top; }
#cameraWrap::after { bottom: 0; transform-origin: bottom; }
#cameraWrap[data-capture-moment="shutter"]::before { animation: proof-shutter-top 360ms var(--ease-proof) both; }
#cameraWrap[data-capture-moment="shutter"]::after { animation: proof-shutter-bottom 360ms var(--ease-proof) both; }
@keyframes proof-shutter-top {
  0%, 100% { transform: scaleY(0); }
  44%, 58% { transform: scaleY(1); }
}
@keyframes proof-shutter-bottom {
  0%, 100% { transform: scaleY(0); }
  44%, 58% { transform: scaleY(1); }
}
#cameraWrap[data-camera-state="ready"] + .capture-bay-foot #cameraBayStatus::before { background: var(--proof-blue); }
#cameraWrap[data-camera-state="demo"] + .capture-bay-foot #cameraBayStatus::before { background: var(--proof-lilac); }
#cameraWrap[data-camera-state="denied"] + .capture-bay-foot #cameraBayStatus::before,
#cameraWrap[data-camera-state="unavailable"] + .capture-bay-foot #cameraBayStatus::before { background: var(--proof-pink); }
.camera-guide { inset: 7%; border-width: 2px; border-radius: 12px; }
#cameraOverlay { background: rgba(255,253,249,.98); }
.camera-overlay-inner { max-width: 300px; gap: 8px; }
.camera-overlay-inner img { width: 138px; }
#cameraOverlayTitle { font: 700 1.25rem/1.1 var(--font-display); text-wrap: balance; }
#cameraMessage { max-width: 36ch; color: var(--proof-muted); font-size: .86rem; }
.shot-badge {
  top: 46px;
  border-width: 1px;
  background: var(--proof-butter);
  box-shadow: 0 8px 20px rgba(75,46,31,.16);
}
.shot-badge[data-state="saved"] { animation: proof-receipt-arrival 520ms var(--ease-proof) both; }
@keyframes proof-receipt-arrival {
  0% { opacity: 0; clip-path: inset(0 50% 0 50% round 999px); transform: translateX(-50%) translateY(-8px); }
  100% { opacity: 1; clip-path: inset(0 round 999px); transform: translateX(-50%) translateY(0); }
}

#countdown {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 48px 24px;
  color: #fff;
  text-align: center;
  background: rgba(44,34,30,.54);
}
#countdown[hidden] { display: none; }
.countdown-proof {
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: var(--radius-pill);
  font: 800 .68rem/1 var(--font-ui);
  letter-spacing: .04em;
}
.countdown-value {
  font: 700 clamp(4.4rem, 15vw, 5.75rem)/.9 var(--font-display);
  letter-spacing: -.03em;
  text-shadow: 0 5px 18px rgba(44,34,30,.25);
  -webkit-text-stroke: 2px var(--proof-ink);
  paint-order: stroke fill;
}
.countdown-cue { font: 700 .82rem/1.2 var(--font-ui); }
.countdown-track {
  width: min(170px, 58%);
  height: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: var(--radius-pill);
  background: rgba(44,34,30,.28);
}
.countdown-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--proof-pink);
  transform: scaleX(var(--countdown-progress, 0));
  transform-origin: left;
  transition: transform 180ms var(--ease-proof);
}
.stage-shell[data-capture-moment="saved"] .proof-buddy[data-state="camera"] {
  animation: poca-capture-ack 520ms var(--ease-proof) both;
}
@keyframes poca-capture-ack {
  0% { filter: drop-shadow(0 9px 12px rgba(75,46,31,.13)); transform: translateY(0) rotate(0); }
  48% { filter: drop-shadow(0 13px 18px rgba(75,46,31,.2)); transform: translateY(-7px) rotate(-3deg); }
  100% { filter: drop-shadow(0 9px 12px rgba(75,46,31,.13)); transform: translateY(0) rotate(0); }
}

.slot-list { gap: 8px; }
.slot-card { min-height: 96px; border-radius: 12px; }
.slot-card.active { border-color: rgba(75,46,31,.56); box-shadow: 0 0 0 3px rgba(143,211,255,.45); }
.slot-card[data-capture-recent="true"] { animation: proof-ticket-feed 560ms var(--ease-proof) both; }
@keyframes proof-ticket-feed {
  0% { opacity: .72; clip-path: inset(0 0 82% 0 round 12px); transform: translateY(-8px); }
  100% { opacity: 1; clip-path: inset(0 round 12px); transform: translateY(0); }
}
.slot-card img, .slot-empty { height: 96px; min-height: 96px; }
.slot-number { border-width: 1px; font-size: .72rem; }
.slot-state {
  position: absolute;
  z-index: 2;
  right: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(255,253,249,.94);
  color: var(--proof-muted);
  font: 800 .62rem/1 var(--font-ui);
  box-shadow: 0 3px 10px rgba(75,46,31,.12);
}
.slot-card[data-proof-state="next"] .slot-state,
.slot-card[data-proof-state="inspecting"] .slot-state { background: var(--proof-blue); color: var(--proof-ink); }
.slot-card[data-proof-state="retake-safe"] .slot-state { background: var(--proof-butter); color: var(--proof-ink); }
.proof-selector .slot-card { background: #fff; }
.review-stage {
  width: min(calc(100% - clamp(82px, 14vw, 150px)), 680px);
  height: 100%;
  min-height: 0;
  justify-self: start;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}
.review-photo-wrap {
  position: relative;
  min-height: 0;
  height: 100%;
  padding: clamp(20px, 3vw, 32px);
  border: 0;
  border-radius: 14px;
  background: var(--proof-mat);
  box-shadow: var(--proof-mat-shadow);
}
.review-pose-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 10px;
}
.review-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 11px;
  pointer-events: none;
  background:
    linear-gradient(var(--proof-registration),var(--proof-registration)) left top / 22px 1px no-repeat,
    linear-gradient(var(--proof-registration),var(--proof-registration)) left top / 1px 22px no-repeat,
    linear-gradient(var(--proof-registration),var(--proof-registration)) right top / 22px 1px no-repeat,
    linear-gradient(var(--proof-registration),var(--proof-registration)) right top / 1px 22px no-repeat,
    linear-gradient(var(--proof-registration),var(--proof-registration)) left bottom / 22px 1px no-repeat,
    linear-gradient(var(--proof-registration),var(--proof-registration)) left bottom / 1px 22px no-repeat,
    linear-gradient(var(--proof-registration),var(--proof-registration)) right bottom / 22px 1px no-repeat,
    linear-gradient(var(--proof-registration),var(--proof-registration)) right bottom / 1px 22px no-repeat;
}
.review-photo-wrap[data-proof-arrival="fresh"] { animation: proof-mat-receive 620ms var(--ease-proof) both; }
.review-photo-wrap[data-proof-arrival="fresh"] #reviewPhoto { animation: fresh-proof-settle 620ms var(--ease-proof) both; }
@keyframes proof-mat-receive {
  0% { box-shadow: 0 7px 18px rgba(75,46,31,.08); }
  100% { box-shadow: var(--proof-mat-shadow); }
}
@keyframes fresh-proof-settle {
  0% { filter: saturate(.84); clip-path: inset(0 0 12% 0); transform: translateY(-10px); }
  100% { filter: saturate(1); clip-path: inset(0); transform: translateY(0); }
}
#reviewPhoto {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: var(--proof-paper);
  box-shadow: 0 14px 32px rgba(75,46,31,.14);
}
.review-proof-tag {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--proof-paper);
  color: var(--proof-ink);
  font: 800 .68rem/1 var(--font-ui);
  box-shadow: 0 5px 14px rgba(75,46,31,.12);
}
.review-caption { display: grid; justify-items: center; gap: 2px; color: var(--proof-ink); }
.review-caption strong { font: 700 .9rem/1.2 var(--font-display); }
.review-caption span { color: var(--proof-muted); font-size: .74rem; }

.canvas-stage {
  --proof-deck-width: min(78%, 760px);
  --proof-deck-height: min(92%, 720px);
  position: relative;
  overflow: hidden;
}
.canvas-stage[data-proof-mode]::before,
.canvas-stage[data-proof-mode]::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--proof-deck-width);
  height: var(--proof-deck-height);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
}
.canvas-stage[data-proof-mode]::before {
  z-index: 0;
  border: 1px solid var(--proof-mat-edge);
  border-radius: 10px;
  background:
    linear-gradient(var(--frame-family-wash), var(--frame-family-wash)),
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(75,46,31,.055) 50%, transparent calc(50% + .5px)),
    linear-gradient(transparent calc(50% - .5px), rgba(75,46,31,.055) 50%, transparent calc(50% + .5px)),
    var(--proof-mat);
  box-shadow: var(--proof-mat-shadow);
}
.canvas-stage[data-proof-mode]::after {
  z-index: 1;
  width: calc(var(--proof-deck-width) + 18px);
  height: calc(var(--proof-deck-height) + 18px);
  background:
    linear-gradient(var(--proof-registration),var(--proof-registration)) 0 0/20px 1px no-repeat,
    linear-gradient(var(--proof-registration),var(--proof-registration)) 0 0/1px 20px no-repeat,
    linear-gradient(var(--proof-registration),var(--proof-registration)) 100% 0/20px 1px no-repeat,
    linear-gradient(var(--proof-registration),var(--proof-registration)) 100% 0/1px 20px no-repeat,
    linear-gradient(var(--proof-registration),var(--proof-registration)) 0 100%/20px 1px no-repeat,
    linear-gradient(var(--proof-registration),var(--proof-registration)) 0 100%/1px 20px no-repeat,
    linear-gradient(var(--proof-registration),var(--proof-registration)) 100% 100%/20px 1px no-repeat,
    linear-gradient(var(--proof-registration),var(--proof-registration)) 100% 100%/1px 20px no-repeat;
}
.canvas-stage[data-proof-mode="strip"] {
  --proof-deck-width: min(46%, 390px);
  --proof-deck-height: min(92%, 740px);
}
.canvas-stage[data-proof-mode="single"] {
  --proof-deck-width: min(78%, 760px);
  --proof-deck-height: min(92%, 720px);
}
.canvas-stage.revealing::before,
.canvas-stage.revealing::after { opacity: 0; }
#canvasScale { position: relative; z-index: 3; border-radius: 8px; box-shadow: var(--proof-shadow-raised); }
.canvas-stage.revealing #canvasScale { animation: reveal-print 680ms var(--ease-proof) both; }
@keyframes reveal-print { 0% { opacity: .01; transform: translateY(-62px) rotate(-1deg); filter: blur(7px); } 72% { opacity: 1; transform: translateY(6px) rotate(.4deg); filter: none; } 100% { opacity: 1; transform: none; filter: none; } }
.reveal-proof-stack { position: absolute; z-index: 1; inset: 8% 10%; pointer-events: none; }
.reveal-proof-stack img { position: absolute; left: 50%; top: 50%; max-width: 46%; max-height: 76%; object-fit: contain; border: 7px solid #fff; box-shadow: var(--proof-shadow); opacity: 0; }
.canvas-stage.revealing .reveal-proof-stack img { animation: proof-stack-in 420ms var(--ease-proof) forwards; }
.reveal-proof-stack img:nth-child(1) { transform: translate(-74%, -49%) rotate(-7deg); }
.reveal-proof-stack img:nth-child(2) { transform: translate(-28%, -50%) rotate(6deg); animation-delay: 70ms; }
@keyframes proof-stack-in { from { opacity: 0; filter: blur(5px); } to { opacity: .55; filter: none; } }
.reveal-buddy { position: absolute; z-index: 6; display: block; right: 3%; bottom: 2%; width: clamp(100px, 15vw, 170px); }

.frame-collection-room {
  min-width: 0;
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--proof-hairline);
}
.frame-collection-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.frame-collection-head h3 { margin: 0; color: var(--proof-ink); font-size: .94rem; }
.frame-collection-head > span {
  flex: 0 0 auto;
  color: var(--proof-muted);
  font-size: .62rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.frame-collection-room > p {
  margin: 4px 0 9px;
  color: var(--proof-muted);
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.38;
}
.frame-collection-filters {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  padding: 3px 3px 7px;
  scroll-padding-inline: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(75,46,31,.28) transparent;
}
.frame-collection-btn {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--proof-hairline);
  border-radius: 12px;
  background: var(--proof-paper-raised);
  color: var(--proof-muted);
  font-size: .67rem;
  font-weight: 800;
  cursor: pointer;
}
.frame-collection-btn:hover { border-color: rgba(75,46,31,.38); color: var(--proof-ink); }
.frame-collection-btn.active {
  border-color: var(--frame-family-accent);
  background: var(--frame-family-wash);
  color: var(--proof-ink);
  box-shadow: 0 5px 14px rgba(75,46,31,.08);
}
.frame-collection-btn-count {
  min-width: 22px;
  padding: 3px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.78);
  color: inherit;
  font-size: .58rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.frame-edition-dossier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  margin: 9px 0 12px;
  padding: 11px 12px;
  border: 1px solid var(--proof-hairline);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--frame-family-wash), transparent 46%), var(--proof-paper-raised);
}
.frame-edition-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.frame-edition-title-row h3 { min-width: 0; }
.frame-edition-kit-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(67, 128, 93, .28);
  border-radius: var(--radius-pill);
  background: rgba(227, 247, 231, .78);
  color: #2f6b47;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1;
  white-space: nowrap;
}
.frame-edition-kit-badge[data-status="pending"] {
  border-color: rgba(168, 92, 52, .28);
  background: rgba(255, 239, 220, .84);
  color: #8a4b2d;
}
.frame-edition-copy { min-width: 0; }
.frame-edition-copy h3 {
  margin: 0;
  color: var(--proof-ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.15;
}
.frame-edition-copy p {
  max-width: 44ch;
  margin: 4px 0 0;
  color: var(--proof-muted);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
}
.frame-edition-palette {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.frame-edition-palette span {
  width: 15px;
  height: 22px;
  border: 1px solid rgba(43,30,25,.16);
  border-radius: 5px;
  background: var(--frame-swatch);
}
.frame-edition-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding-top: 7px;
  border-top: 1px solid var(--proof-hairline);
}
.frame-edition-facts > div { min-width: 0; }
.frame-edition-facts dt {
  color: var(--proof-muted);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.frame-edition-facts dd {
  margin: 3px 0 0;
  color: var(--proof-ink);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.25;
}
.frame-edition-exclusive-fact dd {
  display: flex;
  align-items: center;
  gap: 7px;
}
.frame-edition-exclusive-fact { grid-column: 1 / -1; }
.frame-edition-shelf-state {
  display: inline-block;
  margin-top: 4px;
  color: var(--proof-muted);
  font-size: .56rem;
  font-weight: 800;
}
.frame-edition-dossier[data-off-shelf="true"] .frame-edition-shelf-state {
  color: #8a3b67;
}
.frame-edition-exclusive-fact img {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.asset-rail-status {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 7px;
  color: var(--proof-ink);
}
.asset-rail-status strong { display: block; font-family: var(--font-display); font-size: .78rem; }
.asset-rail-hint { display: block; margin-top: 2px; color: var(--proof-muted); font-size: .6rem; font-weight: 700; }
.asset-rail-meter { flex: 0 0 auto; display: grid; justify-items: end; gap: 4px; }
.asset-rail-meter span { color: var(--proof-muted); font-size: .58rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.asset-rail-meter progress {
  width: 72px;
  height: 5px;
  appearance: none;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--cream-2);
}
.asset-rail-meter progress::-webkit-progress-bar { background: var(--cream-2); }
.asset-rail-meter progress::-webkit-progress-value { background: var(--frame-family-accent); }
.asset-rail-meter progress::-moz-progress-bar { background: var(--frame-family-accent); }
.asset-rail-shell { position: relative; min-width: 0; }
.asset-rail-shell::before,
.asset-rail-shell::after {
  content: '';
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 12px;
  width: 26px;
  opacity: 1;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.asset-rail-shell::before { left: 0; background: linear-gradient(90deg, var(--proof-paper), transparent); }
.asset-rail-shell::after { right: 0; background: linear-gradient(270deg, var(--proof-paper), transparent); }
.asset-rail-shell[data-at-start="true"]::before,
.asset-rail-shell[data-at-end="true"]::after { opacity: 0; }

#templateList {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(140px, 46%, 164px);
  gap: 10px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 18px 12px 3px;
  scroll-padding-inline: 3px 18px;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(75,46,31,.28) transparent;
}
.tpl-btn { min-width: 0; padding: 7px; border-radius: 12px; background: #fff; scroll-snap-align: start; }
.tpl-btn.active {
  border-color: var(--frame-card-accent, #176a9e);
  background: #fff8fb;
  box-shadow: 0 0 0 3px var(--frame-card-secondary, rgba(143,211,255,.45)), 0 10px 22px rgba(75,46,31,.11);
}
.tpl-thumb {
  height: 144px;
  padding: 7px;
  border: 0;
  border-radius: 8px;
  background: #eee5dd;
  box-shadow: inset 0 0 0 1px rgba(75,46,31,.08);
  isolation: isolate;
}
#templateList.mode-strip .tpl-thumb { height: 184px; }
.tpl-thumb-image {
  border-radius: 5px;
  filter: saturate(.94) contrast(1.02) drop-shadow(0 5px 5px rgba(75,46,31,.15));
}
.tpl-btn[data-frame-state="active"] .tpl-thumb-image { filter: saturate(1) contrast(1.04) drop-shadow(0 6px 7px rgba(75,46,31,.18)); }
.tpl-btn[data-frame-state="inactive"] .tpl-thumb-image { opacity: .82; filter: saturate(.82) contrast(1) drop-shadow(0 4px 5px rgba(75,46,31,.12)); }
.tpl-btn[data-frame-state="unavailable"] .tpl-thumb-image { opacity: .56; filter: grayscale(.92) saturate(.35); }
.tpl-thumb[data-preview-state="fallback"] { outline: 1px dashed var(--proof-registration); outline-offset: -4px; }
.tpl-preview-note {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(255,253,249,.92);
  color: var(--proof-muted);
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
}
.tpl-format-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(43,30,25,.88);
  color: #fffaf5;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
}
.tpl-badge { border: 0; border-radius: 7px; box-shadow: 0 3px 10px rgba(75,46,31,.12); }
.tpl-name { font: 700 .84rem/1.2 var(--font-display); }
.tpl-family-material {
  display: block;
  margin-top: 3px;
  color: var(--proof-muted);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.photo-adjust { border-top: 1px solid var(--proof-hairline); }
.ph-slot[data-photo-selectable="true"] { cursor: pointer; }
.ph-slot[data-photo-selectable="true"]:focus-visible { outline: 3px solid var(--proof-focus); outline-offset: -3px; }
.ph-slot[data-photo-selectable="false"] { cursor: default; pointer-events: none; }
.tpl-btn[data-frame-state="unavailable"] { cursor: not-allowed; }
.slot-tab.active { background: var(--proof-blue); }
.caption-availability-note { border: 0; background: #fff7dc; }
.tray-head > img { display: none; }
.decorate-panel .panel-copy { margin-bottom: 18px; }
.proof-note {
  padding: 13px 0 16px;
  border-block: 1px solid var(--proof-hairline);
}
.proof-note h3,
.sticker-bench h3 { margin: 0; color: var(--proof-ink); font-size: .96rem; }
.proof-note .field-label { margin-top: 10px; }
.proof-note .caption-availability-note { margin-bottom: 0; }
.sticker-bench { margin-top: 18px; }
.sticker-bench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
#stickerBenchStatus {
  margin: 4px 0 0;
  color: var(--proof-muted);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.35;
}
.sticker-bench .editor-actions { flex: 0 0 auto; margin: 0; }
.sticker-bench .mini-btn { min-height: 44px; padding-inline: 11px; }
.sticker-bench .mini-btn:disabled {
  opacity: .44;
  border-color: var(--proof-hairline);
  background: #f1eae4;
  box-shadow: none;
  transform: none;
}
.sticker-rail-label {
  margin: 14px 0 7px;
}
.sticker-rail-label small { display: block; margin-top: 2px; color: var(--proof-muted); font-size: .6rem; font-weight: 700; }
#stickerRailHint { margin: -4px 0 5px; }
#stickerTray {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(92px, 29%, 112px);
  gap: 10px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 22px 12px 3px;
  scroll-padding-inline: 3px 22px;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(75,46,31,.28) transparent;
}
.sticker-btn {
  position: relative;
  min-width: 0;
  min-height: 148px;
  padding: 8px 7px 7px;
  border-radius: 12px;
  background: #fffaf5;
  scroll-snap-align: start;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.sticker-btn img { height: 72px; }
.sticker-label {
  min-height: 2.3em;
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.15;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: var(--font-display);
}
.sticker-kind {
  width: 100%;
  color: var(--proof-muted);
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}
.sticker-btn.exclusive {
  border-color: rgba(204,79,130,.42);
  background: #fff4f8;
  box-shadow: inset 0 0 0 1px rgba(255,143,189,.16);
}
.sticker-btn.exclusive:hover { border-color: var(--proof-pink); background: #fff8fb; }
.sticker-btn.exclusive { min-height: 148px; }
.sticker-family-match {
  width: 100%;
  overflow: hidden;
  color: #9a2f65;
  font-size: .5rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: normal;
}
.sticker-badge {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 6px;
  max-width: calc(100% - 12px);
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--proof-blue);
  color: #fff;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
}
.sticker-btn:hover {
  border-color: rgba(75,46,31,.38);
  background: var(--proof-paper);
  box-shadow: 0 8px 18px rgba(75,46,31,.09);
  transform: translateY(-2px);
}
.sticker-inspector {
  min-height: 86px;
  display: grid;
  grid-template-columns: 66px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--proof-hairline);
  border-radius: 14px;
  background: #f7f0e9;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.sticker-inspector[data-state="empty"],
.sticker-inspector[data-state="placed"] { grid-template-columns: minmax(0,1fr); }
.sticker-inspector[data-state="editing"] {
  border-color: rgba(75,46,31,.32);
  background: #fff8fb;
  box-shadow: 0 9px 22px rgba(75,46,31,.08);
}
.sticker-inspector img { width: 66px; height: 62px; display: block; object-fit: contain; }
.sticker-inspector-copy { min-width: 0; }
.sticker-inspector strong {
  display: block;
  overflow: hidden;
  color: var(--proof-ink);
  font: 700 .82rem/1.25 var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sticker-inspector p { margin: 5px 0 0; color: var(--proof-muted); font-size: .68rem; font-weight: 600; line-height: 1.4; }
.sticker-btn:focus-visible, .tpl-btn:focus-visible { position: relative; z-index: 3; }
.reveal-panel {
  min-height: 100%;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.reveal-panel img {
  width: 170px;
  max-height: 170px;
  margin-bottom: 8px;
  transition: opacity 180ms var(--ease-proof), transform 180ms var(--ease-proof);
}
.reveal-panel .panel-title { max-width: 18ch; text-wrap: balance; }
.panel-title:focus { outline: none; }
.reveal-panel .panel-copy { max-width: 42ch; margin-inline: auto; text-wrap: balance; }
.reveal-panel .privacy-note { width: min(100%, 420px); text-align: center; }
.reveal-dossier {
  position: relative;
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: 112px minmax(0,1fr);
  gap: 15px;
  align-items: center;
  margin: 4px auto 16px;
  padding: 15px;
  border: 1px solid rgba(75,46,31,.3);
  border-radius: 16px;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(75,46,31,.045) 50%, transparent 50.2%),
    #fffaf2;
  box-shadow: 0 12px 26px rgba(75,46,31,.09), inset 0 0 0 4px rgba(255,255,255,.7);
  text-align: left;
}
.reveal-dossier-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--proof-hairline);
  color: var(--proof-muted);
  font: 800 .57rem/1 var(--font-ui);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.reveal-dossier-head strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2b6d58;
  font-weight: 800;
  letter-spacing: .07em;
}
.reveal-dossier-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5aa980;
  box-shadow: 0 0 0 3px rgba(90,169,128,.15);
}
.reveal-dossier::before,
.reveal-dossier::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(75,46,31,.23);
  border-radius: 50%;
  background: var(--proof-paper);
  transform: translateX(-50%);
}
.reveal-dossier::before { top: -7px; }
.reveal-dossier::after { bottom: -7px; }
.reveal-approval-seal {
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  padding: 10px;
  border: 3px double var(--proof-pink);
  border-radius: 50%;
  color: #a62f6b;
  background: rgba(255,143,189,.09);
  outline: 1px dashed rgba(166,47,107,.52);
  outline-offset: -8px;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-5deg);
}
.reveal-approval-seal span { font-size: .55rem; font-weight: 800; letter-spacing: .13em; }
.reveal-approval-seal strong { display: block; font: 700 .9rem/1.05 var(--font-display); }
.reveal-facts { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 12px; margin: 0; }
.reveal-facts div { min-width: 0; padding-top: 8px; border-top: 1px solid var(--proof-hairline); }
.reveal-facts dt { color: var(--proof-muted); font-size: .54rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.reveal-facts dd { overflow-wrap: anywhere; margin: 4px 0 0; color: var(--proof-ink); font: 700 .68rem/1.3 var(--font-display); }
.control-sheet[data-reveal-state="processing"] .reveal-dossier { display: none; }
.control-sheet[data-reveal-state="ready"] .reveal-dossier { animation: dossier-approved 360ms var(--ease-proof) both; }
@keyframes dossier-approved {
  from { opacity: 0; transform: translateY(12px) rotate(.7deg); }
  to { opacity: 1; transform: none; }
}
.control-sheet[data-reveal-state="ready"] .reveal-panel {
  align-content: center;
  padding-block: clamp(20px, 4vh, 48px);
}
.control-sheet[data-reveal-state="ready"] #revealPanelPoca { display: none; }
.control-sheet[data-reveal-state="ready"] .reveal-panel .panel-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  letter-spacing: -.03em;
}
.control-sheet[data-reveal-state="ready"] .reveal-panel .panel-copy,
.control-sheet[data-reveal-state="ready"] .reveal-panel .privacy-note { display: none; }

.control-sheet[data-step="reveal"] .action-row {
  display: grid;
  grid-template-columns: minmax(64px,.72fr) minmax(88px,1fr) minmax(96px,1fr);
  align-items: stretch;
  padding-top: 0;
}
.control-sheet[data-step="reveal"] .action-dock {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid var(--proof-hairline);
  background: var(--proof-paper);
}
.control-sheet[data-step="reveal"] .action-row .btn { width: 100%; min-width: 0; }
.control-sheet[data-step="reveal"] #primaryBtn {
  grid-column: 1 / -1;
  grid-row: 2;
}

.action-dock { background: linear-gradient(180deg, transparent, rgba(255,253,249,.96) 24%, var(--proof-paper) 48%); }
.btn { min-height: 48px; border-width: 1px; border-radius: 12px; box-shadow: 0 6px 16px rgba(75,46,31,.09); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(75,46,31,.13); }
.btn-primary { background: var(--proof-pink); }
.btn-secondary { background: var(--proof-blue); }
:focus-visible { outline: 3px solid #176a9e; outline-offset: 3px; }
.status-bar { color: var(--proof-muted); }
/* Pose Mate is an opt-in layer inside the established Proof Table world. */
.experience-choose .choice-btn { position: relative; text-align: left; }
.experience-choose .choice-btn[data-experience="pose-mate"]::after {
  content: 'NEW';
  position: absolute;
  top: 7px;
  right: 8px;
  padding: 3px 6px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--proof-yellow);
  color: var(--brown);
  font: 800 .55rem/1 var(--font-ui);
  letter-spacing: .08em;
}
.guest-choose { margin-top: 13px; }
.guest-option-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.guest-option {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid var(--proof-hairline);
  border-radius: 12px;
  background: var(--proof-paper);
  color: var(--brown);
  text-align: left;
}
.guest-option:hover { border-color: var(--outline); background: #fff7fb; }
.guest-option.active { border-color: var(--outline); box-shadow: inset 0 0 0 2px var(--proof-pink); }
.guest-option[aria-busy="true"] { cursor: progress; opacity: .72; }
.guest-option-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #ffe1ed, #f2b8d2);
  color: #71304e;
  font: 800 .9rem/1 var(--font-display);
}
.guest-option-avatar-mina { background: linear-gradient(145deg, #e1f1ff, #b9d7f4); color: #235179; }
.guest-option-avatar-byun { background: linear-gradient(145deg, #dceeff, #a8ccee); color: #2f5175; }
.guest-option-avatar-wonyoung { background: linear-gradient(145deg, #f2e8ff, #d8c6f0); color: #684b86; }
.guest-option-avatar-yeji { background: linear-gradient(145deg, #ece9eb, #c5c0c5); color: #403b42; }
.guest-option > span:last-child { min-width: 0; font: 800 .76rem/1.15 var(--font-ui); }
.guest-option small { display: block; margin-top: 3px; color: var(--proof-muted); font-size: .61rem; font-weight: 700; }
.start-guest-preview {
  position: absolute;
  z-index: 2;
  right: -14%;
  bottom: -5%;
  width: 72%;
  max-width: none;
  filter: drop-shadow(0 16px 20px rgba(75,46,31,.2));
  pointer-events: none;
}
.stage-shell[data-experience="pose-mate"] .start-guest-preview {
  right: -8%;
  bottom: 2%;
  width: 58%;
  filter: drop-shadow(0 11px 13px rgba(75,46,31,.2));
  z-index: 4;
}
.stage-shell[data-experience="pose-mate"][data-step="start"] .proof-buddy {
  visibility: hidden;
  opacity: 0;
}
.camera-timer-controls { margin-top: 14px; }
.camera-timer-controls .section-label { margin-top: 0; }
.timer-grid .choice-btn { min-height: 62px; display: grid; place-items: center; gap: 2px; padding: 8px 10px; }
.timer-value { font: 800 .82rem/1 var(--font-ui); }
.timer-state { min-height: 1em; color: var(--proof-ink); font: 800 .52rem/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; visibility: hidden; }
.timer-grid .choice-btn.active .timer-state { visibility: visible; }
.timer-selection { margin: 10px 0 0; color: var(--proof-ink); font: 700 .7rem/1.35 var(--font-ui); }
.timer-help { margin: 8px 0 0; color: var(--proof-muted); font-size: .68rem; line-height: 1.4; }
.timer-grid .choice-btn:disabled { cursor: not-allowed; opacity: .58; transform: none; }
.stage-shell[data-experience="pose-mate"] .hero-strip { transform: translateX(-9%) rotate(-3deg); }
.stage-shell[data-experience="pose-mate"] .hero-photo {
  background: linear-gradient(145deg, #ffe8f2 0 54%, #d7efff 54% 100%);
}

#cameraWrap[data-pose-mate="true"] #video,
.review-photo-wrap[data-pose-mate="true"] .review-photo-region {
  position: absolute;
  left: var(--pose-user-x);
  top: var(--pose-user-y);
  width: var(--pose-user-width);
  height: var(--pose-user-height);
  max-width: none;
  overflow: hidden;
}
#cameraWrap[data-pose-mate="true"] #video { z-index: 1; object-fit: cover; }
.review-photo-region { position: relative; width: 100%; height: 100%; overflow: hidden; }
.review-photo-wrap:not([data-pose-mate="true"]) .review-pose-window {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: visible;
}
.review-photo-wrap:not([data-pose-mate="true"]) .review-photo-region { display: grid; place-items: center; }
.review-photo-wrap:not([data-pose-mate="true"]) #reviewPhoto {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pose-user-guide {
  position: absolute;
  z-index: 3;
  left: var(--pose-user-x);
  top: var(--pose-user-y);
  width: var(--pose-user-width);
  height: var(--pose-user-height);
  border: 2px dashed rgba(255,255,255,.84);
  border-radius: 42% 42% 18% 18%;
  box-shadow: 0 0 0 999px rgba(49,31,24,.08);
  pointer-events: none;
}
.pose-user-guide::after {
  content: attr(data-pose-cue);
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  padding: 5px 10px;
  border: 1px solid rgba(75,46,31,.28);
  border-radius: 999px;
  background: rgba(255,253,249,.88);
  color: var(--brown);
  font: 800 clamp(.6rem, 1.5vw, .76rem)/1 var(--font-ui);
  white-space: nowrap;
}
.pose-guest-layer {
  position: absolute;
  z-index: 4;
  overflow: hidden;
  filter: drop-shadow(0 9px 13px rgba(75,46,31,.19));
  pointer-events: none;
}
.pose-guest-preview,
.review-guest {
  display: block;
  max-width: none;
  pointer-events: none;
}
.review-photo-wrap[data-pose-mate="true"] { background: linear-gradient(145deg, #ffe8f2, #dcefff); }
.review-photo-wrap[data-pose-mate="true"] .review-pose-window {
  background: linear-gradient(145deg, rgba(255,232,242,.9), rgba(220,239,255,.9));
}
.review-photo-wrap[data-pose-mate="true"] #reviewPhoto { display: block; max-width: none; }
.review-photo-wrap[data-pose-mate="true"] .review-guest { display: block; }

.pose-mate-controls {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid var(--proof-hairline);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,232,242,.8), rgba(223,240,255,.74)),
    var(--proof-paper);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.58);
}
.pose-mate-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.pose-mate-head h3 { margin: 2px 0 0; font-size: 1.06rem; }
.pose-mate-kicker {
  color: #9a2f65;
  font-size: .63rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pose-cue {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--proof-yellow);
  font-size: .68rem;
}
.pose-mate-controls .section-label { margin-top: 13px; }
.pose-mate-controls .choice-btn { min-height: 46px; padding: 8px; font-size: .72rem; }
.guest-adjust { margin-block: 12px; border-block: 1px solid var(--proof-hairline); }
.guest-adjust summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding-block: 8px; cursor: pointer; font-weight: 800; }
.guest-adjust summary::after { content: ''; width: 7px; height: 7px; margin: 0 4px 4px 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.guest-adjust[open] summary::after { transform: rotate(225deg); margin-bottom: 0; }
.guest-adjust-photo { margin-left: auto; color: var(--muted); font-size: .75rem; }
.guest-adjust fieldset { border: 0; margin: 0; padding: 0 0 12px; min-width: 0; }
.guest-adjust-hint { margin: 0 0 8px; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.guest-adjust .range-field { grid-template-columns: 80px minmax(0, 1fr) 44px; }
.guest-adjust input[type="range"] { min-height: 44px; min-width: 0; touch-action: pan-y; }
.guest-adjust output { font-variant-numeric: tabular-nums; text-align: right; }
.guest-adjust-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.guest-adjust-actions .mini-btn { flex: 1 1 auto; min-height: 44px; }
.guest-adjust fieldset:disabled { opacity: .55; }
.guest-adjust :is(summary, input, button):focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
.guest-side-toggle { min-height: 44px; width: 100%; margin-top: 10px; }
.pose-mate-note { margin: 10px 0 0; color: var(--proof-muted); font-size: .68rem; line-height: 1.45; }

@media (min-width: 1180px) {
  .stage-docket,
  .stage-footline { display: flex; }
  /* Give the tall Strip proof a deliberate paper deck on wide screens so the
     portrait print reads as an object, not a narrow column lost in whitespace. */
  .canvas-stage[data-proof-mode="strip"] {
    --proof-deck-width: min(68%, 560px);
    --proof-deck-height: min(96%, 780px);
  }
}

.privacy-dialog { width: min(660px, calc(100% - 30px)); border: 0; border-radius: 18px; box-shadow: 0 28px 90px rgba(75,46,31,.25); }
.privacy-dialog::backdrop { background: rgba(61,42,33,.42); backdrop-filter: blur(5px); }
.privacy-dialog-body { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; padding: 28px; background: var(--proof-paper); }
.privacy-dialog-body img { width: 100%; }
.privacy-dialog h2 { margin: 0; font-size: 2rem; line-height: 1; }
.privacy-dialog p, .privacy-dialog li { color: var(--proof-muted); font-weight: 600; line-height: 1.5; }
.privacy-dialog ul { padding-left: 1.2rem; margin: 14px 0 20px; }

@media (max-width: 900px) {
  .app-header { min-height: 58px; }
  .brand-tag { display: none; }
  .workspace { min-height: auto; grid-template-columns: 1fr; }
  .stage-shell { height: min(52dvh, 560px); min-height: 380px; }
  .control-sheet {
    height: min(52dvh, 560px);
    min-height: min(430px, 52dvh);
    max-height: min(52dvh, 560px);
  }
  .control-scroll { min-height: 0; padding-bottom: 130px; }
  .action-dock { position: relative; flex: 0 0 auto; }
  .start-visual { grid-template-columns: 1fr minmax(130px,.45fr); padding: 28px; }
  .start-copy h1 { font-size: clamp(2.7rem, 10vw, 5rem); }
  .proof-buddy { width: clamp(76px, 15vw, 112px); }
  .camera-stage { height: calc(100% - clamp(20px, 4vw, 36px)); min-height: 0; overflow: hidden; }
  .capture-bay, .review-stage { height: 100%; min-height: 0; max-height: 100%; }
  .camera-stage { --capture-sidecar: clamp(70px, 15vw, 112px); }
  .capture-bay { width: min(calc(100% - var(--capture-sidecar)), 500px); justify-self: end; }
  .proof-buddy[data-state="camera"] { width: clamp(60px, 12vw, 84px); left: 8px; }
  .review-photo-wrap { min-height: 0; }
  #templateList { grid-auto-columns: clamp(164px, 40%, 260px); }
  #stickerTray { grid-auto-columns: clamp(100px, 28%, 188px); }
}

@media (min-width: 541px) and (max-width: 900px) and (min-height: 700px) {
  .stage-shell { height: 42dvh; min-height: 390px; }
  .control-sheet { height: 44dvh; min-height: 410px; max-height: 44dvh; }
}

@media (max-width: 540px) {
  .app-header { padding-inline: 12px; }
  .brand-logo { height: 34px; }
  .privacy-trigger { width: 44px; padding: 5px; justify-content: center; }
  .privacy-trigger span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-action { padding-inline: 10px; font-size: .75rem; }
  .progress-wrap { width: calc(100% - 16px); margin: 8px auto 10px; padding: 0; }
  .progress-label { font-size: .56rem; }
  .progress-dot { width: 27px; height: 27px; font-size: .68rem; }
  .step-proof-stamp { inset: -5px; width: 37px; height: 37px; }
  .progress-list::before { top: 13px; }
  .progress-list::after { top: 11px; }
  .workspace { width: calc(100% - 16px); gap: 8px; margin-bottom: 8px; }
  .stage-shell { height: 42dvh; min-height: 315px; padding: 10px; border-radius: 15px; }
  .stage-shell::before { inset: 8px; border-radius: 10px; }
  .stage-shell::after { inset: 15px; }
  .control-sheet { height: 44dvh; min-height: min(360px, 44dvh); max-height: 44dvh; border-radius: 15px; }
  .control-scroll { padding: 20px 16px 130px; }
  .panel-title { font-size: 1.55rem; }
  .panel-copy { margin-bottom: 16px; font-size: .86rem; }
  [data-panel="frame"] .panel-copy { margin-bottom: 10px; }
  .frame-edition-dossier { gap: 6px 9px; margin-bottom: 9px; padding: 9px 10px; }
  .frame-edition-copy h3 { font-size: .9rem; }
  .frame-edition-copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: .64rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .frame-edition-palette span { width: 12px; height: 18px; }
  .frame-edition-facts { gap: 5px; padding-top: 5px; }
  .frame-edition-facts dt { font-size: .5rem; }
  .frame-edition-facts dd { font-size: .61rem; }
  .frame-edition-exclusive-fact img { width: 21px; height: 21px; }
  .start-visual { min-height: 100%; grid-template-columns: 1fr .48fr; gap: 8px; padding: 18px; }
  .start-copy h1 { font-size: clamp(2.25rem, 13vw, 3.6rem); }
  .start-copy p { margin-top: 12px; font-size: .8rem; line-height: 1.45; }
  .hero-strip { width: 76%; padding: 6px; }
  .start-guest-preview { right: -22%; bottom: -2%; width: 88%; }
  .hero-photo { margin-bottom: 5px; }
  .proof-buddy { width: 74px; right: 8px; bottom: 8px; }
  .capture-bay-head, .capture-bay-foot { min-height: 27px; padding: 5px 9px; font-size: .62rem; }
  .camera-overlay-inner img { width: 96px; }
  #cameraOverlayTitle { font-size: 1.05rem; }
  #cameraMessage { font-size: .72rem; }
  .review-stage { gap: 7px; }
  .review-photo-wrap { min-height: 0; padding: 17px; }
  .review-photo-wrap::before { inset: 8px; }
  .review-proof-tag { top: 10px; left: 10px; padding: 5px 7px; font-size: .6rem; }
  .review-caption strong { font-size: .78rem; }
  .review-caption span { font-size: .64rem; }
  .slot-card, .slot-card img, .slot-empty { min-height: 78px; height: 78px; }
  .slot-state { right: 4px; bottom: 4px; padding: 3px 5px; font-size: .55rem; }
  .pose-mate-controls { padding: 12px; }
  .pose-mate-note { font-size: .64rem; }
  #templateList { grid-auto-columns: clamp(132px, 46%, 154px); }
  .tpl-thumb { height: 112px; }
  #templateList.mode-strip .tpl-thumb { height: 146px; }
  #stickerTray { grid-auto-columns: clamp(92px, 31%, 106px); }
  .sticker-bench-head { align-items: center; }
  .sticker-bench .editor-actions { gap: 6px; }
  .sticker-bench .mini-btn { padding-inline: 9px; font-size: .68rem; }
  .sticker-inspector { min-height: 80px; grid-template-columns: 58px minmax(0,1fr); }
  .sticker-inspector img { width: 58px; height: 56px; }
  .sticker-bench[data-state="editing"] { display: flex; flex-direction: column; }
  .sticker-bench[data-state="editing"] .sticker-bench-head { order: 0; }
  .sticker-bench[data-state="editing"] .sticker-inspector { order: 1; }
  .sticker-bench[data-state="editing"] .sticker-rail-label { order: 2; }
  .sticker-bench[data-state="editing"] #stickerRailHint { order: 3; }
  .sticker-bench[data-state="editing"] #stickerRailShell { order: 4; }
  .reveal-dossier { grid-template-columns: 88px minmax(0,1fr); gap: 12px; padding: 12px; }
  .reveal-dossier-head { padding-bottom: 8px; font-size: .53rem; }
  .reveal-facts { gap: 8px 10px; }
  .reveal-approval-seal strong { font-size: .76rem; }
  .privacy-dialog {
    width: 100%; max-width: none; margin: auto 0 0; border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .privacy-dialog-body { grid-template-columns: 92px 1fr; gap: 14px; padding: 20px 16px; }
  .privacy-dialog h2 { font-size: 1.55rem; }
  .privacy-dialog p, .privacy-dialog li { font-size: .78rem; }
  .privacy-dialog ul { grid-column: 1 / -1; margin-block: 0 12px; }
  .privacy-dialog .btn { grid-column: 1 / -1; width: 100%; }
  .app-footer { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

@media (max-height: 560px) and (orientation: landscape) {
  .progress-wrap, .status-bar { display: none !important; }
  .app-header { position: fixed; z-index: 30; top: 8px; right: 8px; display: block; min-height: 0; padding: 0; border: 0; background: transparent; }
  .app-header .brand, .app-header .header-action { display: none; }
  .app-header .header-tools { display: block; }
  .app-header .privacy-trigger {
    width: 44px;
    padding: 5px;
    justify-content: center;
    border-color: rgba(75,46,31,.26);
    box-shadow: 0 8px 20px rgba(75,46,31,.14);
  }
  .app-header .privacy-trigger span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .workspace { width: calc(100% - 12px); height: calc(100dvh - 12px); min-height: 0; margin: 6px auto; grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr); gap: 8px; }
  .stage-shell, .control-sheet { height: 100%; min-height: 0; max-height: 100%; border-radius: 12px; }
  .control-scroll { padding: 16px 16px 108px; }
  .action-dock { margin-top: -96px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .panel-title { font-size: 1.35rem; }
  .panel-copy { margin: 7px 0 12px; font-size: .76rem; }
  .start-visual { grid-template-columns: 1fr .45fr; padding: 16px 30px; }
  .start-copy h1 { font-size: min(10vh, 3.25rem); }
  .start-copy p { max-width: 48ch; font-size: .72rem; }
  .start-guest-preview { width: 64%; right: -7%; }
  .pose-mate-controls { padding: 10px; margin-top: 9px; }
  .pose-mate-note { display: none; }
  .proof-buddy { width: 68px; }
  #templateList { max-height: none; grid-auto-columns: clamp(132px, 45%, 150px); }
  #templateList.mode-strip .tpl-thumb { height: 132px; }
  #stickerTray { grid-auto-columns: clamp(88px, 34%, 104px); max-height: none; }
  .proof-note { padding-block: 9px 11px; }
  .sticker-bench { margin-top: 12px; }
  .sticker-rail-label { margin-top: 9px; }
  .sticker-inspector { min-height: 66px; margin-top: 8px; padding-block: 8px; }
  .sticker-inspector p { display: none; }
  .control-sheet[data-reveal-state="ready"] .reveal-panel { padding-block: 4px; }
  .reveal-panel .privacy-note { display: none; }
  .reveal-dossier { grid-template-columns: 72px minmax(0,1fr); gap: 9px; margin-bottom: 6px; padding: 9px; }
  .reveal-dossier-head { padding-bottom: 6px; font-size: .48rem; }
  .reveal-facts { gap: 6px 8px; }
  .reveal-facts div { padding-top: 5px; }
  .reveal-facts dd { font-size: .6rem; }
  .reveal-approval-seal span { font-size: .46rem; }
  .reveal-approval-seal strong { font-size: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .control-panel, .progress-item.current .progress-dot, .canvas-stage.revealing #canvasScale,
  .canvas-stage.revealing .reveal-proof-stack img, .control-sheet[data-reveal-state="ready"] .reveal-dossier { animation: none !important; }
  .progress-wrap.rail-approved .progress-list::after { animation: none; transform: scaleX(1); }
  .proof-buddy { transition: none; }
  .reveal-panel img { transition: none; }
  .sticker-btn, .sticker-inspector { transition: none; }
  #cameraWrap::before,
  #cameraWrap::after,
  .shot-badge[data-state="saved"],
  .slot-card[data-capture-recent="true"],
  .review-photo-wrap[data-proof-arrival="fresh"],
  .review-photo-wrap[data-proof-arrival="fresh"] #reviewPhoto,
  .stage-shell[data-capture-moment="saved"] .proof-buddy[data-state="camera"] { animation: none !important; }
  .countdown-track i { transition: none; }
}

/* v0.29.0: one authored opening moment leads into the existing Proof Desk. */
html.boot-pending,
html.boot-pending body { overflow: hidden; }
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: var(--proof-desk);
  color: var(--brown);
  isolation: isolate;
}
html.boot-pending .boot-screen { display: grid; }
.boot-shutter {
  position: absolute;
  z-index: -1;
  left: 0;
  width: 100%;
  height: calc(50% + 2px);
  border-color: var(--proof-hairline);
  background-color: var(--proof-paper);
  background-image:
    linear-gradient(90deg, transparent 0 9%, rgba(75,46,31,.055) 9% 9.12%, transparent 9.12% 90.88%, rgba(75,46,31,.055) 90.88% 91%, transparent 91%),
    radial-gradient(circle, rgba(75,46,31,.09) 0 1px, transparent 1.2px);
  background-size: auto, 24px 24px;
  transition: transform 680ms cubic-bezier(.2,.78,.18,1);
}
.boot-shutter-top { top: 0; border-bottom: 1px solid var(--proof-hairline); }
.boot-shutter-bottom { bottom: 0; border-top: 1px solid var(--proof-hairline); }
.boot-registration {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: max(22px, env(safe-area-inset-right));
  left: max(22px, env(safe-area-inset-left));
  display: flex;
  justify-content: space-between;
  color: var(--proof-muted);
  font: 800 .6rem/1 var(--font-ui);
  letter-spacing: .13em;
}
.boot-proof {
  position: relative;
  width: min(360px, calc(100vw - 44px));
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(22px, 5vw, 34px) clamp(20px, 5vw, 32px) 26px;
  border: 1px solid var(--proof-hairline);
  border-radius: 16px;
  background: var(--proof-paper);
  box-shadow: 0 22px 54px rgba(75,46,31,.16), 0 6px 0 rgba(75,46,31,.07);
  transition: opacity 320ms ease, transform 560ms cubic-bezier(.2,.78,.18,1), filter 320ms ease;
}
.boot-proof::before,
.boot-proof::after {
  content: '';
  position: absolute;
  top: 14px;
  width: 13px;
  height: 13px;
  border-top: 1px solid var(--brown);
}
.boot-proof::before { left: 14px; border-left: 1px solid var(--brown); }
.boot-proof::after { right: 14px; border-right: 1px solid var(--brown); }
.boot-proof-label {
  justify-self: stretch;
  color: var(--proof-muted);
  font: 800 .62rem/1 var(--font-ui);
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}
.boot-poca {
  width: clamp(150px, 45vw, 210px);
  height: clamp(150px, 45vw, 210px);
  object-fit: contain;
  filter: drop-shadow(0 13px 16px rgba(75,46,31,.16));
  transform-origin: 50% 82%;
  animation: boot-poca-arrival 720ms cubic-bezier(.16,.84,.24,1) both;
}
.boot-wordmark { width: 126px; height: auto; }
.boot-proof p { margin: 0; color: var(--proof-muted); font-size: .8rem; line-height: 1.4; text-align: center; }
.boot-progress {
  width: min(220px, 100%);
  height: 7px;
  overflow: hidden;
  border: 1px solid var(--proof-hairline);
  border-radius: var(--radius-pill);
  background: var(--cream-2);
}
.boot-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--proof-pink);
  transform: scaleX(.08);
  transform-origin: left;
  animation: boot-progress-fill 1040ms cubic-bezier(.2,.72,.2,1) forwards;
}
.boot-local-note {
  position: absolute;
  right: 22px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 22px;
  margin: 0;
  color: var(--proof-muted);
  font-size: .7rem;
  text-align: center;
}
.boot-screen.is-opening .boot-shutter-top { transform: translateY(-102%); }
.boot-screen.is-opening .boot-shutter-bottom { transform: translateY(102%); }
.boot-screen.is-opening .boot-proof { opacity: 0; filter: blur(5px); transform: translateY(-12px) scale(.98); }
.boot-ready-stamp {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(78,183,248,.5);
  border-radius: 999px;
  color: #17608c;
  background: rgba(219,244,255,.82);
  font: 800 .62rem/1 var(--font-ui);
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.boot-screen.is-ready .boot-ready-stamp { opacity: 1; transform: none; }
@keyframes boot-poca-arrival {
  0% { opacity: 0; transform: translateY(18px) rotate(-4deg) scale(.9); }
  68% { opacity: 1; transform: translateY(-4px) rotate(1deg) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes boot-progress-fill { to { transform: scaleX(1); } }
html.app-entering .workspace { animation: proof-desk-arrival 720ms cubic-bezier(.2,.78,.18,1) both; }
@keyframes proof-desk-arrival {
  0% { opacity: .35; clip-path: inset(7% 2% 7% 2% round 20px); transform: translateY(14px) scale(.985); }
  100% { opacity: 1; clip-path: inset(0 round 0); transform: none; }
}

/* Footer proof ticket: compact evidence and maker identity across devices. */
.app-footer {
  position: relative;
  overflow: visible;
  margin-top: 4px;
  padding: 30px max(18px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  border-top: 1px solid var(--proof-hairline);
  background: var(--proof-paper);
  text-align: left;
}
.app-footer::before {
  position: absolute;
  top: 11px;
  left: 50%;
  width: min(1180px, calc(100% - 36px));
  transform: translateX(-50%);
  content: 'POLARA PRINT ROOM · LOCAL FIRST SINCE 2026';
  color: rgba(75,46,31,.48);
  font: 800 .54rem/1 var(--font-ui);
  letter-spacing: .12em;
}
.app-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: stretch;
  gap: 10px 18px;
}
.maker-seal {
  min-width: 0;
  min-height: 44px;
  display: flex;
  justify-content: flex-start;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-ui);
  white-space: nowrap;
}
.maker-spark { width: 16px; height: 16px; }
.maker-link { font-family: var(--font-display); font-weight: 700; }
.footer-privacy {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(75,46,31,.12);
  color: var(--proof-muted);
  font-size: .74rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.footer-privacy::before { width: 6px; height: 6px; margin-right: 8px; background: #5ba9d8; }
.footer-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.social-links { gap: 7px; }
.social-link {
  width: auto;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  gap: 7px;
  padding: 0 11px;
  border-width: 1px;
  border-radius: 12px;
  box-shadow: none;
  font: 800 .68rem/1 var(--font-ui);
  text-decoration: none;
}
.social-link svg { width: 17px; height: 17px; }
.footer-meta { max-width: none; color: var(--proof-muted); font-size: .62rem; line-height: 1.25; text-align: right; white-space: nowrap; }

@media (max-width: 1099px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .maker-seal { grid-column: 1; }
  .footer-end { grid-column: 2; grid-row: 1; }
  .footer-privacy { grid-row: 2; }
  .footer-meta { display: none; }
}

@media (min-width: 1100px) {
  .app-footer { padding: 30px clamp(22px, 3vw, 44px) 16px; }
  .footer-inner { grid-template-columns: minmax(260px, .9fr) minmax(330px, 1.1fr) auto; gap: 16px clamp(22px, 2.5vw, 36px); }
  .maker-seal { grid-column: 1; justify-self: start; }
  .footer-privacy { grid-column: 2; grid-row: 1; justify-self: center; max-width: 430px; padding: 0; border: 0; text-align: center; }
  .footer-end { grid-column: 3; grid-row: 1; flex-direction: column; align-items: flex-end; gap: 5px; }
}

@media (max-width: 520px) {
  .app-footer { padding-top: 32px; }
  .footer-inner { gap: 9px 12px; }
  .maker-seal { gap: 6px; font-size: .75rem; }
  .footer-end { gap: 0; }
  .social-links { gap: 6px; }
  .social-link { width: 44px; padding: 0; border-radius: 50%; }
  .social-label { display: none; }
  .footer-privacy { min-height: 32px; padding-bottom: 14px; font-size: .69rem; }
}

@media (max-width: 360px) {
  .maker-seal > span { display: none; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .boot-proof { width: min(300px, calc(100vw - 80px)); grid-template-columns: 112px 1fr; gap: 7px 14px; padding: 16px 20px; }
  .boot-proof-label, .boot-wordmark, .boot-proof p, .boot-progress { grid-column: 2; }
  .boot-proof-label { align-self: end; text-align: left; }
  .boot-poca { grid-column: 1; grid-row: 1 / 5; width: 112px; height: 112px; }
  .boot-wordmark { justify-self: start; width: 105px; }
  .boot-proof p { text-align: left; }
  .app-footer { padding-top: 26px; }
  .app-footer::before { top: 8px; }
  .footer-inner { grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr) auto; gap: 12px; }
  .maker-seal { grid-column: 1; }
  .footer-privacy { grid-column: 2; grid-row: 1; padding: 0; border: 0; }
  .footer-end { grid-column: 3; grid-row: 1; }
  .social-label, .footer-meta { display: none; }
  .social-link { width: 44px; padding: 0; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .boot-screen,
  .boot-shutter,
  .boot-proof,
  .boot-poca,
  .boot-progress span,
  html.app-entering .workspace { animation: none !important; transition-duration: .01ms !important; }
  .boot-progress span { transform: scaleX(1); }
  .boot-ready-stamp { transition: none; }
}
